Skip to content
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

New release #14233

Merged
merged 25 commits into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
cd24263
fix(i18n): add missing translations [CDS 3501]
rjamet-ovh Nov 22, 2024
d78ddd9
fix(i18n): add missing translations [CDS 3503]
rjamet-ovh Nov 23, 2024
9473f41
merge: pull request #14214 from ovh/master
anooparveti Nov 25, 2024
246a13e
sync: master to develop
ovh-ux-cds Nov 25, 2024
94b6c21
sync: master to develop
ovh-ux-cds Nov 25, 2024
2a76415
sync: master to develop
ovh-ux-cds Nov 25, 2024
af9131f
sync: master to develop
ovh-ux-cds Nov 25, 2024
6846968
fix: remove unused translations [CDS]
ovh-ux-cds Nov 26, 2024
04336b9
build(component-rollup-config): bump rollup to v2
anooparveti Oct 22, 2024
f2f249b
sync: master to develop
ovh-ux-cds Nov 26, 2024
9581bbc
sync: master to develop
ovh-ux-cds Nov 26, 2024
d958260
sync: master to develop
ovh-ux-cds Nov 26, 2024
c03894f
sync: master to develop
ovh-ux-cds Nov 26, 2024
2ac67ee
sync: master to develop
ovh-ux-cds Nov 27, 2024
3bdb879
sync: master to develop
ovh-ux-cds Nov 27, 2024
969e267
feat(manager-pci-common): add get instances by region (#14188)
SimonChaumet Nov 27, 2024
7180417
fix(i18n): add missing translations [CDS 3514]
SimonChaumet Nov 27, 2024
8d25a03
sync: master to develop
ovh-ux-cds Nov 27, 2024
b55369d
docs(mrc): update changelog
anooparveti Nov 27, 2024
8027456
test(mrc): ensure useAuthorizationIam query option enabled is a boole…
JacquesLarique Nov 28, 2024
f3514bf
fix(i18n): add missing translations [CDS 3520]
JacquesLarique Nov 28, 2024
8f12e1d
sync: master to develop
ovh-ux-cds Nov 28, 2024
b555de2
feat(ovh-at-internet): added custom property goal_type (#14258)
JacquesLarique Nov 28, 2024
e965bd0
feat(*): disable CTA payment for VCD/VEEAM offer in my services page …
darsene Nov 28, 2024
b294310
sync: master to develop
ovh-ux-cds Nov 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/components/ovh-at-internet/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const AT_INTERNET_CUSTOM_PROPS: Record<string, string> = {
accountPhoneType: 'account_phone_type',
accountcreationSiretProvided: 'accountcreation_siret_provided',
pciProjectMode: 'pci_project_mode',
goalType: 'goal_type',
};

export const TMS_SCRIPT_URL = 'https://analytics.ovh.com/ovh/ovh_manager.js';
Expand Down
64 changes: 61 additions & 3 deletions packages/manager-react-components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,78 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.4.0](https://github.com/ovh/manager/compare/@ovh-ux/[email protected]...@ovh-ux/[email protected]) (2024-11-27)

### Bug Fixes

- **mrc:** datagrid no results should be centered ([#14202](https://github.com/ovh/manager/issues/14202)) ([
5eec121](https://github.com/ovh/manager/commit/5eec12134b6e6fcfafeb9806be150ca6285257df))
- **manager-react-components:** sync with v1.x ([#14170](https://github.com/ovh/manager/issues/14170)) ([ce3d1dd](https://github.com/ovh/manager/commit/ce3d1dd9b6926a2218d6add4edfa0c602475a067))

### Features

- switch link button and cta ([#14270](https://github.com/ovh/manager/issues/14270)) ([633e8a2](https://github.com/ovh/manager/commit/633e8a2a83c2c547fa785bf50604dc53966038c5))
- **mrc:** uniformize confirm button label on delete modal ([#14293](https://github.com/ovh/manager/issues/14293)) ([2c6ce3d](https://github.com/ovh/manager/commit/2c6ce3d20e13711b6b0a216afb88e5952a36316e))

# [1.43.0](https://github.com/ovh/manager/compare/@ovh-ux/[email protected]...@ovh-ux/[email protected]) (2024-11-27)

### Bug Fixes

- **mrc:** datagrid no results should be centered ([#14251](https://github.com/ovh/manager/issues/14251)) ([df12a90](https://github.com/ovh/manager/commit/df12a9093116679af3a7cf95d843d65e335c9a00))
- **mrc:** ensure useAuthorizationIam query option enabled is a boolean ([#14273](https://github.com/ovh/manager/issues/14273)) ([3eade54](https://github.com/ovh/manager/commit/3eade547872cecc27d8f545df7fc63205b1cad92))

### Features

- **mrc:** uniformize confirm button label on delete modal ([#14294](https://github.com/ovh/manager/issues/14294)) ([dd1a6a9](https://github.com/ovh/manager/commit/dd1a6a9f86a4d2aeae52899d63d0f257a803cb7e))
- switch link button and cta ([#14272](https://github.com/ovh/manager/issues/14272)) ([243f5f0](https://github.com/ovh/manager/commit/243f5f011420feb3c87c76bef90a70da7bf03dc4))

# [2.3.0](https://github.com/ovh/manager/compare/@ovh-ux/[email protected]...@ovh-ux/[email protected]) (2024-11-21)

### Bug Fixes

- **manager-components:** add guide onclick callback ([#14193](https://github.com/ovh/manager/issues/14193)) ([8019676](https://github.com/ovh/manager/commit/80196764298cf3c9ae2c102e4b321f0ac6f4460c))
- **mrc:** icon actionmenu compact ellipsisvertical ([#14176](https://github.com/ovh/manager/issues/14176)) ([7a3f02a](https://github.com/ovh/manager/commit/7a3f02acc8bd3199767ecc596e213b75b3fefa45))
- **pci.project:** update continent for Rabat ([#13105](https://github.com/ovh/manager/issues/13105)) ([6818e73](https://github.com/ovh/manager/commit/6818e73fd9632fecd023010019e647c97c8507f4))

### Features

- **manager-components:** disable update name button if no change ([#13808](https://github.com/ovh/manager/issues/13808)) ([7ce27f3](https://github.com/ovh/manager/commit/7ce27f3713c808d288ce28db5a1befbbe099678c))
- **hycu:** add activate license modal ([95e0ad7](https://github.com/ovh/manager/commit/95e0ad7d645afacd97b5ec9939898da51c5b0fc2))

# [1.42.0](https://github.com/ovh/manager/compare/@ovh-ux/[email protected]...@ovh-ux/[email protected]) (2024-11-21)

### Bug Fixes

## [1.41.1](https://github.com/ovh/manager/compare/@ovh-ux/[email protected]...@ovh-ux/[email protected]) (2024-11-13)
- **manager-components:** add guide onclick callback ([#13859](https://github.com/ovh/manager/issues/13859)) ([93bb059](https://github.com/ovh/manager/commit/93bb05931f77978d22496313c75e80c8f7fbf71d))
- **manager-react-components:** add convertHourlyPriceToMonthly method ([#14121](https://github.com/ovh/manager/issues/14121)) ([d007719](https://github.com/ovh/manager/commit/d00771960fbaaea11b709a0e412ed3b96b8419b5))

### Features

- **manager-components:** disable update name button if no change ([#14169](https://github.com/ovh/manager/issues/14169)) ([857c7da](https://github.com/ovh/manager/commit/857c7daae363a93e351ddcc83ca6b76106d2ba4d))

# [2.2.0](https://github.com/ovh/manager/compare/@ovh-ux/[email protected]...@ovh-ux/[email protected]) (2024-11-15)

## Features

- **manager-react-components:** bump ods version 18.3.0 ([#14080](https://github.com/ovh/manager/issues/14080)) ([040237b](https://github.com/ovh/manager/commit/040237b6b436b9c1e5b76c9fed3076102aee3c1e))

# [1.41.2](https://github.com/ovh/manager/compare/@ovh-ux/[email protected]...@ovh-ux/[email protected]) (2024-11-14)

### Bug Fixes

- **manager-react-components**new trad for continent container (#14095) ([#14095](https://github.com/ovh/manager/pull/14095)) ([c3447fc](https://github.com/ovh/manager/commit/c3447fc85eece49a494745be935e1ebe01e62ab7))
- **manager-react-components**useCatalogPrice ([#14056](https://github.com/ovh/manager/pull/14056)) ([744965e5](https://github.com/ovh/manager/commit/74965e5c096dba555e9ec59b47716bd8e562733b))
- **manager-react-components**useNotifications prevent early clears ([#14056](https://github.com/ovh/manager/pull/14056)) ([8816453](https://github.com/ovh/manager/commit/881645356019834987bdd43af05cb25b0b5a638a))
- **manager-react-components**add skip to StepComponent ([#14056](https://github.com/ovh/manager/pull/14056)) ([52a71a4](https://github.com/ovh/manager/commit/52a71a438a54b6e470c9821610710b6ef7ea211f))
- add missing translations [CDS 3468] (#14095) ([#14021](https://github.com/ovh/manager/pull/14021)) ([455aa34](https://github.com/ovh/manager/commit/455aa34f6d0331040e64ce640d29c5b6d361aef3))

# [2.1.0](https://github.com/ovh/manager/compare/@ovh-ux/[email protected]...@ovh-ux/[email protected]) (2024-11-13)

### BREAKING CHANGES

- **manager-react-components:** bump ODS V18 ([#14035](https://github.com/ovh/manager/issues/14035)) ([377f420](https://github.com/ovh/manager/commit/377f4206c7e9a4f43aec27b25a1a617e62aa5dba))

# [1.41.1](https://github.com/ovh/manager/compare/@ovh-ux/[email protected]...@ovh-ux/[email protected]) (2024-11-13)

**Note:** Version bump only for package @ovh-ux/manager-react-components

Expand Down Expand Up @@ -157,8 +217,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

- **manager-react-components:** update manager react version

Signed-off-by: Alex Boungnaseng <[email protected]>

# [3.0.0](https://github.com/ovh/manager/compare/@ovh-ux/[email protected]...@ovh-ux/[email protected]) (2024-10-11)

### Bug Fixes
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
import { renderHook } from '@testing-library/react';
import { vi } from 'vitest';
import { QueryClientProvider, QueryClient } from '@tanstack/react-query';
import {
ShellContext,
ShellContextType,
} from '@ovh-ux/manager-react-shell-client';
import { getAuthorizationCheckUrl, useAuthorizationIam } from './useOvhIam';

const shellContext = {
environment: {
getUser: () => ({ ovhSubsidiary: 'mocked_ovhSubsidiary' }),
},
shell: {
navigation: {
getURL: vi.fn(),
},
},
};

const queryClient = new QueryClient();
const wrapper = ({ children }) => (
<QueryClientProvider client={queryClient}>
<ShellContext.Provider value={shellContext as unknown as ShellContextType}>
{children}
</ShellContext.Provider>
</QueryClientProvider>
);

vi.mock('@ovh-ux/manager-core-api', () => ({
apiClient: {
v2: {
get: vi.fn(),
},
},
}));

describe('getAuthorizationCheckUrl', () => {
it('encodes the urn if it contains /', () => {
expect(getAuthorizationCheckUrl('test/urn')).toBe(
'/iam/resource/test%2Furn/authorization/check',
);
});
});

describe('useAuthorizationIam', () => {
it('should not fetch data if urn is nil', () => {
const { result } = renderHook(
() => useAuthorizationIam(['test'], undefined),
{
wrapper,
},
);
expect(result.current?.isFetching).toBe(false);
});
it('should not fetch data if actions is nil', () => {
const { result } = renderHook(() => useAuthorizationIam(undefined, 'urn'), {
wrapper,
});
expect(result.current?.isFetching).toBe(false);
});
it('should fetch data if both actions and urn are not nil', () => {
const { result } = renderHook(() => useAuthorizationIam(['test'], 'urn'), {
wrapper,
});
expect(result.current?.isFetching).toBe(true);
});
});
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"dedicatedCloud_managed_vcd_migration_pending_warning": "Achtung: Laufende Migration! Die Änderungen an Ihrem Dienst werden nicht übernommen.",
"dedicatedCloud_managed_vcd_migrated": "Ihre Hosted Private Cloud Lösung wurde oder wird derzeit zu VMware Cloud Director migriert. Auf dieser Seite können Sie Ihre öffentlichen IP-Blöcke verwalten (Bestellung eines neuen Blocks, Neuzuweisung eines bestehenden Blocks zu einem anderen Dienst), die derzeit Ihrem Hosted Private Cloud Dienst zugeteilt und mit Ihrem VMware Cloud Director Dienst verbunden sind. Diese Situation ist vorübergehend und endet, sobald Ihre öffentlichen IP-Blöcke automatisch mit Ihrem VMware Cloud Director Dienst verknüpft wurden.",
"dedicatedCloud_pcc_to_migrate": "Um zum neuen VCD (VMware Cloud Director) Angebot migriert zu werden, akzeptieren Sie bitte die neuesten Allgemeinen Geschäftsbedingungen von VMware Cloud Director in Ihrem OVH Control Panel vor dem 14. Januar."
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"dedicatedCloud_managed_vcd_migration_pending_warning": "Warning: migration in progress, any changes made to your service will not be taken into account",
"dedicatedCloud_managed_vcd_migrated": "Your Hosted Private Cloud solution has either been migrated or is currently being migrated to VMware Cloud Director. You can use this page to manage the public IP blocks (order a new block, reassign an existing block to another service) currently linked to your Hosted Private Cloud service and connected to your VMware Cloud Director service. This is temporary and will change once your public IP blocks have been linked to your VMware Cloud Director service.",
"dedicatedCloud_pcc_to_migrate": "To be migrated to the new VMware Cloud Director (VCD) solution, please accept the latest VMware Cloud Director terms and conditions in your OVH Control Panel before 14th January."
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"dedicatedCloud_managed_vcd_migration_pending_warning": "Atención, migración en curso: los cambios de su servicio no se tendrán en cuenta.",
"dedicatedCloud_managed_vcd_migrated": "Su solución Hosted Private Cloud ha sido migrada o está siendo migrada a VMware Cloud Director. Desde esta página puede gestionar los bloques de IP públicas (contratación de un nuevo bloque, reasignación de un bloque existente hacia otro servicio) que estén asociados a su servicio Hosted Private Cloud y conectados a su servicio VMware Cloud Director. Esta situación es temporal y finalizará cuando los bloques de IP públicas se hayan asociado automáticamente a su servicio VMware Cloud Director.",
"dedicatedCloud_pcc_to_migrate": "Para migrar a la nueva oferta VCD (VMware Cloud Director), acepte las últimas condiciones generales de VMware Cloud Director en su panel de control de OVH antes del 14 de enero."
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"dedicatedCloud_managed_vcd_migration_pending_warning": "Attenzione, migrazione in corso: le modifiche del tuo servizio non verranno applicate.",
"dedicatedCloud_managed_vcd_migrated": "La tua soluzione Hosted Private Cloud è stata migrata o è in fase di migrazione verso VMware Cloud Director. Questa pagina ti permette di gestire i blocchi IP pubblici (ordine di un nuovo blocco, riassegnazione di un blocco esistente verso un altro servizio) attualmente associati al tuo servizio Hosted Private Cloud e connessi al servizio VMware Cloud Director. Questa situazione è temporanea e terminerà quando i blocchi IP pubblici verranno associati automaticamente al tuo servizio VMware Cloud Director.",
"dedicatedCloud_pcc_to_migrate": "Per passare alla nuova soluzione VCD (VMware Cloud Director), accetta le ultime condizioni generali di VMware Cloud Director nel pannello di controllo OVH entro il 14 gennaio."
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"dedicatedCloud_managed_vcd_migration_pending_warning": "Uwaga: trwa migracja - zmiany wprowadzone w usłudze nie zostaną uwzględnione",
"dedicatedCloud_managed_vcd_migrated": "Rozwiązanie Hosted Private Cloud zostało migrowane lub trwa jego migracja do VMware Cloud Director. Ta strona umożliwia zarządzanie publicznymi blokami IP (zamówienie nowego bloku, ponowne przypisanie istniejącego bloku do innej usługi), które są aktualnie powiązane z usługą Hosted Private Cloud i połączone z usługą VMware Cloud Director. Sytuacja ta jest tymczasowa i ustanie, kiedy publiczne bloki IP zostaną automatycznie powiązane z Twoją usługą VMware Cloud Director.",
"dedicatedCloud_pcc_to_migrate": "Aby przejść na nową ofertę VCD (VMware Cloud Director), należy przed 14 stycznia zaakceptować najnowsze warunki korzystania z VMware Cloud Director w panelu administracyjnym OVH."
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"dedicatedCloud_managed_vcd_migration_pending_warning": "Atenção, migração em curso: as modificações do seu serviço não serão efetuadas",
"dedicatedCloud_managed_vcd_migrated": "A sua solução Hosted Private Cloud foi migrada ou está em curso de migração para o VMware Cloud Diretor. Esta página permite-lhe gerir os seus blocos de endereços IP públicos (encomenda de um novo bloco, reatribuição de um bloco existente para outro serviço) que estão atualmente associados ao seu serviço Hosted Private Cloud e ligados ao seu serviço VMware Cloud Diretor. Esta situação é temporária e terminará quando os blocos de endereços IP públicos tiverem sido automaticamente associados ao serviço VMware Cloud Diretor.",
"dedicatedCloud_pcc_to_migrate": "Para ser migrado para a nova oferta VCD (VMware Cloud Diretor), aceite as condições gerais mais recentes do VMware Cloud Diretor no painel de controlo da OVH antes de 14 de Janeiro."
}
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,6 @@
"server_configuration_installation_form_option": "Installationsoptionen:",
"server_configuration_installation_form_gabaritNameSave": "Name des Templates:",
"server_configuration_installation_form_gabaritNameSave_pattern": "Ungültiges Format.",
"server_configuration_installation_form_customHostname": "Hostname:",
"server_configuration_installation_form_customHostname_pattern": "Ungültiges Format.",
"server_configuration_installation_form_useSpla": "SPLA-Lizenz verwenden",
"server_configuration_installation_form_ssh": "SSH-Schlüssel:",
"server_configuration_installation_form_ssh_fail": "SSH-Schlüssel können nicht angezeigt werden",
Expand Down Expand Up @@ -894,4 +892,4 @@
"server_nutanix_cluster_node_warning_1": "Dieser Dedicated Server ist Teil des Nutanix-Clusters: {{clusterName}}",
"server_nutanix_cluster_node_warning_2": "Wir empfehlen Ihnen, Ihre Konfiguration direkt im Dashboard des Servers zu bearbeiten, der mit Ihrem Nutanix-Cluster verbunden ist. Zum Dashboard: {{clusterNodeDashboardLink}}",
"server_nutanix_cluster_node_warning_3": "Alle mit diesem Server verbundenen Abrechnungen sehen Sie in Ihrem Nutanix-Cluster: {{clusterDashboardLink}}"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,6 @@
"server_configuration_installation_form_option": "Installation options:",
"server_configuration_installation_form_gabaritNameSave": "Template name:",
"server_configuration_installation_form_gabaritNameSave_pattern": "Invalid format.",
"server_configuration_installation_form_customHostname": "Host name:",
"server_configuration_installation_form_customHostname_pattern": "Invalid format.",
"server_configuration_installation_form_useSpla": "Use SPLA licence ",
"server_configuration_installation_form_ssh": "SSH keys:",
"server_configuration_installation_form_ssh_fail": "Unable to display your SSH keys",
Expand Down Expand Up @@ -894,4 +892,4 @@
"server_nutanix_cluster_node_warning_1": "This dedicated server is part of a Nutanix cluster: {{clusterName}}.",
"server_nutanix_cluster_node_warning_2": "We recommend making all of the configuration changes directly in the dashboard of the server linked to your Nutanix cluster: {{clusterNodeDashboardLink}}",
"server_nutanix_cluster_node_warning_3": "All billing actions linked to this server are visible on your Nutanix cluster: {{clusterDashboardLink}}"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,6 @@
"server_configuration_installation_form_option": "Opciones de instalación:",
"server_configuration_installation_form_gabaritNameSave": "Nombre de la plantilla:",
"server_configuration_installation_form_gabaritNameSave_pattern": "Formato no válido",
"server_configuration_installation_form_customHostname": "Hostname:",
"server_configuration_installation_form_customHostname_pattern": "Formato no válido",
"server_configuration_installation_form_useSpla": "Utilizar licencia SPLA",
"server_configuration_installation_form_ssh": "Llaves SSH:",
"server_configuration_installation_form_ssh_fail": "No se han podido mostrar las llaves SSH.",
Expand Down Expand Up @@ -894,4 +892,4 @@
"server_nutanix_cluster_node_warning_1": "Este servidor dedicado forma parte de un cluster Nutanix: {{clusterName}}.",
"server_nutanix_cluster_node_warning_2": "Le recomendamos que realice las modificaciones de configuración directamente desde el panel de control del servidor asociado a su cluster Nutanix: {{clusterNodeDashboardLink}}",
"server_nutanix_cluster_node_warning_3": "Puede consultar todas las acciones de facturación asociadas a este servidor en su cluster Nutanix: {{clusterDashboardLink}}"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,6 @@
"server_configuration_installation_form_option": "Options d'installation :",
"server_configuration_installation_form_gabaritNameSave": "Nom du gabarit :",
"server_configuration_installation_form_gabaritNameSave_pattern": "Format invalide.",
"server_configuration_installation_form_customHostname": "Hostname :",
"server_configuration_installation_form_customHostname_pattern": "Format invalide.",
"server_configuration_installation_form_useSpla": "Utiliser licence SPLA",
"server_configuration_installation_form_ssh": "Clés ssh :",
"server_configuration_installation_form_ssh_fail": "Impossible d'afficher vos clés ssh",
Expand Down Expand Up @@ -894,4 +892,4 @@
"server_nutanix_cluster_node_warning_1": "Ce serveur dédié fait partie d'un cluster Nutanix : {{clusterName}}.",
"server_nutanix_cluster_node_warning_2": "Nous vous recommandons d'effectuer tous vos changements de configuration directement dans le tableau de bord du serveur lié à votre cluster Nutanix : {{clusterNodeDashboardLink}}",
"server_nutanix_cluster_node_warning_3": "Toutes les actions de facturation liées à ce serveur sont visibles sur votre cluster Nutanix : {{clusterDashboardLink}}"
}
}
Loading
Loading