Skip to content

fix(mobile): draw Accounts as a grouped page like Settings and Edit computer - #51699

Merged
AmoabaKelvin merged 1 commit into
mainfrom
fix-accounts-grouped-colours
Nov 28, 2026
Merged

AmoabaKelvin merged 1 commit into
mainfrom
fix-accounts-grouped-colours

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

The phone's Accounts screen used a different background and card colour from every other list screen (Settings, Edit computer). It now looks like them.

Files Added Deleted Net
Test 0 0 0 0
Prod 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​34 $\color{#cf222e}{\Huge{\mathbf{−}}}$​37 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3

What Changed

Before: Accounts drew its groups in bgPanel on a bgBase page, so it read as a darker, flatter screen than Settings and Edit computer, which use sheetGroup groups on the groupedPage grey.

After: Accounts uses the same grouped-page look: groupedPage page and bar (with the bar buttons' on-grey fill), and the list groups' default sheetGroup fill. The usage bar track moves from bgRaised to translucentFill, because in dark mode bgRaised is the same colour as the group and the track would vanish.

Why

One grouped list should have one look. Copying the page/bar/group fills that SettingsScreen already uses keeps Accounts in step with its siblings without a new style.

Linked Issue

No issue; small design fix asked for while building the phone account sign-in (the next PR in this stack).

Visual Proof

Before (main) and after, dark and light, on an iOS simulator against a serve built from this branch:

Before After
Dark (screenshot removed: contained real product data) (screenshot removed: contained real product data)
Light (screenshot removed: contained real product data) (screenshot removed: contained real product data)

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below
  • Every added test fails without this change and avoids the test anti-patterns

Checked on the iOS 27 simulator (OTA page) in dark and light. No test: this is a colour change, which the repo rules keep out of unit tests. Mobile typecheck and lint pass.

Performance

None, because this only swaps style values; no new renders, reads or work.

Risk

Low. Only the Accounts screen's colours change, and the usage track colour also changes on Home's Usage tab (it reads slightly lighter there; still visible on both themes). Plain revert backs it out.

Level: Low

AI Disclosure

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

Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

Page-only change: ships with the host's OTA page, no store build needed.

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)

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The account screen now uses the grouped-page background, omits the group style from its account lists, and provides the navigation bar with the sheet context enabled. The usage track background now uses translucent fill.

Merge Risk: Minimal · up to 75846

This change restyles the Accounts screen to match the grouped-page look of Settings and Edit computer. It carries no evident functional or performance risk and looks safe to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the mobile Accounts screen is drawn as a grouped page, matching the Settings and Edit computer screens. The change set matches this: the page and bar move to groupedPa…
Description check Passed The description follows the template closely. It has an ELI5, a before/after What Changed section, a Why section, Visual Proof with before and after images in dark and light modes, Testing, a Performa…
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.
Full details: Title check

Explanation

The title names the main change: the mobile Accounts screen is drawn as a grouped page, matching the Settings and Edit computer screens. The change set matches this: the page and bar move to groupedPage, list groups use default sheetGroup fills, and the usage track changes colour. The title uses the fix prefix and is specific.

Full details: Description check

Explanation

The description follows the template closely. It has an ELI5, a before/after What Changed section, a Why section, Visual Proof with before and after images in dark and light modes, Testing, a Performance line, a Risk section with level Low and a revert path, and the checklists. Gaps: the Linked Issue section says no issue exists, and the template says outside contributors must link one. The author is not identified as a maintainer, so this may need a link or a maintainer confirmation. The AI Disclosure section is empty, and the final lint/typecheck/test/build checkbox is unchecked. The Testing section also says mobile typecheck and lint pass, but the checklist item for them is unchecked, so the status is inconsistent.

Resolution

Confirm the Linked Issue requirement: the template requires an issue for outside contributors, and the description says none exists. Fill in or confirm the AI Disclosure section. Check the pnpm lint, typecheck, test and build checklist item, or explain which checks did not run locally.

  • 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: a4f847eb-ac1e-4c4f-9f66-744dc82ce70f
Commits

Reviewing files that changed from the base of the PR and between 0b31732 and 7584621.

Files selected for processing: 6

  • mobile/src/accounts/MobileAccountsScreen.tsx
  • mobile/src/accounts/antigravity-account-section.tsx
  • mobile/src/accounts/managed-data-account-section.tsx
  • mobile/src/accounts/mobile-accounts-screen-styles.ts
  • mobile/src/accounts/provider-account-sections.tsx
  • mobile/src/accounts/usage/UsageBar.tsx
Files skipped from review as they are similar to previous changes: 3

  • mobile/src/accounts/MobileAccountsScreen.tsx
  • mobile/src/accounts/mobile-accounts-screen-styles.ts
  • mobile/src/accounts/usage/UsageBar.tsx

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

…omputer

Accounts painted its groups bgPanel on bgBase, while every other grouped screen uses
sheetGroup groups on the groupedPage grey. It now uses the same page, bar and group
fills. The usage track moves to translucentFill, since bgRaised equals the group fill
in dark and would hide it.
@AmoabaKelvin
AmoabaKelvin force-pushed the fix-accounts-grouped-colours branch from 0b31732 to 7584621 Compare November 28, 2026 11:01
@AmoabaKelvin
AmoabaKelvin merged commit eabe54c into main Nov 28, 2026
28 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