Feature
Add support for record-level action visibility in index row action lists.
Right now, on the index page:
- We can conditionally render a single row action in
row_controls when we have row conditions.
- But we cannot reliably apply that same per-record visibility behavior to actions inside
actions_list using the normal action visible mechanism.
This makes action visibility inconsistent between single actions and grouped actions in the row dropdown.
Current workarounds
We currently work around this by building conditional logic inside row_controls and manually passing include: / exclude: to actions_list.
That works, but has downsides:
- Duplicates visibility logic outside the action class.
- Bypasses the standard
self.visible API on actions.
- Becomes hard to maintain when many actions share similar conditions.
Screenshots or screen recordings
Not included, but reproducible by:
- Defining several actions in
def actions.
- Using
actions_list in row_controls.
- Trying to hide one action per row based on row record condition via action
visible.
- Noting that per-row visibility for grouped actions is not consistently available.
Additional context
The expected behavior is that actions rendered inside index actions_list should have access to the row record context, just like single row actions can be conditionally rendered today. This would make visibility behavior consistent and reduce custom control-level filtering logic.
Feature
Add support for record-level action visibility in index row action lists.
Right now, on the index page:
row_controlswhen we have row conditions.actions_listusing the normal actionvisiblemechanism.This makes action visibility inconsistent between single actions and grouped actions in the row dropdown.
Current workarounds
We currently work around this by building conditional logic inside
row_controlsand manually passinginclude:/exclude:toactions_list.That works, but has downsides:
self.visibleAPI on actions.Screenshots or screen recordings
Not included, but reproducible by:
def actions.actions_listinrow_controls.visible.Additional context
The expected behavior is that actions rendered inside index
actions_listshould have access to the row record context, just like single row actions can be conditionally rendered today. This would make visibility behavior consistent and reduce custom control-level filtering logic.