Skip to content

chore: shorten the mobile sync notice and drop the claude/* branch convention - #666

Merged
huichen merged 2 commits into
mainfrom
chore/sync-notice-copy
Sep 16, 2026
Merged

huichen merged 2 commits into
mainfrom
chore/sync-notice-copy

Conversation

@huichen

@huichen huichen commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Two small, unrelated chores, bundled into one PR as requested.

1. Mobile: shorter conversation-sync notice

mobile/src/i18n/locales.ts — entering a conversation showed a long sentence:

  • zh: 正在同步最新内容… 当前显示可能尚未完整。 → 正在同步…
  • en: Syncing latest content… Displayed messages may be incomplete. → Syncing…

The syncRetrying and syncWaitingNetwork variants keep their explicit wording, because they mean something different (retrying / waiting for the connection) rather than the plain initial sync.

ChatScreen.tsx is untouched, and the existing test asserts the i18n key (chat.syncingLatest), not the copy, so no snapshot or test change was needed.

2. CLAUDE.md: drop the hard-coded claude/* branch prefix

The development-workflow section prescribed .worktrees/<name> on a claude/* branch. Nothing depends on that prefix (checked with git grep across the Makefile, scripts/, and CI workflows — no branch-name matching anywhere), so the convention now follows the Conventional Commits type of the PR title: <type>/<name> with feat/, fix/, perf/, refactor/, docs/, chore/, test/, ci/.

Also documents the exact worktree command with --no-track:

git worktree add --no-track .worktrees/<name> -b <type>/<name> origin/main

--no-track matters: git worktree add -b X origin/main sets the new branch's upstream to origin/main, so a bare git push publishes to main.

Not part of this PR: .future/memory/*.md still referred to .claude/worktrees/<name> where the repo actually uses .worktrees/<name>; those local (gitignored) memory files were corrected in place.

Checks

  • mobile: npm run typecheck and npm run lint pass.
  • mobile jest: 1398 passed / 1 failed. The single failure (MarkdownText.test.ts:29, spy on parseFutureMarkdown recorded 0 calls) is a worktree harness artifact, not this change: with node_modules junctioned to the main checkout, the component's @future-os/markdown import resolves to the main repo's packages/markdown, while the test spies on the worktree's copy — different module instances. The same test passes in the main checkout, and this PR does not touch the parser, MarkdownText, or any package under packages/. CI runs a real install on Linux.
  • Docs: no new/renamed documentation files, so make check-docs is unaffected (CLAUDE.md is on its allowlist).

@huichen
huichen enabled auto-merge (squash) September 16, 2026 11:23
@huichen
huichen merged commit fac02c0 into main Sep 16, 2026
12 checks passed
@huichen
huichen deleted the chore/sync-notice-copy branch September 16, 2026 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant