Registry Mirror
Skip to content

Conversation

@backnotprop

Copy link
Copy Markdown
Owner

Owner-approved design record inbox-sidebar-connect-prompt (2026-10-13): one sidebar row, Copy connect prompt, just above Settings (below the Update button / "What's new" when shown).

What it does

  • A plain .ib-nav row (32 px; 44 px in the phone sheet), no hover fill, like Settings. Only a copy button: no preview, no flyout, no tooltip, no keyboard shortcut.
  • Click copies the prompt. The row shows a check (--success) and Copied for 2 s; focus stays on the row; a polite live region says "Connect prompt copied." A failed copy reads Couldn't copy in the row (4 s) and the live region says "Couldn't copy the connect prompt."
  • The phone sheet stays open after a copy (it is not navigation), so "Copied" is seen.
  • Shown everywhere, including a page opened over the tailnet (owner's call).

The prompt

One place: packages/inbox/connectPrompt.ts. It is the README's shortened prompt with step 6 (asking about the instructions note) removed; the Inbox's agent-note dialog does that now. It names this computer's absolute plannotator from GET /api/inbox/settings mcp_command minus the trailing inbox mcp (shell-quoted with the existing shellLine), and bare plannotator plus where it usually lives until the settings load.

Not changed

  • apps/marketing/src/lib/inbox-prompt.md (served at plannotator.ai/inbox/prompt.md) is a separate, full install prompt (install/update, start the Inbox, connect, verify). It is not the same text or constant, so it is left as is.

Look

Pixel compare at 1280×800 (2x), dark and light, against an origin/main build seeded with the same messages: 0 differing pixels above the sidebar foot (full width), 0 right of the sidebar, 0 in the Settings row (same position). The only change is the new row, which moves the foot's top up 38 px. One CSS detail: the icon's inherited 150 ms colour transition is turned off on this row so the check appears green at once.

Tests

  • packages/inbox/connectPrompt.test.ts: path substitution, quoting a path with spaces, the fallback before settings load, five steps in order.
  • packages/inbox/connectPromptRow.test.tsx (DOM, added to the test.yml DOM list): copy success, Copied resets after 2 s, focus kept, repeated announcement, failure path, live region.
  • tests/e2e/inbox-sidebar.spec.ts: on the compiled binary in Chromium with clipboard permission, the clipboard holds Run Plannotator as: <absolute binary> and <absolute binary> inbox --help; the row is Settings' height, says Copied, keeps focus, and resets.

Docs: AGENTS.md (CLAUDE.md) Inbox sidebar description, and the marketing Inbox reference "What you see".

One plain row above Settings copies a prompt an agent on this computer
pastes to connect itself to the Inbox: read `<binary> inbox --help`,
connect, send a first message offering real recent work. The binary is
this computer's absolute plannotator from /api/inbox/settings
mcp_command (bare plannotator until the settings load). The row reads
Copied for 2 s (or Couldn't copy), keeps focus, and a polite live
region says so. No preview, no tooltip, no shortcut; shown everywhere.

Owner-approved design record inbox-sidebar-connect-prompt (step 6 of the
draft prompt dropped).
@backnotprop
backnotprop merged commit c3aafab into main Oct 13, 2026
29 checks passed
@backnotprop
backnotprop deleted the inbox-copy-connect-prompt branch October 13, 2026 17:52
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