Skip to content

[6.x] Add a "compact mode" for the array fieldtype - #15219

Merged
jackmcdade merged 24 commits into
6.xfrom
make-compact-array-fieldtype
Aug 21, 2026
Merged

[6.x] Add a "compact mode" for the array fieldtype#15219
jackmcdade merged 24 commits into
6.xfrom
make-compact-array-fieldtype

Conversation

@jaygeorge

Copy link
Copy Markdown
Contributor

Description of the Problem

The array fieldtype could do with a "compact mode" when being used within a grid.
This is handy when we don't need all the details up front – like for custom attributes in a sites table here

These details could be tucked away:

2026-08-19 at 16 22 26@2x

What this PR Does

2026-08-19 at 16 32 47@2x
  • Adds a compact mode to the array fieldtype. This is an opt-in (compact: true), and we're only using it for /cp/sites at the moment
  • The compact mode includes a close button to smooth over the UX, so it’s obvious how to dismiss the modal. Esc still works
  • I've also changed the behaviour of the "enter" button inside an array, so that hitting enter in the middle of the array adds a row below rather than to the end. This would be useful if you'd like to insert missing detail to the array.
  • Adds a z-index helper for confirmation modals. This was needed so the confirmation modal stays above the compact array popover

How to Reproduce

  1. You can see this in effect at /cp/sites in the "Custom Attributes" column

@jackmcdade
jackmcdade merged commit 5444bcd into 6.x Aug 21, 2026
64 checks passed
@jackmcdade
jackmcdade deleted the make-compact-array-fieldtype branch August 21, 2026 20:08
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.

3 participants