Skip to content

RI-8160: implement preview x out of y for similarity search results#5890

Open
dantovska wants to merge 1 commit into
fe/feature/RI-8160/enable-column-resizingfrom
fe/feature/RI-8160/preview-x-out-of-y-similarity
Open

RI-8160: implement preview x out of y for similarity search results#5890
dantovska wants to merge 1 commit into
fe/feature/RI-8160/enable-column-resizingfrom
fe/feature/RI-8160/preview-x-out-of-y-similarity

Conversation

@dantovska
Copy link
Copy Markdown
Contributor

@dantovska dantovska commented May 11, 2026

What

Add X out of Y in the subheader for similarity search results, where X is result count, and Y is the total elements count.

image

Testing


Note

Low Risk
Low risk UI-only change that adjusts how the Vector Set subheader computes and displays preview counts; main risk is minor incorrect counts/visibility in edge cases (pagination vs similarity results).

Overview
Adds a preview summary to the Vector Set subheader that also works for similarity search, showing “Previewing X out of Y” where X is the number of matches currently displayed and Y is the vector set total.

Refactors VectorSetKeySubheader to be driven by explicit props (showPreview, previewCount, total) instead of reading from Redux directly, with VectorSetDetails now computing these values and giving similarity results precedence over the element-list preview. Updates the subheader unit tests accordingly to validate the new prop-driven behavior.

Reviewed by Cursor Bugbot for commit 8d1851a. Bugbot is set up for automated code reviews on this repo. Configure here.

@dantovska dantovska self-assigned this May 11, 2026
@dantovska dantovska requested a review from a team as a code owner May 11, 2026 13:43
@jit-ci
Copy link
Copy Markdown

jit-ci Bot commented May 11, 2026

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ No security findings were detected in this PR


Security scan by Jit

@github-actions
Copy link
Copy Markdown
Contributor

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 82.73% 24436/29537
🟡 Branches 67.91% 10263/15112
🟡 Functions 77.89% 6598/8471
🟢 Lines 83.2% 23875/28697

Test suite run success

6860 tests passing in 793 suites.

Report generated by 🧪jest coverage report action from 8d1851a

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.

2 participants