Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe change extracts shared remote-action behavior for Claude and Codex account controls. Remote actions show localized server commands and display notices through a common wrapper. Tests mock tooltip rendering and verify both commands in remote scope and neither command in local scope. Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: 🔵 Low · up to Remote account guidance may remain inaccessible through keyboard interaction at the affected account actions, so this should be confirmed before merge. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: d0317068-ee82-464e-b458-875355353e23
📒 Files selected for processing (5)
src/renderer/src/components/settings/AccountsPane.test.tsxsrc/renderer/src/components/settings/accounts-pane-claude-section.tsxsrc/renderer/src/components/settings/accounts-pane-codex-account-row.tsxsrc/renderer/src/components/settings/accounts-pane-codex-section.tsxsrc/renderer/src/i18n/locales/en.json
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
| <TooltipProvider> | ||
| <Tooltip> | ||
| <TooltipTrigger asChild> | ||
| <span className="inline-flex cursor-not-allowed" onClick={() => toast.info(notice)}> |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Make the three remote guidance triggers keyboard-accessible.
TooltipTrigger asChild attaches the trigger to a plain <span> in all three remote controls. The spans have no focus target or keyboard handler, while the nested buttons are natively disabled. Keyboard users cannot open the tooltip or invoke the guidance toast. Use a shared focusable, keyboard-activatable wrapper for Claude account addition, Codex account addition, and Codex re-authentication. Keep the nested action buttons natively disabled.
There was a problem hiding this comment.
ℹ️ No critical issues — a few DRY and design-system suggestions inline.
Reviewed changes
RemoteActionTooltipWrapper— a new local wrapper inaccounts-pane-claude-section.tsxthat, in remote scope, wraps a disabled button in a tooltip-triggerspanthat fires atoast.infoon click and a tooltip on hover.- Codex section + account row — the same tooltip/toast pattern, re-implemented inline in
accounts-pane-codex-section.tsxandaccounts-pane-codex-account-row.tsxinstead of reusing the wrapper. - Localization — eight new
AccountsPanestrings (remoteAddClaudeNotice,remoteAddCodexTooltip, etc.) added toen.json. - Test —
AccountsPane.test.tsxmocks the tooltip primitives and asserts the guidance copy renders in remote scope and is absent locally.
ℹ️ Tooltips are being used to teach on labeled buttons
STYLEGUIDE.md ("Tooltips") is fairly explicit: tooltips exist to name a control whose meaning isn't obvious, they "are not the place to teach, persuade, or warn", and you shouldn't reach for one when the control already has a visible label. The Add Account / Re-authenticate buttons here have visible text labels, and the section already shows inline guidance ("Add or re-authenticate accounts on that server"). The tooltip's marginal value is the exact terminal command, which is also conveyed by the click toast. Consider whether the toast (and/or surfacing the command in the existing inline copy) is enough, rather than adding a tooltip that several documented rules discourage.
Technical details
# Tooltip-on-labeled-button design question
## Affected sites
- src/renderer/src/components/settings/accounts-pane-claude-section.tsx:38 — TooltipContent teaching a command on a labeled button
- src/renderer/src/components/settings/accounts-pane-codex-section.tsx:203 — same for Codex add
- src/renderer/src/components/settings/accounts-pane-codex-account-row.tsx:187 — same for Codex re-auth
## Required outcome
- Confirm whether the hover tooltip is wanted, or the click toast + inline section copy already covers the guidance.
## Open questions for the human
- Is the exact command meant to be copyable? If so, plain tooltip text can't be selected; inline code in the section copy would be more useful.DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 13b873fd-be31-4425-ba15-676a19555141
📒 Files selected for processing (5)
src/renderer/src/components/settings/AccountsPane.test.tsxsrc/renderer/src/components/settings/accounts-pane-claude-section.tsxsrc/renderer/src/components/settings/accounts-pane-codex-account-row.tsxsrc/renderer/src/components/settings/accounts-pane-codex-section.tsxsrc/renderer/src/components/settings/accounts-pane-remote-action-wrapper.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
- src/renderer/src/components/settings/AccountsPane.test.tsx
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review.
There was a problem hiding this comment.
ℹ️ No critical issues — one minor accessibility suggestion inline.
Reviewed changes
- Extracted
AccountsPaneRemoteActionWrapper— the file-localRemoteActionTooltipWrapperand the two inline Codex re-implementations are now a single shared module reused by all three call sites. - Dropped the nested
TooltipProvider— the wrapper now relies on the global App-root provider. - Added keyboard/tooltip accessibility — the remote-scope trigger is a focusable
role="button"span with a focus ring and Enter/Space → toast, replacing the misleadingcursor-not-allowed. - Tightened the test — asserts the concrete
orca account add --agent claude/--agent codexcopy rather than the looser prefix.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Routed pointer events and hid the disabled button from assistive tech — the inner
<Button>is now wrapped in anaria-hiddenspan withpointer-events-none, so therole="button"trigger is the only interactive control a screen reader encounters (resolves the nested-controls concern). - Gave the trigger a concise accessible name —
aria-labelnow carries the visible label (actionLabel) rather than the full instruction sentence, so the guidance is announced once as the description instead of doubling as name + description. - Tightened the test — locates the disabled button by its closing tag (
Add Account</button>) and asserts the concreteorca account add --agent ...copy.
The prior accessibility thread is addressed cleanly: the trigger now exposes a single control whose name matches the visible label, with the guidance delivered once as aria-describedby.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
|
Thanks @denis-sj for this, and for pointing people to Since this PR was opened, main has started disabling these buttons in remote scope and explaining why, so most of this change is already there. #31461 now fixes the underlying problem. Add Account works against a remote server: the server runs the Claude or Codex login, and this device opens the page and passes back the code. The note in that PR credits your guidance approach. Closing this in favour of #31461. Thanks again! |

ELI5
When Orca is connected to a remote server runtime, accounts cannot be added or re-authenticated through local browser sign-in. Previously the buttons were simply disabled without explanation. Now hovering or clicking those disabled buttons displays guidance on how to run
orca account addin a terminal on the remote server.What Changed
accounts-pane-claude-section.tsx: Wrapped the "Add Account" and "Re-authenticate" buttons with a tooltip whenisRemoteAccountScopeis true. Clicking the disabled button displays an informational toast notice, and hovering shows a tooltip with instructions to runorca account add --agent claude.accounts-pane-codex-section.tsx: Wrapped the "Add Account" button in the same tooltip/toast notice pattern instructing the user to runorca account add --agent codex.accounts-pane-codex-account-row.tsx: Wrapped the "Re-authenticate" button in the same tooltip/toast notice pattern instructing the user to runorca account add --agent codex.src/renderer/src/i18n/locales/en.json.AccountsPane.test.tsxto assert that remote guidance tooltip copy is rendered when in remote server scope and omitted in local scope.Why
When
isRemoteAccountScopeis active, the<Button>component hasdisabled={isRemoteAccountScope || ...}, which appliesdisabled:pointer-events-none. This dropped all pointer events and prevented clicks or hovers from giving any feedback to the user. Wrapping the disabled button inside a span trigger with a tooltip and click-to-toast notice ensures users clearly understand why the button cannot be clicked locally and gives them the exact terminal command to run on the server instead.Linked Issue
Fixes #20009
Visual Proof
N/A - Non-interactive static rendering in automated tests and standard tooltip/toast UI feedback on disabled buttons.
Testing
pnpm test src/renderer/src/components/settings/AccountsPane.test.tsxpassespnpm typecheckpassespnpm run check:code-quality:changedpassespnpm run verify:localization-catalogpassesChecklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)