Improve the automatic selection process and display the list of selected entities inside a collapsible wrapper

Created on 22 August 2025, 19 days ago

Problem/Motivation

I think that current selection process if far from ideal. First of all, I have a strong feeling that two step selection is not good user experience. Selecting items, then adding them to selected items by "Add to selection" click, then finally click "Use selected" is too long process. But thankfully, it's possible to enable option "Automatically submit selection". I have a feeling that in the future it should become the default (maybe even the only possible way to select content). That way, when you select things on the list, they are automatically added to the selected items list.

In this ticket I don't want to get rid of two step selection, as even I don't like that experience, maybe it's useful is some scenarions (hard to find good examples, but I might miss something). So the improvements that I'm going to propose here are related to improve the whole experience when selecting items with "Automatically submit selection" option enabled.

Configuration

First of all, configure you entity browser to allow to select items with "Automatically submit selection" option enabled.

Proposed resolution

The improvements proposed here are:

  1. Display checkboxes/radios on entity browsers, when the option “Automatically submit selection“ is enabled. For some reason they are hidden by JS code in the current impelementation.
  2. There is a bug related to the remove button. When you select an item and then remove it, the “Use selected” button remains visible. This becomes even more problematic when the “Automatically submit selection” option is enabled - it stops working after you remove an item from the selection (that last thing happens when you enable automatic selection and fix point 1).
  3. Let’s improve the user experience by keeping selected items marked in the full item list (if they are present in the selected items list). Currently, after every form submission, the selection state in the full list does not reflect the actual selection. For checkboxes: when you deselect an item, it should be removed from the selected items list - right now, it gets added a second time instead.
  4. Improve the selected items list by turning it into a collapsible container with a few additional options. This will replace the current “Show selection” button functionality. Also, a new “Deselect all” feature should be added.

Remaining tasks

This code is far from ready. It's rather first step to improve selection process. I implemented and tested it with "Automatically submit selection" enabled. I'm not sure, if it won't break anuthing in the current implementation. So you use it on your own risk.

Feature request
Status

Active

Version

2.0

Component

Selection display plugins

Created by

🇵🇱Poland gugalamaciek

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024