Repository navigation
fix(mobile): restore the roomy rename dialog layout - #748
Merged
Merged
Conversation
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.
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.
What
Restores the earlier (roomier) layout of the mobile rename dialog, which #700 had compacted into an info toggle plus a sparkles icon button:
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.generateTitleHelpstring is dropped from both locales.Screenshot scenario
The mobile
renamescenario could no longer reach the dialog (rename had moved into the session row menu), so it failed with2 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— cleannpx jest --runInBand— 118 suites / 1757 tests passcapture-mobile rename—1/1 captured, assertion returnedrename 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