Commit Graph
8 Commits
Author SHA1 Message Date
xiaomakuaiz 14aa35d022 fix: stop composer blur bleeding over messages on iOS 26
UIVisualEffectView's gaussian blur spreads ~one blur radius beyond its
bounds. After 6423056 removed the outer clip (required to fix the iOS 26
first-mount blur failure), that bleed escapes above the composer's top
edge and frosts the last line of the agent reply — RN-level clipping
cannot contain it since clipping the effect view's host is documented
undefined behavior.

Switch Glass to expo-glass-effect's GlassView (system UIGlassEffect) on
iOS 26+, which renders strictly within its corner-configured shape, and
keep the BlurView path as fallback for older iOS / non-liquid-glass
builds. The module is lazy-required with a try/catch so OTA bundles
running on binaries without the native module fall back instead of
crashing. colorScheme follows the in-app theme toggle rather than the
system appearance.
2026-07-11 14:11:17 +00:00
xiaomakuaiz 2a009ecb3c fix: improve mobile task workflows 2026-07-10 20:11:06 +08:00
xiaomakuaiz d51c8380ee chore: align mobile dependencies with Expo SDK 55 2026-07-03 11:46:38 +08:00
xiaomakuaiz 4a45c4b0dc feat: Sign in with Apple 登录 + 账号注销(App Store 4.8 / 5.1.1(v))
移动端:
- 登录页新增 Sign in with Apple(仅 iOS + 官方云),app.json 开启 usesAppleSignIn
- 个人页新增「注销账号」入口,两步确认后删号;导航交给鉴权守卫避免二次跳转
- AuthContext 增加 loginWithApple / deleteAccount;登录直接用接口返回的用户信息

后端:
- 新增 POST /api/v1/users/apple-login:JWKS 验签 identity token,按 Apple sub
  找/建用户;同邮箱(仅信任 token 验签的邮箱)则关联既有个人账号,避免撞唯一索引
- 新增 DELETE /api/v1/users/account:软删用户及第三方身份,撤销 Apple 授权
- pkg/applesign:JWKS 验签(读写锁 + 负缓存,刷新不阻塞登录)+ token 换取/撤销
- user_identities 增加 credential 字段(存 Apple refresh token)+ 迁移 000013
- apple-login 仅在配置了 client_id 时启用,私有化部署默认关闭
2026-06-12 21:07:07 +08:00
xiaomakuaiz 301a75fb16 feat(mobile): 任务对话支持选图作为附件发送 + 对话图片保存到相册
对齐 Web chat-inputbox:
- 选图:expo-image-picker 相册多选(≤3 张、仅图片);超 2MB 自动用 expo-image-manipulator
  缩边长 + JPEG 压缩到 2MB 内(≤2MB 原图直接用)
- 上传:预签名直传(POST /api/v1/uploader/presign → PUT 原始字节)。用 XHR(responseType blob)
  取本地文件,blob.slice(...,'') 去掉 Content-Type,fetch credentials:'omit' 跨域直传——对齐 Web
  的 new Blob([file]);否则 iOS 多发的 Content-Type 进入 SigV4 规范请求触发 SignatureDoesNotMatch
- 发送:user-input 负载带 attachments:[{url,filename}](原来恒为空);历史/实时用户消息渲染缩略图
- composer:暂存缩略图(上传中/失败态、可移除)、上传中禁发、并发上传;快捷指令不带走暂存图
- AI 的 markdown 图片:覆盖 markdown image 规则,用普通 <Image> + onLoad 自适应比例,修掉
  react-native-fit-image 永久 loading 转圈 + React19 "key spread into JSX" 告警
- 保存到相册:点对话里的图片 → expo-media-library/legacy 存系统相册
- 新增原生依赖 expo-image-picker / expo-image-manipulator / expo-media-library
  (需重新原生构建;app.json 加图库读/写权限)
2026-06-09 22:06:33 +08:00
xiaomakuaiz a6fd8ecbc8 chore(mobile): 移除旧 Capacitor 客户端,Expo 客户端(mobile-expo)重命名为 mobile
删除原 Capacitor 版 mobile/;将 SDK56 重构的 mobile-expo/ 重命名为 mobile/。
(android/ios/node_modules 等为 gitignore 生成物,未入库;本地需重新 npm install + prebuild)
2026-06-09 00:52:42 +08:00
Monster b6d73a9dbb Add explicit frontend edition builds 2026-05-19 17:54:42 +08:00
MonsterandClaude Sonnet 4.6 5e786ea826 feat: 新增 Android 移动端项目(Capacitor)
基于 Capacitor 7.6.0 的 Android 壳层项目,加载 frontend/dist 编译产物
补充 .gitignore 忽略 node_modules 和 cap sync 生成的前端资源

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 12:19:16 +08:00