Skip to content

Commit

Permalink
fix(manager-react-components): fix bump ods 18 issues
Browse files Browse the repository at this point in the history
ref: MANAGER-14622

Signed-off-by: Alex Boungnaseng <[email protected]>
  • Loading branch information
aboungnaseng-ovhcloud committed Oct 10, 2024
1 parent d8e869f commit 1401539
Show file tree
Hide file tree
Showing 14 changed files with 71 additions and 336 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { OdsButton, OdsIcon, OdsSpinner } from '@ovhcloud/ods-components/react';
import { v4 as uuidV4 } from 'uuid';
import {
ODS_BUTTON_SIZE,
ODS_BUTTON_VARIANT,
ODS_ICON_NAME,
ODS_SPINNER_SIZE,
} from '@ovhcloud/ods-components';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { fireEvent, screen } from '@testing-library/react';
import { fireEvent } from '@testing-library/react';
import { GuidesHeader, GuidesHeaderProps } from './guides-header.component';
import { render } from '../../utils/test.provider';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const BaseLayout = ({
</div>
)}
{backLinkLabel && (onClickReturn || hrefPrevious) && (
<div className="mb-[24px]">
<div className="mb-[16px]">
<Links
data-testid="manager-back-link"
onClickReturn={onClickReturn}
Expand All @@ -50,11 +50,11 @@ export const BaseLayout = ({
</div>
)}
{description && (
<OdsText className="mb-[24px]" preset="span">
<OdsText className="mb-[16px]" preset="span">
{description}
</OdsText>
)}
{message && <div className="mb-8">{message}</div>}
{message && <div className="mb-5 max-w-[800px]">{message}</div>}
{subtitle && <Subtitle className="block mb-6">{subtitle}</Subtitle>}
{subDescription && <OdsText preset="span">{subDescription}</OdsText>}
<div className="mb-6">{tabs}</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ const dashboardTemplateProps = {
title: 'Vrack Services',
headerButton: <GuideButton items={guideItems} />,
},
subtitle: '',
backLinkLabel: 'Retour à la XXX',
onClickReturn: () => {
console.log('back link click');
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export const OnboardingLayout: React.FC<OnboardingLayoutProps> = ({
{(img?.src || placeholderSrc) && (
<div className="flex justify-center pt-8 max-h-28 w-full">
<img
{...imgProps}
className="max-h-[150px]"
src={img?.src ?? placeholderSrc}
alt=""
Expand Down

This file was deleted.

This file was deleted.

23 changes: 23 additions & 0 deletions packages/manager-react-components/src/enumTypes/playwright.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
export type Handler<T = any> = {
url: string;
response?: T;
headers?: HeadersInit;
statusText?: string;
type?: ResponseType;
responseText?: string;
delay?: number;
method?:
| 'get'
| 'post'
| 'put'
| 'delete'
| 'all'
| 'head'
| 'options'
| 'patch';
status?: number;
api?: 'v2' | 'v6' | 'aapi' | 'ws';
baseUrl?: string;
disabled?: boolean;
once?: boolean;
};
1 change: 1 addition & 0 deletions packages/manager/apps/container/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"@ovh-ux/manager-config": "^7.4.0",
"@ovh-ux/manager-core-api": "^0.8.0",
"@ovh-ux/manager-react-components": "^1.37.0",
"@ovh-ux/manager-react-shell-client": "^0.7.2",
"@ovh-ux/manager-vite-config": "^0.8.0",
"@ovh-ux/ovh-payment-method": "^0.5.0",
"@ovh-ux/ovh-product-icons": "^0.6.0",
Expand Down
Loading

0 comments on commit 1401539

Please sign in to comment.