Skip to content

Fix computer properties for france - #1183

Closed
gabrielseco wants to merge 4 commits into
mainfrom
fix-computer-properties-for-france
Closed

Fix computer properties for france#1183
gabrielseco wants to merge 4 commits into
mainfrom
fix-computer-properties-for-france

Conversation

@gabrielseco

Copy link
Copy Markdown
Collaborator

No description provided.

The issue was that money fields were being converted to cents twice:

1. createHeadlessForm was calling convertToCents/parseFloat on money fields
2. The field transformations (transformValueToAPI) were calling convertToCents again

This caused:
- Input: 50000 EUR
- First conversion: 5000000 cents (in createHeadlessForm)
- Second conversion: 500000000 cents (in field transformations)
- Schema computation: 500000000 * 0.05 = 25000000 cents
- Display: 25000000 / 100 = 250000 EUR (wrong!)

Fix: Remove money field processing from createHeadlessForm entirely.
Let the field transformations handle the conversion as they should.

Now:
- Input: 50000 EUR
- Field transformation: convertToCents(50000) = 5000000 cents
- Schema computation: 5000000 * 0.05 = 250000 cents
- Display: 250000 / 100 = 2500 EUR (correct!)
@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

📦 Bundle Size Report

Metric Current Previous Change Status
Total (gzip) 257.13 kB 256.62 kB +503 B (+0.2%) 🔴
Total (raw) 704.98 kB 704.03 kB +952 B (+0.1%) 🔴
CSS (gzip) 21.69 kB 21.69 kB 0 B (0%) 🟢
CSS (raw) 112.66 kB 112.66 kB 0 B (0%) 🟢

Size Limits

  • ✅ Total gzipped: 257.13 kB / 350 kB (73.5%)
  • ✅ Total raw: 704.98 kB / 850 kB (82.9%)
  • ✅ CSS gzipped: 21.69 kB / 25 kB (86.7%)

Largest Files (Top 5)

  1. chunk-7QSJPJB3.js - 14 kB (new)
  2. styles.css - 10.84 kB (0 B (0%))
  3. index.css - 10.84 kB (0 B (0%))
  4. chunk-AVIZTG4K.js - 8.54 kB (0 B (0%))
  5. index.js - 6.56 kB (+2 B (+0.0%))
View All Files (400 total)
File Size (gzip) Change
chunk-7QSJPJB3.js 14 kB new
styles.css 10.84 kB 0 B (0%)
index.css 10.84 kB 0 B (0%)
chunk-AVIZTG4K.js 8.54 kB 0 B (0%)
index.js 6.56 kB +2 B (+0.0%)
chunk-TOS62MNX.js 6.44 kB new
chunk-AS7SJDU5.js 6.4 kB 0 B (0%)
chunk-TEFJOMGX.js 5.31 kB new
chunk-LYLXUPKR.js 4.86 kB new
chunk-I7G3DGTT.js 4.76 kB new

✅ Bundle size check passed

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

📊 Coverage Report

✅ Coverage increased! 🎉

Metric Current Previous Change Status
Lines 83.47% 83.46% +0.02% 🟢
Statements 82.85% 82.83% +0.02% 🟢
Functions 81.47% 81.40% +0.07% 🟢
Branches 75.59% 75.59% 0%

Detailed Breakdown

Lines Coverage
  • Covered: 3985 / 4774
  • Coverage: 83.47%
  • Change: +0.02% (10 lines)
Statements Coverage
  • Covered: 4053 / 4892
  • Coverage: 82.85%
  • Change: +0.02% (14 statements)
Functions Coverage
  • Covered: 1077 / 1322
  • Coverage: 81.47%
  • Change: +0.07% (5 functions)
Branches Coverage
  • Covered: 2484 / 3286
  • Coverage: 75.59%
  • Change: 0% (6 branches)

✅ Coverage check passed

@github-actions

github-actions Bot commented Jul 22, 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-l33i8ddjy-remotecom.vercel.app
Latest Commit:772e2a4

Deployed with vercel-action

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Deploy preview for remote-flows ready!

Project:remote-flows
Status: ✅  Deploy successful!
Preview URL:https://remote-flows-qbp47ev8l-remotecom.vercel.app
Latest Commit:772e2a4

Deployed with vercel-action

@gabrielseco gabrielseco self-assigned this Jul 22, 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.

1 participant