Skip to content

Commit 0316238

Browse files
chipp972qpavyovh-cds
authored
feat(dedicated): vrack services microapp (#10924)
ref: MANAGER-11827 Signed-off-by: Nicolas Pierre-charles <[email protected]> Co-authored-by: Quentin Pavy <[email protected]> Co-authored-by: CDS Translator Agent <[email protected]>
1 parent 8262c05 commit 0316238

File tree

524 files changed

+32086
-2024
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

524 files changed

+32086
-2024
lines changed

.eslintrc.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = {
2323
'prettier/prettier': 'warn',
2424
'import/extensions': 'off',
2525
'import/no-cycle': 'off',
26-
'import/prefer-default-export': 'off'
26+
'import/prefer-default-export': 'off',
2727
},
2828
ignorePatterns: [
2929
'**/vendor/**',
@@ -101,11 +101,14 @@ module.exports = {
101101
},
102102
},
103103
{
104-
files: ['*.test.ts'],
104+
files: ['*.test.ts', '*.step.ts', '*.spec.ts'],
105105
extends: [
106106
'plugin:@typescript-eslint/eslint-recommended',
107107
'plugin:@typescript-eslint/recommended',
108108
],
109+
rules: {
110+
'func-names': 'off',
111+
},
109112
env: {
110113
mocha: true,
111114
node: true,

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@
1313
# React Stack
1414
*.jsx @ovh/team-manager-transfo @ovh/su-digital-tools-core-stack
1515
*.tsx @ovh/team-manager-transfo @ovh/su-digital-tools-core-stack
16+
/playwright-helpers/ @ovh/team-manager-transfo
1617

1718
# Continuous Integration and scripts
1819
.github/workflows @ovh/su-digital-tools-core-service-delivery
1920
.nvmrc @ovh/su-digital-tools-core-service-delivery
2021
/scripts/ @ovh/su-digital-tools-core-service-delivery
2122
/scripts/start-application.js @ovh/team-manager-dev
2223
/scripts/run-playwright.js @ovh/team-manager-transfo
24+
/scripts/run-playwright-bdd.js @ovh/team-manager-transfo
25+
/scripts/.env.development @ovh/team-manager-transfo

.sonarcloud.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sonar.sourceEncoding=UTF-8
99
sonar.ws.timeout=60
1010
sonar.projectVersion=silicon-hyena
1111

12-
sonar.exclusions=node_modules/**, **/node_modules/**, **/dist/**, **/semantic/**, **/coverage/**, **/static/**
12+
sonar.exclusions=node_modules/**, **/node_modules/**, **/dist/**, **/semantic/**, **/coverage/**, **/static/**, **/mock/**, **/mockServiceWorker.js
1313
sonar.coverage.exclusions=**/*.spec.js
1414
sonar.cpd.exclusions=**/index.js, **/module.js, **/*.module.js, **/routing.js, **/*.routing.js, **/routes.js, **/*.routes.js, **/rollup.config.js, **/webpack.config.js
1515

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"resolutions": {
4949
"@babel/runtime": "7.22.15",
5050
"@rollup/plugin-commonjs": "11.0.2",
51+
"@types/react": "18.2.55",
5152
"@uirouter/angularjs": "1.0.23",
5253
"flatpickr": "4.6.9",
5354
"graphql": "16.6.0",
@@ -60,6 +61,7 @@
6061
"@babel/helper-string-parser": "^7.18.10",
6162
"@commitlint/cli": "^v18.4.4",
6263
"@commitlint/config-angular": "^v18.4.4",
64+
"@cucumber/cucumber": "^10.0.1",
6365
"@ovh-ux/codename-generator": "^1.0.0",
6466
"@playwright/test": "^1.34.3",
6567
"@testing-library/jest-dom": "^6.2.1",
@@ -95,6 +97,7 @@
9597
"lerna": "^5.5.0",
9698
"lint-staged": "^13.0.3",
9799
"lodash": "^4.17.11",
100+
"msw": "2.1.7",
98101
"npm-run-all": "^4.1.5",
99102
"ora": "^3.4.0",
100103
"p-series": "^2.1.0",
@@ -111,6 +114,7 @@
111114
"stylelint-prettier": "^1.1.2",
112115
"stylelint-scss": "^3.18.0",
113116
"turbo": "^1.4.3",
117+
"vite": "^4.5.2",
114118
"whatwg-fetch": "^3.6.2"
115119
},
116120
"engines": {

packages/manager-components/src/components/content/headers/headers.stories.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import React from 'react';
22
import { Meta } from '@storybook/react';
33
import { OdsHTMLAnchorElementTarget } from '@ovhcloud/ods-common-core';
44
import Headers, { HeadersProps } from './headers.component';
5-
import ActionButton from '../../navigation/buttons/action/action.component';
6-
import GuideButton from '../../navigation/buttons/guide/guide.component';
5+
import ActionMenu from '../../navigation/menus/action/action.component';
6+
import GuideButton from '../../navigation/menus/guide/guide.component';
77

88
const Heading: HeadersProps = {
99
title: 'Example for header',
@@ -47,7 +47,7 @@ const guideItems = [
4747
const HeadingWithActionButton: HeadersProps = {
4848
title: 'Example for header with actions ',
4949
description: 'description for header',
50-
headerButton: <ActionButton items={actionItems} />,
50+
headerButton: <ActionMenu items={actionItems} />,
5151
};
5252
const HeadingWithGuideButton: HeadersProps = {
5353
title: 'Example for header with guides',

packages/manager-components/src/components/navigation/buttons/action/action.spec.tsx

Lines changed: 0 additions & 19 deletions
This file was deleted.

packages/manager-components/src/components/navigation/buttons/action/action.stories.tsx

Lines changed: 0 additions & 33 deletions
This file was deleted.

packages/manager-components/src/components/navigation/card/card.component.tsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,21 @@ export interface CardProps {
3838
category: string;
3939
};
4040
badges?: Badge[];
41-
trackingLabel?: string;
4241
hoverable?: boolean;
42+
onClick?: (event: React.MouseEvent) => void;
43+
[attribute: string]: any;
4344
}
4445

45-
export const Card = ({
46+
export const Card: React.FC<CardProps> = ({
4647
href,
4748
isExternalHref,
4849
img,
4950
badges,
5051
texts,
51-
trackingLabel,
5252
hoverable,
53-
}: CardProps) => {
53+
onClick,
54+
...props
55+
}) => {
5456
const { title, description, category } = texts;
5557
const { t } = useTranslation('card');
5658

@@ -59,14 +61,15 @@ export const Card = ({
5961
target={OdsHTMLAnchorElementTarget._blank}
6062
href={href}
6163
className="no-underline"
64+
onClick={onClick}
65+
{...props}
6266
>
6367
<OsdsTile
6468
className="w-full h-full"
6569
color={ODS_THEME_COLOR_INTENT.primary}
6670
rounded
6771
inline
6872
variant={ODS_TILE_VARIANT.stroked}
69-
data-tracking={trackingLabel}
7073
hoverable={hoverable}
7174
>
7275
<div className="flex flex-col ">
@@ -85,13 +88,14 @@ export const Card = ({
8588
hue={ODS_THEME_COLOR_HUE._500}
8689
>
8790
{category}
88-
<span className="inline-flex ml-3">
91+
<span style={{ marginLeft: 'var(--ods-size-03)' }}>
8992
{badges?.map((b) => (
9093
<OsdsChip
9194
className="mr-1"
9295
key={b.text}
9396
color={b.color}
9497
size={ODS_CHIP_SIZE.sm}
98+
inline
9599
>
96100
{b.text}
97101
</OsdsChip>

packages/manager-components/src/components/navigation/card/card.stories.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ const meta: Meta<typeof Card> = {
6363
description:
6464
'Display examples of badges in the story (in the actual code there is a badge slot)',
6565
},
66-
trackingLabel: {
67-
control: 'text',
68-
description: 'Tracking label when use click on card',
69-
},
7066
},
7167
args: defaultProps,
7268
};
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export * from './card/card.component';
2-
export * from './buttons';
2+
export * from './menus';

0 commit comments

Comments
 (0)