Skip to content

chore(design): app screens in the design system: sidebar, crew, chat, requests - #120

Merged
httpsphl merged 1 commit into
mainfrom
feat/design-sync-chat-cards
Oct 2, 2026
Merged

httpsphl merged 1 commit into
mainfrom
feat/design-sync-chat-cards

Conversation

@httpsphl

@httpsphl httpsphl commented Oct 2, 2026

Copy link
Copy Markdown
Owner

What and why

The explainer video should show Botloft's real screens, not lookalikes. This adds them to the claude.ai/design design system:

  • Sidebar, CrewBots, BotRun (a bot's turn: replies, tool lines, requests), InboundRow (messages from you, another bot or Botloft) and ApprovalCard (a website, a command, a suggested bot, a plan).
  • BotloftProvider (.design-sync/pkg/provider.tsx): the app's own DaemonProvider and HostProvider on FakeBotloft and FakeHost, seeded with the crews and bots a design passes. Allow and Deny reach the design through onAnswer.
  • makeCrew, makeBot, makeMessage and chat.* (.design-sync/pkg/scene.ts): protocol objects with the fake daemon's defaults. Request inputs and summaries follow the daemon (tool_summary, browser_sites.rs), so a site request names its site as the app shows it.
  • Bot colors now come from AVATAR_PALETTE in previews and in the agent's guide.
  • build.mjs emits types for the whole package (repo as root; .design-sync renamed to ds there, since ts-morph skips dot folders).

Nothing under app/ or crates/ changes.

How it was tested

The converter's validation passes; all 24 previews render and were graded from screenshots, including a full window (sidebar plus Scout's chat with a site request; Allow moves Scout back to work). The claude.ai/design project was updated against its sync anchor: 9 components changed or added, nothing to delete.

No manual test with Claude Code needed: this does not touch the daemon or the app.

Checklist

  • cargo fmt, clippy -D warnings and cargo test pass (no Rust changes)
  • pnpm check passes (no app changes)
  • New interface text is in English, Portuguese and Spanish (none added)
  • docs/spec.md still matches the code

… requests

Adds Sidebar, CrewBots, BotRun, InboundRow and ApprovalCard to the
claude.ai/design design system, so designs show Botloft's real screens.
They read the app's store and API: BotloftProvider wires the app's own
providers to the fake daemon, and scene.ts builds crews, bots, messages
and chat items in the protocol's shape, with request inputs and
summaries as the daemon makes them. Bot colors now come from
AVATAR_PALETTE. Types are emitted for the whole package.
@httpsphl
httpsphl enabled auto-merge October 2, 2026 18:10
@httpsphl
httpsphl merged commit 76dd0c4 into main Oct 2, 2026
4 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