Production tooltips: styled tooltips everywhere, shortcuts surfaced, dev-speak culled

Owner-approved full pass (tooltip wave, 2026-09-25). Mechanism: icon/pill
controls ride the styled Radix tooltip via a new Hint composition
(components/ui/hint.tsx) — the shared primitive adopted as-is, no
restyling; the shortcut appends as an em-dash suffix off the LIVE registry
(a rebind in Settings → Keyboard changes the suffix): "Dictate — ⌘D".
Surface-owned keys (Esc closes, Enter submits) ride a raw binding prop.
Native title= stays only for truncation-reveals (dock spans, the rename
field) and menu-interior abbreviations (MenuShell untouched). One
em-dash pattern; per-state truth on the send square (busy = "Stop the
reply — Esc", idle = "Send — ↵"), Enter on the plan verdict's accept,
"Stop dictation (Esc)" kept verbatim per the owner's flag.

Copy: the dev-speak cull — no pipeline/prober/tier/wave vocabulary
anywhere a user reads. New pins in tests/tooltip-mechanism.test.tsx
(hintText composition, asChild no-wrapper-DOM, the auto-update hint
constant); dock truncation titles pinned native; graph-chrome + settings
pins updated to the new copy.

Live-verified on :3001 — 12.6ms hover appearance (no native 1s lag);
glyphs render on every suffixed surface (⌘D, ⌘K, ⌘⇧F, ⌘,, ⌘B, F2, ↵,
Esc); per-page probes confirm Settings entry, Home logo, session search,
Start session, Close sidebar, model + thinking pills, stats summary,
rename title, plan chip, coverage ring, send square, cost button, node
search (⌘F), graph gear, settings close (Close — Esc), keyboard section
"Fixed — part of this screen", auto-update hint, light-mode "Coming
soon", the three slot rosters, graph-tools hint. Esc still closes the
settings dialog.
This commit is contained in:
amosblomqvist
2026-09-25 01:52:20 +03:00
parent 81be55f35c
commit b19e7e7eae
23 changed files with 393 additions and 127 deletions
+18 -11
View File
@@ -5,6 +5,7 @@ import { useActivity } from "@/components/activity-dock";
import { usePopoverDismiss } from "@/components/popover-dismiss";
import { useSettingsSaved } from "@/components/settings-signal";
import { formatTokens } from "@/components/usage-format";
import { Hint } from "@/components/ui/hint";
import { timeAgo } from "@/components/sidebar";
/**
@@ -290,18 +291,24 @@ export function CoverageRing({ chatId, refreshKey = 0 }: { chatId: string; refre
const fill = ringFill(coverage.uncoveredTokens, graph.chunkTokens);
return (
<div ref={rootRef} className="lh-no-drag relative shrink-0">
<button
type="button"
data-testid="coverage-ring"
onClick={() => setOpen((o) => !o)}
aria-expanded={open}
title="Extraction coverage — uncovered tokens vs the chunk threshold"
className="relative flex size-5 cursor-pointer items-center justify-center transition-opacity hover:opacity-80"
<Hint
// Plain language (tooltip wave) — "uncovered tokens vs the chunk
// threshold" was internal vocabulary.
label="How much of this session isn't in your graph yet — click for details"
side="bottom"
>
{/* The donut: track + fill. The whole ring pulses while a run
is in flight (motion = the working-state signal). */}
<CoverageRingGlyph fill={fill} running={coverage.running} />
</button>
<button
type="button"
data-testid="coverage-ring"
onClick={() => setOpen((o) => !o)}
aria-expanded={open}
className="relative flex size-5 cursor-pointer items-center justify-center transition-opacity hover:opacity-80"
>
{/* The donut: track + fill. The whole ring pulses while a run
is in flight (motion = the working-state signal). */}
<CoverageRingGlyph fill={fill} running={coverage.running} />
</button>
</Hint>
{open && (
<div
data-testid="coverage-ring-popover"