Skip to content

fix(force-value-fields) - set force value field as much as json-schema wants#1032

Open
gabrielseco wants to merge 1 commit into
mainfrom
fix-force-value-field-deps
Open

fix(force-value-fields) - set force value field as much as json-schema wants#1032
gabrielseco wants to merge 1 commit into
mainfrom
fix-force-value-field-deps

Conversation

@gabrielseco
Copy link
Copy Markdown
Collaborator

@gabrielseco gabrielseco commented May 15, 2026

When we're using computed properties in a force field value, that can change as it depends on other fields, we weren't setting the correct value into the form

In the loom showcase the problem in main and in this PR
https://www.loom.com/share/929e31718e604e62a99f932f5001649c

Note

Low Risk
Low risk: only adjusts a React useEffect dependency array so forced values update when inputs change; minimal surface area and no security-sensitive logic.

Overview
Ensures ForcedValueField re-applies its forced form value whenever name or value changes by updating the useEffect dependency array (and removing the exhaustive-deps suppression). This makes the field follow JSON-schema-driven updates instead of only setting the value once on mount.

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

@gabrielseco gabrielseco self-assigned this May 15, 2026
@github-actions
Copy link
Copy Markdown
Contributor

📦 Bundle Size Report

Metric Current Previous Change Status
Total (gzip) 211.78 kB 211.76 kB +20 B (+0.0%) 🔴
Total (raw) 574.01 kB 574 kB +5 B (+0.0%) 🔴
CSS (gzip) 20.86 kB 20.86 kB 0 B (0%) 🟢
CSS (raw) 108.83 kB 108.83 kB 0 B (0%) 🟢

Size Limits

  • ✅ Total gzipped: 211.78 kB / 250 kB (84.7%)
  • ✅ Total raw: 574.01 kB / 600 kB (95.7%)
  • ✅ CSS gzipped: 20.86 kB / 25 kB (83.4%)

Largest Files (Top 5)

  1. chunk-5BU3CD2P.js - 14 kB (0 B (0%))
  2. styles.css - 10.43 kB (0 B (0%))
  3. index.css - 10.43 kB (0 B (0%))
  4. index.js - 6.11 kB (0 B (0%))
  5. chunk-ER46UFIU.js - 5.89 kB (0 B (0%))
View All Files (312 total)
File Size (gzip) Change
chunk-5BU3CD2P.js 14 kB 0 B (0%)
styles.css 10.43 kB 0 B (0%)
index.css 10.43 kB 0 B (0%)
index.js 6.11 kB 0 B (0%)
chunk-ER46UFIU.js 5.89 kB 0 B (0%)
chunk-26C4WDHH.js 5.81 kB new
chunk-JXAAON7I.js 5.26 kB 0 B (0%)
chunk-X5ZZPJII.js 4.62 kB new
chunk-T35SZZ74.js 4.45 kB 0 B (0%)
chunk-3PKL3V6F.js 4.06 kB 0 B (0%)

✅ Bundle size check passed

@github-actions
Copy link
Copy Markdown
Contributor

📊 Coverage Report

⚪ Coverage unchanged

Metric Current Previous Change Status
Lines 90.05% 90.05% 0%
Statements 89.72% 89.72% 0%
Functions 87.73% 87.73% 0%
Branches 80.09% 80.09% 0%

Detailed Breakdown

Lines Coverage
  • Covered: 3694 / 4102
  • Coverage: 90.05%
  • Change: 0% (0 lines)
Statements Coverage
  • Covered: 3754 / 4184
  • Coverage: 89.72%
  • Change: 0% (0 statements)
Functions Coverage
  • Covered: 1001 / 1141
  • Coverage: 87.73%
  • Change: 0% (0 functions)
Branches Coverage
  • Covered: 2301 / 2873
  • Coverage: 80.09%
  • Change: 0% (0 branches)

✅ Coverage check passed

@github-actions
Copy link
Copy Markdown
Contributor

Deploy preview for remote-flows ready!

Project:remote-flows
Status: ✅  Deploy successful!
Preview URL:https://remote-flows-l0cjyj3zb-remotecom.vercel.app
Latest Commit:9f884a9

Deployed with vercel-action

@remotecom remotecom requested a review from jordividaller May 15, 2026 15:35
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