Skip to content

RI-7365: Show no indexes message #4870

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pawelangelow
Copy link
Collaborator

When no indexes

Screenshot 2025-08-15 at 16 21 43

When there are indexes

Screenshot 2025-08-15 at 16 21 56

Copy link
Contributor

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 81.88% 19701/24060
🟡 Branches 67.19% 8535/12703
🟡 Functions 75.91% 5221/6878
🟢 Lines 82.31% 19287/23431

Test suite run success

5061 tests passing in 665 suites.

Report generated by 🧪jest coverage report action from 134aff8


return (
<StyledManageIndexesListAction data-testid="manage-indexes-list">
{loading && <Loader data-testid="manage-indexes-list--loader" />}

{!loading && !hasIndexes && <NoIndexesMessage />}
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe worth adding a test for the empty list

import { CallOut } from 'uiSrc/components/base/display/call-out/CallOut'
import { Pages } from 'uiSrc/constants'
import useStartWizard from '../hooks/useStartWizard'
Copy link
Collaborator

Choose a reason for hiding this comment

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

you can probably simplify this component's tests by mocking '../hooks/useStartWizard' as opposed to it's internals ('react-router-dom') since you've already tested them; not mandatory ofc

Comment on lines +13 to +15
return {
start,
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

if there's no plan on adding more attributes to the return object, it might be better to return just the function

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