Skip to content

chore(scripts): add dump-schema script - #1533

Merged
gabrielseco merged 7 commits into
mainfrom
chore/dump-schema-script
Oct 13, 2026
Merged

gabrielseco merged 7 commits into
mainfrom
chore/dump-schema-script

Conversation

@gabrielseco

@gabrielseco gabrielseco commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds npm run dump:schema, a local script that saves a country's form schema from the sandbox gateway to a folder so it can be inspected.

Why

Comparing what two countries' schemas carry (for example DEU vs NLD for HTML-to-components behaviour) meant hand-fetching schemas. One command now writes the full JSON.

What changed

Toggle details
  • New scripts/dump-schema.ts, reusing the schema-canary sandbox auth and employment seeding. For contract_details it seeds a throwaway employment and archives it afterwards; other forms need no employment.
  • Usage: npm run dump:schema -- --country=NLD [--form=contract_details] [--version=N|latest] [--out=dir]. Output goes to .schema-dumps/<COUNTRY>.<form>.v<version>.json (gitignored).
  • Reads .env.sandbox at the repo root.
  • package.json script, .gitignore entry and a DEVELOPMENT.md line added.
  • No change to the public API or the bundle.

Screenshots

N/A

Related Resources

N/A

Testing

  • Tested against the example/ app in a browser: N/A, dev script only
  • Feature flag: N/A

Ran npm run dump:schema -- --country=DEU and --country=NLD --version=6 against the sandbox.

🤖 Generated with Claude Code


Note

Low Risk
Dev-only script and docs; reuses existing sandbox helpers and does not change the published package or production code paths.

Overview
Adds npm run dump:schema, a developer-only CLI that fetches a country’s form JSON schema from the sandbox gateway and writes it under .schema-dumps/ (now gitignored) for local diffing and inspection.

The new scripts/dump-schema.ts parses --country, optional --form (default contract_details), --version (integer or latest), and --out; loads credentials from .env.sandbox; reuses schema-canary sandbox auth and, for contract_details, temporary employment seeding with cleanup in a finally block. DEVELOPMENT.md documents usage; package.json wires the script. No library or runtime bundle changes.

Reviewed by Cursor Bugbot for commit 34fcdc4. Bugbot is set up for automated code reviews on this repo. Configure here.

gabrielseco and others added 2 commits October 13, 2026 12:03
Fetches a country form schema from the sandbox gateway, writes it to
.schema-dumps/ and lists every string containing HTML, to make it easy
to compare what each country's schema carries.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

📦 Bundle Size Report

Metric Current Previous Change Status
Total (gzip) 230.55 kB 230.55 kB 0 B (0%) 🟢
Total (raw) 642.09 kB 642.09 kB 0 B (0%) 🟢
CSS (gzip) 21.94 kB 21.94 kB 0 B (0%) 🟢
CSS (raw) 114.43 kB 114.43 kB 0 B (0%) 🟢

Size Limits

  • ✅ Total gzipped: 230.55 kB / 350 kB (65.9%)
  • ✅ Total raw: 642.09 kB / 850 kB (75.5%)
  • ✅ CSS gzipped: 21.94 kB / 25 kB (87.8%)

Largest Files (Top 5)

  1. index.esm-wIkXrqU6.js - 11.4 kB (0 B (0%))
  2. styles.css - 10.97 kB (0 B (0%))
  3. index.css - 10.97 kB (0 B (0%))
  4. internals-D6148AAY.js - 6.13 kB (0 B (0%))
  5. hooks-ThU7CDLI.js - 5.85 kB (0 B (0%))
View All Files (291 total)
File Size (gzip) Change
index.esm-wIkXrqU6.js 11.4 kB 0 B (0%)
styles.css 10.97 kB 0 B (0%)
index.css 10.97 kB 0 B (0%)
internals-D6148AAY.js 6.13 kB 0 B (0%)
hooks-ThU7CDLI.js 5.85 kB 0 B (0%)
sdk.gen-BRPiw4M1.js 5.58 kB 0 B (0%)
index.js 5.51 kB 0 B (0%)
flows/Onboarding/hooks.js 4.67 kB 0 B (0%)
utils-CUgvJHl4.js 4.07 kB 0 B (0%)
FieldSetField-QbfQb5Lp.js 4.04 kB 0 B (0%)

✅ Bundle size check passed

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Deploy preview for remote-flows ready!

Project:remote-flows
Status: ✅  Deploy successful!
Preview URL:https://remote-flows-qpcypxg5x-remotecom.vercel.app
Latest Commit:34fcdc4

Deployed with vercel-action

@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Deploy preview for adp-cost-calculator ready!

Project:adp-cost-calculator
Status: ✅  Deploy successful!
Preview URL:https://adp-cost-calculator-odd9rtmhf-remotecom.vercel.app
Latest Commit:34fcdc4

Deployed with vercel-action

gabrielseco and others added 2 commits October 13, 2026 12:07
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

📊 Coverage Report

⚪ Coverage unchanged

Metric Current Previous Change Status
Lines 89.58% 89.58% 0% ⚪
Statements 89.46% 89.46% 0% ⚪
Functions 88.47% 88.47% 0% ⚪
Branches 81.21% 81.21% 0% ⚪

Detailed Breakdown

Lines Coverage
  • Covered: 5393 / 6020
  • Coverage: 89.58%
  • Change: 0% (0 lines)
Statements Coverage
  • Covered: 5458 / 6101
  • Coverage: 89.46%
  • Change: 0% (0 statements)
Functions Coverage
  • Covered: 1427 / 1613
  • Coverage: 88.47%
  • Change: 0% (0 functions)
Branches Coverage
  • Covered: 3345 / 4119
  • Coverage: 81.21%
  • Change: 0% (0 branches)

✅ Coverage check passed

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit bab9636. Configure here.

Comment thread scripts/dump-schema.ts Resolved
@gabrielseco
gabrielseco merged commit d546ec0 into main Oct 13, 2026
16 checks passed
@gabrielseco
gabrielseco deleted the chore/dump-schema-script branch October 13, 2026 16:19
@gabrielseco gabrielseco mentioned this pull request Oct 14, 2026
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