chore: cache the last settled annotated guides in guide toolbar#965
Conversation
Cache the last settled orderedGuides in useInspectGuideClientStore and serve it while the guide client's group stage is transiently cleared or re-opening. Without this, every row's status dots collapsed to undefined (rendering as gray/"Not queried") during the ~50ms order resolution window after Focus toggles, navigation, or other stage-clearing events. The stage is treated as settled on "closed" and "patch" statuses (both preserve stage.results), and transient on undefined or "open".
🦋 Changeset detectedLatest commit: 8d5fb38 The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 878abf4. Configure here.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #965 +/- ##
==========================================
+ Coverage 64.00% 64.04% +0.04%
==========================================
Files 209 209
Lines 10074 10086 +12
Branches 1299 1304 +5
==========================================
+ Hits 6448 6460 +12
Misses 3601 3601
Partials 25 25
|

Description
This aims to address the "flickers" seen with the query status dots when navigating or moving focus, by caching the annotated guides and only re-annotating (and re-rendering in toolbar bar) when the guide client's group state resolution settles. This allows the toolbar to skip re-rendering during a transient/interim state in the guide client.