Skip to content

Commit d5464cc

Browse files
aTurmoovh-cds
authored andcommitted
fix(pci-block-storage): add file storage alpha information banner
ref: #TAPC-5227 Signed-off-by: Adrien Turmo <[email protected]> Co-authored-by: CDS Translator Agent <[email protected]>
1 parent 373d1f7 commit d5464cc

File tree

17 files changed

+301
-35
lines changed

17 files changed

+301
-35
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"pci_project_file_storage_alpha_banner_message_title": "Dateispeicher",
3+
"pci_project_file_storage_alpha_banner_message": "Haben Sie Schwierigkeiten, Speicherplatz zwischen Instanzen oder Containern zu teilen? Dateispeicher ist jetzt in der öffentlichen Alpha-Version bis zum 12. Januar 2026 kostenlos verfügbar!",
4+
"pci_project_file_storage_alpha_banner_button": "Alpha entdecken"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"pci_project_file_storage_alpha_banner_message_title": "File Storage",
3+
"pci_project_file_storage_alpha_banner_message": "Struggling to share storage volumes between instances or containers? File Storage is now available in Public Alpha until January 12th 2026, free of charge!",
4+
"pci_project_file_storage_alpha_banner_button": "Explore the alpha"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"pci_project_file_storage_alpha_banner_message_title": "Almacenamiento de archivos",
3+
"pci_project_file_storage_alpha_banner_message": "¿Tienes dificultades para compartir volúmenes de almacenamiento entre instancias o contenedores? Almacenamiento de archivos ahora está disponible en versión Alpha pública hasta el 12 de enero de 2026, ¡sin costo!",
4+
"pci_project_file_storage_alpha_banner_button": "Descubrir la alpha"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"pci_project_file_storage_alpha_banner_message_title": "File Storage",
3+
"pci_project_file_storage_alpha_banner_message": "Vous rencontrez des difficultés pour partager des volumes de stockage entre instances ou conteneurs ? File Storage est désormais disponible en version Alpha publique jusqu'au 12 janvier 2026, sans frais !",
4+
"pci_project_file_storage_alpha_banner_button": "Découvrir l'alpha"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"pci_project_file_storage_alpha_banner_message_title": "File Storage",
3+
"pci_project_file_storage_alpha_banner_message": "Vous rencontrez des difficultés pour partager des volumes de stockage entre instances ou conteneurs ? File Storage est désormais disponible en version Alpha publique jusqu'au 12 janvier 2026, sans frais !",
4+
"pci_project_file_storage_alpha_banner_button": "Découvrir l'alpha"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"pci_project_file_storage_alpha_banner_message_title": "File Storage",
3+
"pci_project_file_storage_alpha_banner_message": "Hai difficoltà a condividere volumi di archiviazione tra istanze o contenitori? File Storage è ora disponibile in versione Alpha pubblica fino al 12 gennaio 2026, senza costi!",
4+
"pci_project_file_storage_alpha_banner_button": "Scopri l'alpha"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"pci_project_file_storage_alpha_banner_message_title": "Przechowywanie plików",
3+
"pci_project_file_storage_alpha_banner_message": "Czy masz trudności z udostępnianiem wolumenów pamięci masowej między instancjami lub kontenerami? Przechowywanie plików jest teraz dostępne w wersji Alpha publicznej do 12 stycznia 2026 roku, bez opłat!",
4+
"pci_project_file_storage_alpha_banner_button": "Poznaj wersję alpha"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"pci_project_file_storage_alpha_banner_message_title": "Armazenamento de Arquivos",
3+
"pci_project_file_storage_alpha_banner_message": "Você está tendo dificuldades para compartilhar volumes de armazenamento entre instâncias ou contêineres? O Armazenamento de Arquivos está agora disponível em versão Alpha pública até 12 de janeiro de 2026, sem custos!",
4+
"pci_project_file_storage_alpha_banner_button": "Descobrir a alpha"
5+
}

packages/manager/apps/pci-block-storage/src/App.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { RouterProvider, createHashRouter } from 'react-router-dom';
1+
import { createHashRouter, RouterProvider } from 'react-router-dom';
22
import { QueryClientProvider } from '@tanstack/react-query';
33
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
44
import { odsSetup } from '@ovhcloud/ods-common-core';
@@ -10,6 +10,7 @@ import '@ovhcloud/ods-themes/default';
1010
import '@ovhcloud/ods-theme-blue-jeans';
1111
import '@ovh-ux/manager-pci-common/dist/style.css';
1212
import './index.scss';
13+
import { GeneralBannerContextProvider } from '@/contexts/GeneralBanner.context';
1314

1415
odsSetup();
1516

@@ -18,7 +19,9 @@ const router = createHashRouter(appRoutes);
1819
function App() {
1920
return (
2021
<QueryClientProvider client={queryClient}>
21-
<RouterProvider router={router}></RouterProvider>
22+
<GeneralBannerContextProvider>
23+
<RouterProvider router={router} />
24+
</GeneralBannerContextProvider>
2225
<ReactQueryDevtools initialIsOpen={false} />
2326
</QueryClientProvider>
2427
);
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { usePCIFeatureAvailability } from '@ovh-ux/manager-pci-common';
2+
3+
export const FILE_STORAGE_ALPHA = 'pci-block-storage:file-storage-alpha-banner';
4+
5+
export const useIsFileStorageAlphaBannerAvailable = () => {
6+
const { data } = usePCIFeatureAvailability([FILE_STORAGE_ALPHA]);
7+
8+
return data?.get(FILE_STORAGE_ALPHA) ?? false;
9+
};

0 commit comments

Comments
 (0)