feat(structure): add telemetry for the history and review changes pane - #13875
Draft
jordanl17 wants to merge 1 commit into
Draft
feat(structure): add telemetry for the history and review changes pane#13875jordanl17 wants to merge 1 commit into
jordanl17 wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
✅ E2E Tests🟢 210 passed • 🟡 3 flaky • (⚪ 93 skipped) • view full report • view run |
Contributor
📦 Bundle Stats —
|
| Metric | Value | vs main (6712f2d) | vs v6.9.0 |
|---|---|---|---|
| Internal (raw) | 4.17 MB | +750 B, +0.0% | +3.0 KB, +0.1% |
| Internal (gzip) | 1.03 MB | +178 B, +0.0% | +1014 B, +0.1% |
| Bundled (raw) | 12.50 MB | +750 B, +0.0% | +103.3 KB, +0.8% |
| Bundled (gzip) | 2.93 MB | +162 B, +0.0% | +26.6 KB, +0.9% |
| Import time | 1.72s | -9ms, -0.5% | +49ms, +2.9% |
bin:sanity
| Metric | Value | vs main (6712f2d) | vs v6.9.0 |
|---|---|---|---|
| Internal (raw) | 7.1 KB | - | - |
| Internal (gzip) | 2.9 KB | - | - |
| Bundled (raw) | 7.1 KB | - | - |
| Bundled (gzip) | 2.8 KB | - | - |
| Import time | 5ms | +0ms, +1.2% | +0ms, +2.5% |
🗺️ View treemap · Artifacts
Details
- Import time regressions over 10% are flagged with
⚠️ - Sizes shown as raw / gzip 🗜️. Internal bytes = own code only. Total bytes = with all dependencies. Import time = Node.js cold-start median.
Contributor
📚 TypeDoc Generation Result✅ TypeDoc generated successfully!
The TypeDoc JSON file has been generated and validated. All documentation scripts completed successfully. |
Contributor
⚡️ Editor Performance ReportUpdated Tue, 04 Aug 2026 15:52:07 GMT
Detailed information🏠 Reference resultThe performance result of
🧪 Experiment resultThe performance result of this branch
📚 Glossary
|
Contributor
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.
Description
The studio has no telemetry for the history and review changes side pane, so we cannot tell how often it is opened and from where, which tab people use, or whether they revert changes wholesale or field by field. The inspector, its tabs, and the revert actions were entirely uninstrumented.
This PR adds three events.
Document History Inspector Openedcarries thetab, the triggerpath(status_line,change_indicator,pane_menu, orurl), and whether the events-API implementation rendered.Document History Inspector Tab Changedrecords tab switches with the previous and new tab.Document Changes Revertedrecords confirmed reverts with ascopeofall,group, orfieldand a change count.What to review
useDocumentPaneInspector.ts, not from the click handlers, so deep-link, reload, and back/forward opens are captured aspath: 'url'. An intent ref carries the source and tab across the transition because the pane-router params round-trip asynchronously.pathreuses the shared vocabulary documented indocs/TELEMETRY.mdrather than a new per-feature property; the four open triggers are registered in that table.isComparingCurrent.Testing
Added unit tests for all three events: the four open entry points plus the no-fire cases (close, a different inspector, no double-fire) in
useDocumentPaneInspector.test.tsx, tab-change logging inChangesTabs.test.tsx, and the three revert scopes with confirm and cancel inRevertTelemetry.test.tsx. 18 new tests; the scoped suite of 282 tests, lint, types, format, and build all pass.Notes for release
N/A