Skip to content

Merge main to v0.56 - #479

Merged
shahrokni merged 7 commits into
release/v0.56from
merge-main-to-v0.56
Dec 4, 2026
Merged

shahrokni merged 7 commits into
release/v0.56from
merge-main-to-v0.56

Conversation

@shahrokni

@shahrokni shahrokni commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Sync Release 0.56 with Main
Merges main into Release,

⚠️ DO NOT SQUASH

austinlparker and others added 7 commits December 1, 2026 13:34
…(perses#3445) (#442)

* [IGNORE] bump perses/spec

Signed-off-by: Augustin Husson <augustin.husson@amadeus.com>

* [IGNORE] adapt table data link and panel editor schema to spec 0.4

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Augustin Husson <augustin.husson@amadeus.com>

* [FEATURE] ExemplarMetadataTooltip: display the links of the exemplar (perses#3445)

Exemplars can carry links since perses/spec#118, e.g. to open their trace
in a tracing UI. List them in the exemplar tooltip, above the labels so
they stay in view with long label sets.

The links open in a new tab. Their URLs are built by query plugins from
exemplar labels, so links with an unsafe scheme are not rendered.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Austin Parker <austin@ap2.io>

* [IGNORE] adapt links editors and display to the spec 0.4 Link union

Tag links have no URL. The links display shows URL links only, and the
dashboard links editor keeps tag links without editing them.

Signed-off-by: Juliano Costa <julianocosta89@outlook.com>

* [IGNORE] LinksEditor: display the tag links of a panel as read-only

A link has either a URL or tags. The panel links editor showed an empty
URL field for tag links, and typing in it made a link with both, which
the spec schema rejects. Tag links now show their name and tags, and can
still be removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Austin Parker <austin@ap2.io>

* [IGNORE] address review: shared link helpers, require panel link URLs

- Add isTagLink/isURLLink to @perses-dev/components, following the spec
  (a link with tags is a tag link), and use them in LinksEditor,
  LinksDisplay and DashboardLinksEditor instead of private copies.
- Require a URL on URL links in the panel editor schemas.
- Show the errors of a tag link in the panel links editor.
- Do not render links with an empty URL in LinksDisplay and
  ExemplarMetadataTooltip.
- Do not crash on a dashboard link with neither a URL nor tags.
- Document that exemplar links need the consumer to pin the tooltip.
- Add tests for tag links, empty URLs and schema validation.

Signed-off-by: Juliano Costa <julianocosta89@outlook.com>

* Apply batched suggestions from code review

Co-authored-by: Gabriel Bernal <gabrielbernalp@gmail.com>
Signed-off-by: Juliano Costa <julianocosta89@outlook.com>

* [IGNORE] test: fall back to the URL for blank exemplar link names

Signed-off-by: Juliano Costa <julianocosta89@outlook.com>

* [IGNORE] address review: dedupe exemplar links, restore ladle lock entry

Signed-off-by: Juliano Costa <julianocosta89@outlook.com>

---------

Signed-off-by: Augustin Husson <augustin.husson@amadeus.com>
Signed-off-by: Austin Parker <austin@ap2.io>
Signed-off-by: Juliano Costa <julianocosta89@outlook.com>
Co-authored-by: Augustin Husson <augustin.husson@amadeus.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Co-authored-by: Juliano Costa <julianocosta89@outlook.com>
Co-authored-by: Gabriel Bernal <gabrielbernalp@gmail.com>
Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
Signed-off-by: Seyed Mahmoud Shahrokni <39291137+shahrokni@users.noreply.github.com>
* [FEATURE] Hide panel groups according to layout visibility

Signed-off-by: colivi <charles.olivi@gmail.com>

* [ENHANCEMENT] Show when a panel group visibility rule applies

Edit mode keeps an eye on a conditional group. The struck eye means the
current selection would hide it. Operators follow =, !=, =~ and !~.

Signed-off-by: colivi <charles.olivi@gmail.com>

* [ENHANCEMENT] Name visibility operators like the spec

equals, notEquals, matches and notMatches. An omitted operator still means equals.

Signed-off-by: colivi <charles.olivi@gmail.com>

* [ENHANCEMENT] Depend on @perses-dev/spec 0.4.0-beta.0

Visibility operators now come from the released spec. URL editors narrow the Link union, and the panel editor schema is asserted back to PanelEditorValues because Zod 4 types the spec schemas with an unknown input.

Signed-off-by: colivi <charles.olivi@gmail.com>

* [BUGFIX] Format visibility files and stop asserting the React ref

oxfmt wraps two long lines and sorts the eye icons. React 19 calls a function component with an undefined ref, so the grid test only checks the visibility notice.

Signed-off-by: colivi <charles.olivi@gmail.com>

* [ENHANCEMENT] Address the panel-group visibility review

A refresh keeps the group mounted when the variable already has a value. A leading (?i) is case-insensitive, the edit-mode tooltip uses plain words, and a rule without a title no longer renders an empty heading. The group field uses Visibility from the spec.

Signed-off-by: colivi <charles.olivi@gmail.com>

* [BUGFIX] Compare a missing variable value with ===

Signed-off-by: colivi <charles.olivi@gmail.com>

* [BUGFIX] Hide a conditional group on an empty selection or invalid pattern

An invalid pattern no longer makes notMatches show the group. An empty
selection hides the group for every operator. The edit-mode tooltip says
is any of, is none of, matches any of, and matches none of.

Signed-off-by: colivi <charles.olivi@gmail.com>

---------

Signed-off-by: colivi <charles.olivi@gmail.com>
* feat(components): flag transforms that need each sample

Signed-off-by: colivi <charles.olivi@gmail.com>

* [BUGFIX] Type the transforms that need each sample

The set is a ReadonlySet of transform kinds. The helper takes that kind, so the call no longer asserts it.

Signed-off-by: colivi <charles.olivi@gmail.com>

---------

Signed-off-by: colivi <charles.olivi@gmail.com>
Signed-off-by: Seyed Mahmoud Shahrokni <39291137+shahrokni@users.noreply.github.com>
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

React Doctor found 1 new issue in 1 file · 1 warning · score 86 / 100 (Great) · 0 fixed · vs release/v0.56

1 warning

src/ExemplarMetadata/ExemplarMetadataTooltip.tsx

  • ⚠️ L62 React function has high control-flow complexity no-high-complexity-react-function

Reviewed by React Doctor for commit 60bea0c. See inline comments for fixes.

@shahrokni
shahrokni marked this pull request as ready for review December 4, 2026 15:16
@shahrokni
shahrokni requested a review from a team as a code owner December 4, 2026 15:16
* a consumer that renders links must set it when an exemplar is clicked, whether or not `enablePinning`
* is set, as `enablePinning` only controls the pin button.
*/
export function ExemplarMetadataTooltip({

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

React Doctor · react-doctor/no-high-complexity-react-function (warning)

ExemplarMetadataTooltip has cyclomatic complexity 16, cognitive complexity 15, and maximum nesting depth 1, so its React logic is hard to understand and change. Extract independent branches into components or hooks.

Fix → Extract independent render branches and state logic into focused components or hooks until the control flow is easy to follow.

Docs

@shahrokni
shahrokni merged commit 388ce05 into release/v0.56 Dec 4, 2026
30 checks passed
@shahrokni
shahrokni deleted the merge-main-to-v0.56 branch December 4, 2026 15:19
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