Skip to content

Support record-level action visibility in index row actions #4260

@icaroryan

Description

@icaroryan

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:

  1. Defining several actions in def actions.
  2. Using actions_list in row_controls.
  3. Trying to hide one action per row based on row record condition via action visible.
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNot necessarily a feature, but something has improved
    No fields configured for Enhancement.

    Projects

    Status
    To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions