Repository navigation
feat(dashboard): token activity, command logos, Settings page and GitHub link chips - #439
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
64028e6 to
ff1af59
Compare
…Hub link chips - Overview: token activity over 53 weeks (Arc Pro activity terrain, top view by default) with five lifetime tiles, served from a per-day cache on the DB worker (`GET /api/metrics/token-activity`). Traces are kept forever: the 30-day prune is removed; cache stats keep a 30-day trend window. - Ran rows and provider cards show real program and provider logos (gh, firecrawl, git, npm, docker, cargo, vite, vite+, vitest, oxc tools, bun, xcode, python, exa, deepseek, brave). - Settings page in the nav (and ⌘,): Appearance (theme, model colors, fonts), Coding (gh sign-in status with Recheck, Claude Code in Work), Data. The footer popover and /fonts are removed. Coding agents is hidden for now. - GitHub link chips in conversations: pull requests, issues, commits (also /pull/N/commits/<sha>) and repository security advisories. Rich from the gh CLI when signed in (auth state cached 30 min), parse-only when signed out or when gh fails. gh runs on the transport thread with a clean env and scanner-checked arguments. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…gine row - LiveDot: the shimmer label's clipping inline block hung a descender's height under the line, so the dot sat low; it now hangs from the line top, and a labelled dot sits on the x-height middle (0.00 px measured, shimmer on/off, sizes 6 and 8). - Overview Engine row: one shared text baseline; an idle engine shows a muted 0 tok/s instead of a hero-size dash; the empty activity strip's zero line uses the border color. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The row already shows the state: the muted rate, the strip's phase bands, "N in flight · N queued", the idle or lanes line under it, and the status row above. The Engine page keeps its badge. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Labels start with a capital, so a dot on the x-height middle reads low. The dot now centers on 0.5cap above the baseline (about 1 px higher at 13 px). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-back read The queue row is written after the reply and the give-back writes nothing, so the final read raced the enqueue write on a loaded runner (CI: expected [] to deeply equal ['second']). Forced 50 ms write delay: 10/10 fail before, 0/10 after. Co-Authored-By: Claude Opus 5.5 <[email protected]>
ff1af59 to
2bdcb4d
Compare
Summary
Token activity on the Overview
arc-x/activity-terrain/). Top view by default, perspective on a switch; Daily / Weekly / Cumulative views; a hidden week table for screen readers.GET /api/metrics/token-activityon the DB worker. Per-day totals are cached in worker memory, and later calls read only the new trace rows (about 0.5 s cold at 1M rows, about 4 ms warm). A delete triggers a full rescan.src/ingest/traces.ts,src/worker/engine.ts). The cache trend keeps its own 30-day window (CACHE_TREND_WINDOW_DAYS).todayis behind, andRefreshAlertwhen a refresh fails over cached data.Program and provider logos
env/sudo/timeandcd … &&(ui/src/lib/command-program.ts).arc-x/brand-mark/brand-paths.ts). A brand color is used only where it passes 3:1 contrast in both themes; otherwisecurrentColor.Settings page (
/settings, last in the Manage section of the nav, ⌘,)/fonts, which are removed).ghsign-in status (signed in, signed out, not installed, outdated, error) with Recheck, and the "Claude Code in Work" switch.GitHub link chips in conversations
github.compull requests, issues, commits (/commit/<sha>and/pull/N/commits/<sha>) and repository security advisories (/security/advisories/GHSA-…).ghCLI. Parse-only (owner/repo#91with a neutral icon) whenghis not signed in or returns an error.ghruns on the transport thread likework-git.tsrunBin: no shell, stdin closed, a deadline, a clean env with the login-shell PATH and noGH_TOKEN. At most 4 at once. Onlyowner/repoand a number, sha or GHSA id reach an argument, each checked by a hand-written scanner. Nothing is written to disk.ExpandableTextmeasures lines) and keep the link rule of their place (lib/link-rule.ts).Verification
yarn typecheck,vp checkinpackages/dashboard(917 files formatted, 788 files with no lint or type errors)vp test packages/dashboard/__test__ --run: all active test files pass, includingpack.test.tsafterbuild:uitoken-activity-rules,github-ref(argument scanner),github-parse(recorded gh 2.105.0 outputs),github-service(auth cache, Recheck, sign-out and login-switch cache clears, TTLs, dedupe, limiter, queue, fallbacks),github-routes(type seam and handler output). Mutation-checked.gh apiGETs on this machine for a PR, an issue, a commit (including a fork PR commit), a published and an unpublished advisory, and 404s.🤖 Generated with Claude Code