Copy buttons for every command and link in the web UI (join, team join, invite, share, recovery codes) #99

Closed
opened 2026-10-03 06:38:02 +00:00 by jhgaylor · 0 comments
Owner

Commands and links people must move somewhere else are plain text all over the web UI. Some have user-select: all, none has a Copy button. Clipboard writes only exist for terminal items (Copy output, Copy command, Copy working directory).

What Where (web/src/ui/) Shown as
illogicald join {url} control.tsx AddMachine <pre>
Recovery codes control.tsx recovery modal <p class="control-cmd"> each
illogicald join {url} --team {id} control.tsx Teams inline <code>
Team id control.tsx Teams span
Invite link control.tsx Teams <span>, not even a link
Read-only session link (control mode) people.tsx <span> (the local share link is auto-copied; this one isn't)
Account id control.tsx Devices span

Close it by

  • One <CopyText text=… /> component: the value in mono, plus a button that turns into "Copied" and falls back to selecting the text when the clipboard is blocked (as the site's hero button does).
  • Use it for every row above, and for the new commands the other onboarding issues add (install, tailscale serve, MCP, adapters).
  • Invite and share links: also navigator.share where it exists (phones).
  • Recovery codes: add Copy both and Download .txt.

Done when rg 'class="control-cmd' web/src finds nothing without a copy control next to it.

Commands and links people must move somewhere else are plain text all over the web UI. Some have `user-select: all`, none has a Copy button. Clipboard writes only exist for terminal items (Copy output, Copy command, Copy working directory). | What | Where (`web/src/ui/`) | Shown as | |---|---|---| | `illogicald join {url}` | `control.tsx` `AddMachine` | `<pre>` | | Recovery codes | `control.tsx` recovery modal | `<p class="control-cmd">` each | | `illogicald join {url} --team {id}` | `control.tsx` Teams | inline `<code>` | | Team id | `control.tsx` Teams | span | | Invite link | `control.tsx` Teams | `<span>`, not even a link | | Read-only session link (control mode) | `people.tsx` | `<span>` (the local share link is auto-copied; this one isn't) | | Account id | `control.tsx` Devices | span | **Close it by** - One `<CopyText text=… />` component: the value in mono, plus a button that turns into "Copied" and falls back to selecting the text when the clipboard is blocked (as the site's hero button does). - Use it for every row above, and for the new commands the other onboarding issues add (install, tailscale serve, MCP, adapters). - Invite and share links: also `navigator.share` where it exists (phones). - Recovery codes: add *Copy both* and *Download .txt*. **Done when** `rg 'class="control-cmd' web/src` finds nothing without a copy control next to it.
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jhgaylor/illogical#99
No description provided.