Skip to content

Comments

feat: handle useGuides for selectable status indicator in toolbar v2#867

Closed
thomaswhyyou wants to merge 4 commits intographite-base/867from
thomas-kno-11142-sdk-guide-toolbar-v2-poc-9
Closed

feat: handle useGuides for selectable status indicator in toolbar v2#867
thomaswhyyou wants to merge 4 commits intographite-base/867from
thomas-kno-11142-sdk-guide-toolbar-v2-poc-9

Conversation

@thomaswhyyou
Copy link
Contributor

Description

** Describe what, why and how of the changes clearly and concisely. Add any additional useful context or info, as necessary. **

Todos

** List any todo items necessary before merging, if any. Delete if none. **

  • Sample todo item 1
  • Sample todo item 2

Checklist

  • Tests have been added for new features or major refactors to existing features.

Screenshots or videos

** Attach any screenshots or recordings to visually illustrate the changes, as necessary. Delete if not relevant. **

@linear
Copy link

linear bot commented Feb 18, 2026

@changeset-bot
Copy link

changeset-bot bot commented Feb 18, 2026

⚠️ No Changeset found

Latest commit: d539f63

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Feb 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
javascript-ms-teams-connect-example Ready Ready Preview, Comment Feb 18, 2026 8:12pm
javascript-nextjs-example Ready Ready Preview, Comment Feb 18, 2026 8:12pm
javascript-slack-connect-example Ready Ready Preview, Comment Feb 18, 2026 8:12pm
javascript-slack-kit-example Ready Ready Preview, Comment Feb 18, 2026 8:12pm

Request Review

@codecov
Copy link

codecov bot commented Feb 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.58%. Comparing base (08af9d3) to head (d539f63).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@                  Coverage Diff                  @@
##           graphite-base/867     #867      +/-   ##
=====================================================
- Coverage              67.64%   67.58%   -0.07%     
=====================================================
  Files                    203      203              
  Lines                   8729     8709      -20     
  Branches                1159     1161       +2     
=====================================================
- Hits                    5905     5886      -19     
+ Misses                  2800     2799       -1     
  Partials                  24       24              
Files with missing lines Coverage Δ
...omponents/Toolbar/V2/useInspectGuideClientStore.ts 95.25% <100.00%> (+0.25%) ⬆️

... and 2 files with indirect coverage changes

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

// we are throttling currently and which other guides are unthrottled.
if (first.bypass_global_group_limit || first.key === stage.resolved) {
if (snapshot.throttled) {
return guide.bypass_global_group_limit ? "returned" : "throttled";
Copy link

Choose a reason for hiding this comment

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

Missing includeThrottled check in selectAll status inference

Medium Severity

inferSelectAllByTypeReturnStatus doesn't check query.type?.all?.metadata?.opts?.includeThrottled before returning "throttled", unlike its sibling functions inferSelectByKeyReturnStatus and inferSelectOneByTypeReturnStatus which both respect this option. Since SelectGuidesOpts is aliased to SelectGuideOpts and the actual selectGuides client method uses includeThrottled to decide whether to filter out throttled guides, the toolbar will incorrectly show "throttled" for guides that are actually being returned when a consumer passes includeThrottled: true to useGuides.

Fix in Cursor Fix in Web

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.

1 participant