Repository navigation
feat(dashboards): Add a row model for the unified trace metrics visualize list - #132043
edwardgou-sentry wants to merge 9 commits into
Conversation
📊 Type Coverage Diff
🔍 1 new type safety issue introducedNon-null assertions (
This is informational only and does not block the PR. |
| entry: [ | ||
| ...productionEntryPoints.map(entry => `${entry}!`), | ||
| ...frontendWorkspace.entry, | ||
| 'views/dashboards/widgetBuilder/components/visualize/traceMetrics/rowModel.ts!', |
There was a problem hiding this comment.
need this for now since file is unused and will cause knip failure. Will be deleted on the first pr that uses the new file.
narsaynorath
left a comment
There was a problem hiding this comment.
just some comments about the collapsing/non-collapsing functionality from reading a saved query
…lize list Rows get stable ids and letters, equations stay in letter form while editing, and the saved shape is derived from the rows.
…ide edits in the row model
…ding the row model Equations that still spell their saved text keep their letters and hidden rows, and visible fields prefer rows that were already visible.
36d908b to
85ba831
Compare
…e row model A delete or reorder outside the list no longer shifts equation pairs, and labels that match no row stay in the saved text.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit a3039db. Configure here.
| if (!match) { | ||
| return; | ||
| } | ||
| unused.delete(match); |
There was a problem hiding this comment.
Single-pass equation matching steals exact matches
Medium Severity
Equation pairing in rowsFromFields runs exact-text matching and the unused-row fallback in a single loop over fields. When a new or modified equation appears before an unchanged equation, the fallback consumes the unchanged equation's row from previousEquations, causing the later equation to lose its exact match, row id, labels, and any reserved hidden rows.
Reviewed by Cursor Bugbot for commit a3039db. Configure here.


Adds
TraceMetricRowtypes to model field, aggregate, and equation rows in the trace metric widget builder for the unified visualize view.Also includes several helper functions to manage editing rows. The new types and helper functions are not used yet and will be leveraged in an upcoming pr.