Repository navigation
Merge main to v0.56 - #479
Merged
Merged
Conversation
…(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>
Chore/merge release v0.56 back
* [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>
|
React Doctor found 1 new issue in 1 file · 1 warning · score 86 / 100 (Great) · 0 fixed · vs 1 warning
Reviewed by React Doctor for commit |
| * 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({ |
There was a problem hiding this comment.
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.
jgbernalp
approved these changes
Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sync Release 0.56 with Main
Merges main into Release,