Repository navigation
chore(clusters): engine v2 review improvements #3060
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
rmnbrd
merged 19 commits into
feat/cluster-engine-v2
from
chore/cluster-engine-v2-review-improvements
Oct 5, 2026
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
1da98ec
fix(clusters): keep profile edits made while saving
rmnbrd 79eccbc
fix(clusters): redirect only once when the Operator connects
rmnbrd 3cca8df
fix(clusters): track the item modal however it is dismissed
rmnbrd 0f8101b
perf(clusters): only debounce profile edits, not component switches
rmnbrd f9a3eed
fix(clusters): use the brand focus outline on profile sidebar buttons
rmnbrd 774eb98
fix(clusters): show OVH, Oracle and IBM icons in cluster avatars
rmnbrd 2c80cc3
refactor(clusters): use ClusterAvatar in the profile header
rmnbrd 7c98a96
fix(clusters): align Operator and profile search copy
rmnbrd 49f03ec
refactor(clusters): use the layer-group icon in the profile sidebar
rmnbrd f27a8c0
refactor(clusters): keep the HTTP status helper private to data-access
rmnbrd 9dc6724
test(ui): drive InputSearch with userEvent
rmnbrd f9d6c6c
refactor(clusters): read route ids in the Operator status components
rmnbrd 4ecf7a6
test(clusters): cover the platform configuration helpers
rmnbrd 8c417de
test(clusters): drop an unused testing import
rmnbrd e8a571c
UI tweak
rmnbrd f5a577c
perf(clusters): debounce profile edits instead of preview requests
rmnbrd b9ca9ee
fix(clusters): only mention the search when the sidebar has one
rmnbrd 1b54b61
fix(clusters): report the item modal mount state explicitly
rmnbrd 4734090
chore(clusters): remove profile API response logging
rmnbrd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
libs/domains/clusters/feature/src/lib/cluster-avatar/cluster-avatar.spec.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| import { renderWithProviders } from '@qovery/shared/util-tests' | ||
| import { ClusterAvatar } from './cluster-avatar' | ||
|
|
||
| jest.mock('@qovery/shared/ui', () => { | ||
| const React = jest.requireActual('react') | ||
| const ui = jest.requireActual('@qovery/shared/ui') | ||
| return { | ||
| ...ui, | ||
| Icon: (props: { name?: string; iconName?: string }) => | ||
| React.createElement('span', { 'data-icon-name': props.name ?? props.iconName }), | ||
| } | ||
| }) | ||
|
|
||
| describe('ClusterAvatar', () => { | ||
| it.each([ | ||
| ['AWS', 'AWS'], | ||
| ['GCP', 'GCP'], | ||
| ['ON_PREMISE', 'KUBERNETES'], | ||
| ['OVH', 'OVH_CLOUD'], | ||
| ['ORACLE', 'ORACLE_CLOUD'], | ||
| ['IBM', 'IBM_CLOUD'], | ||
| ] as const)('shows the %s provider icon', (cloudProvider, iconName) => { | ||
| const { container } = renderWithProviders(<ClusterAvatar cloudProvider={cloudProvider} />) | ||
|
|
||
| expect(container.querySelector(`[data-icon-name="${iconName}"]`)).toBeInTheDocument() | ||
| }) | ||
|
|
||
| it('shows a demo icon for demo clusters', () => { | ||
| const { container } = renderWithProviders( | ||
| <ClusterAvatar cluster={{ id: 'cluster-id', is_demo: true, cloud_provider: 'ON_PREMISE' } as never} /> | ||
| ) | ||
|
|
||
| expect(container.querySelector('[data-icon-name="laptop-code"]')).toBeInTheDocument() | ||
| }) | ||
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.