-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pci-object-storage): add empty user modal
bump to MRC version also to 3.0.0 ref: DTCORE-3002 Signed-off-by: LIDRISSI Hamid <[email protected]>
- Loading branch information
1 parent
bce5e6d
commit d1d1ed9
Showing
14 changed files
with
151 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
5 changes: 5 additions & 0 deletions
5
...pci-object-storage/public/translations/containers/add-user/empty-user/Messages_de_DE.json
This file contains 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,5 @@ | ||
{ | ||
"pci_projects_project_storages_containers_container_empty_user_title": "Einen Nutzer zu meinem Container hinzufügen", | ||
"pci_projects_project_storages_containers_container_empty_user_description": "Sie müssen einen User erstellen und im Bereich „Object Storage User“ Object Storage Credentials generieren.", | ||
"pci_projects_project_storages_containers_container_empty_user_label": "Zu „Object Storage User“ wechseln" | ||
} |
5 changes: 5 additions & 0 deletions
5
...pci-object-storage/public/translations/containers/add-user/empty-user/Messages_en_GB.json
This file contains 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,5 @@ | ||
{ | ||
"pci_projects_project_storages_containers_container_empty_user_title": "Add a user to my container", | ||
"pci_projects_project_storages_containers_container_empty_user_description": "You need to create a user and generate Object Storage credentials in the \"Object Storage users\" section.", | ||
"pci_projects_project_storages_containers_container_empty_user_label": "Go to \"Object Storage users\"" | ||
} |
5 changes: 5 additions & 0 deletions
5
...pci-object-storage/public/translations/containers/add-user/empty-user/Messages_es_ES.json
This file contains 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,5 @@ | ||
{ | ||
"pci_projects_project_storages_containers_container_empty_user_title": "Añadir un usuario a mi contenedor", | ||
"pci_projects_project_storages_containers_container_empty_user_description": "Es necesario crear un usuario y generar claves Object Storage en la sección «Usuarios Object Storage».", | ||
"pci_projects_project_storages_containers_container_empty_user_label": "Acceder a «Usuarios Object Storage»" | ||
} |
5 changes: 5 additions & 0 deletions
5
...pci-object-storage/public/translations/containers/add-user/empty-user/Messages_fr_CA.json
This file contains 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,5 @@ | ||
{ | ||
"pci_projects_project_storages_containers_container_empty_user_title": "Ajouter un utilisateur à mon conteneur", | ||
"pci_projects_project_storages_containers_container_empty_user_description": "Vous devez créer un utilisateur et générer des crédentials Object Storage dans la section « Utilisateurs Object Storage ».", | ||
"pci_projects_project_storages_containers_container_empty_user_label": "Accéder à « Utilisateurs Object Storage »" | ||
} |
5 changes: 5 additions & 0 deletions
5
...pci-object-storage/public/translations/containers/add-user/empty-user/Messages_fr_FR.json
This file contains 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,5 @@ | ||
{ | ||
"pci_projects_project_storages_containers_container_empty_user_title": "Ajouter un utilisateur à mon conteneur", | ||
"pci_projects_project_storages_containers_container_empty_user_description": "Vous devez créer un utilisateur et générer des crédentials Object Storage dans la section « Utilisateurs Object Storage ».", | ||
"pci_projects_project_storages_containers_container_empty_user_label": "Accéder à « Utilisateurs Object Storage »" | ||
} |
5 changes: 5 additions & 0 deletions
5
...pci-object-storage/public/translations/containers/add-user/empty-user/Messages_it_IT.json
This file contains 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,5 @@ | ||
{ | ||
"pci_projects_project_storages_containers_container_empty_user_title": "Aggiungi un utente al tuo container", | ||
"pci_projects_project_storages_containers_container_empty_user_description": "È necessario creare un utente e generare le credenziali Object Storage nella sezione \"Utenti Object Storage\".", | ||
"pci_projects_project_storages_containers_container_empty_user_label": "Accedere a \"Utenti Object Storage\"" | ||
} |
5 changes: 5 additions & 0 deletions
5
...pci-object-storage/public/translations/containers/add-user/empty-user/Messages_pl_PL.json
This file contains 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,5 @@ | ||
{ | ||
"pci_projects_project_storages_containers_container_empty_user_title": "Dodaj użytkownika do kontenera", | ||
"pci_projects_project_storages_containers_container_empty_user_description": "Utwórz użytkownika i wygeneruj dane identyfikacyjne Object Storage w sekcji „Użytkownicy Object Storage”.", | ||
"pci_projects_project_storages_containers_container_empty_user_label": "Dostęp do „Użytkownicy Object Storage”" | ||
} |
5 changes: 5 additions & 0 deletions
5
...pci-object-storage/public/translations/containers/add-user/empty-user/Messages_pt_PT.json
This file contains 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,5 @@ | ||
{ | ||
"pci_projects_project_storages_containers_container_empty_user_title": "Adicionar um utilizador ao meu container", | ||
"pci_projects_project_storages_containers_container_empty_user_description": "Deve criar um utilizador e gerar credenciais Object Storage na secção «Utilizadores Object Storage».", | ||
"pci_projects_project_storages_containers_container_empty_user_label": "Aceder a «Utilizadores Object Storage»" | ||
} |
This file contains 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
54 changes: 54 additions & 0 deletions
54
...nager/apps/pci-object-storage/src/pages/objects/container/empty-users/EmptyUsers.page.tsx
This file contains 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,54 @@ | ||
import { ODS_BUTTON_VARIANT } from '@ovhcloud/ods-components'; | ||
import { OdsButton, OdsModal, OdsText } from '@ovhcloud/ods-components/react'; | ||
import { useTranslation } from 'react-i18next'; | ||
import { useNavigate, useParams, useSearchParams } from 'react-router-dom'; | ||
|
||
export default function EmptyUsers() { | ||
const { t } = useTranslation([ | ||
'containers/add-user/empty-user', | ||
'containers/add-user', | ||
]); | ||
|
||
const navigate = useNavigate(); | ||
|
||
const { objectName } = useParams(); | ||
const [searchParams] = useSearchParams(); | ||
const region = searchParams.get('region'); | ||
|
||
const onCancel = () => | ||
objectName ? navigate(`../?region=${region}`) : navigate(`..`); | ||
|
||
return ( | ||
<OdsModal onOdsClose={onCancel} isOpen> | ||
<OdsText preset="heading-3"> | ||
{t( | ||
'pci_projects_project_storages_containers_container_empty_user_title', | ||
)} | ||
</OdsText> | ||
|
||
<OdsText className="my-8"> | ||
{t( | ||
'pci_projects_project_storages_containers_container_empty_user_description', | ||
)} | ||
</OdsText> | ||
|
||
<OdsButton | ||
slot="actions" | ||
onClick={onCancel} | ||
variant={ODS_BUTTON_VARIANT.outline} | ||
label={t( | ||
'containers/add-user:pci_projects_project_storages_containers_container_addUser_cancel_label', | ||
)} | ||
/> | ||
<OdsButton | ||
slot="actions" | ||
onClick={() => | ||
objectName ? navigate(`../../users`) : navigate(`../users`) | ||
} | ||
label={t( | ||
'pci_projects_project_storages_containers_container_empty_user_label', | ||
)} | ||
/> | ||
</OdsModal> | ||
); | ||
} |
This file contains 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 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 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 |
---|---|---|
|
@@ -5852,6 +5852,23 @@ | |
tailwindcss "^3.4.4" | ||
uuid "^9.0.1" | ||
|
||
"@ovh-ux/manager-react-components@^2.5.1", "@ovh-ux/manager-react-components@^2.6.2": | ||
version "2.6.2" | ||
resolved "https://registry.yarnpkg.com/@ovh-ux/manager-react-components/-/manager-react-components-2.6.2.tgz#eb6b0db0541ec9f6f1318de3ce9d8bafd883a3cb" | ||
integrity sha512-wykxmGlYAZmdLqUB8IcKKofMubPHagETKDBMFJiCjdnTT9+manV17JQPcZYSh9geN3GjWEgLd0ZVwrAj4j1lEw== | ||
dependencies: | ||
"@babel/plugin-proposal-private-property-in-object" "^7.21.11" | ||
"@tanstack/react-query" "^5.51.21" | ||
"@tanstack/react-table" "^8.20.1" | ||
clsx "^2.1.1" | ||
lodash.isdate "^4.0.1" | ||
lodash.isequal "^4.5.0" | ||
react-i18next "^14.0.5" | ||
react-use "^17.5.0" | ||
sass "1.71.0" | ||
tailwindcss "^3.4.4" | ||
uuid "^9.0.1" | ||
|
||
"@ovh-ux/[email protected]", "@ovh-ux/manager-react-shell-client@^0.8.5": | ||
version "0.8.5" | ||
resolved "https://registry.yarnpkg.com/@ovh-ux/manager-react-shell-client/-/manager-react-shell-client-0.8.5.tgz#b391298e455dd79b0d29a2cfff38a677c8472ef6" | ||
|