Skip to content

[6.x] Publish form appearance inconsistency between Collections and Addon Settings #12125

@martyf

Description

@martyf

Bug description

Sections within a Collection look great - neatly arranged with clean white space, such as:
Image

However, this same Blueprint in the Addon Settings appears to have a section per field, such as:
Image

These two screenshots are created with the same Blueprint.

I prefer the first (Collection) layout: it feels neater, visually more appealing, more consistent with the rest of the CP and easier to read. The Addon Settings one is more disjointed, and doesn't "feel" right, and is more cumbersome to read.

I had a look through the new components to try to trace this down but a) ran out of time and b) didn't make much progress

How to reproduce

  1. Create a Blueprint for a Collection that has a Section (note: an example is provided below)
  2. Copy that Blueprint to Addon settings
  3. View the Addon Settings and see the form structure

Logs

Environment

Environment
Application Name: Statamic
Laravel Version: 12.25.0
PHP Version: 8.3.24
Composer Version: 2.8.10
Environment: local
Debug Mode: ENABLED
URL: statacms.test
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: mysql
Logs: stack / single
Mail: log
Queue: sync
Session: file

Storage
public/storage: NOT LINKED

Statamic
Addons: 1
Sites: 1
Stache Watcher: Enabled
Static Caching: Disabled
Version: dev-fix/instructions-from-package PRO

Statamic Addons
mitydigital/feedamic: 3.x-dev

Installation

Other (please explain)

Additional details

Example Blueprint

title: Simple
tabs:
  main:
    display: Main
    sections:
      -
        fields:
          -
            handle: title
            field:
              type: text
              required: true
              validate:
                - required
      -
        display: 'New Section'
        fields:
          -
            handle: field_a
            field:
              type: text
              display: 'Field A'
              width: 50
          -
            handle: field_b
            field:
              type: text
              display: 'Field B'
              width: 50

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions