Skip to content

Conversation

@jgbernalp
Copy link
Contributor

Description

Related to: perses/perses#3788

Requires: perses/shared#40

Screenshots

// TODO

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.

Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
{ label: 'Column Settings', content: TableColumnsEditor },
{ label: 'Cell Settings', content: TableCellsEditor },
{ label: 'Transforms', content: TableTransformsEditor },
{ label: 'Selections', content: TableSelectionsEditor },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find it a bit overkill to have a whole new tab in the panel settings that allows to tune a single attribute in the end. Could we make it a sub-section of the General Settings instead?

Copy link
Member

@Gladorme Gladorme Jan 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I agree. I think it could be put in General settings or directly in Item Actions

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a single editor for both selections and actions

Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
export * from './TableColumnsEditor';
export * from './TableItemSelectionActionsEditor';
export * from './TablePanel';
export * from './TableSelectionsEditor';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do no exists anymore

import (
"strings"
"github.com/perses/shared/cue/common"
commLocal "github.com/perses/local/cue/common"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guessing there is a trick here for the import (like npm link for cue I guess), because I have an issue with percli plugin start table: import is failing 🤔

Not important for reviewing the UI (shared), I removed lines causing issues 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, this is for testing locally as the shared cue package does not have the required selection and actions schemas. Without this the panel will fail to save. Basically in my repo I have:

Screenshot 2026-01-30 at 16 58 31

Note this folder is ignored for Git

This is the trick I found in cue. I was able to use a local schema to allow perses API to validate and store the proper schema.

Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
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.

4 participants