Skip to content

RI-7930 Index Info component#5436

Merged
valkirilov merged 6 commits intomainfrom
fe/feature/RI-7930/index-info-component
Feb 5, 2026
Merged

RI-7930 Index Info component#5436
valkirilov merged 6 commits intomainfrom
fe/feature/RI-7930/index-info-component

Conversation

@valkirilov
Copy link
Member

@valkirilov valkirilov commented Feb 3, 2026

What

Add Index Info component

  • simple pure component to render information related to a particular index

PS: Later to be used together with the useIndexInfo hook on the new Vector Search page (#5437)

Screenshot 2026-02-03 at 16 31 53

Testing

You can review the Storybook examples for more details and usage instructions.

yarn sb

http://localhost:6006/?path=/story/pages-vector-search-components-indexinfo--default

Example

<IndexInfo
 indexInfo={{
   attributes: [
     {
       attribute: 'county',
       identifier: '$.county',
       type: 'geo'
     },
     {
       attribute: 'stucco',
       identifier: '$.stucco',
       type: 'geo',
       weight: '2.4'
     },
     {
       attribute: 'mob',
       identifier: '$.mob',
       type: 'text',
       weight: '3.1'
     }
   ],
   indexDefinition: {
     keyType: 'JSON',
     prefixes: [
       'frigate:'
     ]
   },
   indexOptions: {
     defaultLang: undefined,
     filter: '@status == "drag"'
   },
   maxDocId: 200,
   numDocs: 4,
   numRecords: 374,
   numTerms: 287
 }}
/>

Note

Low Risk
Low risk additive UI work: introduces a new presentational IndexInfo component with helper utilities, test coverage, and Storybook stories, plus new mock factories and type exports. Changes are mostly isolated to vector-search UI and add deprecation annotations without altering existing behavior.

Overview
Adds a new IndexInfo pure component for the Vector Search UI that renders index definition (key type + prefixes), formatted options, an attributes table, and summary stats, including a loading state via dataTestId-scoped test ids.

Introduces supporting utilities (parseIndexAttributes, option/prefix formatting), frontend IndexInfo/attribute/definition/options types exported via pages/vector-search/hooks, plus new Fishery factories, Storybook stories, and unit tests for both the component and utilities.

Marks the legacy vector-search-deprecated IndexAttributesList component/styles as @deprecated, and adds a TODO note on GroupBadge about future replacement.

Written by Cursor Bugbot for commit dc57885. This will update automatically on new commits. Configure here.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 82.86% 21210/25597
🟡 Branches 68.15% 8973/13166
🟡 Functions 78.09% 5806/7435
🟢 Lines 83.25% 20765/24944

Test suite run success

5572 tests passing in 709 suites.

Report generated by 🧪jest coverage report action from dc57885

@valkirilov valkirilov marked this pull request as ready for review February 3, 2026 15:03
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 2 potential issues.

pawelangelow
pawelangelow previously approved these changes Feb 3, 2026
@valkirilov valkirilov merged commit 0ce4fc1 into main Feb 5, 2026
18 checks passed
@valkirilov valkirilov deleted the fe/feature/RI-7930/index-info-component branch February 5, 2026 11:28
@valkirilov valkirilov restored the fe/feature/RI-7930/index-info-component branch February 5, 2026 11:31
@valkirilov valkirilov self-assigned this Feb 5, 2026
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.

3 participants