Skip to content

fix(mobile): restore the roomy rename dialog layout - #748

Merged
huichen merged 1 commit into
mainfrom
fix/rename-dialog-style
Sep 20, 2026
Merged

huichen merged 1 commit into
mainfrom
fix/rename-dialog-style

Conversation

@huichen

@huichen huichen commented Sep 20, 2026

Copy link
Copy Markdown
Collaborator

What

Restores the earlier (roomier) layout of the mobile rename dialog, which #700 had compacted into an info toggle plus a sparkles icon button:

  • the title is a plain heading again (no info toggle)
  • the generate action is a full-width secondary 自动生成 button on its own row
  • its explanation (使用本会话模型和最多前三组问答生成…) is always visible under the button instead of hidden behind the info toggle
  • cancel / save keep the equal-width footer

Kept from #707: the input border is still drawn on a separate view, so Android's native EditText underline tint keeps applying to its own background.

The now-unused chat.generateTitleHelp string is dropped from both locales.

Screenshot scenario

The mobile rename scenario could no longer reach the dialog (rename had moved into the session row menu), so it failed with 2 step(s) could not reach their target. It now opens the row's action menu → 重命名, and asserts the layout before capturing (the action is a full-width row aligned with the input, the explanation is visible below it) so the shot cannot silently regress again.

Verification

  • npx tsc --noEmit, npx eslint src — clean
  • npx jest --runInBand — 118 suites / 1757 tests pass
  • capture-mobile rename — 1/1 captured, assertion returned rename dialog layout ok; measured: input and generate action are both 326px wide at x=32, and the explanation sits 8px below the action, visible without any tap

The rename dialog had been compacted into an info toggle plus a sparkles
icon button beside the input, which hid the explanation of what
auto-generation uses. Restore the earlier layout: the generate action is
a full-width secondary button on its own row, its explanation is always
visible under it, and the title row is a plain heading again.

Keep the separate bordered view around the input from #707 so the border
stays off the native EditText (Android underline tint), and keep the
screenshot scenario honest: it now reaches the dialog through the session
row menu and asserts the action/explanation layout before capturing.
@huichen
huichen enabled auto-merge (squash) September 20, 2026 08:20
@huichen
huichen merged commit 260e043 into main Sep 20, 2026
12 checks passed
@huichen
huichen deleted the fix/rename-dialog-style branch September 20, 2026 08:22
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