Skip to content

Conversation

@alexbainter
Copy link
Collaborator

Closes #170.

This is a UX improvement for the schema management form. Previously, when creating a new schema, the form would initialize without an empty formset item for a schema definition, like this:
image

This is a little confusing and annoying because at least one schema definition is required for all schemas, a requirement that was easy to miss without the fields present initially. If the user does manage to notice before submitting the form, they'd understandably wonder why we were forcing them to click "Add schema definition."

With this PR, we initialize the schema management form with an "extra" empty formset item when there aren't any SchemRefs for the schema, as in the case of a new schema. That way the form will initialize like this:
image

Users can still remove all the formset

@alexbainter alexbainter requested a review from lisad January 7, 2026 17:44
@alexbainter alexbainter merged commit 5a3553c into main Jan 8, 2026
8 checks passed
@alexbainter alexbainter deleted the alex-170-initialize-formset-with-empty branch January 8, 2026 00:05
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.

Initialize new schema form with an empty definition formset item

3 participants