Repository navigation
feat(mobile): 简化「自动」页面,进阶设置迁至「更聪明的 CoCo」 - #64
Merged
Merged
Conversation
- 「自动」tab 仅保留「通知监听」一步,降低首次配置心智 - 通知权限 + 后台运行迁移到「我的」→「工具」→「更聪明的 CoCo」二级页面 - 通知监听已开但未配齐通知权限时显示轻量提示条引导用户去优化 - 抽离 SetupStep / GuideImage 共享组件供两处复用 - 抽离 lib/auto-bookkeeping 与 useAutoBookkeepingStatus hook, 消除原生模块加载与权限轮询的跨文件重复,并通过 useFocusEffect 避免 stack push 后双 interval 并发
避免用户频繁登录,将 jwt_access_expire_minutes 从 60 分钟(1 小时) 调整为 10080 分钟(7 天),与 refresh token 30 天形成更平滑的层次
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/smarter-coco),承载「通知权限」+「后台运行」两项进阶配置components/auto/SetupStep.tsx、components/auto/GuideImage.tsxlib/auto-bookkeeping.ts(原生模块单点加载)hooks/useAutoBookkeepingStatus.ts(权限轮询,使用useFocusEffect避免 stack push 后双 interval 并发)心智改造前后
Test plan
/smarter-coco,页面有标题/副标题/2 步配置/图文引导/smarter-coco完成所有权限设置,返回「自动」tab → 提示条 3 秒内消失just cicd-fe✅ 已通过(lint / format / typecheck / 19 test suites 183 tests)🤖 Generated with Claude Code