Skip to content

feat: Updated FormPath dropdown to preserve types in the FormEditor.#293

Merged
Michael-Dratch merged 1 commit intomainfrom
form-paths-typing
Feb 24, 2026
Merged

feat: Updated FormPath dropdown to preserve types in the FormEditor.#293
Michael-Dratch merged 1 commit intomainfrom
form-paths-typing

Conversation

@Justin-MacIntosh
Copy link
Copy Markdown
Collaborator

@Justin-MacIntosh Justin-MacIntosh commented Feb 24, 2026

  • feat: Updated FormPath dropdown to preserve types in the FormEditor.
    • Updated Form Editor to only allow you to click on FormPaths that match the type of selected Form component.

/**
* Checks if a Form-JS component type is compatible with a JSON Schema type.
*/
export function isTypeCompatible(schemaType: string | undefined, componentType: string): boolean {
Copy link
Copy Markdown
Collaborator

@Michael-Dratch Michael-Dratch Feb 24, 2026

Choose a reason for hiding this comment

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

This is a really cool pattern

@Michael-Dratch Michael-Dratch merged commit 54a01e5 into main Feb 24, 2026
1 check passed
@prestoncabe prestoncabe deleted the form-paths-typing branch March 1, 2026 20:48
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