Skip to content

Conversation

@jgbernalp
Copy link
Contributor

@jgbernalp jgbernalp commented Jan 20, 2026

Description

This PR adds a new Actions and selection features. perses/perses#3788. This allows to define actions based on selected data, for example calling an HTTP request with the interpolated data from multiple rows selection.

Two new Providers were added to the main Panel component, yes we have more providers but users don't have to configure these two, plugin developers can just use the hooks without any issue as they are resilient to undefined context:

  • SelectionContext: allows to share the selected items between the plugin panel and the panel header. This will allow in the future to use selections from time series or other panel plugins.
  • ItemActionsContext: allows to execute the actions configured in the plugin spec, either from the table row or the panel header.

I split into 3 commits so is easier to review:

  1. b33ab5d adds the selection provider, adding a selection configuration option to common cue package
  2. 43747e2 Improves the interpolation formats and moves the functions to the components package, re exporting in plugins for backwards compatibility
  3. Adds the item actions provider, connecting the selections and actions, adds an actions configuration option to common cue package. The actions and selections integration was added to the table component for plugins to use. Other plugin integrations will follow.

Screenshots

Screen.Recording.2026-01-23.at.20.41.34.mov
Screenshot 2026-01-23 at 20 58 23 Screenshot 2026-01-23 at 20 59 05

Checklist

  • Pull request has a descriptive title and context useful to a reviewer.
  • Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the
    following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, DOC,IGNORE.
  • All commits have DCO signoffs.

UI Changes

  • Changes that impact the UI include screenshots and/or screencasts of the relevant changes.
  • Code follows the UI guidelines.
  • E2E tests are stable and unlikely to be flaky.
    See e2e docs for more details. Common issues include:
    • Is the data inconsistent? You need to mock API requests.
    • Does the time change? You need to use consistent time values or mock time utilities.
    • Does it have loading states? You need to wait for loading to complete.

@jgbernalp jgbernalp changed the title Selection provider Selection provider and Selection actions Jan 20, 2026
@jgbernalp jgbernalp changed the title Selection provider and Selection actions [FEATURE] Selection provider and Selection actions Jan 20, 2026
@jgbernalp jgbernalp changed the title [FEATURE] Selection provider and Selection actions [FEATURE] Selection provider and Item actions Jan 23, 2026
@jgbernalp jgbernalp force-pushed the selection-provider branch 3 times, most recently from e9ae700 to 249c863 Compare January 23, 2026 19:07
…mers

Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
…erpolation

Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
@jgbernalp jgbernalp marked this pull request as ready for review January 23, 2026 20:10
@jgbernalp jgbernalp requested review from a team and AntoineThebaud as code owners January 23, 2026 20:10
@jgbernalp jgbernalp requested a review from Gladorme January 23, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants