Repository navigation
Keep bot card purpose visible after creation - #48487
Conversation
234c7d9 to
79d9d1f
Compare
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Review statusProblem: after a suggested bot was created, its chat card hid what the bot was for and spent a footer row on one Open button. User-facing change: the purpose stays visible in every state; a created bot opens from its name or the ↗ next to it; the footer goes away once created; the workspace takeover note is a second muted line under the purpose. Fixed during review
Deferred (P2)
Verified
|
ELI5
When a bot suggests a new bot in chat, it shows a small card. After you pressed Create bot, that card used to hide what the new bot was for and kept a whole row just for an Open button. Now the card always shows what the bot is for, and you open the new bot by clicking its name (or the small ↗ next to it), so the card is one row shorter.
What Changed
Why
The collapsed card should say what the bot is for at a glance. Before, a created card had an empty-looking row under the name and spent a full footer on a single button.
Linked Issue
None (maintainer design change).
Visual Proof
Before (created card, taking over workspaces):
After (same state):
After, in the app (light): tooltip on ↗, keyboard focus on ↗, deleted state
After, in the app (dark): created card expanded
Testing
Ran the change in a test copy of Orca on Windows with a real bot posting two offer cards (one with a 64-character name and two workspaces to take over). Checked, in light and dark: proposed collapsed/expanded, Create bot removing the footer, created collapsed/expanded, the takeover line, ↗ tooltip, clicking the name and ↗ (both open the bot's home tab), Tab to the name and ↗ (visible focus ring), Enter on the name, deleted state, Escape to collapse, one card open at a time, and long-name wrapping.
Component fixture screenshots before and after for every card state.
No automated test added: this is a layout change; the card's view logic is unchanged apart from carrying the purpose through.
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
Performance
None, because the card only reads one more string from data it already has when it renders.
Risk
Level: Low
The riskiest part is the created card's open action: if it broke, clicking the bot name would do nothing. Both controls call the same open function the old Open button used, so local and remote bots open the same way. Nothing saved changes; a plain revert restores the old card.
AI Disclosure
Review
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Desktop only; the phone card is unchanged apart from the shared copy entry.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)