-
Notifications
You must be signed in to change notification settings - Fork 111
fix(pci-block-storage): add file storage alpha information banner #19828
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
fix(pci-block-storage): add file storage alpha information banner #19828
Conversation
abc6ce3 to
3176dc1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is nice to communalize the banner logic, well done 👍
I'm just wondering if it coud be a good idea to have some kind of standard banner already implemented into the Banner, which will allow to just pass some properties (and will lighten the addBanner call)?
by the way, could you update your commit as there is a spelling error ?
packages/manager/apps/pci-block-storage/src/components/button-link/ButtonLink.tsx
Outdated
Show resolved
Hide resolved
...es/manager/apps/pci-block-storage/src/components/banner/FileStorageAlphaBanner.component.tsx
Show resolved
Hide resolved
packages/manager/apps/pci-block-storage/src/contexts/GeneralBanner.context.tsx
Outdated
Show resolved
Hide resolved
packages/manager/apps/pci-block-storage/src/contexts/GeneralBanner.context.tsx
Show resolved
Hide resolved
3176dc1 to
a8992c9
Compare
dd81f97
a8992c9 to
dd81f97
Compare
dd81f97 to
2c3c018
Compare
2c3c018 to
2e95628
Compare
ref: #TAPC-5227 Signed-off-by: Adrien Turmo <[email protected]> Co-authored-by: CDS Translator Agent <[email protected]>
ref: #TAPC-5227 Signed-off-by: Adrien Turmo <[email protected]>
2e95628 to
5df9d2e
Compare
| const shellContextValue: RecursivePartial<ShellContextType> = { | ||
| shell: { | ||
| navigation: { | ||
| getURL: (_, path) => Promise.resolve(`https://ovh.test/#${path}`), | ||
| }, | ||
| ux: { | ||
| hidePreloader: () => Promise.resolve(), | ||
| }, | ||
| tracking: { | ||
| trackClick: () => {}, | ||
| }, | ||
| }, | ||
| environment: { | ||
| getUser: () => ({ ovhSubsidiary: 'mocked_ovhSubsidiary' }), | ||
| getRegion: () => 'EU', | ||
| }, | ||
| }; | ||
|
|
||
| const wrapper = ({ children }) => ( | ||
| <QueryClientProvider client={queryClient}>{children}</QueryClientProvider> | ||
| <ShellContext.Provider value={shellContextValue as ShellContextType}> | ||
| <QueryClientProvider client={queryClient}>{children}</QueryClientProvider> | ||
| </ShellContext.Provider> | ||
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is to fix the test after react-shell-client version bump
ref: #TAPC-5227