Skip to content

Keep bot card purpose visible after creation - #48487

Merged
brennanb2025 merged 4 commits into
mainfrom
brennanb2025/new-bot-card-collapsed
Nov 24, 2026
Merged

brennanb2025 merged 4 commits into
mainfrom
brennanb2025/new-bot-card-collapsed

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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

  • The bot's purpose stays on the second line of the card in every state (proposed, created, deleted), with the expand arrow at its end.
  • Once created, the Open button and its footer row are gone. The bot name opens the bot, with the same ↗ open icon that worker and status rows in chat already use (tooltip "Open "). Both are keyboard-focusable with a full-strength focus ring.
  • When the new bot is taking over workspaces, that note now sits as a second muted line under the purpose instead of replacing it.
  • A proposed card keeps its Edit / Create bot footer; a deleted bot's card keeps its purpose but has no open action.
  • The view data for the card now carries the purpose in every state, and the phone app's copy list gets the new "Open " label so the shared copy stays complete.

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

Before: created card

After (same state):

After: created card

After, in the app (light): tooltip on ↗, keyboard focus on ↗, deleted state

Tooltip
Focus on the open icon
Deleted state

After, in the app (dark): created card expanded

Created expanded, dark

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

  • 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

Desktop only; the phone card is unchanged apart from the shared copy entry.

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)

@brennanb2025
brennanb2025 force-pushed the brennanb2025/new-bot-card-collapsed branch from 234c7d9 to 79d9d1f Compare November 24, 2026 22:07
@brennanb2025
brennanb2025 marked this pull request as ready for review November 24, 2026 22:49
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Offer views now include the proposal purpose in created, deleted, and open-offer states. The created-bot card displays the purpose and any takeover text separately. Its title and adjacent event-open control open the created bot’s home tab, replacing the former footer Open action. English translation entries support the open-bot label.

Merge Risk: Minimal · up to 2e235

The bot card now keeps its purpose visible after creation and opens the bot from its name and adjacent icon. No concrete defect or performance regression was found, so the change looks safe to merge once CI passes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "Keep bot card purpose visible after creation" matches the main change. The changeset keeps the bot's purpose on the card in proposed, created, and deleted states, and it removes the separat…
Description check Passed The description follows the template sections: ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checkli…
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 "Keep bot card purpose visible after creation" matches the main change. The changeset keeps the bot's purpose on the card in proposed, created, and deleted states, and it removes the separate Open button in favor of opening the bot from the name and the ↗ icon. The title does not mention the Open button change, but it describes the primary intent without vague terms.

Full details: Description check

Explanation

The description follows the template sections: ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk, AI Disclosure, Review, Agent skill upstream boundary, Notes, and Checklist. It explains the before and after behavior, the mechanism, and the risk, and it includes before and after images. Gaps: the Linked Issue section says 'None (maintainer design change)', which the template says is required for outside contributors but the author appears to be a maintainer, so this is acceptable. The AI Disclosure and Review sections are empty. The final checklist item for lint, typecheck, test, and build is unchecked, which the template allows because CI can cover it. The Performance section is filled in.

  • 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: 9e0d98b5-62e9-4f40-bb04-091ca9f849f6
Commits

Reviewing files that changed from the base of the PR and between a91b524 and 2e2356d.

Files selected for processing: 7

  • mobile/src/i18n/en-runtime-required.json
  • mobile/src/i18n/locales/en.json
  • mobile/src/session/native-chat/transcript/bot-cards/mobile-bot-card-copy.ts
  • src/renderer/src/components/native-chat/NativeChatBotCreateOfferCard.tsx
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/en.json
  • src/shared/bots/bot-create-offer-view.ts

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

@brennanb2025

brennanb2025 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Review status

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

  • The ↗ button used a half-strength focus ring (below 3:1 on the card's fill); the name and ↗ now get the chat's full-strength ring, and the name's ring has rounded corners.
  • The takeover note was one shade fainter than the same note on a proposed card; it now matches.
  • Adding the "Open " label to the shared card copy broke the phone app's exhaustive copy list (typecheck); the phone list and its English strings now include it.
  • An unrelated lockfile change slipped into a commit; reverted.

Deferred (P2)

  • The name and ↗ are two tab stops for one action; the approved design asks for both.
  • With a name long enough to wrap, ↗ sits at the right end of the title's first line rather than right after the last word.
  • The phone card still uses the old layout (out of scope for this desktop change).

Verified

  • Two independent reviews per pass, last pass clean on 2e2356d. Regression audit of the change merged onto main: SAFE on 2e2356d (after one must-fix, the phone copy list, was fixed).
  • Real app run on Windows, light and dark, with a real bot posting offers: proposed, create, created, takeover line, tooltip, name and ↗ opening the bot, keyboard focus and Enter, deleted, Escape, one card open at a time, long-name wrapping. All passed. Screenshots are in the PR body. A second run on 2e2356d with a Codex bot (GPT-6.1-Sol, high) posting the offer passed the same core flows: proposed, create, created with the takeover line, tooltip, name and ↗ opening the bot, focus rings, expand and Escape.
  • No new work that grows with chats or rows.

@brennanb2025
brennanb2025 merged commit a58ad69 into main Nov 24, 2026
90 of 91 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