Skip to content

Comments

feat: submit and validation per section in F0Form#3487

Merged
sauldom102 merged 3 commits intomainfrom
f0form-submit-and-validation-per-section
Feb 23, 2026
Merged

feat: submit and validation per section in F0Form#3487
sauldom102 merged 3 commits intomainfrom
f0form-submit-and-validation-per-section

Conversation

@sauldom102
Copy link
Collaborator

Description

We need to support per-section submit & validation as of need of our product where we have huge forms with many sections and all of them having an independent submit.

Besides that, we are adding support to only show the submit button when the form is "dirty" (some field has been modified by the user).

Screenshots

Screenshot 2026-02-20 at 11 22 38

@sauldom102 sauldom102 requested a review from a team as a code owner February 20, 2026 10:23
@github-actions github-actions bot added feat react Changes affect packages/react labels Feb 20, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 20, 2026

✅ No New Circular Dependencies

No new circular dependencies detected. Current count: 0

@github-actions
Copy link
Contributor

github-actions bot commented Feb 20, 2026

📦 Alpha Package Version Published

Use pnpm i github:factorialco/f0#npm/alpha-pr-3487 to install the package

Use pnpm i github:factorialco/f0#1e3950a7796bfffbc06294cd9c34551443297658 to install this specific commit

@github-actions
Copy link
Contributor

github-actions bot commented Feb 20, 2026

🔍 Visual review for your branch is published 🔍

Here are the links to:

@github-actions
Copy link
Contributor

github-actions bot commented Feb 20, 2026

Coverage Report for packages/react

Status Category Percentage Covered / Total
🔵 Lines 38.88% 7212 / 18547
🔵 Statements 38.25% 7374 / 19275
🔵 Functions 29.39% 1538 / 5233
🔵 Branches 28.48% 4181 / 14677
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/react/src/components/F0Form/F0Form.tsx 77.29% 78.78% 68.18% 77.71% 88, 127-130, 143-148, 188-199, 348-352, 362-365, 419-420, 430, 483-489, 499-523, 528, 536-539, 590
packages/react/src/components/F0Form/index.tsx 0% 100% 100% 0% 120
packages/react/src/components/F0Form/types.ts 100% 100% 100% 100%
packages/react/src/components/F0Form/components/F0FormSection.tsx 83.92% 70.73% 100% 83.01% 51-52, 58, 63-64, 139, 197-202, 213-221
packages/react/src/components/F0Form/components/SwitchGroupRenderer.tsx 97.56% 74.07% 100% 97.36% 110
Generated in workflow #11150 for commit c6491d3 by the Vitest Coverage Report Action

Copy link
Collaborator Author

@sauldom102 sauldom102 left a comment

Choose a reason for hiding this comment

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

Notice how we also have proper typing in the onSubmit

Image

@sauldom102 sauldom102 merged commit b217695 into main Feb 23, 2026
19 checks passed
@sauldom102 sauldom102 deleted the f0form-submit-and-validation-per-section branch February 23, 2026 16:41
@eliseo-juan eliseo-juan mentioned this pull request Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat react Changes affect packages/react

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant