Skip to content

fix(bots): redesign Connect Google as two one-line cards - #47861

Merged
AmethystLiang merged 5 commits into
mainfrom
AmethystLiang/connect-google-two-cards
Nov 24, 2026
Merged

AmethystLiang merged 5 commits into
mainfrom
AmethystLiang/connect-google-two-cards

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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):

  • Removed the visible description line under the title (kept as a screen-reader-only description).
  • Each choice has one short note: Orca hosted · Soon · "Sign in with Google." and Self hosted · "Your own Google app."
  • Removed the three setup steps and the "About 10 minutes" badge. The steps were also inaccurate; the chat already walks through the real setup.
  • Removed "Have a setup file from your team?"; Import file is now a ghost button on the left of the footer, with its busy state and error line (role=alert) kept.
  • The disabled card has a solid surface and fully opaque muted text. Only its radio is dimmed.
  • The title stays left-aligned. The three actions fit on one row at 340 px. At minimum window width and maximum zoom, Import file gets its own row and Cancel and Continue stay together on the right.

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 says Soon like desktop. Its description note is unchanged.

Strings: removed hostChoice.stepApp/stepSignIn/stepCheck (and mobile steps); hostChoice.comingSoon → hostChoice.soon on desktop and mobile; updated orcaNote/selfNote in en and zh. Other locales fall back to English for these keys, as before. setUpTime, haveSetupFile and importSetupFile stay: 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:
wide-dark

448 wide, light:
wide-light

340 wide, dark:
narrow-dark

340 wide, light:
narrow-light

Import error, 448 dark:
importError-dark

Import error, 340 light:
narrowImportError-light

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

Current footer at 340 px and 220 px

340 px, dark and light

340 px dark
340 px light

220 px with import error, dark and light

220 px dark with import error
220 px light with import error

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

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

No security, SSH or cross-platform impact: renderer and mobile copy/layout only.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

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.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Google host-choice screens use shorter option descriptions and no longer show setup instructions. The renderer dialog removes the setup-time badge and setup-file prompt. It displays import errors below the host options and provides an import button in a wrapping footer. Renderer fixtures cover multiple widths, long names, and import-error states. Mobile and renderer translations are updated.

Merge Risk: Minimal · up to 55d5b

This change shortens the Google connection dialog and the mobile screen, and moves Import file to the footer. No concrete merge-blocking risk was found. Mobile was not tested on a device, but the change is copy and layout only.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(bots): redesign Connect Google as two one-line cards" matches the main change: the Connect Google host-choice dialog and mobile page are condensed to two one-line option cards, with ste…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description follows the repository template closely. It has all required sections: ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk (with level), AI Disclosure secti…
Full details: Title check

Explanation

The title "fix(bots): redesign Connect Google as two one-line cards" matches the main change: the Connect Google host-choice dialog and mobile page are condensed to two one-line option cards, with steps and time estimate removed. It uses a conventional-commit prefix and is specific enough for a teammate scanning history.

Full details: Description check

Explanation

The description follows the repository template closely. It has all required sections: ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk (with level), AI Disclosure section (left blank, which is allowed for internal contributors), Review, Agent skill upstream boundary, Notes, and Checklist. It explains the before and after behavior, the mechanism (removed steps, notes shortened, Import file moved to footer, string key renames), the risk and rollback (plain revert), and the performance impact. Visual Proof includes before and after images for desktop and a note on the mobile change. Weaknesses: the Linked Issue section says 'Internal design follow-up (no issue)', which does not meet the template's requirement that outside contributors link an actual issue, though the author may be a maintainer. The Performance line is written as a full sentence rather than the template's 'None, because' format, but the reasoning is given. The Why section is brief on alternatives considered. The Mobile change is covered in What Changed but its visual proof is not included. Testing for mobile was not done on a device, which is disclosed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2e57245e-cf43-4e26-a01f-93757b5bb77f
Commits

Reviewing files that changed from the base of the PR and between ceb387f and 55d5bca.

Files selected for processing: 2

  • src/renderer/src/component-fixtures/ComponentFixtureFrame.tsx
  • src/renderer/src/components/bots/google/GoogleHostChoiceDialog.tsx
Files skipped from review as they are similar to previous changes: 1

  • src/renderer/src/components/bots/google/GoogleHostChoiceDialog.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

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.
@AmethystLiang
AmethystLiang merged commit 00910c0 into main Nov 24, 2026
59 checks passed
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