~ knotless Search/
↑↓ move↵ open⇧↵ all results

zat.dev/zds

atproto pds · mirror of https://tangled.org/zat.dev/zds

0
0
166 lines · 11.8 KB Raw History
# Resident UI direction

This is the design direction for the resident pages (`/account`, `/signup`, and
the homepage). The reference study is a research snapshot from 2026-09-06, not a
completed accessibility audit. The shared foundation, navigation feedback, and
account-action dialogs it called for are implemented; adding further artwork
slots is still a proposal. How each slice shipped, with its validation, is in
[history](https://tangled.org/zat.dev/zds/blob/main/docs/history/resident-ui.md).

## Recommended references

Use Rally for legibility and physical feedback, bsky38 for strong row hierarchy,
plyr.fm for component discipline, and Doodl for personal visual identity. Use
Typeahead/pub-search stats for compact information grouping. Keep ZDS's
forest/paper palette and familiar account navigation. These references suggest
patterns to adapt; they do not require importing their frameworks or themes.

| Project | Evidence inspected | Worth adapting | Limits |
| --- | --- | --- | --- |
| [Rally](https://rally.waow.tech) | Live sign-in page and keyboard entry; `rally/src/style.css`, `src/ui/handle-autocomplete.ts` | Clear hierarchy, 18px body type, Atkinson Hyperlegible font, generous controls, visible focus, help disclosed beside its field, slight button depression | Ruled notebook background and large hard shadows are too visually active for every account section. Font choice alone does not establish accessibility. |
| [plyr.fm](https://plyr.fm) | Live track list and search overlay; `frontend/src/lib/components/BottomSheet.svelte`, `ConfirmDialog.svelte`, `SearchModal.svelte`; design-token documentation | Recognizable item identity, separate primary and secondary information, shared surface/type/spacing tokens, modal lifecycle and short transitions | Some secondary text is visually subdued. Search focuses its input on opening; this inspection did not establish correct focus return. Do not copy its custom overlays wholesale. |
| [Doodl](https://doodl.waow.tech) | Live drawing toolbar; `doodl/src/ui/slots.ts`, `src/style.css`, `index.html` | Small explicit slot registry, meaningful fallback labels, bounded artwork, approachable controls | Its viewport explicitly disables zoom. ZDS must preserve zoom. ZDS should retain visible action labels alongside unfamiliar drawings, and keep its individual-drawing configuration. |
| [Haunt](https://haunt.at) | Live home page; local `haunt/src/styles/globals.css` | A distinctive identity mark, generous breathing room, limited atmospheric color | Subdued small text and ambient animation are unsuitable models for account tasks. Local checkout is among the user's projects; the live site credits aly.codes. Useful as an atmosphere reference, not an account-layout reference. |
| [Pensieve](https://pensieve.waow.tech) | Live sign-in page; `pensieve/src/public/index.html`, `style.css` | One clear next step; explicit empty/blocked/ready states in source; labeled progress and status | Signed-in progress was inspected in source, not exercised live. Sparse sign-in UI does not demonstrate how well a dense account page works. |

Source paths above are relative to each sibling repository under
`~/tangled.org/zzstoatzz.io/`. The additional references below were reviewed
following the initial shortlist.

Rally's concrete details are especially useful: `style.css:91` defines a 4px
focus outline, `:281` begins its large button treatment, and `:293` supplies
pressed feedback. Its skip link was the first keyboard stop in the live page.
Plyr's native confirmation dialog uses `showModal()`; its bottom sheet contains
explicit focus handling and a reduced-motion override. These are implementation
references to review independently, not proof of conformance.

### Additional references: bsky38 and the stats pages

- **[The race to 38](https://bsky38.waow.tech/):** local checkout is
  `~/tangled.org/zzstoatzz.io/race38`; its live source link names
  `tangled.org/waow.tech/bsky38`. This is Nate's companion viewer, distinct from
  the upstream voting site at bsky38.com, which the initial review mistakenly
  substituted. The correct live UI combines paper/ink surfaces, crisp framing,
  blue actions, serif headings, and readable sans-serif controls. The chart and
  replay controls occupy the primary space; race details and selection editing
  use disclosure. Portraits connect visual identity to the data.
  Source reviewed: `race38/web/style.css`, `docs/design-origin.md`, and
  `docs/ui-rigor.md`. The strongest transferable ideas are stable DOM identity,
  explicit interaction contracts, bounded visual emphasis, native controls,
  and feedback tied to accepted events. CSS includes 44px control targets,
  focus styling, pressed-state selectors, and reduced-motion overrides. These
  are implementation evidence, not a completed accessibility audit. For ZDS,
  borrow the clear surface separation, intentional artwork placement, and
  continuity through updates. Account actions need prompt, accurate confirmation;
  do not copy the race's delayed animated count arrival into security feedback.
- **[Typeahead stats](https://typeahead.waow.tech/stats):** summary metrics are
  grouped near their relevant chart, range controls sit beside the content they
  affect, and the traffic chart is supplemented by named totals and a table.
  Selecting 24h updated the search count, latency, and chart granularity in place.
  Source: `typeahead/src/pages/stats.ts` and `theme.ts`. Particularly useful:
  number/unit pairs wrap together, and home/docs/stats share theme tokens. For
  ZDS, keep summaries short and technical detail close to the task. Do not copy
  the very small captions. The inspected 24h control was 34px high and exposed
  its selection through a CSS class without `aria-pressed`; preserve explicit
  programmatic selection state when adapting this interaction.
- **[pub-search stats](https://pub-search.waow.tech/stats) and
  [search](https://pub-search.waow.tech/):** the stats page achieves density with
  aligned rows, whitespace, a compact metric strip, and section-local controls
  instead of boxing every fact. The search page makes its primary task immediate.
  Source: `pub-search/site/stats.html`, `dashboard.css`, and `components.css`.
  ZDS can use this economy for metadata inside expanded app details. The stats
  CSS has 9–12px labels and very subdued text/border tokens; these need stronger
  treatment for a friendly account UI. Chart inspection was visual, not a full
  keyboard or screen-reader test.

This strengthens the recommendation for fewer, better-structured rows rather
than a separate decorative card for every piece of metadata. Doodl artwork can
occupy the row's identity position while names, state, and controls remain clear.

### Anti-slop review

Adopt an explicit design critique before implementation and again on rendered
output: every visual choice should support this account task, hierarchy should
survive without decoration, and repeated panels/chips/animations should earn
their space. Evaluate real content, awkward lengths, failure states, and generic
as well as custom artwork. Accessibility and predictable behavior take priority
over stylistic prohibitions or novelty.

## What ZDS should feel like

A quiet, well-made account utility with personal illustrations. Clear headings
and readable content carry the page; artwork helps people recognize places.
Surfaces should have visibly different roles: page background, section surface,
editable field, and active control. Borders and spacing should remain useful
without shadows or color perception.

Use a small type scale: comfortable body and field text, stronger section
headings, and secondary copy that remains readable. Keep monospace for protocol
identifiers. Try Atkinson Hyperlegible as a comparison against the system sans
before accepting an additional font asset; its name is not a substitute for
testing. Avoid making every sentence the same weight or every section a stack
of nested boxes.

“Silky” should first mean continuity: stable layout while artwork loads, retained
form input after errors, immediate pending feedback, no duplicate submissions,
and predictable focus when changing views. Add restrained press/surface feedback
after that. A proposed motion budget is 120–180ms for small feedback and at most
200ms for an overlay, with no ornamental looping motion in account views. Under
reduced motion, remove spatial movement and keep clear static state changes.

## Slottable presentation contract

Keep the registry and rendering under `src/internal/web`. Each slot describes a
visual purpose and fallback; it does not carry authentication, authorization,
navigation, or storage behavior.

- ZDS owns the semantic element, visible label, accessible name, keyboard
  behavior, focus ring, state indicator, and target dimensions.
- Artwork occupies a reserved box with `object-fit: contain`. A large drawing
  does not enlarge or shift the form; a small drawing does not shrink the target.
- Decorative images use empty alt text. If future artwork conveys content,
  explicitly define a separate content slot with an appropriate text equivalent.
- An operator can select individual drawings. No iconset membership is required.
  Unconfigured deployments retain generic defaults.
- Missing, broken, unusually proportioned, mostly white, mostly black, and
  transparent artwork must all leave the interface usable. Do not use a blanket
  white tile to rescue every asset. Preserve the fallback until a replacement
  loads, and evaluate artwork against both themes.
- New slots can cover section illustrations, empty-state artwork, or header
  marks. Introduce them where they aid recognition; do not make arbitrary HTML,
  CSS, scripts, or control geometry remotely replaceable.
- Keep the current explicit build-time artwork bundling. No remote resolution
  on startup or on account requests, and no drawing dependency in auth/storage.

## Accessibility acceptance baseline

Target WCAG 2.2 AA across complete resident flows, with a few deliberate comfort
targets beyond the minimum. The [W3C's WCAG 2.2 overview](https://www.w3.org/WAI/standards-guidelines/wcag/new-in-22/)
specifically covers unobscured focus, target spacing, accessible authentication,
and alternatives to dragging. Its AA target-size minimum is 24 CSS pixels with
exceptions; use at least 44px targets for ZDS standalone controls as a stronger
product target. Focus Appearance is AAA, not an AA requirement; nevertheless
use a conspicuous, contrasting focus indicator.

Use the full [WCAG 2.2 standard](https://www.w3.org/TR/WCAG22/) as the audit basis:

- Keyboard-only completion, logical focus order, a skip link, current-page
  indication, meaningful headings, and focus that is not hidden by sticky UI.
- Text contrast of at least 4.5:1 for normal text and 3:1 for qualifying large
  text; sufficient non-text contrast for required control/state information.
  Never communicate active, revoked, error, or danger by color alone.
- Text resize to 200%, reflow at 320 CSS pixels, browser zoom, and text-spacing
  overrides without losing information or controls. Long DIDs/scopes must wrap.
- Labels and instructions connected to inputs; specific errors near the field;
  preserve entered values and explain recovery. Allow password managers and
  paste. Avoid repeated entry when the value is already available.
- Announce concise results and pending state, not an entire refreshed account
  page. Keep critical feedback present long enough to find and act on.
- Test light/dark, forced colors, reduced motion, keyboard, touch, and a screen
  reader. Automated checks supplement manual flow tests; they do not certify it.

For confirmations, prefer native dialog semantics and follow the
[WAI modal-dialog interaction guidance](https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/):
intentional initial focus, contained keyboard navigation, an accessible name,
and sensible focus restoration. Use dialogs only when the decision warrants an
interruption; ordinary help and technical details fit native disclosure better.