Skip to content

Simplify Account Pooler sign-in dialog - #3423

Merged
ymichael merged 2 commits into
mainfrom
bb/remove-duplicate-account-pooler-sign-in-heading-thr_492b4qc87c
Sep 10, 2026
Merged

Simplify Account Pooler sign-in dialog#3423
ymichael merged 2 commits into
mainfrom
bb/remove-duplicate-account-pooler-sign-in-heading-thr_492b4qc87c

Conversation

@ymichael

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The Account Pooler sign-in flow rendered the provider sign-in label twice: once as the accessible dialog title and again as a visual step heading. The footer Cancel button duplicated the dialog close action, while the compact drawer did not expose the corresponding header close control.

What changed

  • Keep one accessible Sign in to … title and retain the provider-specific instruction copy.
  • Remove Cancel from the active sign-in footer; Codex now omits the empty footer while Claude retains Complete and the connected step retains Add another/Done.
  • Put the shared responsive DialogClose in the Account Pooler dialog header so both desktop dialogs and compact drawers retain an explicit close action.
  • Add regressions for the single heading, absent Cancel action, and pending-session cancellation/poll teardown across wide and compact layouts.

No host-daemon wire, CLI, guide, or public plugin API contract changes are involved.

How you verified

  • pnpm exec turbo run test typecheck --filter=bb-plugin-account-pool --force — 269 tests passed; typecheck passed.
  • pnpm exec oxfmt --check plugins/account-pool/app.tsx plugins/account-pool/app.test.tsx
  • git diff --check
  • Browser QA at 1280×900 and 390×844 with a local fake device-auth fixture confirmed the single title, absent Cancel button, responsive header close, preserved device code/copy/open/countdown behavior, and preserved Claude/final-step actions.

AGENT GENERATED

ymichael and others added 2 commits September 10, 2026 10:09
The Account Pooler device sign-in dialog rendered "Sign in to <provider>"
twice: once as the dialog title and again as an h3 above the step
instructions. The step heading carried no information the dialog title did
not already give, and it pushed the device code further down the drawer on
mobile.

Drop the redundant step heading and keep the step-specific instructions as
the dialog body copy, matching the other Account Pooler dialogs, which pair
a single DialogTitle with a muted instruction paragraph. The final step
keeps its distinct "Connected <account>" heading.

Verified with the Codex and Claude flows at 1280x900 and 390x844 against a
local fake device-auth fixture: one accessible dialog name, progress
indicator, device code, copy/open, expiry countdown, cancel and close all
unchanged.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The sign-in dialog's footer Cancel duplicated the header close: both ran
closeDialog, which cancels the Codex device session and stops polling. The
header close only existed on wide viewports, though, because DialogContent
renders it for the dialog branch and not for the compact drawer, so simply
dropping Cancel would have left touch users with swipe or Escape as the only
way to back out of a half-finished sign-in.

Render the close control in DialogFrame's own header instead, with
hideCloseButton on DialogContent so there is exactly one on both viewports,
and drop the redundant footer Cancel. The Codex sign-in step now has no
footer actions at all, so DialogFrame skips the footer when there are none.
Claude keeps Complete and the final step keeps Add another and Done.

Verified in the browser at 1280x900 and 390x844 against a local fake
device-auth fixture: the drawer shows a Close button, closing it cancels the
pending sign-in and no further device-token polls reach the fixture, and the
dialog keeps its accessible name. Tests cover the close path on both compact
and wide viewports.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@ymichael
ymichael merged commit 53262cd into main Sep 10, 2026
16 checks passed
@ymichael
ymichael deleted the bb/remove-duplicate-account-pooler-sign-in-heading-thr_492b4qc87c branch September 10, 2026 17:34
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