Skip to content

feat(frontend): render wizard previews from core, not from the backend router - #537

Open
marcalexiei wants to merge 2 commits into
stats-organization:masterfrom
marcalexiei:frontend-decouple-backend
Open

feat(frontend): render wizard previews from core, not from the backend router#537
marcalexiei wants to merge 2 commits into
stats-organization:masterfrom
marcalexiei:frontend-decouple-backend

Conversation

@marcalexiei

Copy link
Copy Markdown

The wizard ran the whole apps/backend router in the browser.
#536 added node:crypto to src/common/database.js, Vite's browser stub for a Node builtin throws on the first named-export causing e2e tests timeouts.
pg already needed a rolldownOptions.external escape hatch for the same reason.

  • src/wizard/renderCard.ts maps a card URL's pathname to the matching packages/core handler and SvgInline calls it.
    mock-http.ts and the the pg external are removed alongside backend dependency.
    Resolves the // will be solved by npm package
    // will be solved by npm package
    // eslint-disable-next-line @typescript-eslint/no-unsafe-call
    await router(req, res);
  • e2e/stubCardApi.ts fulfils the card endpoints, so the Display stage's fetch of https://<host>/api… no longer logs network errors during e2e.

@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

@marcalexiei is attempting to deploy a commit to the martin-mfg's projects Team on Vercel.

A member of the Team first needs to authorize it.

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