From cf36844e25932eabb594059d6758e624166bf7db Mon Sep 17 00:00:00 2001 From: stif59100 Date: Thu, 17 Oct 2024 10:07:32 +0200 Subject: [PATCH] feat(zimbra): add ods version 18.1 ref:MANAGER-15662 Signed-off-by: stif59100 Signed-off-by: Tristan WAGNER --- .../manager-react-components/package.json | 4 +- .../content/headers/headers.stories.tsx | 2 +- .../menus/action/action.component.tsx | 29 +- .../navigation/menus/action/action.spec.tsx | 1 + .../typography/links/links.component.tsx | 22 +- packages/manager/apps/zimbra/package.json | 10 +- .../zimbra/src/components/BadgeStatus.tsx | 16 +- .../src/components/Breadcrumb/Breadcrumb.tsx | 28 +- .../ButtonTooltip/ButtonTooltip.tsx | 79 --- .../__test__/ButtonTooltip.spec.tsx | 14 - .../zimbra/src/components/DiagnosticBadge.tsx | 56 +-- .../apps/zimbra/src/components/GuideLink.tsx | 12 +- .../apps/zimbra/src/components/LabelChip.tsx | 17 +- .../zimbra/src/components/Loading/Loading.tsx | 7 +- .../zimbra/src/components/Modals/Modal.tsx | 73 +-- .../apps/zimbra/src/components/TileBlock.tsx | 35 -- .../layout-helpers/Dashboard/Dashboard.tsx | 5 +- .../layout-helpers/Dashboard/TabsPanel.tsx | 61 +-- packages/manager/apps/zimbra/src/index.scss | 12 +- .../dashboard/AutoReplies/AutoReplies.tsx | 28 +- .../Domains/ActionButtonDomain.component.tsx | 15 +- .../dashboard/Domains/AddDomain.page.tsx | 457 +++++++----------- .../src/pages/dashboard/Domains/Domains.tsx | 104 ++-- .../Domains/ModalDeleteDomain.component.tsx | 75 +-- .../ModalDiagnosticDnsRecord.component.tsx | 80 +-- .../Domains/ModalEditDomain.component.tsx | 94 ++-- .../AccountTabsPanel.component.tsx | 70 +-- .../ActionButtonAlias.component.tsx | 9 +- .../ActionButtonEmail.component.tsx | 14 +- .../AddAndEditEmailAccount.page.tsx | 8 +- .../EmailAccountSettings.page.tsx | 378 ++++++--------- .../dashboard/EmailAccounts/EmailAccounts.tsx | 128 ++--- .../EmailAccounts/EmailAccountsAlias.page.tsx | 41 +- .../EmailAccounts/ModalAddAlias.component.tsx | 126 ++--- .../ModalDeleteAlias.component.tsx | 51 +- .../ModalDeleteEmailAccount.component.tsx | 98 ++-- .../GeneralInformation/GeneralInformation.tsx | 157 +++--- .../GeneralInformation/OngoingTasks.tsx | 22 +- .../ActionButtonMailingList.component.tsx | 26 +- .../AddAndEditMailingList.page.tsx | 10 +- .../MailingLists/MailingListSettings.page.tsx | 417 ++++++---------- .../dashboard/MailingLists/MailingLists.tsx | 84 +--- .../ActionButtonOrganization.component.tsx | 16 +- .../pages/dashboard/Organizations/IdLink.tsx | 25 +- .../ModalAddAndEditOrganization.page.tsx | 193 +++----- .../ModalDeleteOrganization.component.tsx | 74 +-- .../dashboard/Organizations/Organizations.tsx | 44 +- .../ActionButtonRedirections.component.tsx | 15 +- .../ModalAddAndEditRedirections.page.tsx | 175 +++---- .../ModalDeleteRedirections.component.tsx | 44 +- .../dashboard/Redirections/Redirections.tsx | 30 +- yarn.lock | 54 +-- 52 files changed, 1369 insertions(+), 2276 deletions(-) delete mode 100644 packages/manager/apps/zimbra/src/components/ButtonTooltip/ButtonTooltip.tsx delete mode 100644 packages/manager/apps/zimbra/src/components/ButtonTooltip/__test__/ButtonTooltip.spec.tsx delete mode 100644 packages/manager/apps/zimbra/src/components/TileBlock.tsx diff --git a/packages/manager-react-components/package.json b/packages/manager-react-components/package.json index 518ce5769f99..8ecf86effdc4 100644 --- a/packages/manager-react-components/package.json +++ b/packages/manager-react-components/package.json @@ -28,8 +28,8 @@ "@babel/plugin-proposal-private-property-in-object": "^7.21.11", "@ovh-ux/manager-core-api": "^0.8.0", "@ovh-ux/manager-react-shell-client": "^0.7.2", - "@ovhcloud/ods-components": "18.0.0", - "@ovhcloud/ods-themes": "18.0.0", + "@ovhcloud/ods-components": "18.1.0", + "@ovhcloud/ods-themes": "18.1.0", "@tanstack/react-query": "^5.51.21", "@tanstack/react-table": "^8.20.1", "@types/lodash.isdate": "^4.0.9", diff --git a/packages/manager-react-components/src/components/content/headers/headers.stories.tsx b/packages/manager-react-components/src/components/content/headers/headers.stories.tsx index 138d77884259..f246832d6acb 100644 --- a/packages/manager-react-components/src/components/content/headers/headers.stories.tsx +++ b/packages/manager-react-components/src/components/content/headers/headers.stories.tsx @@ -46,7 +46,7 @@ const guideItems = [ const HeadingWithActionButton: HeadersProps = { title: 'Example for header with actions ', description: 'description for header', - headerButton: , + headerButton: , }; const HeadingWithGuideButton: HeadersProps = { title: 'Example for header with guides', diff --git a/packages/manager-react-components/src/components/navigation/menus/action/action.component.tsx b/packages/manager-react-components/src/components/navigation/menus/action/action.component.tsx index 4635bd86b908..e216ab9ddb2a 100644 --- a/packages/manager-react-components/src/components/navigation/menus/action/action.component.tsx +++ b/packages/manager-react-components/src/components/navigation/menus/action/action.component.tsx @@ -14,12 +14,11 @@ export interface ActionMenuItem { id: number; rel?: string; download?: string; - href?: string; target?: string; onClick?: () => void; label: string; variant?: ODS_BUTTON_VARIANT; - disabled?: boolean; + isDisabled?: boolean; iamActions?: string[]; urn?: string; } @@ -29,7 +28,8 @@ export interface ActionMenuProps { isCompact?: boolean; icon?: ODS_ICON_NAME; variant?: ODS_BUTTON_VARIANT; - disabled?: boolean; + isDisabled?: boolean; + id: string; } const MenuItem = ({ @@ -52,7 +52,7 @@ const MenuItem = ({ {!item?.iamActions || item?.iamActions?.length === 0 ? ( @@ -66,7 +66,7 @@ const MenuItem = ({ iamActions={item.iamActions} urn={item.urn} {...buttonProps} - isDisabled={buttonProps.disabled || undefined} + isDisabled={buttonProps.isDisabled || undefined} > {item.label} @@ -82,19 +82,21 @@ export const ActionMenu: React.FC = ({ isCompact, icon, variant = ODS_BUTTON_VARIANT.outline, - disabled, + isDisabled, + id, }) => { const { t } = useTranslation('buttons'); const [isTrigger, setIsTrigger] = React.useState(false); return ( <> -