Skip to content

feat: add support for alert and more info link on f0form fields#3541

Merged
sauldom102 merged 7 commits intomainfrom
add-support-for-alert-and-more-info-link-on-f0form-fields
Mar 24, 2026
Merged

feat: add support for alert and more info link on f0form fields#3541
sauldom102 merged 7 commits intomainfrom
add-support-for-alert-and-more-info-link-on-f0form-fields

Conversation

@sauldom102
Copy link
Copy Markdown
Collaborator

@sauldom102 sauldom102 commented Feb 26, 2026

Description

Added moreInfoLink support for boolean fields (switch/checkbox) in f0FormField, rendered below help text — including inside grouped switches via CardSelectable. Also added an alert prop to f0FormField that accepts static props or a conditional callback to display an F0Alert below any field.

Screenshot 2026-02-26 at 16 56 39

This is needed in order to give the users more information about certain fields, I could see this in trainings course creation form:

Screenshot 2026-02-26 at 16 59 40 Screenshot 2026-02-26 at 16 59 51

Copilot AI review requested due to automatic review settings February 26, 2026 15:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

@github-actions github-actions Bot added the feat label Feb 26, 2026
@sauldom102 sauldom102 marked this pull request as ready for review February 26, 2026 15:53
@sauldom102 sauldom102 marked this pull request as draft February 26, 2026 15:54
@sauldom102 sauldom102 force-pushed the add-support-for-alert-and-more-info-link-on-f0form-fields branch from 8f533c8 to dd608f5 Compare February 26, 2026 15:55
@github-actions github-actions Bot added the react Changes affect packages/react label Feb 26, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 26, 2026

✅ No New Circular Dependencies

No new circular dependencies detected. Current count: 0

Copilot AI review requested due to automatic review settings February 26, 2026 15:58
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 26, 2026

📦 Alpha Package Version Published

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

Use pnpm i github:factorialco/f0#587a4561572fa94617d2de475eead14343e74054 to install this specific commit

@sauldom102 sauldom102 marked this pull request as ready for review February 26, 2026 15:58
@sauldom102 sauldom102 requested a review from a team as a code owner February 26, 2026 15:58
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 26, 2026

🔍 Visual review for your branch is published 🔍

Here are the links to:

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 26, 2026

Coverage Report for packages/react

Status Category Percentage Covered / Total
🔵 Lines 44.12% 10390 / 23546
🔵 Statements 43.44% 10711 / 24653
🔵 Functions 36.14% 2347 / 6494
🔵 Branches 35.4% 6563 / 18539
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/react/src/components/F0Form/f0Schema.ts 77.27% 56.25% 100% 77.27% 674, 692, 710-733
packages/react/src/components/F0Form/index.tsx 0% 100% 100% 0% 165
packages/react/src/components/F0Form/types.ts 100% 100% 100% 100%
packages/react/src/components/F0Form/useSchemaDefinition.ts 96.63% 74.07% 92.85% 97.27% 115-123, 270-275, 497
packages/react/src/components/F0Form/components/SwitchGroupRenderer.tsx 98.43% 82.92% 100% 98.3% 125
packages/react/src/components/F0Form/fields/FieldRenderer.tsx 79.48% 79.24% 85.71% 78.37% 27-31, 64-103
packages/react/src/components/F0Form/fields/types.ts 100% 100% 100% 100%
packages/react/src/components/F0Form/fields/checkbox/types.ts 100% 100% 100% 100%
packages/react/src/components/F0Form/fields/switch/types.ts 100% 100% 100% 100%
packages/react/src/experimental/Forms/CardSelectable/CardSelectable.tsx 41.93% 37.7% 50% 43.33% 21-61, 122-125, 138-143
packages/react/src/experimental/Forms/CardSelectable/types.ts 100% 100% 100% 100%
packages/react/src/lib/providers/i18n/i18n-provider-defaults.ts 100% 100% 100% 100%
Generated in workflow #12146 for commit 7f72184 by the Vitest Coverage Report Action

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.

Comment thread packages/react/src/components/F0Form/__stories__/F0Form.stories.tsx
Copilot AI review requested due to automatic review settings March 24, 2026 15:00
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated 6 comments.

Comment thread packages/react/src/components/F0Form/f0Schema.ts Outdated
Comment thread packages/react/src/components/F0Form/fields/checkbox/types.ts Outdated
Comment thread packages/react/src/components/F0Form/fields/FieldRenderer.tsx
Comment thread packages/react/src/components/F0Form/fields/FieldRenderer.tsx
Comment thread packages/react/src/experimental/Forms/CardSelectable/CardSelectable.tsx Outdated
Copilot AI review requested due to automatic review settings March 24, 2026 16:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 16 out of 16 changed files in this pull request and generated 1 comment.

@sauldom102 sauldom102 merged commit 0c25a26 into main Mar 24, 2026
20 checks passed
@sauldom102 sauldom102 deleted the add-support-for-alert-and-more-info-link-on-f0form-fields branch March 24, 2026 16:28
@eliseo-juan eliseo-juan mentioned this pull request Mar 24, 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.

2 participants