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:
@@ -7,6 +7,7 @@ import { prettyModel } from "@/components/usage-format";
|
||||
import { ModelMenuList, ThinkingMenuList } from "@/components/settings/model-menu";
|
||||
import { composeSlotModel } from "@/components/settings/agent-section";
|
||||
import { MenuShell } from "@/components/menu-shell";
|
||||
import { Hint } from "@/components/ui/hint";
|
||||
import { notifySettingsSaved, useSettingsSaved } from "@/components/settings-signal";
|
||||
import { defaultOrderLevel, populateLevel, THINKING_LABEL } from "@/components/thinking-default";
|
||||
|
||||
@@ -252,12 +253,18 @@ export function ModelControl() {
|
||||
|
||||
return (
|
||||
<div ref={containerRef} className="relative flex items-center gap-1.5" data-testid="model-control">
|
||||
<button
|
||||
<Hint
|
||||
// User language (tooltip wave): no tier/prober vocabulary. ⌘K
|
||||
// opens this same menu (registry, override-aware).
|
||||
label="The main model for your sessions"
|
||||
action="open-model-picker"
|
||||
side="bottom"
|
||||
>
|
||||
<button
|
||||
type="button"
|
||||
data-testid="stats-model"
|
||||
onClick={() => openMenu("model")}
|
||||
aria-expanded={open === "model"}
|
||||
title="Strong tier model (prober + teacher) — set app-wide"
|
||||
// Chrome look (owner, fix wave round 3): matches the graph
|
||||
// view's floating top-right buttons (import notes, gear,
|
||||
// coverage) — blurred, fuller opacity, shadowed — so the
|
||||
@@ -267,7 +274,13 @@ export function ModelControl() {
|
||||
<span className="text-card-foreground">{effectiveId ? prettyModel(effectiveId) : "—"}</span>
|
||||
<span aria-hidden className="text-xs text-muted-foreground">▾</span>
|
||||
</button>
|
||||
<button
|
||||
</Hint>
|
||||
<Hint
|
||||
// User language (tooltip wave) — no "tier" vocabulary.
|
||||
label="How much the main model thinks"
|
||||
side="bottom"
|
||||
>
|
||||
<button
|
||||
type="button"
|
||||
data-testid="stats-thinking"
|
||||
onClick={() => {
|
||||
@@ -277,7 +290,6 @@ export function ModelControl() {
|
||||
openMenu("thinking");
|
||||
}}
|
||||
aria-expanded={open === "thinking"}
|
||||
title="Strong tier thinking level — set app-wide"
|
||||
// Chrome look (owner, fix wave round 3): matches the graph
|
||||
// view's floating top-right buttons (import notes, gear,
|
||||
// coverage) — blurred, fuller opacity, shadowed — so the
|
||||
@@ -291,6 +303,7 @@ export function ModelControl() {
|
||||
</span>
|
||||
<span aria-hidden className="text-xs text-muted-foreground">▾</span>
|
||||
</button>
|
||||
</Hint>
|
||||
|
||||
{/* The shared dropdown body (extracted 2026-09-20): the agent
|
||||
settings' slot selects and the setup dialog use the exact same
|
||||
|
||||
Reference in New Issue
Block a user