Skip to content

[RI-7194] Add "Create vector search" wizard #4718

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

Merged

Conversation

KrumTy
Copy link
Collaborator

@KrumTy KrumTy commented Jul 11, 2025

No description provided.

Copy link
Contributor

github-actions bot commented Jul 11, 2025

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 81.37% 18854/23171
🟡 Branches 66.93% 8235/12303
🟡 Functions 75.06% 4931/6569
🟢 Lines 81.78% 18453/22564

Test suite run success

4810 tests passing in 633 suites.

Report generated by 🧪jest coverage report action from 299bcf2

@@ -49,6 +50,8 @@ export const Pages = {
sentinelDatabases: `${sentinel}/databases`,
sentinelDatabasesResult: `${sentinel}/databases-result`,
browser: (instanceId: string) => `/${instanceId}/${PageNames.browser}`,
vectorSearch: (instanceId: string) =>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why not just search?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

because that's the name of the epic and the target branch
I thought that was the name of the feature

@pawelangelow
Copy link
Collaborator

Change the target branch to feature/RI-6855/vector-search

@KrumTy KrumTy changed the base branch from fe/feature/RI-7039-replace-eui to feature/RI-6855/vector-search July 18, 2025 14:11
@KrumTy KrumTy marked this pull request as ready for review July 18, 2025 14:11
}: VectorSearchCreateIndexProps) => {
const { instanceId } = useParams<{ instanceId: string }>()
const [step, setStep] = useState(initialStep)
const [createSearchIndexParameters, setCreateSearchIndexParameters] =
Copy link
Collaborator

Choose a reason for hiding this comment

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

Tip: It's ok for now, since it's the first PR in a series, so I'll leave a note only to think about it.

I like the idea you went for a state variable to control this (instead of Redux), but we'll need to prop drill it to every component, in order to access some useful information. Instead of deep prop drilling, we may use React Context, and let it be a "central state storage" for the family of components related to the Vector Search setup.

But we may change this in the next PRs, once we have the other components in place and more vision on the data model itself.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, context will be the way to go if deep sharing of state is needed
this is just a skeleton/wrapper component w/o actual functionality after all

@KrumTy KrumTy requested a review from valkirilov July 21, 2025 09:21
@@ -93,6 +93,7 @@ module.exports = {
'sonarjs/no-duplicate-string': 'off',
'sonarjs/cognitive-complexity': [1, 20],
'sonarjs/no-identical-functions': [0, 5],
'sonarjs/no-nested-template-literals': 'off',
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

turned off so we can we can add theme related css inside styled components without an extra wrapper function

@KrumTy KrumTy merged commit 556c73d into feature/RI-6855/vector-search Jul 21, 2025
17 checks passed
@KrumTy KrumTy deleted the fe/RI-7194/create-vector-search-wizard branch July 21, 2025 09:44
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