You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(desktop): redesign the onboarding and empty-state hero on Astryx primitives #1905
OnboardingHero.tsx is 575 lines and imports exactly one Astryx component — Item (:35). Everything else is hand-written divs against styles/onboarding.css (453 lines). It is the first surface every new user sees, and it is the least migrated surface in the app.
Two generations of design are layered in the same file. maka-onboarding-* and maka-firstrun-* coexist as parallel class prefixes (63 matches in onboarding.css), and the first-run branch hand-draws a stepper out of maka-firstrun-step-dot / -step-line / -step-label — a manual reimplementation of semantics Astryx already provides. hero.css documents .maka-hero as shared layout between OnboardingHero and EmptyChatHero, and still carries .emptyChat / .eyebrow as legacy aliases kept "in case external CSS or smoke fixtures still match".
The provider-pick rows (maka-firstrun-pick) duplicate what the Models page catalog rows already express as Astryx Items, with a different geometry — so the same choice looks like two different products depending on where the user meets it.
Desired outcome
The onboarding and empty-state hero render on Astryx primitives: one stepper, one list, one CTA treatment, provider picks sharing the catalog's row language rather than forking it. One class prefix survives, not two. The legacy aliases go, or their real consumers are named.
Must not regress — the routing contract documented at the top of OnboardingHero.tsx (PR110c review gates) is behavior, not styling, and survives the redesign intact:
every OnboardingState.kind keeps an explicit branch; blocked: all_connections_unhealthy keeps its labeled fallback and is never swallowed by a default;
ready_with_history still renders nothing here;
no raw state.kind string reaches rendered text;
no inline credential entry or model picker — those stay deep-linked into Settings.
Verification
Storybook variants for first-run, needs_connection_credentials, needs_default_model, blocked: all_connections_unhealthy, ready_empty, and narrow (480px); live-app before/after; the onboarding E2E journey stays green; check-dead-css.mjs confirms the retired prefix left nothing behind.
Relation to the rest
Same half-migration root cause as #1899–#1904, but this one is first-contact, so it leads.
Activity