Skip to content

[Tracker] Responsive web — server-safe breakpoints, mobile components & gestures, RSC #4476

Description

@cixzhang

Problem

Astryx has strong responsive primitives in places — useMediaQuery, an AppShell that collapses to MobileNav, lab:Drawer sheets, @media (hover: hover) guards, dynamic viewport units (dvh) — but there is no cohesive responsive-web system. Breakpoint logic is hand-rolled per consumer with a client hook, so it doesn't hold up under RSC/SSR (server renders the desktop tree, then flips on hydration). Mobile affordances (bottom sheet, swipe/gesture dismissal, safe-area insets, hover→tap conversion, on-screen-keyboard handling) are missing or partial, and there's no documented contract for how components should behave across breakpoints.

This is the Q3 push to make Astryx responsive-first: a server-safe breakpoint system, first-class mobile components and gestures, and the guidance/rubric to keep it healthy over time.

This is a tracker. Each item is (or will be) filed as its own issue and lands via the normal issue → API → PR flow. Checked = shipped; linked issues exist; unlinked items still need filing.

Breakpoint system (server-safe, CSS-first)

The core architectural bet: default to CSS-first breakpoints (@media / @container in StyleX, declarative hideBelow/showBelow-style props) so responsive layout renders correctly on the server with no hydration flash, and reserve the useMediaQuery JS hook for genuinely behavioral cases in small client islands.

Mobile components & gestures

Hover, touch & pointer behavior

Modals & dialogs on mobile

  • Responsive Dialog — auto-adapt to a bottom-sheet/fullscreen presentation below a breakpoint (Dialog has a fullscreen variant today but no automatic mobile adaptation)

Responsiveness on RSC

  • Make the breakpoint system server-safe end to end (see Breakpoint system above)
  • Audit AppShell's useMediaQuery-driven mobile split for hydration flash

Theme

  • Mobile theme — exploration

Maintenance

  • Mobile responsiveness rubric — preserve responsive guidance over time for new components and situations (docs + review checklist)

Related (tracked separately, not owned here)

Deliverables from the responsive-web plan: breakpoint system incl. targeting layouts · mobile theme (exploration) · bottom sheet · hover-behavior guidance · gestures/swipes · modals & dialogs on mobile · responsiveness on RSC · mobile maintenance rubric.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions