Commit 8f6df46
feat(shell): replace the tiling-host label with a Developers menu
The header spent a permanent slot on `tiling host · :3100` — one fact, stated
always, that nobody needs at a glance and that told a developer nothing they
could act on. It becomes a dropdown holding the things you actually go looking
for when something is wrong, and the design system alongside them.
Four items:
- Design system — the Phase 2a portal. Brand guidelines, design tokens, the
three-mode contract, every token on every surface with live contrast.
- Workspace service — opens /config on whatever base this build points at, so
"which stack am I actually talking to" is one click rather than a guess.
- Identity · didi.sh — the sign-in and session issuer, same question.
- Shell host · :3100 — keeps the fact the old label carried, and makes it
actionable: copies this build's environment (ws url, id base, portal, active
client, pinned state, auth mode, didi_id, mode, user agent) to the clipboard
for a bug report.
Built on the existing JumboPopdown rather than a second dropdown, so it
inherits the header interaction contract already agreed — hover-open,
click-toggle, Esc, click-outside, role="menu"/"menuitem". JumboPopdown gains one
optional `triggerIcon` prop defaulting to the grid mark it has always used, so
the flow-navigation popdown is untouched.
The portal URL follows the established env convention: PUBLIC_DESIGN_PORTAL_URL
with a localhost fallback, using `||` not `??` — an unset Docker ARG becomes an
EMPTY STRING once assigned to ENV, and `??` would ship that. The remotes block
in shell/rsbuild.config.ts documents the same trap from when it bit this repo.
Deploying the portal will need that var set; until then it points at :3020.
Verified in a browser: opens on click, closes on Esc and on click-outside, all
four descriptions carry live values, and the old label is gone. Two things the
DOM checks missed and a screenshot caught — the first glyph fell back to an
asterisk in the mono stack, and a synthetic body.click() appeared to prove
click-outside broken when the listener is on pointerdown, so the test was wrong
rather than the component.
94 files typecheck clean, 20 packages build.
Files changed:
- shell/src/DevelopersMenu.svelte (new)
- shell/src/JumboPopdown.svelte
- shell/src/App.svelte
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019a8tSPbFdvF1pKtADnWyDg1 parent 33d48e0 commit 8f6df46
3 files changed
Lines changed: 138 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
593 | 594 | | |
594 | 595 | | |
595 | 596 | | |
596 | | - | |
| 597 | + | |
597 | 598 | | |
598 | 599 | | |
599 | 600 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| 40 | + | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
| |||
97 | 102 | | |
98 | 103 | | |
99 | 104 | | |
100 | | - | |
| 105 | + | |
101 | 106 | | |
102 | 107 | | |
103 | 108 | | |
| |||
0 commit comments