Hide Vector Set similarity command preview behind a CLI toggle#5979
Hide Vector Set similarity command preview behind a CLI toggle#5979dantovska wants to merge 13 commits into
Conversation
…onsCell Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…t leak across key navigation Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…ey disappear from the table immediately Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
🛡️ Jit Security Scan Results✅ No security findings were detected in this PR
Security scan by Jit
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 409cc51. Configure here.
| data-testid={`${TEST_ID}-submit`} | ||
| > | ||
| Find similar items | ||
| </PrimaryButton> |
There was a problem hiding this comment.
Submit button lost its loading spinner indicator
Medium Severity
The PrimaryButton previously received a loading={submitLoading} prop that displayed a spinner icon during in-flight requests. During the refactoring, submitLoading was renamed to isLoading and is still computed, but the loading prop was dropped from the JSX. The comment on isLoading ("so the user can see we are still resolving the command") confirms visual feedback was intended. Users now see a disabled button with no indication that work is in progress.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 409cc51. Configure here.
There was a problem hiding this comment.
it was causing a temporary flitch, which i didn't think is good. so this is fine
Code Coverage - Frontend unit tests
Test suite run success7036 tests passing in 807 suites. Report generated by 🧪jest coverage report action from d389d1f |
…stConfig via table meta Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…Data with focused hook specs Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
fd03fe1 to
eb2d004
Compare
…ableMinWidth, emptyMessage) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…button Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…ift on preview toggle Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…elemetry Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
… as a plain IconButton Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
eb2d004 to
d389d1f
Compare


What
Stacks on top of #5977. Reworks the similarity-search form's bottom row.
Testing
🤖 Generated with Claude Code
Note
Low Risk
UI-only changes to the similarity search form and preview hook; no auth, data, or API contract changes beyond fewer optional preview requests when hidden.
Overview
The Vector Set similarity search form no longer shows the VSIM command preview by default. A CLI icon toggle reveals it; when hidden,
runSimilaritySearchPreviewis not called on form edits, so no debounced preview traffic runs in the background.useSimilaritySearchaddscancelSimilaritySearchPreview, which cancels the debounce, aborts in-flight preview requests, and clears the preview slice without clearing search results—invoked when the user toggles the preview off. The bottom action row uses a fixedmin-heightso showing/hiding the preview does not shift layout.VECTOR_SET_SIMILARITY_SEARCH_COMMAND_PREVIEW_TOGGLEDtelemetry recordsshown/hiddenon each toggle. Form tests cover default-hidden UI, preview gating, cancel on toggle-off, and telemetry.Reviewed by Cursor Bugbot for commit d389d1f. Bugbot is set up for automated code reviews on this repo. Configure here.