Skip to content

feat(motion): reduced-motion fades, motion utilities, instant surfaces and web gaps - #38

Merged
uzayer merged 1 commit into
mainfrom
uzayermasud/atl-1011-package-motion
Nov 11, 2026
Merged

uzayer merged 1 commit into
mainfrom
uzayermasud/atl-1011-package-motion

Conversation

@uzayer

@uzayer uzayer commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator

The package half of the web design audit (ATL-1011), plus the package gaps web's lint PR (tryatlas/server#52) found. Everything is additive except Panel's delay → index, which the audit specifies; web's two call sites move in its PR A. Not released: this is meant to ship as v0.1.18 once merged.

Audit items

Item Status Notes
CC-1 reduced motion swaps travel for a fade Done, adapted Under reduced motion, entrances (scale-in, card-in, card-rise, pill-in, slide-in) are swapped to a plain fade. The exit fade is scoped to the closing state (data-closed / data-ending-style): an unscoped swap would fade popups out as they open. icon-send and bell-ring run at 0.01ms rather than animation: none, so their onAnimationEnd handlers still fire.
CC-3 pressable Done, adapted Uses the scale property plus colour transitions, as Button does, and is skipped when disabled (:disabled, data-disabled, aria-disabled).
CC-4 glass, glass-bar Done Both turn opaque under prefers-reduced-transparency.
CC-5 JS motion constants Done EASE_OUT_STRONG, EASE_IN_OUT_STRONG, EASE_DRAWER, DURATION, plus MotionConfig reducedMotion="user" guidance.
CC-6 live indicators Done, adapted New thinking-shimmer, stream-caret and animate-pulse-ring, plus Skeleton inline. All three are in INFINITE_ANIMATIONS as utility rows, with a test. .session-caret is replaced by stream-caret; nothing outside the package used it.
CC-7 one card Done, adapted surface-card is used by Panel, StatGrid, DataTable, SettingCard and KpiStrip. The ratchet rule ships as an exported, opt-in SURFACE_CARD_RULE, not in strictRules, so adopting the new version doesn't fail web's suite until it opts in.
CC-8 one page title Done PageHeader title and description changed, pb-4 dropped; new page-title utility.
CC-9 Dialog Done size="sm", --app-vw widths, instant (overlay included).
CC-10 PopoverContent Done flush, instant. The glass surface already existed.
CC-11 SheetContent Done size, flush, instant, bottom-sheet defaults, full-edge translates, slow in and quick out.
CC-12 Button Done, adapted shape="pill", elevated, success, success-subtle, loading. While loading, the label goes transparent (text-transparent *:opacity-0) rather than opacity-0, which has no effect on a display: contents box. It also isn't invisible, which would drop the button's accessible name.
CC-13 IconButton Done, adapted alert, glass, xl. xl is size-[48px], not size-12: rem follows the app's root font size, so size-12 measured 39px at the 13px root. 48px is what the story asserts.
CC-14 Input and Textarea Done, adapted pointer-coarse:text-lg, variant="code", read-only look. The read-only look is scoped with not-disabled so it doesn't override the disabled look.
CC-15 settings primitives Done SettingRow anatomy plus disabled / disabledReason, RadioCard, RadioGroup density="compact", CopyField, TableRow data-muted, SettingsShell wide and phone rail.
CC-16 data and motion blocks Done, adapted Progress moves by transform, Panel uses animate-card-rise with index, TimelineCalendar's date fades. On KpiStrip, a wide strip shows as many columns as cells (up to six), not a fixed four, because fixed columns left empty slots for 3, 5 or 6 cells. On a phone an odd last cell spans the row.
CC-17 shells and comms Done AppShell gets topBarActions, Escape to close, an always-mounted scrim and close on a[href] only. Also: SideDock instant, the AuthSplit layout, no width transition on the composer, and CommsMessageRow data-editing.
CC-18 small additions Done AvatarGroupCount size="lg", PersonAvatar 2xs, EmptyState size="page", CheckGlyph, animate-jump-flash, TextLink variant="inline". jump-flash animates background-color on purpose: a tint fading out has no transform equivalent.

Web gaps (from tryatlas/server#52)

Gap Status
SettingsShell phone layout, prefix-matched active item Done
OrgSwitcher logos, plan label, loading Done: Organisation.logo, plan, loading
OrgSwitcher create-org and invite Done: onCreateOrg, onInvite. Without onInvite, the item still links to membersHref.
OrgSwitcher number keys, hidden shortcut hints Done: numberKeys (switches and closes the menu), shortcuts={false}
ProfileMenu and InfoMenu host submenus; feedback as a callback Done: children on both, InfoMenu onFeedback
PersonAvatar guest art, null image, larger sizes Done: art, image={null}, xl, 2xl
Skeleton xl radius Done
Button success tone and pill shape Done (CC-12)
IconButton hover-reveal Done: reveal, which uses opacity and stays in the tab order and the accessibility tree. It shows on group hover or focus-within, on its own focus, while its popup is open, and always on touch screens.
Glass PopoverContent Already shipped (surface="glass")
Sheet surface and header options Done: surface="card"|"background", SheetHeader divided / compact
EmptyState size Done (CC-18)
KpiStrip on a phone Done (CC-16)
Disabled SettingRow Done (CC-15)
Textarea and Input sizes Textarea size added; Input already had xs to lg
TextLink that stays underlined in running text Done (CC-18)

Every new variant has a story. The foundations pages cover the new utilities and the JS tokens. No new focus outlines.

Gates

bun run typecheck, bun run test (659), bun run test:storybook (908, with axe colour-contrast) and bun run format:check all pass locally.

…s and web gaps

The package half of the web design audit (ATL-1011), CC-1 and CC-3 to CC-18:

- Under reduced motion every entrance (scale-in, card-in, card-rise, pill-in,
  slide-in) fades instead, closing exits fade out, and endless loops stop.
- New utilities: pressable, glass, glass-bar, surface-card, page-title,
  thinking-shimmer, stream-caret, animate-card-rise, animate-pulse-ring and
  animate-jump-flash; the JS tokens EASE_OUT_STRONG, EASE_IN_OUT_STRONG,
  EASE_DRAWER and DURATION; the opt-in SURFACE_CARD_RULE.
- `instant` on Dialog, Popover, Sheet and SideDock; Sheet sizes, flush,
  surface and header options; Dialog `sm`; Popover `flush`.
- Button loading, success and pill; IconButton alert, glass, xl and reveal;
  Input code and read-only; Textarea sizes; RadioCard; CopyField; SettingRow
  disabled; Progress by transform; cards on surface-card; Panel `index`.
- Web gaps: SettingsShell phone layout, prefix-matched nav and `wide`;
  OrgSwitcher logos, plan, loading, invite and create callbacks, number keys
  and hidden shortcut hints; ProfileMenu and InfoMenu host children and
  onFeedback; PersonAvatar art, null image and xl/2xl; Skeleton xl radius;
  EmptyState page size; KpiStrip on a phone; TextLink inline.

Panel's `delay` becomes `index`, as the audit specifies; web's two call
sites move in its PR A.
@uzayer
uzayer merged commit 1dfbc41 into main Nov 11, 2026
1 check passed
@uzayer
uzayer deleted the uzayermasud/atl-1011-package-motion branch November 11, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant