diff --git a/docs/screenshots/ui-audit-fixes/d05c-react-scrolled-after.webp b/docs/screenshots/ui-audit-fixes/d05c-react-scrolled-after.webp new file mode 100644 index 0000000..0947f5f Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d05c-react-scrolled-after.webp differ diff --git a/docs/screenshots/ui-audit-fixes/d05c-react-scrolled-before.webp b/docs/screenshots/ui-audit-fixes/d05c-react-scrolled-before.webp new file mode 100644 index 0000000..f3b919d Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d05c-react-scrolled-before.webp differ diff --git a/docs/screenshots/ui-audit-fixes/d06-compare-after.webp b/docs/screenshots/ui-audit-fixes/d06-compare-after.webp new file mode 100644 index 0000000..9e40a96 Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d06-compare-after.webp differ diff --git a/docs/screenshots/ui-audit-fixes/d06-compare-before.webp b/docs/screenshots/ui-audit-fixes/d06-compare-before.webp new file mode 100644 index 0000000..24f6cfc Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d06-compare-before.webp differ diff --git a/docs/screenshots/ui-audit-fixes/d10-paths-after.webp b/docs/screenshots/ui-audit-fixes/d10-paths-after.webp new file mode 100644 index 0000000..363ce6c Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d10-paths-after.webp differ diff --git a/docs/screenshots/ui-audit-fixes/d10-paths-before.webp b/docs/screenshots/ui-audit-fixes/d10-paths-before.webp new file mode 100644 index 0000000..ef5b01c Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d10-paths-before.webp differ diff --git a/docs/screenshots/ui-audit-fixes/d13-learning-after.webp b/docs/screenshots/ui-audit-fixes/d13-learning-after.webp new file mode 100644 index 0000000..711195c Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d13-learning-after.webp differ diff --git a/docs/screenshots/ui-audit-fixes/d13-learning-before.webp b/docs/screenshots/ui-audit-fixes/d13-learning-before.webp new file mode 100644 index 0000000..ae233ec Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d13-learning-before.webp differ diff --git a/docs/screenshots/ui-audit-fixes/d14-shortcuts-after.webp b/docs/screenshots/ui-audit-fixes/d14-shortcuts-after.webp new file mode 100644 index 0000000..e57f627 Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d14-shortcuts-after.webp differ diff --git a/docs/screenshots/ui-audit-fixes/d14-shortcuts-before.webp b/docs/screenshots/ui-audit-fixes/d14-shortcuts-before.webp new file mode 100644 index 0000000..726bc2c Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d14-shortcuts-before.webp differ diff --git a/docs/screenshots/ui-audit-fixes/d16-xray-result-after.webp b/docs/screenshots/ui-audit-fixes/d16-xray-result-after.webp new file mode 100644 index 0000000..ff66e90 Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d16-xray-result-after.webp differ diff --git a/docs/screenshots/ui-audit-fixes/d16-xray-result-before.webp b/docs/screenshots/ui-audit-fixes/d16-xray-result-before.webp new file mode 100644 index 0000000..01c8a38 Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d16-xray-result-before.webp differ diff --git a/docs/screenshots/ui-audit-fixes/d16b-xray-result-bottom-after.webp b/docs/screenshots/ui-audit-fixes/d16b-xray-result-bottom-after.webp new file mode 100644 index 0000000..d0a65ed Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d16b-xray-result-bottom-after.webp differ diff --git a/docs/screenshots/ui-audit-fixes/d16b-xray-result-bottom-before.webp b/docs/screenshots/ui-audit-fixes/d16b-xray-result-bottom-before.webp new file mode 100644 index 0000000..4e44998 Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d16b-xray-result-bottom-before.webp differ diff --git a/docs/screenshots/ui-audit-fixes/d18-role-backend-after.webp b/docs/screenshots/ui-audit-fixes/d18-role-backend-after.webp new file mode 100644 index 0000000..1834724 Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d18-role-backend-after.webp differ diff --git a/docs/screenshots/ui-audit-fixes/d18-role-backend-before.webp b/docs/screenshots/ui-audit-fixes/d18-role-backend-before.webp new file mode 100644 index 0000000..3009f69 Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d18-role-backend-before.webp differ diff --git a/docs/screenshots/ui-audit-fixes/d19-app-discord-after.webp b/docs/screenshots/ui-audit-fixes/d19-app-discord-after.webp new file mode 100644 index 0000000..c3b3d00 Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d19-app-discord-after.webp differ diff --git a/docs/screenshots/ui-audit-fixes/d19-app-discord-before.webp b/docs/screenshots/ui-audit-fixes/d19-app-discord-before.webp new file mode 100644 index 0000000..23720bc Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d19-app-discord-before.webp differ diff --git a/docs/screenshots/ui-audit-fixes/d20-stack-result-after.webp b/docs/screenshots/ui-audit-fixes/d20-stack-result-after.webp new file mode 100644 index 0000000..434ff6e Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d20-stack-result-after.webp differ diff --git a/docs/screenshots/ui-audit-fixes/d20-stack-result-before.webp b/docs/screenshots/ui-audit-fixes/d20-stack-result-before.webp new file mode 100644 index 0000000..fe1ac8e Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d20-stack-result-before.webp differ diff --git a/docs/screenshots/ui-audit-fixes/d21-path-step1-after.webp b/docs/screenshots/ui-audit-fixes/d21-path-step1-after.webp new file mode 100644 index 0000000..9f2a41c Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d21-path-step1-after.webp differ diff --git a/docs/screenshots/ui-audit-fixes/d21-path-step1-before.webp b/docs/screenshots/ui-audit-fixes/d21-path-step1-before.webp new file mode 100644 index 0000000..e0ceeff Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d21-path-step1-before.webp differ diff --git a/docs/screenshots/ui-audit-fixes/d22-rail-domains-after.webp b/docs/screenshots/ui-audit-fixes/d22-rail-domains-after.webp new file mode 100644 index 0000000..dc865d2 Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d22-rail-domains-after.webp differ diff --git a/docs/screenshots/ui-audit-fixes/d22-rail-domains-before.webp b/docs/screenshots/ui-audit-fixes/d22-rail-domains-before.webp new file mode 100644 index 0000000..2f4691c Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d22-rail-domains-before.webp differ diff --git a/docs/screenshots/ui-audit-fixes/d26-click-backend-after.webp b/docs/screenshots/ui-audit-fixes/d26-click-backend-after.webp new file mode 100644 index 0000000..0743687 Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d26-click-backend-after.webp differ diff --git a/docs/screenshots/ui-audit-fixes/d26-click-backend-before.webp b/docs/screenshots/ui-audit-fixes/d26-click-backend-before.webp new file mode 100644 index 0000000..b241673 Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/d26-click-backend-before.webp differ diff --git a/docs/screenshots/ui-audit-fixes/l05-xray-light-after.webp b/docs/screenshots/ui-audit-fixes/l05-xray-light-after.webp new file mode 100644 index 0000000..58b5749 Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/l05-xray-light-after.webp differ diff --git a/docs/screenshots/ui-audit-fixes/l05-xray-light-before.webp b/docs/screenshots/ui-audit-fixes/l05-xray-light-before.webp new file mode 100644 index 0000000..2f68097 Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/l05-xray-light-before.webp differ diff --git a/docs/screenshots/ui-audit-fixes/m04-roles-after.webp b/docs/screenshots/ui-audit-fixes/m04-roles-after.webp new file mode 100644 index 0000000..654b815 Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/m04-roles-after.webp differ diff --git a/docs/screenshots/ui-audit-fixes/m04-roles-before.webp b/docs/screenshots/ui-audit-fixes/m04-roles-before.webp new file mode 100644 index 0000000..d816e9f Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/m04-roles-before.webp differ diff --git a/docs/screenshots/ui-audit-fixes/m05-xray-after.webp b/docs/screenshots/ui-audit-fixes/m05-xray-after.webp new file mode 100644 index 0000000..130ff5f Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/m05-xray-after.webp differ diff --git a/docs/screenshots/ui-audit-fixes/m05-xray-before.webp b/docs/screenshots/ui-audit-fixes/m05-xray-before.webp new file mode 100644 index 0000000..a5bc846 Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/m05-xray-before.webp differ diff --git a/docs/screenshots/ui-audit-fixes/t02-atlas-after.webp b/docs/screenshots/ui-audit-fixes/t02-atlas-after.webp new file mode 100644 index 0000000..9a4665a Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/t02-atlas-after.webp differ diff --git a/docs/screenshots/ui-audit-fixes/t02-atlas-before.webp b/docs/screenshots/ui-audit-fixes/t02-atlas-before.webp new file mode 100644 index 0000000..d945c88 Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/t02-atlas-before.webp differ diff --git a/docs/screenshots/ui-audit-fixes/t03-react-after.webp b/docs/screenshots/ui-audit-fixes/t03-react-after.webp new file mode 100644 index 0000000..4406514 Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/t03-react-after.webp differ diff --git a/docs/screenshots/ui-audit-fixes/t03-react-before.webp b/docs/screenshots/ui-audit-fixes/t03-react-before.webp new file mode 100644 index 0000000..bd13817 Binary files /dev/null and b/docs/screenshots/ui-audit-fixes/t03-react-before.webp differ diff --git a/docs/screenshots/ui-polish/00-before-apps-list.webp b/docs/screenshots/ui-polish/00-before-apps-list.webp new file mode 100644 index 0000000..3b18cc9 Binary files /dev/null and b/docs/screenshots/ui-polish/00-before-apps-list.webp differ diff --git a/docs/screenshots/ui-polish/00-before-mobile-toolbar.webp b/docs/screenshots/ui-polish/00-before-mobile-toolbar.webp new file mode 100644 index 0000000..d4d13cc Binary files /dev/null and b/docs/screenshots/ui-polish/00-before-mobile-toolbar.webp differ diff --git a/docs/screenshots/ui-polish/01-apps-list.webp b/docs/screenshots/ui-polish/01-apps-list.webp new file mode 100644 index 0000000..4274758 Binary files /dev/null and b/docs/screenshots/ui-polish/01-apps-list.webp differ diff --git a/docs/screenshots/ui-polish/02-apps-detail.webp b/docs/screenshots/ui-polish/02-apps-detail.webp new file mode 100644 index 0000000..852e80b Binary files /dev/null and b/docs/screenshots/ui-polish/02-apps-detail.webp differ diff --git a/docs/screenshots/ui-polish/03-roles-list.webp b/docs/screenshots/ui-polish/03-roles-list.webp new file mode 100644 index 0000000..49ca11e Binary files /dev/null and b/docs/screenshots/ui-polish/03-roles-list.webp differ diff --git a/docs/screenshots/ui-polish/04-roles-detail.webp b/docs/screenshots/ui-polish/04-roles-detail.webp new file mode 100644 index 0000000..3cd6c13 Binary files /dev/null and b/docs/screenshots/ui-polish/04-roles-detail.webp differ diff --git a/docs/screenshots/ui-polish/05-xray-legend.webp b/docs/screenshots/ui-polish/05-xray-legend.webp new file mode 100644 index 0000000..ff4296e Binary files /dev/null and b/docs/screenshots/ui-polish/05-xray-legend.webp differ diff --git a/docs/screenshots/ui-polish/06-used-by.webp b/docs/screenshots/ui-polish/06-used-by.webp new file mode 100644 index 0000000..34b8a70 Binary files /dev/null and b/docs/screenshots/ui-polish/06-used-by.webp differ diff --git a/docs/screenshots/ui-polish/07-guided-path.webp b/docs/screenshots/ui-polish/07-guided-path.webp new file mode 100644 index 0000000..02bf05c Binary files /dev/null and b/docs/screenshots/ui-polish/07-guided-path.webp differ diff --git a/docs/screenshots/ui-polish/08-mobile-toolbar.webp b/docs/screenshots/ui-polish/08-mobile-toolbar.webp new file mode 100644 index 0000000..26cdeb1 Binary files /dev/null and b/docs/screenshots/ui-polish/08-mobile-toolbar.webp differ diff --git a/docs/screenshots/ui-polish/09-mobile-role.webp b/docs/screenshots/ui-polish/09-mobile-role.webp new file mode 100644 index 0000000..fae7ceb Binary files /dev/null and b/docs/screenshots/ui-polish/09-mobile-role.webp differ diff --git a/docs/screenshots/ui-polish/10-light-apps.webp b/docs/screenshots/ui-polish/10-light-apps.webp new file mode 100644 index 0000000..8ecfe9f Binary files /dev/null and b/docs/screenshots/ui-polish/10-light-apps.webp differ diff --git a/docs/screenshots/ui-polish/11-keyboard-focus.webp b/docs/screenshots/ui-polish/11-keyboard-focus.webp new file mode 100644 index 0000000..8418e67 Binary files /dev/null and b/docs/screenshots/ui-polish/11-keyboard-focus.webp differ diff --git a/docs/screenshots/ui-polish/12-shortcuts.webp b/docs/screenshots/ui-polish/12-shortcuts.webp new file mode 100644 index 0000000..22693ac Binary files /dev/null and b/docs/screenshots/ui-polish/12-shortcuts.webp differ diff --git a/docs/ui-conventions.md b/docs/ui-conventions.md new file mode 100644 index 0000000..3fa027c --- /dev/null +++ b/docs/ui-conventions.md @@ -0,0 +1,82 @@ +# UI conventions + +One page of rules for anything that adds or changes UI. Most problems found in the +2026-11-23 UI audit were inconsistencies between features, so new work should follow +these rules instead of inventing a local variant. If a rule doesn't fit, change it here +first. + +## Names + +| Thing | Call it | Not | +|---|---|---| +| The home view with every cluster | **the atlas** ("Back to atlas") | Universe, Explore, Universe View | +| A top-level grouping (Backend, Security…) | **field** | domain (code and data still say `domain`) | +| A field nested in another (Generative AI) | **sub-field** | subdomain | +| Nodes inside a field | **members** (same noun in the panel and the hover card) | connections | +| X-Ray statuses | Found in code · Listed as a dependency · Guessed from related files · Related to the stack | Confirmed / Declared / Inferred | + +Counts always use thousands separators: `n.toLocaleString("en-US")` (3,122, not 3122). + +## Panels + +- **Left side** (beside the rail, `left: 72px`, same width and padding): tool panels the + reader opens from the toolbar. Fields, Stack, Roles, Apps, Guided paths, Learning map, + Outline. +- **Right side**: what is selected. Node details, Repo X-Ray results. +- **Bottom centre**: a followed path's step card. +- **Modal**: only Keyboard shortcuts and the shared report card. Nothing else dims the atlas. +- **Phones** (≤ 640 px): left-side tool panels become bottom sheets (max 58% height) so + the map stays visible above them. +- Panels are opaque (`background: var(--panel)`); atlas text must never show through. +- When a panel highlights nodes, the camera frames them inside the space the panel + leaves (`frameNodes` / `usableRect` in `graph-canvas/framing.ts`). Add new panels to + `OVERLAY_SELECTORS` there and to the heading `panels` list in `headings.ts`. + +## Toolbar + +- Labels never change with state. Show "open" with `aria-pressed="true"`, not with a + different word ("Exit compare", "← Back to Explore"). +- 1101 px and up: every tool has a label. 701–1100 px: the five main tools keep labels and + the utilities move under **More**. Phones: icons only, with `aria-label`. + +## Buttons and links + +- One primary (filled) button per panel at most: the action most people want next + (Open report card, Start with Python). +- A whole list row is the button. Don't repeat an "Open" button on every row; use a + trailing `→` chevron for "opens in place". +- `↗` only for links that leave TechAtlas (GitHub, official sites, Wikipedia). +- "Copy link" is a bordered button like its neighbours, never bare text. +- Lists that switch items have one stepper (← prev · n / N · next →) and one breadcrumb + at the top ("← All roles"). No extra ` setQuery(e.target.value)} /> -