From c43b8a2a251dfd4c5d432c09a653cd575884719e Mon Sep 17 00:00:00 2001 From: achraf hafedh Date: Wed, 22 Oct 2025 13:26:22 +0200 Subject: [PATCH 1/4] feat(pci-cold-archive): add button with 3 links on cold archive ref: #MANAGER-17670 Signed-off-by: achraf hafedh --- .../manager/apps/pci-cold-archive/src/constants.ts | 9 +++++++++ .../apps/pci-cold-archive/src/pages/Archive.page.tsx | 10 ++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/packages/manager/apps/pci-cold-archive/src/constants.ts b/packages/manager/apps/pci-cold-archive/src/constants.ts index 523ee8c774b5..5d2bb3b44e7b 100644 --- a/packages/manager/apps/pci-cold-archive/src/constants.ts +++ b/packages/manager/apps/pci-cold-archive/src/constants.ts @@ -376,3 +376,12 @@ export const RCLONE_GUIDE = { DE: 'https://docs.ovh.com/de/storage/object-storage/s3/rclone/', NL: 'https://docs.ovh.com/gb/en/storage/object-storage/s3/rclone/', }; + +export const CHANGELOG_LINKS = { + changelog: + 'https://github.com/orgs/ovh/projects/16/views/6?pane=info&sliceBy%5Bvalue%5D=Public+Cloud+Storage', + roadmap: + 'https://github.com/orgs/ovh/projects/16/views/1?pane=info&sliceBy%5Bvalue%5D=Public+Cloud+Storage', + 'feature-request': + 'https://github.com/ovh/public-cloud-roadmap/issues/new?assignees=&labels=&projects=&template=feature_request.md&title=', +}; diff --git a/packages/manager/apps/pci-cold-archive/src/pages/Archive.page.tsx b/packages/manager/apps/pci-cold-archive/src/pages/Archive.page.tsx index 8d4c557949c8..8d4a58fe321e 100644 --- a/packages/manager/apps/pci-cold-archive/src/pages/Archive.page.tsx +++ b/packages/manager/apps/pci-cold-archive/src/pages/Archive.page.tsx @@ -1,6 +1,7 @@ import { TabsPanel, useProject } from '@ovh-ux/manager-pci-common'; import { BaseLayout, + ChangelogButton, RedirectionGuard, useProjectUrl, } from '@ovh-ux/manager-react-components'; @@ -15,7 +16,7 @@ import { Suspense, useContext } from 'react'; import { useTranslation } from 'react-i18next'; import { Outlet, useHref } from 'react-router-dom'; import { ROUTE_PATHS } from '@/routes'; -import { CHECK_PRICES_DOC_LINK } from '@/constants'; +import { CHANGELOG_LINKS, CHECK_PRICES_DOC_LINK } from '@/constants'; import GuideMenu from '@/components/GuideMenu.component'; import { useArchives } from '@/api/hooks/useArchive'; import { useTabs } from '@/hooks/useTabs'; @@ -59,7 +60,12 @@ export default function ColdArchivePage() { } header={{ title: t('pci_projects_project_storages_cold_archive_label'), - headerButton: , + headerButton: ( +
+ + +
+ ), }} description={ (( From 36a5e02aeb2f2a099003d4555eb27d121dd72f27 Mon Sep 17 00:00:00 2001 From: Sachin Ramesh Date: Wed, 29 Oct 2025 12:38:54 +0530 Subject: [PATCH 2/4] chore(anthos): clean up unused anthos usage ref: #MANAGER-20053 Signed-off-by: Sachin Ramesh --- .../ng-ovh-otrs/src/otrs-popup/translations/Messages_de_DE.json | 1 - .../ng-ovh-otrs/src/otrs-popup/translations/Messages_en_GB.json | 1 - .../ng-ovh-otrs/src/otrs-popup/translations/Messages_es_ES.json | 1 - .../ng-ovh-otrs/src/otrs-popup/translations/Messages_fr_CA.json | 1 - .../ng-ovh-otrs/src/otrs-popup/translations/Messages_fr_FR.json | 1 - .../ng-ovh-otrs/src/otrs-popup/translations/Messages_it_IT.json | 1 - .../ng-ovh-otrs/src/otrs-popup/translations/Messages_pl_PL.json | 1 - .../ng-ovh-otrs/src/otrs-popup/translations/Messages_pt_PT.json | 1 - .../translations/server-sidebar-order/Messages_de_DE.json | 2 -- .../translations/server-sidebar-order/Messages_en_GB.json | 2 -- .../translations/server-sidebar-order/Messages_es_ES.json | 2 -- .../translations/server-sidebar-order/Messages_fr_CA.json | 1 - .../translations/server-sidebar-order/Messages_fr_FR.json | 1 - .../translations/server-sidebar-order/Messages_it_IT.json | 2 -- .../translations/server-sidebar-order/Messages_pl_PL.json | 2 -- .../translations/server-sidebar-order/Messages_pt_PT.json | 2 -- .../src/public/translations/sidebar/Messages_de_DE.json | 2 -- .../src/public/translations/sidebar/Messages_en_GB.json | 2 -- .../src/public/translations/sidebar/Messages_es_ES.json | 2 -- .../src/public/translations/sidebar/Messages_fr_CA.json | 1 - .../src/public/translations/sidebar/Messages_fr_FR.json | 1 - .../src/public/translations/sidebar/Messages_it_IT.json | 2 -- .../src/public/translations/sidebar/Messages_pl_PL.json | 2 -- .../src/public/translations/sidebar/Messages_pt_PT.json | 2 -- .../modules/billing/src/autoRenew/autorenew.constants.js | 1 - 25 files changed, 37 deletions(-) diff --git a/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_de_DE.json b/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_de_DE.json index d75f561d743c..4d5881d77b04 100644 --- a/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_de_DE.json +++ b/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_de_DE.json @@ -122,7 +122,6 @@ "otrs_service_type_webcoach": "Website Coach", "otrs_service_type_other": "Andere Anfrage", "otrs_service_type_choice": "Diensttyp:", - "otrs_service_type_dedicated_anthos": "Anthos", "otrs_service_type_license_redhat": "Red Hat-Lizenz", "otrs_service_type_nutanix": "Nutanix", "otrs_universe_choice": "Bereich:", diff --git a/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_en_GB.json b/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_en_GB.json index b00adf1cf286..4a9f53469945 100644 --- a/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_en_GB.json +++ b/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_en_GB.json @@ -122,7 +122,6 @@ "otrs_service_type_webcoach": "Website Coach", "otrs_service_type_other": "Other request", "otrs_service_type_choice": "Type of service:", - "otrs_service_type_dedicated_anthos": "Anthos", "otrs_service_type_license_redhat": "Red Hat licence", "otrs_service_type_nutanix": "Nutanix", "otrs_universe_choice": "Universe:", diff --git a/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_es_ES.json b/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_es_ES.json index 054a8e0bf7f0..c77ac5a6109a 100644 --- a/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_es_ES.json +++ b/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_es_ES.json @@ -122,7 +122,6 @@ "otrs_service_type_webcoach": "Website Coach", "otrs_service_type_other": "Otra solicitud", "otrs_service_type_choice": "Tipo de servicio:", - "otrs_service_type_dedicated_anthos": "Anthos", "otrs_service_type_license_redhat": "Licencia Red Hat", "otrs_service_type_nutanix": "Nutanix", "otrs_universe_choice": "Universo:", diff --git a/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_fr_CA.json b/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_fr_CA.json index eb7e18ce6f23..e1d3463d74b1 100644 --- a/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_fr_CA.json +++ b/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_fr_CA.json @@ -124,7 +124,6 @@ "otrs_service_type_webcoach": "Website Coach", "otrs_service_type_other": "Autre demande", "otrs_service_type_choice": "Type de service :", - "otrs_service_type_dedicated_anthos": "Anthos", "otrs_service_type_license_redhat": "Licence Red Hat", "otrs_service_type_nutanix": "Nutanix", "otrs_universe_choice": "Univers :", diff --git a/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_fr_FR.json b/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_fr_FR.json index eb7e18ce6f23..e1d3463d74b1 100644 --- a/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_fr_FR.json +++ b/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_fr_FR.json @@ -124,7 +124,6 @@ "otrs_service_type_webcoach": "Website Coach", "otrs_service_type_other": "Autre demande", "otrs_service_type_choice": "Type de service :", - "otrs_service_type_dedicated_anthos": "Anthos", "otrs_service_type_license_redhat": "Licence Red Hat", "otrs_service_type_nutanix": "Nutanix", "otrs_universe_choice": "Univers :", diff --git a/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_it_IT.json b/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_it_IT.json index 621eaf741e15..25da5b765940 100644 --- a/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_it_IT.json +++ b/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_it_IT.json @@ -122,7 +122,6 @@ "otrs_service_type_webcoach": "Website Coach", "otrs_service_type_other": "Altra richiesta", "otrs_service_type_choice": "Tipo di servizio:", - "otrs_service_type_dedicated_anthos": "Anthos", "otrs_service_type_license_redhat": "Licenza Red Hat", "otrs_service_type_nutanix": "Nutanix", "otrs_universe_choice": "Universo:", diff --git a/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_pl_PL.json b/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_pl_PL.json index 4304a5e9004a..ba9d1eb87b50 100644 --- a/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_pl_PL.json +++ b/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_pl_PL.json @@ -122,7 +122,6 @@ "otrs_service_type_webcoach": "WebSite Coach", "otrs_service_type_other": "Inne zapytanie", "otrs_service_type_choice": "Typ usługi:", - "otrs_service_type_dedicated_anthos": "Anthos", "otrs_service_type_license_redhat": "Licencja Red Hat", "otrs_service_type_nutanix": "Nutanix", "otrs_universe_choice": "Gama produktów:", diff --git a/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_pt_PT.json b/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_pt_PT.json index 4125299c7b49..6df35b97f7ed 100644 --- a/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_pt_PT.json +++ b/packages/components/ng-ovh-otrs/src/otrs-popup/translations/Messages_pt_PT.json @@ -122,7 +122,6 @@ "otrs_service_type_webcoach": "Website Coach", "otrs_service_type_other": "Outro pedido", "otrs_service_type_choice": "Tipo de serviço:", - "otrs_service_type_dedicated_anthos": "Anthos", "otrs_service_type_license_redhat": "Licença Red Hat", "otrs_service_type_nutanix": "Nutanix", "otrs_universe_choice": "Universo:", diff --git a/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_de_DE.json b/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_de_DE.json index 543717e0c9d2..a28a1a45d486 100644 --- a/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_de_DE.json +++ b/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_de_DE.json @@ -13,8 +13,6 @@ "server_sidebar_item_dedicatedServers_title": "Dedicated Server", "server_sidebar_item_managedBaremetal_title": "Managed Bare Metal", "server_sidebar_item_dedicatedClouds_title": "VMware", - "server_sidebar_item_anthos_title": "Anthos", - "server_sidebar_item_anthos_all_title": "Meine Deployments", "server_sidebar_item_networks_title": "NAS und CDN", "server_sidebar_item_licences_title": "Lizenzen", "server_sidebar_item_ip_title": "IP", diff --git a/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_en_GB.json b/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_en_GB.json index 3469f81ecda2..ea2a2333b677 100644 --- a/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_en_GB.json +++ b/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_en_GB.json @@ -13,8 +13,6 @@ "server_sidebar_item_dedicatedServers_title": "Dedicated servers", "server_sidebar_item_managedBaremetal_title": "Managed Bare Metal", "server_sidebar_item_dedicatedClouds_title": "VMware", - "server_sidebar_item_anthos_title": "Anthos", - "server_sidebar_item_anthos_all_title": "All my deployments", "server_sidebar_item_networks_title": "NAS and CDN", "server_sidebar_item_licences_title": "Licenses", "server_sidebar_item_ip_title": "IP", diff --git a/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_es_ES.json b/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_es_ES.json index 0499a8b1d1db..dbabfaa6522e 100644 --- a/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_es_ES.json +++ b/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_es_ES.json @@ -13,8 +13,6 @@ "server_sidebar_item_dedicatedServers_title": "Servidores dedicados", "server_sidebar_item_managedBaremetal_title": "Managed Bare Metal", "server_sidebar_item_dedicatedClouds_title": "VMware", - "server_sidebar_item_anthos_title": "Anthos", - "server_sidebar_item_anthos_all_title": "Todos mis despliegues", "server_sidebar_item_networks_title": "NAS y CDN", "server_sidebar_item_licences_title": "Licencias", "server_sidebar_item_ip_title": "IP", diff --git a/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_fr_CA.json b/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_fr_CA.json index 6d769f3c5cc2..419e54a87768 100644 --- a/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_fr_CA.json +++ b/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_fr_CA.json @@ -13,7 +13,6 @@ "server_sidebar_item_dedicatedServers_title": "Serveurs Dédiés", "server_sidebar_item_managedBaremetal_title": "Managed Bare Metal", "server_sidebar_item_dedicatedClouds_title": "VMware", - "server_sidebar_item_anthos_all_title": "Tous mes déploiements", "server_sidebar_item_networks_title": "NAS et CDN", "server_sidebar_item_licences_title": "Licences", "server_sidebar_item_ip_title": "IP", diff --git a/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_fr_FR.json b/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_fr_FR.json index 6d769f3c5cc2..419e54a87768 100644 --- a/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_fr_FR.json +++ b/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_fr_FR.json @@ -13,7 +13,6 @@ "server_sidebar_item_dedicatedServers_title": "Serveurs Dédiés", "server_sidebar_item_managedBaremetal_title": "Managed Bare Metal", "server_sidebar_item_dedicatedClouds_title": "VMware", - "server_sidebar_item_anthos_all_title": "Tous mes déploiements", "server_sidebar_item_networks_title": "NAS et CDN", "server_sidebar_item_licences_title": "Licences", "server_sidebar_item_ip_title": "IP", diff --git a/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_it_IT.json b/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_it_IT.json index 034133c69019..7dcf102fbf29 100644 --- a/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_it_IT.json +++ b/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_it_IT.json @@ -13,8 +13,6 @@ "server_sidebar_item_dedicatedServers_title": "Server dedicati", "server_sidebar_item_managedBaremetal_title": "Managed Bare Metal", "server_sidebar_item_dedicatedClouds_title": "VMware", - "server_sidebar_item_anthos_title": "Anthos", - "server_sidebar_item_anthos_all_title": "Tutte le tue installazioni", "server_sidebar_item_networks_title": "NAS e CDN", "server_sidebar_item_licences_title": "Licenze", "server_sidebar_item_ip_title": "IP", diff --git a/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_pl_PL.json b/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_pl_PL.json index 61e7d436d040..5632bd4e38ae 100644 --- a/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_pl_PL.json +++ b/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_pl_PL.json @@ -13,8 +13,6 @@ "server_sidebar_item_dedicatedServers_title": "Serwery dedykowane", "server_sidebar_item_managedBaremetal_title": "Managed Bare Metal", "server_sidebar_item_dedicatedClouds_title": "VMware", - "server_sidebar_item_anthos_title": "Anthos", - "server_sidebar_item_anthos_all_title": "Wszystkie moje wdrożenia", "server_sidebar_item_networks_title": "NAS i CDN", "server_sidebar_item_licences_title": "Licencje", "server_sidebar_item_ip_title": "Adres IP", diff --git a/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_pt_PT.json b/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_pt_PT.json index a2799e13f58f..342b9c4fc844 100644 --- a/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_pt_PT.json +++ b/packages/manager/apps/container/src/public/translations/server-sidebar-order/Messages_pt_PT.json @@ -13,8 +13,6 @@ "server_sidebar_item_dedicatedServers_title": "Servidores dedicados", "server_sidebar_item_managedBaremetal_title": "Managed Bare Metal", "server_sidebar_item_dedicatedClouds_title": "VMware", - "server_sidebar_item_anthos_title": "Anthos", - "server_sidebar_item_anthos_all_title": "Todas as minhas implementações", "server_sidebar_item_networks_title": "NAS e CDN", "server_sidebar_item_licences_title": "Licenças", "server_sidebar_item_ip_title": "IP", diff --git a/packages/manager/apps/container/src/public/translations/sidebar/Messages_de_DE.json b/packages/manager/apps/container/src/public/translations/sidebar/Messages_de_DE.json index b4d0f9a6ec8b..3dc9c1889804 100644 --- a/packages/manager/apps/container/src/public/translations/sidebar/Messages_de_DE.json +++ b/packages/manager/apps/container/src/public/translations/sidebar/Messages_de_DE.json @@ -16,7 +16,6 @@ "sidebar_licences": "Lizenzen", "sidebar_hpc": "Hosted Private Cloud", "sidebar_vmware": "VMware", - "sidebar_anthos": "Anthos", "sidebar_nutanix": "Nutanix", "sidebar_cluster_all": "Alle meine Cluster", "sidebar_platforms": "Plattformen", @@ -143,7 +142,6 @@ "sidebar_project_all": "Alle Projekte", "sidebar_ip_short": "IP", "sidebar_dedicated_all": "Alle meine Server", - "sidebar_anthos_all": "Meine Deployments", "sidebar_platforms_services": "Plattformen und Dienstleistungen", "sidebar_nas_cdn": "NAS und CDN", "sidebar_domain_batch": "Massenaktionen", diff --git a/packages/manager/apps/container/src/public/translations/sidebar/Messages_en_GB.json b/packages/manager/apps/container/src/public/translations/sidebar/Messages_en_GB.json index 8148e099bc9a..d0f2d0a4e9fc 100644 --- a/packages/manager/apps/container/src/public/translations/sidebar/Messages_en_GB.json +++ b/packages/manager/apps/container/src/public/translations/sidebar/Messages_en_GB.json @@ -16,7 +16,6 @@ "sidebar_licences": "Licenses", "sidebar_hpc": "Hosted Private Cloud", "sidebar_vmware": "VMware", - "sidebar_anthos": "Anthos", "sidebar_nutanix": "Nutanix", "sidebar_cluster_all": "All my clusters", "sidebar_platforms": "Platforms", @@ -143,7 +142,6 @@ "sidebar_project_all": "All projects", "sidebar_ip_short": "IP", "sidebar_dedicated_all": "All my servers", - "sidebar_anthos_all": "All my deployments", "sidebar_platforms_services": "Platforms and services", "sidebar_nas_cdn": "NAS and CDN", "sidebar_domain_batch": "Batch actions", diff --git a/packages/manager/apps/container/src/public/translations/sidebar/Messages_es_ES.json b/packages/manager/apps/container/src/public/translations/sidebar/Messages_es_ES.json index 8aaacb7cf5e9..50d27c8341e0 100644 --- a/packages/manager/apps/container/src/public/translations/sidebar/Messages_es_ES.json +++ b/packages/manager/apps/container/src/public/translations/sidebar/Messages_es_ES.json @@ -16,7 +16,6 @@ "sidebar_licences": "Licencias", "sidebar_hpc": "Hosted Private Cloud", "sidebar_vmware": "VMware", - "sidebar_anthos": "Anthos", "sidebar_nutanix": "Nutanix", "sidebar_cluster_all": "Todos mis clusters", "sidebar_platforms": "Plataformas", @@ -143,7 +142,6 @@ "sidebar_project_all": "Todos los proyectos", "sidebar_ip_short": "IP", "sidebar_dedicated_all": "Todos mis servidores", - "sidebar_anthos_all": "Todos mis despliegues", "sidebar_platforms_services": "Plataformas y servicios", "sidebar_nas_cdn": "NAS y CDN", "sidebar_domain_batch": "Acciones masivas", diff --git a/packages/manager/apps/container/src/public/translations/sidebar/Messages_fr_CA.json b/packages/manager/apps/container/src/public/translations/sidebar/Messages_fr_CA.json index f800a76c597b..05a29646d12a 100644 --- a/packages/manager/apps/container/src/public/translations/sidebar/Messages_fr_CA.json +++ b/packages/manager/apps/container/src/public/translations/sidebar/Messages_fr_CA.json @@ -35,7 +35,6 @@ "sidebar_vmware_vsphere": "Managed VMware vSphere", "sidebar_vmware_vcd": "Public VCF as-a-Service", "sidebar_vmware_all": "Tous mes services", - "sidebar_anthos_all": "Tous mes déploiements", "sidebar_nutanix": "Nutanix", "sidebar_cluster_all": "Tous mes clusters", "sidebar_platforms": "Plateformes", diff --git a/packages/manager/apps/container/src/public/translations/sidebar/Messages_fr_FR.json b/packages/manager/apps/container/src/public/translations/sidebar/Messages_fr_FR.json index f800a76c597b..05a29646d12a 100644 --- a/packages/manager/apps/container/src/public/translations/sidebar/Messages_fr_FR.json +++ b/packages/manager/apps/container/src/public/translations/sidebar/Messages_fr_FR.json @@ -35,7 +35,6 @@ "sidebar_vmware_vsphere": "Managed VMware vSphere", "sidebar_vmware_vcd": "Public VCF as-a-Service", "sidebar_vmware_all": "Tous mes services", - "sidebar_anthos_all": "Tous mes déploiements", "sidebar_nutanix": "Nutanix", "sidebar_cluster_all": "Tous mes clusters", "sidebar_platforms": "Plateformes", diff --git a/packages/manager/apps/container/src/public/translations/sidebar/Messages_it_IT.json b/packages/manager/apps/container/src/public/translations/sidebar/Messages_it_IT.json index 9fb69ee6c24d..2e7b8780f4d4 100644 --- a/packages/manager/apps/container/src/public/translations/sidebar/Messages_it_IT.json +++ b/packages/manager/apps/container/src/public/translations/sidebar/Messages_it_IT.json @@ -16,7 +16,6 @@ "sidebar_licences": "Licenze", "sidebar_hpc": "Hosted Private Cloud", "sidebar_vmware": "VMware", - "sidebar_anthos": "Anthos", "sidebar_nutanix": "Nutanix", "sidebar_cluster_all": "Tutti i tuoi cluster", "sidebar_platforms": "Piattaforme", @@ -143,7 +142,6 @@ "sidebar_project_all": "Tutti i progetti", "sidebar_ip_short": "IP", "sidebar_dedicated_all": "Tutti i tuoi server", - "sidebar_anthos_all": "Tutte le tue installazioni", "sidebar_platforms_services": "Piattaforme e servizi", "sidebar_nas_cdn": "NAS e CDN", "sidebar_domain_batch": "Azioni massive", diff --git a/packages/manager/apps/container/src/public/translations/sidebar/Messages_pl_PL.json b/packages/manager/apps/container/src/public/translations/sidebar/Messages_pl_PL.json index 418aea008ed8..36b5ee31ff68 100644 --- a/packages/manager/apps/container/src/public/translations/sidebar/Messages_pl_PL.json +++ b/packages/manager/apps/container/src/public/translations/sidebar/Messages_pl_PL.json @@ -16,7 +16,6 @@ "sidebar_licences": "Licencje", "sidebar_hpc": "Hosted Private Cloud", "sidebar_vmware": "VMware", - "sidebar_anthos": "Anthos", "sidebar_nutanix": "Nutanix", "sidebar_cluster_all": "Wszystkie moje klastry", "sidebar_platforms": "Platformy", @@ -143,7 +142,6 @@ "sidebar_project_all": "Wszystkie projekty", "sidebar_ip_short": "Adres IP", "sidebar_dedicated_all": "Wszystkie moje serwery", - "sidebar_anthos_all": "Wszystkie moje wdrożenia", "sidebar_platforms_services": "Platformy i usługi", "sidebar_nas_cdn": "NAS i CDN", "sidebar_domain_batch": "Masowe operacje", diff --git a/packages/manager/apps/container/src/public/translations/sidebar/Messages_pt_PT.json b/packages/manager/apps/container/src/public/translations/sidebar/Messages_pt_PT.json index 13c113cb8250..fb7587a7c444 100644 --- a/packages/manager/apps/container/src/public/translations/sidebar/Messages_pt_PT.json +++ b/packages/manager/apps/container/src/public/translations/sidebar/Messages_pt_PT.json @@ -17,7 +17,6 @@ "sidebar_licences": "Licenças", "sidebar_hpc": "Hosted Private Cloud", "sidebar_vmware": "VMware", - "sidebar_anthos": "Anthos", "sidebar_nutanix": "Nutanix", "sidebar_cluster_all": "Todos os meus clusters", "sidebar_platforms": "Plataformas", @@ -143,7 +142,6 @@ "sidebar_project_all": "Todos os projetos", "sidebar_ip_short": "IP", "sidebar_dedicated_all": "Todos os meus servidores", - "sidebar_anthos_all": "Todas as minhas implementações", "sidebar_platforms_services": "Plataformas e serviços", "sidebar_nas_cdn": "NAS e CDN", "sidebar_domain_batch": "Ações massivas", diff --git a/packages/manager/modules/billing/src/autoRenew/autorenew.constants.js b/packages/manager/modules/billing/src/autoRenew/autorenew.constants.js index a6a62e910774..689411598eef 100644 --- a/packages/manager/modules/billing/src/autoRenew/autorenew.constants.js +++ b/packages/manager/modules/billing/src/autoRenew/autorenew.constants.js @@ -108,7 +108,6 @@ export const SERVICE_INFOS_URLS_BY_TYPE = { CDN_DEDICATED: `/cdn/dedicated/${SERVICE_NAME_PLACEHOLDER}/serviceInfos`, CDN_WEBSITE: `/cdn/website/${SERVICE_NAME_PLACEHOLDER}/serviceInfos`, CDN_WEBSTORAGE: `/cdn/webstorage/${SERVICE_NAME_PLACEHOLDER}/serviceInfos`, - DEDICATED_ANTHOS: `/dedicated/anthos/tenants/${SERVICE_NAME_PLACEHOLDER}/serviceInfos`, DEDICATED_NAS: `/dedicated/nas/${SERVICE_NAME_PLACEHOLDER}/serviceInfos`, DEDICATED_NASHA: `/dedicated/nasha/${SERVICE_NAME_PLACEHOLDER}/serviceInfos`, DEDICATED_SERVER: `/dedicated/server/${SERVICE_NAME_PLACEHOLDER}/serviceInfos`, From 23478ba760696899b0aea7d077ea469a87e41487 Mon Sep 17 00:00:00 2001 From: Jacques Larique Date: Wed, 29 Oct 2025 15:11:31 +0100 Subject: [PATCH 3/4] fix(billing-components): put back service status on subscription tile ref: #MANAGER-20155 Signed-off-by: Jacques Larique Co-authored-by: CDS Translator Agent --- .../src/components/subscription-tile/index.js | 2 + .../subscription-tile/renew-status/index.js | 20 +++++++++ .../renew-status/renew-status.component.js | 10 +++++ .../renew-status/renew-status.constants.js | 10 +++++ .../renew-status/renew-status.controller.js | 13 ++++++ .../renew-status/renew-status.template.html | 41 +++++++++++++++++++ .../translations/Messages_de_DE.json | 13 ++++++ .../translations/Messages_en_GB.json | 13 ++++++ .../translations/Messages_es_ES.json | 13 ++++++ .../translations/Messages_fr_CA.json | 13 ++++++ .../translations/Messages_fr_FR.json | 13 ++++++ .../translations/Messages_it_IT.json | 13 ++++++ .../translations/Messages_pl_PL.json | 13 ++++++ .../translations/Messages_pt_PT.json | 13 ++++++ .../subscription-tile/subscription-tile.html | 2 +- 15 files changed, 201 insertions(+), 1 deletion(-) create mode 100644 packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/index.js create mode 100644 packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/renew-status.component.js create mode 100644 packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/renew-status.constants.js create mode 100644 packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/renew-status.controller.js create mode 100644 packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/renew-status.template.html create mode 100644 packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_de_DE.json create mode 100644 packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_en_GB.json create mode 100644 packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_es_ES.json create mode 100644 packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_fr_CA.json create mode 100644 packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_fr_FR.json create mode 100644 packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_it_IT.json create mode 100644 packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_pl_PL.json create mode 100644 packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_pt_PT.json diff --git a/packages/manager/modules/billing-components/src/components/subscription-tile/index.js b/packages/manager/modules/billing-components/src/components/subscription-tile/index.js index a8ab210d04d6..9fbc052f97a6 100644 --- a/packages/manager/modules/billing-components/src/components/subscription-tile/index.js +++ b/packages/manager/modules/billing-components/src/components/subscription-tile/index.js @@ -7,6 +7,7 @@ import '@ovh-ux/manager-core'; import '@ovh-ux/ng-at-internet'; import utils from '../utils'; +import renewStatus from './renew-status'; import component from './subscription-tile.component'; const moduleName = 'ovhManagerBillingSubscriptionTile'; @@ -20,6 +21,7 @@ angular 'oui', 'ovhManagerCore', utils, + renewStatus, ]) .component('billingSubscriptionTile', component) .run(/* @ngTranslationsInject:json ./translations */); diff --git a/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/index.js b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/index.js new file mode 100644 index 000000000000..0c5e637a1646 --- /dev/null +++ b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/index.js @@ -0,0 +1,20 @@ +import 'angular-translate'; +import '@ovh-ux/ng-translate-async-loader'; +import '@ovh-ux/ui-kit'; +import ovhManagerCore from '@ovh-ux/manager-core'; + +import component from './renew-status.component'; + +const moduleName = 'ovhManagerBillingRenewStatus'; + +angular + .module(moduleName, [ + 'pascalprecht.translate', + 'ngTranslateAsyncLoader', + 'oui', + ovhManagerCore, + ]) + .component('renewStatus', component) + .run(/* @ngTranslationsInject:json ./translations */); + +export default moduleName; diff --git a/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/renew-status.component.js b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/renew-status.component.js new file mode 100644 index 000000000000..ce42d331fd57 --- /dev/null +++ b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/renew-status.component.js @@ -0,0 +1,10 @@ +import controller from './renew-status.controller'; +import template from './renew-status.template.html'; + +export default { + bindings: { + service: '<', + }, + controller, + template, +}; diff --git a/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/renew-status.constants.js b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/renew-status.constants.js new file mode 100644 index 000000000000..d5dec9eadb83 --- /dev/null +++ b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/renew-status.constants.js @@ -0,0 +1,10 @@ +export const RENEW_STATES_BADGES_CLASSES_MAP = { + error: ['expired', 'delete_at_expiration'], + success: ['auto', 'automatic'], + warning: ['manual', 'manualPayment'], + info: ['billing_suspended', 'forced_manual'], +}; + +export default { + RENEW_STATES_BADGES_CLASSES_MAP, +}; diff --git a/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/renew-status.controller.js b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/renew-status.controller.js new file mode 100644 index 000000000000..c333013e5e0a --- /dev/null +++ b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/renew-status.controller.js @@ -0,0 +1,13 @@ +import { RENEW_STATES_BADGES_CLASSES_MAP } from './renew-status.constants'; + +export default class { + constructor() { + this.RENEW_STATES_BADGES_CLASSES_MAP = RENEW_STATES_BADGES_CLASSES_MAP; + } + + shouldHideAutorenewStatus() { + return ( + this.service.isOneShot?.() || ['SMS'].includes(this.service.serviceType) + ); + } +} diff --git a/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/renew-status.template.html b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/renew-status.template.html new file mode 100644 index 000000000000..a80605e7d53f --- /dev/null +++ b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/renew-status.template.html @@ -0,0 +1,41 @@ +

+ + + - + + + + + +

diff --git a/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_de_DE.json b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_de_DE.json new file mode 100644 index 000000000000..06384e180c30 --- /dev/null +++ b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_de_DE.json @@ -0,0 +1,13 @@ +{ + "manager_billing_service_status": "Status", + "manager_billing_service_status_auto": "Automatische Verlängerung", + "manager_billing_service_status_automatic": "Automatische Verlängerung", + "manager_billing_service_status_manual": "Manuelle Verlängerung", + "manager_billing_service_status_manualPayment": "Manuelle Verlängerung", + "manager_billing_service_status_pending_debt": "Zahlungsausfall", + "manager_billing_service_status_delete_at_expiration": "Geplante Kündigung", + "manager_billing_service_status_expired": "Gekündigt", + "manager_billing_service_status_billing_suspended": "Abrechnung verschoben", + "manager_billing_service_status_forced_manual": "Zwangsweise manuelle Verlängerung", + "manager_billing_service_status_restorable": "Wiederherstellbar" +} diff --git a/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_en_GB.json b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_en_GB.json new file mode 100644 index 000000000000..280987628cbf --- /dev/null +++ b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_en_GB.json @@ -0,0 +1,13 @@ +{ + "manager_billing_service_status": "Status", + "manager_billing_service_status_auto": "Via automatic renewal:", + "manager_billing_service_status_automatic": "Via automatic renewal:", + "manager_billing_service_status_manual": "Manual renewal", + "manager_billing_service_status_manualPayment": "Manual renewal", + "manager_billing_service_status_pending_debt": "Non-payment", + "manager_billing_service_status_delete_at_expiration": "Scheduled cancellation", + "manager_billing_service_status_expired": "Cancelled", + "manager_billing_service_status_billing_suspended": "Deferred billing", + "manager_billing_service_status_forced_manual": "Forced manual renewal", + "manager_billing_service_status_restorable": "Restorable" +} diff --git a/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_es_ES.json b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_es_ES.json new file mode 100644 index 000000000000..c8a76b9b4d3f --- /dev/null +++ b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_es_ES.json @@ -0,0 +1,13 @@ +{ + "manager_billing_service_status": "Estado", + "manager_billing_service_status_auto": "Renovación automática ", + "manager_billing_service_status_automatic": "Renovación automática ", + "manager_billing_service_status_manual": "Renovación manual", + "manager_billing_service_status_manualPayment": "Renovación manual", + "manager_billing_service_status_pending_debt": "Impago", + "manager_billing_service_status_delete_at_expiration": "Cancelación programada", + "manager_billing_service_status_expired": "Cancelado", + "manager_billing_service_status_billing_suspended": "Facturación diferida", + "manager_billing_service_status_forced_manual": "Renovación manual forzada", + "manager_billing_service_status_restorable": "Restaurable" +} diff --git a/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_fr_CA.json b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_fr_CA.json new file mode 100644 index 000000000000..94aca613ae71 --- /dev/null +++ b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_fr_CA.json @@ -0,0 +1,13 @@ +{ + "manager_billing_service_status": "Statut", + "manager_billing_service_status_auto": "Renouvellement automatique", + "manager_billing_service_status_automatic": "Renouvellement automatique", + "manager_billing_service_status_manual": "Renouvellement manuel", + "manager_billing_service_status_manualPayment": "Renouvellement manuel", + "manager_billing_service_status_pending_debt": "Défaut de paiement", + "manager_billing_service_status_delete_at_expiration": "Résiliation programmée", + "manager_billing_service_status_expired": "Résilié", + "manager_billing_service_status_billing_suspended": "Facturation reportée", + "manager_billing_service_status_forced_manual": "Renouvellement manuel forcé", + "manager_billing_service_status_restorable": "Restaurable" +} diff --git a/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_fr_FR.json b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_fr_FR.json new file mode 100644 index 000000000000..94aca613ae71 --- /dev/null +++ b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_fr_FR.json @@ -0,0 +1,13 @@ +{ + "manager_billing_service_status": "Statut", + "manager_billing_service_status_auto": "Renouvellement automatique", + "manager_billing_service_status_automatic": "Renouvellement automatique", + "manager_billing_service_status_manual": "Renouvellement manuel", + "manager_billing_service_status_manualPayment": "Renouvellement manuel", + "manager_billing_service_status_pending_debt": "Défaut de paiement", + "manager_billing_service_status_delete_at_expiration": "Résiliation programmée", + "manager_billing_service_status_expired": "Résilié", + "manager_billing_service_status_billing_suspended": "Facturation reportée", + "manager_billing_service_status_forced_manual": "Renouvellement manuel forcé", + "manager_billing_service_status_restorable": "Restaurable" +} diff --git a/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_it_IT.json b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_it_IT.json new file mode 100644 index 000000000000..ca054f01037e --- /dev/null +++ b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_it_IT.json @@ -0,0 +1,13 @@ +{ + "manager_billing_service_status": "Status", + "manager_billing_service_status_auto": "Rinnovo automatico", + "manager_billing_service_status_automatic": "Rinnovo automatico", + "manager_billing_service_status_manual": "Rinnovo manuale", + "manager_billing_service_status_manualPayment": "Rinnovo manuale", + "manager_billing_service_status_pending_debt": "Mancato pagamento", + "manager_billing_service_status_delete_at_expiration": "Cancellazione programmata", + "manager_billing_service_status_expired": "Cancellato", + "manager_billing_service_status_billing_suspended": "Fatturazione posticipata", + "manager_billing_service_status_forced_manual": "Rinnovo manuale forzato", + "manager_billing_service_status_restorable": "Ripristinabile" +} diff --git a/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_pl_PL.json b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_pl_PL.json new file mode 100644 index 000000000000..ebb235d6dfd3 --- /dev/null +++ b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_pl_PL.json @@ -0,0 +1,13 @@ +{ + "manager_billing_service_status": "Status", + "manager_billing_service_status_auto": "Automatyczne odnowienie", + "manager_billing_service_status_automatic": "Automatyczne odnowienie", + "manager_billing_service_status_manual": "Ręczne odnawianie", + "manager_billing_service_status_manualPayment": "Ręczne odnawianie", + "manager_billing_service_status_pending_debt": "Problem z płatnością", + "manager_billing_service_status_delete_at_expiration": "Zaplanowane rozwiązanie", + "manager_billing_service_status_expired": "Rozwiązany", + "manager_billing_service_status_billing_suspended": "Fakturowanie opóźnione", + "manager_billing_service_status_forced_manual": "Wymuszone ręczne odnawianie", + "manager_billing_service_status_restorable": "Możliwe do przywrócenia" +} diff --git a/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_pt_PT.json b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_pt_PT.json new file mode 100644 index 000000000000..1cc730875628 --- /dev/null +++ b/packages/manager/modules/billing-components/src/components/subscription-tile/renew-status/translations/Messages_pt_PT.json @@ -0,0 +1,13 @@ +{ + "manager_billing_service_status": "Estado", + "manager_billing_service_status_auto": "Renovação automática", + "manager_billing_service_status_automatic": "Renovação automática", + "manager_billing_service_status_manual": "Renovação manual", + "manager_billing_service_status_manualPayment": "Renovação manual", + "manager_billing_service_status_pending_debt": "Pagamento em falta", + "manager_billing_service_status_delete_at_expiration": "Rescisão programada", + "manager_billing_service_status_expired": "Rescindido", + "manager_billing_service_status_billing_suspended": "Faturação adiada", + "manager_billing_service_status_forced_manual": "Renovação manual forçada", + "manager_billing_service_status_restorable": "Restaurável" +} diff --git a/packages/manager/modules/billing-components/src/components/subscription-tile/subscription-tile.html b/packages/manager/modules/billing-components/src/components/subscription-tile/subscription-tile.html index 52ba3c72e3cc..63177ba08bfa 100644 --- a/packages/manager/modules/billing-components/src/components/subscription-tile/subscription-tile.html +++ b/packages/manager/modules/billing-components/src/components/subscription-tile/subscription-tile.html @@ -17,7 +17,7 @@

- +

From 0302eff53f1eaf2d5aa0f3ebee3f23d3aea1e3e8 Mon Sep 17 00:00:00 2001 From: Omar ALKABOUSS MOUSSANA Date: Wed, 8 Oct 2025 18:11:14 +0200 Subject: [PATCH 4/4] fix(billing): expose endstrategyenum for us region ref: #MANAGER-20013 Signed-off-by: Omar ALKABOUSS MOUSSANA --- .../src/autoRenew/autorenew.routing.js | 159 ++++++++---------- 1 file changed, 72 insertions(+), 87 deletions(-) diff --git a/packages/manager/modules/billing/src/autoRenew/autorenew.routing.js b/packages/manager/modules/billing/src/autoRenew/autorenew.routing.js index 657d0f969fa7..ec6693a5ae08 100644 --- a/packages/manager/modules/billing/src/autoRenew/autorenew.routing.js +++ b/packages/manager/modules/billing/src/autoRenew/autorenew.routing.js @@ -1,11 +1,9 @@ -import assign from 'lodash/assign'; - import { TRACKING_AUTORENEW_PAGE_NAME, TRACKING_PAGE_CATEGORY, } from './autorenew.constants'; -export default /* @ngInject */ ($stateProvider, coreConfigProvider) => { +export default /* @ngInject */ ($stateProvider) => { $stateProvider.state('billing.autorenewRedirection', { url: '/autoRenew?selectedType&pageSize&pageNumber&filters&searchText&nicBilling&sort', @@ -47,95 +45,82 @@ export default /* @ngInject */ ($stateProvider, coreConfigProvider) => { squash: true, }, }, - resolve: assign( - { - currentActiveLink: /* @ngInject */ ($state) => () => - $state.href($state.current.name, {}, { inherit: false }), - sshLink: /* @ngInject */ ($state) => - $state.href('billing.autorenew.ssh', {}, { inherit: false }), - queryParameters: /* @ngInject */ ($transition$, BillingAutoRenew) => { - if ($transition$.to()?.name === 'billing.autorenew.services') { - BillingAutoRenew.setQueryParams($transition$.params()); - } - return BillingAutoRenew.getQueryParams(); - }, - featureAvailability: /* @ngInject */ (ovhFeatureFlipping) => - ovhFeatureFlipping.checkFeatureAvailability([ - 'vrack:delete', - 'billing:management', - 'billing:autorenew2016Deployment', - 'billing:agreements', - ]), - isAgreementsAvailable: /* @ngInject */ (featureAvailability) => - featureAvailability?.isFeatureAvailable('billing:agreements') || - false, - isAutorenewManagementAvailable: /* @ngInject */ (featureAvailability) => - featureAvailability?.isFeatureAvailable('billing:management') || - false, - hideBreadcrumb: /* @ngInject */ () => true, - trackingPrefix: () => 'dedicated::account::billing::autorenew', - goToAutorenew: /* @ngInject */ ( - $state, - $timeout, - Alerter, - queryParameters, - ) => (message = false, type = 'success') => { - const reload = message && type === 'success'; + resolve: { + currentActiveLink: /* @ngInject */ ($state) => () => + $state.href($state.current.name, {}, { inherit: false }), + sshLink: /* @ngInject */ ($state) => + $state.href('billing.autorenew.ssh', {}, { inherit: false }), + queryParameters: /* @ngInject */ ($transition$, BillingAutoRenew) => { + if ($transition$.to()?.name === 'billing.autorenew.services') { + BillingAutoRenew.setQueryParams($transition$.params()); + } + return BillingAutoRenew.getQueryParams(); + }, + featureAvailability: /* @ngInject */ (ovhFeatureFlipping) => + ovhFeatureFlipping.checkFeatureAvailability([ + 'vrack:delete', + 'billing:management', + 'billing:autorenew2016Deployment', + 'billing:agreements', + ]), + isAgreementsAvailable: /* @ngInject */ (featureAvailability) => + featureAvailability?.isFeatureAvailable('billing:agreements') || false, + isAutorenewManagementAvailable: /* @ngInject */ (featureAvailability) => + featureAvailability?.isFeatureAvailable('billing:management') || false, + hideBreadcrumb: /* @ngInject */ () => true, + trackingPrefix: () => 'dedicated::account::billing::autorenew', + goToAutorenew: /* @ngInject */ ( + $state, + $timeout, + Alerter, + queryParameters, + ) => (message = false, type = 'success') => { + const reload = message && type === 'success'; - const promise = $state.go( - 'billing.autorenew', - queryParameters || {}, - { - reload, - }, - ); + const promise = $state.go('billing.autorenew', queryParameters || {}, { + reload, + }); - if (message) { - promise.then(() => - $timeout(() => Alerter.set(`alert-${type}`, message)), - ); - } + if (message) { + promise.then(() => + $timeout(() => Alerter.set(`alert-${type}`, message)), + ); + } - return promise; - }, - homeLink: /* @ngInject */ ($state, isAutorenewManagementAvailable) => { - if (isAutorenewManagementAvailable) { - return $state.href( - 'billing.autorenew.services', - {}, - { inherit: false }, - ); - } - return null; - }, - breadcrumb: /* @ngInject */ ($translate) => - $translate.instant('billing_title'), - defaultPaymentMean: /* @ngInject */ (ovhPaymentMethod) => - ovhPaymentMethod.getDefaultPaymentMethod(), - agreementsLink: /* @ngInject */ ($state, isAgreementsAvailable) => { - if (isAgreementsAvailable) { - return $state.href( - 'billing.autorenew.agreements', - {}, - { inherit: false }, - ); - } - return null; - }, + return promise; + }, + homeLink: /* @ngInject */ ($state, isAutorenewManagementAvailable) => { + if (isAutorenewManagementAvailable) { + return $state.href( + 'billing.autorenew.services', + {}, + { inherit: false }, + ); + } + return null; }, - !coreConfigProvider.isRegion('US') - ? { - endStrategyEnum: /* @ngInject */ ($http) => - $http - .get('/services.json') - .then( - ({ data }) => - data.models['services.billing.engagement.EndStrategyEnum'] - ?.enum, - ), + breadcrumb: /* @ngInject */ ($translate) => + $translate.instant('billing_title'), + defaultPaymentMean: /* @ngInject */ (ovhPaymentMethod) => + ovhPaymentMethod.getDefaultPaymentMethod(), + agreementsLink: /* @ngInject */ ($state, isAgreementsAvailable) => { + if (isAgreementsAvailable) { + return $state.href( + 'billing.autorenew.agreements', + {}, + { inherit: false }, + ); } - : {}, - ), + return null; + }, + endStrategyEnum: /* @ngInject */ ($http) => + $http + .get('/services.json') + .then( + ({ data }) => + data.models['services.billing.engagement.EndStrategyEnum']?.enum, + ), + }, atInternet: { ignore: true, },