Skip to content

[6.x] Fieldset sections#14297

Open
jackmcdade wants to merge 7 commits into6.xfrom
fieldset-sections
Open

[6.x] Fieldset sections#14297
jackmcdade wants to merge 7 commits into6.xfrom
fieldset-sections

Conversation

@jackmcdade
Copy link
Member

@jackmcdade jackmcdade commented Mar 19, 2026

Adds support for sections inside fieldsets and makes blueprint fieldset imports section-aware.

  • Fieldsets can now be authored with section structure (while flat fieldsets remain supported).
  • Blueprint imports now support section_behavior with preserve (default) or flatten.
  • CP import UI now indicates when a linked fieldset has sections and exposes section behavior controls only when relevant.

Notes

  • Flat fieldsets are kept flat on save (single default “Fields” section is collapsed back to fields).
  • Preserved sections will split the current section out wherever it is. If there are fields after it, they will be in their own section below the imported fieldset section.
  • Includes backend + CP updates and test coverage for parsing, rendering, import behavior, and persistence.
CleanShot 2026-03-18 at 22 14 57@2x CleanShot 2026-03-18 at 22 15 24@2x CleanShot 2026-03-18 at 22 48 53@2x

References statamic/ideas#988


Note

Medium Risk
Changes how fieldsets are represented, edited, and serialized (new sections structure with normalization), plus modifies publish rendering for imported fieldsets; regressions could affect CP editing and blueprint/fieldset import layouts.

Overview
Adds first-class sections inside fieldsets: the CP fieldset editor now uses the Sections UI (with drag/drop across sections), and the backend Fieldset model normalizes storage to either flat fields or non-empty sections (never both).

Makes fieldset imports section-aware: import settings gain a section_behavior (preserve default vs flatten), the CP import UI shows badges/controls only when the linked fieldset has sections, and Tab::toPublishArray() can expand sectioned imports into publish sections (or flatten them in place).

Written by Cursor Bugbot for commit 3bc0da4. This will update automatically on new commits. Configure here.

@jackmcdade jackmcdade requested a review from jasonvarga March 19, 2026 02:18
Copy link

@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.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

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.

1 participant