Action button issues and improvements
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start with the action confirmation and batch action documentation linked in the issue, then inspect the existing action and ActionGroup entry points for normal and batch views. The work is done when the listed confirmation, styling, priority, conditional-enabling, and ActionGroup cases are resolved and their behavior is covered consistently.
Written by the indexing model from the issue text.
Description
Hello,
I can see many small issues or potential improvements related to action buttons.
Here are some of them:
-
askConfirmation()is not working in combination withrenderAsButton()(used to submit form). -
Some styles are not really rendering well. Eg:
asInfoAction()in dark mode orasTextLink()in light mode -
In dark mode, the hover effect ofsecondarybuttons (default when noasXxxAction()style is specified) looks strange. The button briefly flashes white before returning to its normal color.
Batch actions
-
askConfirmation()does not work insideBatchAction.
Instead, we are supposed to useaskConfirmationOnBatchActions(), but this method is only available atCrudconfiguration level, so there is no way to configure a different message par button inside batch actions.
=> Why not just supporting the existingaskConfirmation()in batch actions? -
In batch actions, button priority is handled differently from normal views.
For example, a button usingasPrimaryAction()is rendered on the left in the batch action menu, while in the normal view it is rendered on the right. -
For batch actions, add a way to conditionally enable or disable the action button based on the selected items, using
displayIf()or a dedicated method.
For example: an "Archive" batch action should only be enabled if all selected items are in the "completed" status.
This could be implemented by evaluating the condition for each row and adding a data attribute indicating whether the batch action is allowed for that item, for exampledata-ea-batch-action-archive="true". -
Unable to use
ActionGroupinside batch actions
- Dominant language
- PHP
- Stars
- 4.3k
- Forks
- 1.1k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 52
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from EasyCorp/EasyAdminBundle
-
bug design
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
EasyCorp/EasyAdminBundle#7958 ·
Maintainers usually reply within 2 days
-
design feature
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
EasyCorp/EasyAdminBundle#7930 ·
Maintainers usually reply within 2 days
-
design
Difficulty 2/5 Under an hour Newbie friendliness 88/100
EasyCorp/EasyAdminBundle#7879 ·
Maintainers usually reply within 2 days
-
design
Difficulty 1/5 Under an hour Newbie friendliness 90/100
EasyCorp/EasyAdminBundle#7875 ·
Maintainers usually reply within 2 days
-
#[AdminRoute]: the requirements of an action silently replace the ones of the classPossibly taken @anthonyhacart claimed this 1 day ago. Openfeature
Difficulty 3/5 Half a day Newbie friendliness 30/100
EasyCorp/EasyAdminBundle#7956 ·
Maintainers usually reply within 2 days
All issues in EasyCorp/EasyAdminBundle
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
taskforcesh/bullmq#5238 ·
Maintainers usually reply within 1 day
-
[Bug] v-change-database-password reports success but doesn't change the password when MySQL validate_password rejects itPossibly taken @bfs2021 claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Automattic/jetpack#55517 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
area/import type/enhancement when/later
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day