Action button issues and improvements

オープン
#7,684 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
静か
技術スタック
php, symfony
領域
backend, frontend

調査の方向性

まず、issue にリンクされているアクション確認とバッチアクションのドキュメントから始め、次に通常ビューとバッチビュー用の既存の action および ActionGroup エントリーポイントを確認します。列挙された確認、スタイリング、優先度、条件付き有効化、および ActionGroup のケースが解決され、それらの動作が一貫してカバーされれば作業は完了です。

索引モデルが issue の本文から書いたものです。

説明

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 with renderAsButton() (used to submit form).

  • Some styles are not really rendering well. Eg: asInfoAction() in dark mode or asTextLink() in light mode

  • In dark mode, the hover effect of secondary buttons (default when no asXxxAction() style is specified) looks strange. The button briefly flashes white before returning to its normal color.

Batch actions
  • askConfirmation() does not work inside BatchAction.
    Instead, we are supposed to use askConfirmationOnBatchActions(), but this method is only available at Crud configuration level, so there is no way to configure a different message par button inside batch actions.
    => Why not just supporting the existing askConfirmation() in batch actions?

  • In batch actions, button priority is handled differently from normal views.
    For example, a button using asPrimaryAction() 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 example data-ea-batch-action-archive="true".

  • Unable to use ActionGroup inside batch actions

主要言語
PHP
スター
4.3k
フォーク
1.1k
平均マージ
2日 9時間
マージ済み PR(30日)
52

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

EasyCorp/EasyAdminBundle のほかの issue

EasyCorp/EasyAdminBundle の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。