Repository navigation
fix(bots): redesign Connect Google as two one-line cards - #47861
Conversation
Drop the description, the setup steps and the time estimate; give each host choice one short note; move Import file into the footer. The Soon card keeps a solid background instead of fading the whole card, and only its radio and title dim. The phone's Connect Google page loses the same steps and time estimate.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
The Soon card sits on the dialog's own surface, its text is muted rather than faded, and its empty radio ring stays visible in light theme. The footer wraps instead of clipping at the smallest window and largest zoom. The phone says Soon like desktop. The fixture's failing picker no longer leaks into later fixtures.
ELI5
The Connect Google dialog was a wall of text. Now it is two short choices, each one line, plus Import file / Cancel / Continue in one row.
What Changed
Desktop, Connect Google (
GoogleHostChoiceDialog):Soon· "Sign in with Google." and Self hosted · "Your own Google app."role=alert) kept.Phone, Connect Google page (
MobileBotGoogleConnect): it showed the same steps and the "About 10 minutes" note, so it gets the same cut (Steps section removed, notes shortened to match) and saysSoonlike desktop. Its description note is unchanged.Strings: removed
hostChoice.stepApp/stepSignIn/stepCheck(and mobilesteps);hostChoice.comingSoon→hostChoice.soonon desktop and mobile; updatedorcaNote/selfNotein en and zh. Other locales fall back to English for these keys, as before.setUpTime,haveSetupFileandimportSetupFilestay: Google account settings still use them.Added
GoogleHostChoiceDialog.fixture.tsx(448 and 340 wide, long bot name, Import error, and a 220-wide cramped case for the wrapping footer).Why
The owner found the card hard to read, the time estimate confusing and the steps wrong; she preferred keeping the Orca hosted vs Self hosted distinction. This keeps that distinction and drops everything else. Checked against how comparable products handle this.
Linked Issue
Internal design follow-up (no issue).
Visual Proof
Before (left) / after (right), from the component fixture.
448 wide, dark:

448 wide, light:

340 wide, dark:

340 wide, light:

Import error, 448 dark:

Import error, 340 light:

Long bot name, 340 dark (the name now only appears in the screen-reader description):

Current footer at 340 px and 220 px
340 px, dark and light
220 px with import error, dark and light
Testing
The commit hook passed. GitHub Actions covers typecheck, static checks, localization and tests.
Rendered the desktop fixtures in both themes at 448, 340 and 220 px. Each note stays on one line and all three actions share one row at 340 px in English, German and Russian.
Exercised keyboard and pointer controls, Import retry, and vertical scrolling at the simulated minimum viewport in the seeded desktop fixture.
Mobile change is a removal of a list section and two shorter strings; not run on a device.
I manually tested these changes locally
Automated tests added/updated, or explained why not below: copy/layout only, no test per repo rules
Every added test fails without this change and avoids the test anti-patterns (none added)
Performance
The dialog renders two cards and three actions when opened. Removing the setup steps reduces rendered elements. The fixture changes run in the fixture explorer.
Risk
Level: Low
Copy and layout only; no new state, data or IPC. Worst case is a visual regression in this one dialog or the phone's Connect Google page. Plain revert.
Review
Agent skill upstream boundary
Notes
No security, SSH or cross-platform impact: renderer and mobile copy/layout only.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)