11 — UX audit (Phase 1 of the UX rework)
11 — UX audit (Phase 1 of the UX rework)
Section titled “11 — UX audit (Phase 1 of the UX rework)”Baseline taken 2026-11-19 on origin/dev (v0.7.0), branch docs/ux-audit.
Method: every screen rendered live in Playwright against a seeded dev stack
(3 users incl. the instance admin, one populated board, one archived board,
one expired token), captured in dark + light at 1440×900 and 390×844.
Evidence screenshots: docs/screenshots/ux-baseline/ (24 curated frames out of 48 captured).
Findings are ordered by impact on a first-time visitor opening a share link, then owner flows, then admin.
Behavior bugs listed here were confirmed in code (path cited), not only observed.
Baseline gates (recorded before any change)
Section titled “Baseline gates (recorded before any change)”| Gate | Result |
|---|---|
npm ci |
pass (after removing root-owned Docker leftovers from node_modules) |
npm run db:up |
pass (klui-db-dev healthy, port 5433) |
npm run build |
pass |
npm run lint |
pass, 0 errors |
npm run format:check |
pass, 0 diffs |
npm run test -w server |
213 passed (30 files) |
npm run test -w web |
169 passed (29 files) |
Findings
Section titled “Findings”| # | Screen | Symptom (observable fact) | Evidence | Fix intent | Decision | Risk |
|---|---|---|---|---|---|---|
| 1 | Board (guest) | A first-time link opener cannot tell ro from rw: the link’s mode is nowhere on screen. Only the presence of hidden write controls hints at it; an ro visitor sees no “read-only” marker and a broken-looking “+ Add card”-free board. |
board-guest-ro-rw-dark-desktop.png; BoardHeader.tsx never renders state.level for non-creators |
Small mono mode chip next to the countdown (“You can edit” / “Read-only link”), keyed to state.level, plus one line saying what the account path adds (“sign in to drive this board from your agent”). |
fix | Low — i18n pair + one chip; contrast inherited from existing tokens |
| 2 | Board (empty / archived / ro) | The empty-board banner tells a read-only or archived visitor “Add a card, paste a list with Quick fill, or point your agent at it” — an action that will then be refused. Rendered identically for writer, ro reader and archived board. | board-archived-dark-desktop.png; Board.tsx:260 — conditional only on cards.length === 0 |
Pick copy by board state: writer → current copy; ro → “Read-only link — you can watch but not edit”; archived → point to the export buttons (already in the header). | fix | Low — copy + conditional |
| 3 | Expired link / 404 | The recovery CTA is “Back to boards”, which 401-redirects an anonymous link holder to the sign-in page — a dead loop for exactly the persona who needs the exit. | board-expired-link.png; Board.tsx:193 not-found view |
For unauthenticated visitors, primary recovery = home page (landing explains what happened and how to get a fresh link); keep “boards” only when a session exists. | fix | Low — conditional link target |
| 4 | Board (drag & drop) | A card drop via a slot lands at the wrong position while a filter is active: slot indexes count the filtered rendered list (ColumnBoard.tsx DropSlot index), but planCardMove maps the index into the unfiltered column. |
code: ColumnBoard.tsx:203-215 vs hooks/live-board/dnd.ts:44-59 |
Number the DropSlot by the card ids it visually separates (it already renders between two known cards) instead of by index; index fallback kept for unfiltered columns. Behavior stays neighbour-id based. | fix | Medium — covered by dnd unit tests; add a filtered-drop test |
| 5 | Board (shared) | A failed checkbox/move restores a whole-state snapshot (setState(state)), silently discarding any teammate change that arrived over SSE during the request. |
code: Board.tsx:116, useBoardDnd.ts failure path |
Roll back surgically: only the card(s)/columns the failed action touched (columns already do this; cards/checkbox don’t). | fix | Low — reducer-style patch |
| 6 | Board (drag affordance) | Drop slots are invisible at rest and stay invisible during a drag until hovered; the only at-rest cue that intra-column dropping exists is a 2px line that only appears under the pointer. First-time draggers discover slots by luck. | board-owner-dark-desktop.png; ColumnBoard.tsx DropSlot bg-transparent at rest |
While a card drag is active (dnd context state), faintly show all slot lines (border-soft weight). At rest stays clean. Respects prefers-reduced-motion (no animation, just visibility). |
fix | Low — one derived state class; design adjustment justified (state treatment) |
| 7 | Card display modal | “No description.” renders as a real content row; the read modal spends its second line saying nothing. | board-card-display-modal.png | Omit the row when the description is empty (the modal title + chips already carry the card). | fix | Trivial |
| 8 | Board header (mobile) | Five actions (Filter / Quick fill / Export Markdown / Export JSON / Board settings) wrap into two ragged rows of same-weight text links; the two exports bury the board’s own actions. | board-owner-dark-mobile.png | Group the two exports + settings behind one overflow affordance (existing Popover primitive) on sm: and down; desktop row unchanged. |
fix | Medium — new menu wiring, keyboard path required |
| 9 | Board (archived) | Archived state is stated three times: header “Archived” chip, header “Read only” text, and the banner paragraph under it. | board-archived-dark-desktop.png; BoardHeader.tsx:44-53 + BoardNotices.tsx:63-76 |
Keep the banner (it carries purge countdown + export hint — the useful info); drop the redundant “Read only” text from the header; mode chip from #1 covers it on ro links. | fix | Trivial |
| 10 | Boards (list) | An archived board still wears the ACTIVE countdown chip — “Archived” + “Archives in 10 days” side by side. The chip is computed from archive_at regardless of the archived flag. |
boards-light-desktop.png (Post-mortem row) | When archived is true, show the purge countdown (“Purged in N days” via lib/purge.ts) instead. |
fix | Low — one conditional in CountdownChip usage |
| 11 | Boards (empty connected) | “No connected boards yet. Open a share link to connect one.” gives no way to do that from this screen — the link-open input only exists on the landing. | boards-light-desktop.png | Reuse the landing JoinBoardForm inline in the empty state (component exists, no new UI). |
fix | Low — component reuse; check JoinBoardForm dependencies |
| 12 | Boards / Settings / Card modal | Destructive controls (“Delete now”, “Delete card”, “Delete forever”, “Regenerate link”) carry the same ghost/outline weight and neutral ink as harmless ones; nothing reads as irreversible. | boards-light-desktop.png; settings-dark-desktop.png; board-card-display-modal.png | Destructive treatment inside frozen tokens: --destructive text/foreground (exists, red in light theme) on the label + border-muted; no new color. Confirm dialogs unchanged. |
fix | Low — token-defined styling only |
| 13 | Settings | Nine ungrouped sections in one scroll column: Share link → Tag palette (one full-height row per tag: 7 tags = ~600px before any other section) → Members → Archive → Connections → Agent keys → Webhook → Danger zone. | settings-dark-desktop.png | Group into four titled clusters — Access (link, connections), Content (members, tags), Integrations (agent keys, webhook), Lifecycle (archive, restore, danger) — with the palette as the last content block; single column stays, anchors at top on desktop. No new settings. | fix | Medium — pure layout regroup, tests keyed to section ids must stay |
| 14 | Settings | “Regenerate link” is a bare ghost text button — the weakest affordance on the page for the action that kills every existing link. | settings-dark-desktop.png | Outline button + the existing native confirm stays; sits next to mode toggle, not orphaned at card bottom. | fix | Trivial |
| 15 | Settings | No way back to the board: no back link, and the header logo goes to / (landing), not the board. Browser-back is the only exit. |
settings-dark-desktop.png | “← Board name” back link above the title (destination: the share-token URL the visitor arrived with). | fix | Trivial |
| 16 | Settings / Boards / Account | Native <select> (create-board template, settings archive preset, digest hour) next to the styled Radix Select used by filters — two generations of the same control on screen. |
settings-dark-desktop.png vs board-filter-popover.png | Route all three through ui/select. Identical options, identical i18n keys. |
fix | Low — styling parity only |
| 17 | 404 | Content block hugs the bottom under ~9 rows of empty grid; the primary button is “Boards” (401-bounce for anonymous users). | notfound-dark-desktop.png | Move the message/actions to optical center-left; recovery target follows #3. | fix | Low |
| 18 | Auth | Custom tabs carry role="tab" without a tablist→tabpanel association (no aria-controls/panel ids); SR announces two tabs with no panels. |
auth-signup-dark-desktop.png; Auth.tsx:124-161 |
Wire aria-controls + role="tabpanel" on the form region (or drop the tab roles and use a segmented control). |
fix | Trivial |
| 19 | Landing | The landing runs its own hardcoded kl-* palette (landing.css), so the theme toggle is a no-op there and token changes never reach it. |
landing-light-desktop.png == landing-dark-desktop.png | Keep dark-only (docs/01 §7: dark-first, landing shows the dark board shot); document that the landing intentionally opts out of the app theme. | defer (docs) | None — decision recorded, no code change |
| 20 | Landing | With JS enabled and no IntersectionObserver callback fired, sections below the fold render blank (screenshot evidence required reduced-motion to reveal). Real scroll works; the risk is only for non-scrolling renders (link unfurlers print whole page). |
capture required reducedMotion: reduce to render sections (landing-full.png) |
Defer: unfurlers use the server-side og card, not the SPA; cosmetic edge. | defer | — |
| 21 | Admin | The profile aside column renders even when access is denied (user sees “access only” on the left and their own profile on the right — the page pretends to half-work). | admin-dark-desktop.png | On forbidden, render only the denied state. |
defer | Trivial but admin-only path |
| 22 | Admin | Reset dialog returns “done” text but never says the target user’s old sessions die; admin can’t tell what just happened to the user. | admin-as-admin.png; Admin.tsx:54 |
Defer: copy-only micro-fix, admin-only. | defer | — |
Per-screen coverage checklist (what was captured/verified)
Section titled “Per-screen coverage checklist (what was captured/verified)”| Screen | Dark | Light | 1440 | 390 | States captured |
|---|---|---|---|---|---|
| Landing | ✓ | (dark-only by design, #19) | ✓ | ✓ | full page, hero, sections |
| Auth | ✓ | ✓ | ✓ | ✓ | signup, login |
| Boards | ✓ | ✓ | ✓ | ✓ | populated, create dialog, import dialog |
| Board | ✓ | ✓ | ✓ | ✓ | owner populated, guest rw, archived, empty-via-archived, 404 token |
| Board settings | ✓ | ✓ | ✓ | ✓ | full stack, all sections |
| Account | ✓ | ✓ | ✓ | ✓ | key active, digest, agent blocks |
| Admin | ✓ | ✓ | ✓ | ✓ | admin view, forbidden view |
| 404 / expired | ✓ | ✓ | ✓ | ✓ | unknown route, unknown board token |
Not captured (JS-impossible in this pass): keyboard-only drag path (covered by the existing
board-dnd e2e + geometry asserts planned in Phase 3), ?return= bounce timing, modal-with-100-comments
stress frame. The contrast matrix lives in web/test/theme.test.ts and will be re-measured per-surface in Phase 3.
Execution plan (Phase 2 batches)
Section titled “Execution plan (Phase 2 batches)”feat/ux-board— rows 1, 2, 4, 5, 6, 7, 9 + header overflow (8). The product screen; biggest batch, includes the two behavior bugs.feat/ux-boards-account— rows 10, 11, 12 (boards part), 16 (create dialog select).feat/ux-entry— rows 3, 13, 17, 18 (Auth + landing-adjacent recovery).feat/ux-settings-admin— rows 12 (settings/modals part), 13, 14, 15, 16 rest; admin stays as-is (21, 22 deferred).
i18n: every new string lands in en.json + fr.json in the same commit (the i18n-completeness test enforces parity).