Skip to content

refactor(contractor-onboarding): transform correctly base64 files#712

Merged
gabrielseco merged 2 commits intomainfrom
pbyr-3424-check-uk-edge-case-problems-when-updating-file-uploads
Jan 27, 2026
Merged

refactor(contractor-onboarding): transform correctly base64 files#712
gabrielseco merged 2 commits intomainfrom
pbyr-3424-check-uk-edge-case-problems-when-updating-file-uploads

Conversation

@gabrielseco
Copy link
Collaborator

@gabrielseco gabrielseco commented Jan 27, 2026

Created dataURLtoFile() utility** in src/lib/files.ts to convert base64 data URLs to File objects with proper MIME type detection

this guarantees that we create files correctly and the update endpoints work

@gabrielseco gabrielseco self-assigned this Jan 27, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 27, 2026

📦 Bundle Size Report

Metric Current Previous Change Status
Total (gzip) 182.3 kB 182.31 kB -10 B (-0.0%) 🟢
Total (raw) 484.03 kB 483.87 kB +157 B (+0.0%) 🔴
CSS (gzip) 18.85 kB 18.85 kB 0 B (0%) 🟢
CSS (raw) 98.92 kB 98.92 kB 0 B (0%) 🟢

Size Limits

  • ✅ Total gzipped: 182.3 kB / 185 kB (98.5%)
  • ✅ Total raw: 484.03 kB / 500 kB (96.8%)
  • ✅ CSS gzipped: 18.85 kB / 25 kB (75.4%)

Largest Files (Top 5)

  1. chunk-3QNS3IZB.js - 12.37 kB (0 B (0%))
  2. styles.css - 9.43 kB (0 B (0%))
  3. index.css - 9.43 kB (0 B (0%))
  4. index.js - 5.69 kB (-2 B (-0.0%))
  5. chunk-JTLXUYOR.js - 5.43 kB (0 B (0%))
View All Files (281 total)
File Size (gzip) Change
chunk-3QNS3IZB.js 12.37 kB 0 B (0%)
styles.css 9.43 kB 0 B (0%)
index.css 9.43 kB 0 B (0%)
index.js 5.69 kB -2 B (-0.0%)
chunk-JTLXUYOR.js 5.43 kB 0 B (0%)
chunk-XOK3XCYN.js 4.07 kB 0 B (0%)
chunk-T7O3YYOG.js 3.29 kB new
chunk-CAQJHFSY.js 3.26 kB new
chunk-ZTX7URX4.js 3.21 kB new
chunk-SP2HWVHS.js 3.2 kB new

✅ Bundle size check passed

@gabrielseco gabrielseco changed the title feat(contractor-onboarding) - fix update files refactor(contractor-onboarding): transform correctly base64 files Jan 27, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 27, 2026

Deploy preview for remote-flows ready!

✅ Preview
https://remote-flows-bmahx8e9v-remotecom.vercel.app

Built with commit 29a1e2c.
This pull request is being automatically deployed with vercel-action

@github-actions
Copy link
Contributor

github-actions bot commented Jan 27, 2026

Deploy preview for remote-flows-example-app ready!

✅ Preview
https://remote-flows-example-8e0xldmn5-remotecom.vercel.app

Built with commit 29a1e2c.
This pull request is being automatically deployed with vercel-action

@github-actions
Copy link
Contributor

npm warn exec The following package was not found and will be installed: tsx@4.21.0

📊 Coverage Report

✅ Coverage increased! 🎉

Metric Current Previous Change Status
Lines 87.77% 87.76% +0.02% 🟢
Statements 87.40% 87.37% +0.02% 🟢
Functions 83.47% 83.43% +0.03% 🟢
Branches 79.21% 79.21% 0%

Detailed Breakdown

Lines Coverage
  • Covered: 2886 / 3288
  • Coverage: 87.77%
  • Change: +0.02% (5 lines)
Statements Coverage
  • Covered: 2940 / 3364
  • Coverage: 87.40%
  • Change: +0.02% (6 statements)
Functions Coverage
  • Covered: 823 / 986
  • Coverage: 83.47%
  • Change: +0.03% (2 functions)
Branches Coverage
  • Covered: 1836 / 2318
  • Coverage: 79.21%
  • Change: 0% (0 branches)

✅ Coverage check passed

@gabrielseco gabrielseco marked this pull request as ready for review January 27, 2026 10:41
@gabrielseco gabrielseco requested a review from cammellos January 27, 2026 10:41
@gabrielseco gabrielseco merged commit 048f779 into main Jan 27, 2026
6 checks passed
@gabrielseco gabrielseco deleted the pbyr-3424-check-uk-edge-case-problems-when-updating-file-uploads branch January 27, 2026 11:11
@gabrielseco gabrielseco mentioned this pull request Jan 28, 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