mirror of
https://github.com/olehomelchenko/astrolabe.git
synced 2026-08-08 02:02:33 +00:00
Chart builder: intent front door, Heatmap mark, role-aware guidance
This commit is contained in:
@@ -504,6 +504,27 @@ _acts_ rather than navigates is mis-dressed: such actions are **ghost buttons**
|
||||
verb-first labels (Carbon links-vs-buttons; "Use a constant"). _(Consulted via /council →
|
||||
NN/g #1/#3/#4, Carbon button/link usage. This bullet is the contract.)_
|
||||
|
||||
**Resolved — the intent front door is an APG toolbar of toggle chips (Tier C "do it for me").**
|
||||
The Chart Builder's _"What do you want to show?"_ strip (spec §06 → Intent) is a **WAI-ARIA
|
||||
`toolbar`** (one tab stop, roving tabindex, `aria-labelledby` the visible heading) of chips —
|
||||
**not** seven independently-tabbable buttons (the pane-toggle precedent above). Each chip is a
|
||||
**toggle button** (`aria-pressed`) whose pressed state is **derived from the configuration**
|
||||
(the chip whose recommended layout the live chart matches), never stored — so a hand-edit
|
||||
resolves to "Custom" (none pressed) for free. Arrow keys **move focus only**; **Enter/Space
|
||||
applies** — because applying an intent reshapes the whole chart, a radiogroup's select-on-arrow
|
||||
would do that on every keypress (so this is a toolbar, not a `SegmentedControl` radiogroup).
|
||||
Selection shows as an **accent ring, never an accent fill** (fill stays the primary-action
|
||||
signal — arch 09 §3.3). Intents the dataset can't satisfy are **disabled via `aria-disabled`
|
||||
and kept arrow-reachable** (APG: focusable disabled controls "where discoverability of a
|
||||
function is crucial"), with the reason in the chip's accessible name (`aria-label`
|
||||
"Correlation — needs two number columns") plus a `title` for sighted hover — **never hidden**
|
||||
(Tableau _Show Me_). The chips are framed as **intents, not chart shapes** (FT Visual
|
||||
Vocabulary / Datawrapper organize by intent); _Heatmap_ is the one chart-type label retained
|
||||
— a deliberate divergence for recognizability that also mirrors the mark selector's _Heatmap_
|
||||
label, so the intent and the mark read as one thing (revisit if it confuses). _(Consulted via /council →
|
||||
APG toolbar + button(toggle); FT Visual Vocabulary / Datawrapper intent framing; NN/g #6
|
||||
recognition. This bullet is the contract.)_
|
||||
|
||||
**Resolved — an error names the right fix, not a boilerplate one.** Don't staple a generic
|
||||
remedy onto every failure. A missing dataset reference is **not** a JSON/spec syntax problem,
|
||||
so the preview gives it a tailored, fixable line — _"Dataset «X» not found. Create it from
|
||||
|
||||
Reference in New Issue
Block a user