Repository navigation
Upstreams page: design kit, vendor logos, 24-hour sparklines, undoable enable/disable - #193
Merged
Merged
Conversation
…otion Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nner tones - Narrow window (820x560, English): the name column no longer collapses. The plan badge folds away and a row's problem shrinks to its dot (the tooltip still says what it is); the quota column narrows; "Selected models" under the model count becomes "Selected". - Secondary header actions (connection test, inference test, check all, update now) turn into icon buttons with a tooltip when the page is narrow, so the header summary stays at two lines. CSS container query on the page, no JS measuring and no flash. - Proxies: type, address and authentication move into a line under the name, like the upstream rows. Seven columns pushed the row menu out of view at the minimum window size. - Price sheets: shorter English column header so the table fits; the default price sheet dialog lists its upstreams as logo chips like everywhere else. - Banner tones: a failed read of the 24-hour statistics or of the price sheet status is a warning (the page keeps working); a failed price update is an error only when no prices were ever loaded. - Disabled upstreams: their 24-hour and latency figures are muted with the row. - The reset-credit confirmation uses the kit Banner instead of Alert; English hero plural for "need attention"; long proxy check failures wrap. - Tests for the hourly slots behind the sparkline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ead parts - The 24-hour sparkline now looks like the one on the Keys page (#190): 2px chart-coloured bars, 16px tall, the current hour emphasised, a faint baseline for empty hours. What stays specific to upstreams: failures are a red cap on the hour they happened in, and a single request does not fill the bar. - Every narrow-window rule on the page (sparkline, plan badge, problem dot, quota width, icon-only header actions) keys off the page container at the Keys page's breakpoint (48rem) instead of a table-level container. - Removed NameChips and RadioRow (no callers left after #191) and Note's error tone (dialog errors are DialogError). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fylorn
added a commit
that referenced
this pull request
Sep 24, 2026
- Cmd+R and the palette's "Refresh data" also refetch every mounted
useResource (new invalidateAll in lib/resource.ts), not only the shell's
status and overview, so the page in front actually refreshes.
- The Settings page handles nav.open("settings", { section }) in its own
useNavParams (Config.tsx) instead of the shell scrolling for it; a
restructured Settings page replaces that handler without a second
scroller left behind in App.tsx. NavParams.settings.section is a plain
string again; the palette's section ids live in palette/sections.ts,
with a note on keeping them in step with the page.
- Rebased onto the Upstreams page (#193): the palette's dialog params are
merged into the page's existing useNavParams handler.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fylorn
added a commit
that referenced
this pull request
Sep 24, 2026
…192) * Command palette: search entities, open page dialogs, shortcut sheet - ⌘K palette on cmdk (src/ui/command.tsx, src/palette/): pages with ⌘1-⌘9, actions (new upstream / key / route / group / proxy / price sheet, inference and connection tests, routing dry run, search traffic, switch connection, add a remote connection, refresh, sidebar, config file, version history, check for updates, notices, shortcuts), and search over data already on hand: upstreams, keys, routes, groups, clients, connections, Settings sections and Traffic's loaded requests (by model, one row per model, or by id). - The palette only navigates. Each item is nav.open(page, params) and the page opens its own dialog in useNavParams, exactly as its button or row click would; NavParams gains create / edit / test / dryRun / detail / setup / section. A source test checks every param the palette sends is read somewhere. - Recent (last five used) above Pages and Actions; frequent use nudges search ranking. Names outrank aliases (other language, synonyms, URL). - Switch connection is a second level (Esc / Backspace goes back); the current connection is listed but not selectable. - ? (outside text fields) or the palette footer opens a shortcut sheet generated from the same key table as the palette caps and the sidebar tooltips (palette/keys.tsx). Sidebar items show their ⌘n in a tooltip. - Global shortcuts do nothing while a form dialog is open; the palette and the sheet are passive, so ⌘4 read off the sheet works. - Palette scales and fades in from the top; list height follows the results; selection and scroll are computed with the results so typing never scrolls to a stale row. - Settings sections scroll into view when opened from the palette. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Palette: Cmd+R refreshes page data; Settings scrolls to its own sections - Cmd+R and the palette's "Refresh data" also refetch every mounted useResource (new invalidateAll in lib/resource.ts), not only the shell's status and overview, so the page in front actually refreshes. - The Settings page handles nav.open("settings", { section }) in its own useNavParams (Config.tsx) instead of the shell scrolling for it; a restructured Settings page replaces that handler without a second scroller left behind in App.tsx. NavParams.settings.section is a plain string again; the palette's section ids live in palette/sections.ts, with a note on keeping them in step with the page. - Rebased onto the Upstreams page (#193): the palette's dialog params are merged into the page's existing useNavParams handler. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upstreams page (Upstreams / Proxies / Price sheets) moved onto the design kit from #187, following
src/ui/README.md.Page
Page+PageHeaderwith the three tabs in the header (TabsList variant="line", counts via@/ui/count). The summary line is the page's status at a glance: upstream count, healthy / need attention / disabled (status dots), and 24-hour requests and cost. The numbers count up (AnimatedNumber); the 24-hour part is a skeleton until it loads and is left out, not zeroed, if it cannot be read.useResource(24-hour stats, price sheet status, account usage, each upstream's model list), so coming back to the page shows the last data at once and refreshes in the background. Stats refetch when requests finish (throttled), when the hour rolls over and when the window regains focus; quota events patch the cache directly. No polling.Upstream table
@/ui/logos) in a tile on every row; the tile carries a pulsing dot while requests are in flight through that upstream (seeded from/in-flight, then followed by events, including failover).CostBucketsBy(dimension provider), added to theupstream_statsbridge command, so no core change was needed.nav.open("upstreams", { upstream })) scroll to and flash the row.undoable), with no confirmation.Proxies and price sheets
StatusLabel.Dialogs
DialogError, an inline errorBannerthat animates in and out (wasAlert, red<p>andNote tone="error"side by side). Login notices and the reset-credit confirmation useBannertoo.pending(save, create, delete, check, test, sign in, use credit), deletes stay open with a pending destructiveAlertDialogActionand report failure in place, footers are Cancel (outline) then the primary on the right.Narrow window (820×560)
@container/page, the same container name and 48rem breakpoint as the Keys page.Clean-up
StatusDot,NameChipsandRadioRowfromupstreams/parts.tsx(no callers left after Routing page: chain map hero, design kit, live paths #191),Note's error tone, a localCount, dead i18n keys and the unusedonNavigateprop. Other areas' imports fromupstreams/parts(Segmented,Boxed,FormItem,Note) are unchanged.Decisions made without asking
Core changes that would help (not done here)
ProxyViewonly reports faults seen while forwarding (unreachable). If it also carried the last successful handshake seen in real traffic (time and duration), the Connectivity column could show live status instead of "Not checked" until someone runs a check.Checks
pnpm typecheck,pnpm test(283 tests),pnpm buildcargo fmt --check,cargo clippy --all-targets -- -D warnings,cargo clippy --lib -- -D warnings,cargo test(control-plane tests run against twcore 0.47.0)?issues,?empty,?fail=upstream_stats,Pricing,ChatgptUsage,?slow,?live; real clicks for undo, keyboard open, delete confirm and popovers.🤖 Generated with Claude Code