Skip to content

ref(dataforwarding) split into separate forms#109392

Open
JonasBa wants to merge 3 commits intojb/settings/data-forwarding-formfrom
jb/settings/data-forwarding-form-consolidation
Open

ref(dataforwarding) split into separate forms#109392
JonasBa wants to merge 3 commits intojb/settings/data-forwarding-formfrom
jb/settings/data-forwarding-form-consolidation

Conversation

@JonasBa
Copy link
Member

@JonasBa JonasBa commented Feb 25, 2026

This PR splits the data forwarded forms into separate schemas, using useFieldGroup to manage form configuration between the otherwise duplicate fields

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Feb 25, 2026
Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

queue_url: z.string().min(1, t('Queue URL is required')),
region: z.string().min(1, t('Region is required')),
access_key: z.string().min(1, t('Access key is required')),
secret_key: z.string().min(1, t('Secret key is required')),
Copy link
Contributor

Choose a reason for hiding this comment

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

Validation no longer rejects whitespace-only input values

Low Severity

The old validation used !data.field?.trim() via superRefine, which rejected both empty and whitespace-only strings. The new schemas use z.string().min(1), which only checks length — a whitespace-only value like " " has length > 0 and passes validation. This weakens client-side validation for all required provider config fields (queue_url, region, access_key, secret_key, write_key, instance_url, token, index, source). Using z.string().trim().min(1) would restore the original behavior.

Additional Locations (2)

Fix in Cursor Fix in Web

@JonasBa
Copy link
Member Author

JonasBa commented Feb 26, 2026

@TkDodo this is the final PR in the stack of data-forwarding form changes 🙏🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant