Skip to content

Build and preview PDFs from typed components in React - #38

Merged
krflol merged 2 commits into
mainfrom
feat/react-component-workflow
Oct 15, 2026
Merged

krflol merged 2 commits into
mainfrom
feat/react-component-workflow

Conversation

@krflol

@krflol krflol commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

The React starter currently sends users to HTML/CSS templates even though Fullbleed now supports typed document components. Make a component-authored invoice the first screen, with editable rows, integer-cents amounts, credits, paid state and color. Keep the existing HTML invoice/report designs available, including direct links.

The preview hook accepts either a composed document or HTML input, and accepts null while data is invalid so stale output clears without starting a worker. Dedicated print TSX files use Fullbleed's JSX pragma. Excluding those modules from React Fast Refresh fixes a reproduced stale-preview problem when their imported stylesheet changes; the real Vite test edits TSX and styles and verifies both resulting PDFs while preserving the form values.

Validation: the project pins public fullbleed 0.6.0 with unchanged engine 2.5.24 and other dependencies. Production and development StrictMode each pass 124 browser checks locally. Six component fixtures reproduce installed Node PDFs and every PNG, including a three-page, 20-row case; the old invoice/report bytes are unchanged. The real development server passes 9 checks. Source CI repeats browser coverage in Chrome, Firefox and WebKit. Local evidence is in verification/react-components060.json; this changes the starter and documentation, without a package or engine release.

All 16 candidate CI jobs passed. The merged tree is identical to the tested source.

@krflol
krflol merged commit 9f6d8a4 into main Oct 15, 2026
16 checks passed
@krflol
krflol deleted the feat/react-component-workflow branch October 15, 2026 21:47
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