Problem/Motivation

Currently, there are some places where the UX for admin isn't friendly.

Steps to reproduce

1. On /admin/config/development/add-to-head/add, there are some radio buttons without default values:
Form
I suggest mark "Add for every role except the selected ones" as default.

2. Same form:
Make it default: "Show on every page except the listed pages"
Form

3. Sometimes /admin/config/development/add-to-head looks broken
Collection

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

vitaliyb98 created an issue. See original summary.

vitaliyb98’s picture

Assigned: vitaliyb98 » Unassigned
Status: Active » Needs review
StatusFileSize
new111.52 KB
new158.84 KB

Here is the result of the improvement

Result

Result

baikho’s picture

Status: Needs review » Needs work
baikho’s picture

Title: Improve UX for admin » Handle empty values and add default form values
vitaliyb98’s picture

Status: Needs work » Needs review

Fixed merge conflict

baikho’s picture

Status: Needs review » Needs work
vitaliyb98’s picture

Status: Needs work » Needs review

Hi, thanks for the quick feedback!

Added a clearer label for it; however, this is still not an ideal solution due to the inverted logic: "Include" applies only to specified pages, and when no pages are defined, it effectively means "Exclude all."

Please let me know if you have better ideas

  • baikho committed 95af8b78 on 8.x-1.x authored by vitaliyb98
    fix: #3575618 Handle empty values and add default form values
    
    By:...
baikho’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • baikho committed 95af8b78 on fix-param-converter authored by vitaliyb98
    fix: #3575618 Handle empty values and add default form values
    
    By:...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.