Skip to content

fix(onboarding): hero copy revision + opaque toast background#4

Merged
aschkanAH merged 2 commits into
feat-onboardingfrom
ai-onboarding-copy-toast-fix-e6a8
May 1, 2026
Merged

fix(onboarding): hero copy revision + opaque toast background#4
aschkanAH merged 2 commits into
feat-onboardingfrom
ai-onboarding-copy-toast-fix-e6a8

Conversation

@aschkanAH
Copy link
Copy Markdown
Owner

Follow-up to #3 (already merged).

Changes

  1. Onboarding hero copy — per growth-team revision:

    • Headline: You're ready to run at scale.From zero to inference in seconds.
    • Subheading rewritten to lead with provisioning + browser-side run: Your workspace is fully provisioned. Run a sample payload right from your browser to see Doubleword in action.
  2. Sonner toast background fix (global) — the existing shared Toaster was forwarding the bare HSL-component shadcn tokens (var(--popover)0 0% 100%) into sonner's --normal-bg / --normal-text / --normal-border. That resolves to invalid CSS (background: 0 0% 100%), so sonner falls through to its default semi-transparent surface. The most visible symptom was the onboarding "Sample Batch Started" toast rendering illegibly on top of the API key card, but the bug applies to every toast in the app. Wrapped the tokens in hsl(...) so the resolved values are real opaque colors.

QA

  • pnpm run lint clean.
  • pnpm exec tsc -b tsconfig.app.json clean.
  • pnpm test -- --run: 498 / 498 passing.

Risk

The toast fix is global. Toasts elsewhere in the app will gain an opaque card-style background instead of their previous translucent fallback. I didn't find any callers that relied on the see-through behaviour, but worth a smoke pass on toast.success/toast.error callsites.

Open in Web Open in Cursor 

cursoragent and others added 2 commits May 1, 2026 13:16
Per growth-team revision:
- 'You're ready to run at scale.' -> 'From zero to inference in seconds.'
- Subheading rewritten to lead with provisioning + browser-side run.

Co-authored-by: aschkanAH <aschkanAH@users.noreply.github.com>
The shadcn theme tokens for popover/border are stored as bare HSL
component triplets (e.g. `0 0% 100%`), not full color values. The
existing Toaster wired `--normal-bg: var(--popover)` directly, which
resolves to `background: 0 0% 100%` — invalid CSS, so sonner falls
back to its default semi-transparent surface and toasts render
illegibly when overlaying page content (most visible on the
onboarding 'Sample Batch Started' toast on top of the API key card).

Wrap the tokens in `hsl(...)` so the resolved value is a valid
opaque color.

Co-authored-by: aschkanAH <aschkanAH@users.noreply.github.com>
@aschkanAH aschkanAH marked this pull request as ready for review May 1, 2026 14:47
@aschkanAH aschkanAH merged commit c56230d into feat-onboarding May 1, 2026
1 check passed
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.

2 participants