Skip to content

Commit 3a9c019

Browse files
feat(manager-react-components): rename folder manager react components
ref: MANAGER-14822 Signed-off-by: Alex Boungnaseng <alex.boungnaseng.ext@corp.ovh.com>
1 parent 4c3992c commit 3a9c019

File tree

615 files changed

+406
-432
lines changed

Some content is hidden

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

615 files changed

+406
-432
lines changed

.github/CODEOWNERS

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ packages/manager/modules/ @ovh/team-manager-dev-angularjs
1414
*.tsx @ovh/team-manager-dev-reactjs @ovh/su-digital-tools-core-stack
1515
/playwright-helpers/ @ovh/team-manager-dev-reactjs
1616

17-
# Manager-components
18-
/packages/manager-components @ovh/team-manager-control-tower
17+
# Manager-React-Components
18+
/packages/manager-react-components @ovh/team-manager-control-tower
1919

2020
# Continuous Integration and scripts
2121
.github/workflows @ovh/su-digital-tools-core-service-delivery

.github/ISSUE_TEMPLATE/manager_components_bug_report.yml

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Bug Report on Manager Components (Internal)
22
description: File a bug report on Manager components
3-
title: '[manager-components]: <TITLE>'
4-
labels: ['manager-components', 'bug']
5-
projects: ["ovh/22"]
3+
title: '[manager-react-components]: <TITLE>'
4+
labels: ['manager-react-components', 'bug']
5+
projects: ['ovh/22']
66
body:
77
- type: markdown
88
attributes:
@@ -32,19 +32,19 @@ body:
3232
description: The browser(s) this issue occurred with.
3333
validations:
3434
required: false
35-
- type: "checkboxes"
36-
id: "operating-system"
35+
- type: 'checkboxes'
36+
id: 'operating-system'
3737
attributes:
38-
label: "Operating System"
39-
description: "The operating system(s) this issue occurred with."
38+
label: 'Operating System'
39+
description: 'The operating system(s) this issue occurred with.'
4040
options:
41-
- label: "macOS"
42-
- label: "Windows"
43-
- label: "Linux"
44-
- type: "textarea"
45-
id: "additional-information"
41+
- label: 'macOS'
42+
- label: 'Windows'
43+
- label: 'Linux'
44+
- type: 'textarea'
45+
id: 'additional-information'
4646
attributes:
47-
label: "Additional Information"
47+
label: 'Additional Information'
4848
description: |
4949
Use this section to provide any additional information you might have
5050
like screenshots, notes, or links to ideas.

.github/ISSUE_TEMPLATE/manager_components_feature_request.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: New Feature Request for Manager Components (Internal)
22
description: Request for new component/hook/util
3-
title: '[manager-components]: <TITLE>'
4-
labels: ['manager-components', 'feature']
5-
projects: ["ovh/22"]
3+
title: '[manager-react-components]: <TITLE>'
4+
labels: ['manager-react-components', 'feature']
5+
projects: ['ovh/22']
66
body:
77
- type: markdown
88
attributes:
@@ -12,8 +12,8 @@ body:
1212
value: Please make sure to check if similar component already exists.
1313
- type: checkboxes
1414
attributes:
15-
label: Have you already checked if a similar item is present on manager-components?
16-
description: Before to open a request on our GitHub repository, did you already check if the similar item is present on the manager-components storybook?
15+
label: Have you already checked if a similar item is present on manager-react-components?
16+
description: Before to open a request on our GitHub repository, did you already check if the similar item is present on the manager-react-components storybook?
1717
options:
1818
- label: Yes, I have already checked the existing components/hooks/utils.
1919
required: false

.github/labeler.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ enabler:
7070
- packages/manager/apps/carbon-calculator/**
7171
- packages/manager/apps/iam/**
7272
- packages/manager/apps/key-management-service/**
73-
manager-components:
74-
- packages/manager-components/src/**
73+
manager-react-components:
74+
- packages/manager-react-components/src/**
7575
common:
7676
- packages/components/**
7777
- packages/manager/core/**
@@ -104,6 +104,6 @@ common:
104104
- packages/manager/modules/trusted-nic/**
105105
- packages/manager/modules/web-universe-components/**
106106
- packages/manager/tools/**
107-
- packages/manager-components/**
107+
- packages/manager-react-components/**
108108
- playwright-helpers/**
109109
- scripts/**

.github/workflows/run-bdd-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Build BDD covered packages and dependencies
2222
run: |
2323
yarn exec turbo -- run build --filter="./packages/manager/core/*" --concurrency=5
24-
yarn exec turbo -- run build --filter="./packages/manager/manager-components/*" --concurrency=5
24+
yarn exec turbo -- run build --filter="./packages/manager/manager-react-components/*" --concurrency=5
2525
yarn exec turbo -- run build --filter="./packages/manager/modules/order" --concurrency=5
2626
# This task is for running the jest tests outside microApps
2727
- name: Run tests Jest

.lintstagedrc.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
],
66
"*.{tsx,ts}": [
77
"eslint --fix \"packages/manager/apps/**/*.{tsx,ts,md}\"",
8-
"eslint --fix \"packages/manager-components/**/*.{tsx,ts}\"",
8+
"eslint --fix \"packages/manager-react-components/**/*.{tsx,ts}\"",
99
"prettier --write \"packages/manager/apps/**/*.{tsx,ts}\"",
10-
"prettier --write \"packages/manager-components/**/*.{tsx,ts}\""
10+
"prettier --write \"packages/manager-react-components/**/*.{tsx,ts}\""
1111
],
1212
"*.js": ["eslint --fix"],
1313
"*.{css,less,scss}": ["stylelint --fix"],

docs/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
docs/.vuepress/.temp/
22
docs/.vuepress/.cache/
33
docs/.vuepress/public/super-components
4-
docs/guide/manager-components
4+
docs/guide/manager-react-components
55
docs/public/storybook-static/

docs/.vitepress/config.mjs

+20-24
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defineConfig } from 'vitepress';
1+
import { defineConfig } from 'vitepress';
22

33
export default defineConfig({
44
title: 'Manager',
@@ -11,7 +11,6 @@ export default defineConfig({
1111
base: '/manager/',
1212
ignoreDeadLinks: true,
1313

14-
1514
themeConfig: {
1615
nav: [
1716
{ text: 'Guide', link: '/guide/' },
@@ -25,8 +24,8 @@ export default defineConfig({
2524
items: [
2625
{
2726
text: 'Discussions',
28-
link: 'https://github.com/ovh/manager/discussions'
29-
}
27+
link: 'https://github.com/ovh/manager/discussions',
28+
},
3029
],
3130
},
3231
{
@@ -70,60 +69,57 @@ export default defineConfig({
7069
items: [
7170
{
7271
text: 'Getting started',
73-
link: 'getting-started'
72+
link: 'getting-started',
7473
},
7574
{
7675
text: 'Architecture',
77-
link: 'architecture'
76+
link: 'architecture',
7877
},
7978
{
8079
text: 'Applications',
81-
link: 'applications'
80+
link: 'applications',
8281
},
8382
{
8483
text: 'Modules',
85-
link: 'modules'
84+
link: 'modules',
8685
},
8786
{
8887
text: 'Components',
89-
link: 'components'
88+
link: 'components',
9089
},
9190
{
9291
text: 'Tools',
93-
link: 'tools'
92+
link: 'tools',
9493
},
9594
{
9695
text: 'Scripts',
97-
link: 'scripts'
96+
link: 'scripts',
9897
},
9998
{
10099
text: 'Releasing',
101-
link: 'releasing'
100+
link: 'releasing',
102101
},
103102
{
104-
text: 'Testing' ,
105-
link: 'testing'
103+
text: 'Testing',
104+
link: 'testing',
106105
},
107106
{
108-
text: 'Manager Components',
109-
link: 'manager-components'
110-
}
111-
]
112-
}
107+
text: 'Manager React Components',
108+
link: 'manager-react-components',
109+
},
110+
],
111+
},
113112
},
114113

115114
search: {
116115
provider: 'local',
117116
},
118117

119-
120118
editLink: {
121119
pattern: 'https://github.com/ovh/manager/edit/master/docs/docs/:path',
122-
text: 'Edit this page on GitHub'
120+
text: 'Edit this page on GitHub',
123121
},
124122

125-
socialLinks: [
126-
{ icon: 'github', link: 'https://github.com/ovh/manager' },
127-
],
123+
socialLinks: [{ icon: 'github', link: 'https://github.com/ovh/manager' }],
128124
},
129125
});
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Manager components
1+
# Manager React components
22

33
We use a library of super components in our react applications.
44

55
## The package is accessible on the monorepo
66

7-
- [@ovhcloud/manager-react-components](https://github.com/ovh/manager/blob/develop/packages/manager-components/README.md)
7+
- [@ovh-ux/manager-react-components](https://github.com/ovh/manager/blob/develop/packages/manager-react-components/README.md)
88

99
## The storybook :
1010

@@ -14,16 +14,16 @@ The storybook is accessible on
1414
## How to start the application?
1515

1616
```sh
17-
$ yarn workspace @ovhcloud/manager-react-components run start
17+
$ yarn workspace @ovh-ux/manager-react-components run start
1818
```
1919

2020
Go to `<http://localhost:6006>`
2121

2222
## Example for Header on the storybook :
2323

24-
![Screenshot of the manager-components storybook](/assets/img/storybook-manager-components.png)
24+
![Screenshot of the manager-react-components storybook](/assets/img/storybook-manager-components.png)
2525

2626
## Importation of a component on your react code application :
2727

2828
The component is not builded so you can import directly the component named `Card` from the workspace like this :
29-
`import Card from '@ovhcloud/manager-react-components'`
29+
`import Card from '@ovh-ux/manager-react-components'`

docs/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"private": true,
55
"description": "Manager documentation deployed with GitHub Pages",
66
"scripts": {
7-
"docs:build": "yarn docs:build:manager-components && node cli/prebuild.js && vitepress build --base /manager/",
8-
"docs:build:manager-components": "cd ../packages/manager-components && yarn build:storybook && rm -rf ../../docs/docs/public/storybook-static && mkdir -p ../../docs/docs/public/storybook-static && cp -r ./storybook-static/* ../../docs/docs/public/storybook-static",
7+
"docs:build": "yarn docs:build:manager-react-components && node cli/prebuild.js && vitepress build --base /manager/",
8+
"docs:build:manager-react-components": "cd ../packages/manager-react-components && yarn build:storybook && rm -rf ../../docs/docs/public/storybook-static && mkdir -p ../../docs/docs/public/storybook-static && cp -r ./storybook-static/* ../../docs/docs/public/storybook-static",
99
"docs:deploy": "yarn run docs:build && gh-pages -d .vitepress/dist -m \"docs: update documentation [skip ci]\"",
1010
"docs:dev": "node cli/prebuild.js && vitepress dev",
1111
"docs:preview": "vitepress preview"

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"packages/manager/core/*",
88
"packages/manager/modules/*",
99
"packages/manager/tools/*",
10-
"packages/manager-components"
10+
"packages/manager-react-components"
1111
],
1212
"npmClient": "yarn",
1313
"useWorkspaces": true,

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"packages/manager/core/*",
1212
"packages/manager/modules/*",
1313
"packages/manager/tools/*",
14-
"packages/manager-components"
14+
"packages/manager-react-components"
1515
],
1616
"scripts": {
1717
"build": "yarn run build:turbo",
@@ -23,15 +23,15 @@
2323
"format:css": "yarn run lint:css --fix",
2424
"format:html": "yarn run lint:html && prettier --parser=html --write \"packages/**/*.html\"",
2525
"format:js": "yarn run lint:js --fix",
26-
"format:tsx": "yarn run lint:tsx --fix && prettier --write \"packages/{manager/apps,manager-components}/**/*.{tsx,ts}\"",
26+
"format:tsx": "yarn run lint:tsx --fix && prettier --write \"packages/{manager/apps,manager-react-components}/**/*.{tsx,ts}\"",
2727
"format:md": "yarn run lint:md --fix",
2828
"generate:app": "sao ./packages/manager/tools/sao-ovh-manager-app",
2929
"generate:uapp": "yarn workspace @ovh-ux/manager-generator run start",
3030
"generate:module": "sao ./packages/manager/tools/sao-ovh-manager-module",
3131
"lint": "run-p lint:*",
3232
"lint:css": "stylelint \"packages/**/*.{css,less,scss}\"",
3333
"lint:html": "htmlhint --ignore \"**/dist/**,**/www/**,**/screenshot/**,**/docs-api/**\" \"packages/**/*.html\"",
34-
"lint:tsx": "eslint --quiet \"packages/{manager/apps,manager-components}/**/*.{tsx,ts}\"",
34+
"lint:tsx": "eslint --quiet \"packages/{manager/apps,manager-react-components}/**/*.{tsx,ts}\"",
3535
"lint:js": "eslint --cache --quiet --format=pretty \"packages\" \"scripts\"",
3636
"lint:md": "remark -qf . && eslint --quiet --format=pretty --ext .md \"docs\" \"packages\"",
3737
"list-dependents": "node scripts/list-dependents.js",

packages/manager-components/README.md packages/manager-react-components/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Keep it as simple as possible
1414
## Import component to another project
1515

1616
The component is not builded so you can import directly the component named `Card` from the workspace like this :
17-
`import Card from '@ovhcloud/manager-react-components'`
17+
`import Card from '@ovh-ux/manager-react-components'`
1818

1919
## Main Scripts
2020

packages/manager-components/package.json packages/manager-react-components/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "@ovhcloud/manager-react-components",
2+
"name": "@ovh-ux/manager-react-components",
33
"private": true,
44
"version": "1.26.0",
55
"main": "src/lib.ts",
66
"repository": {
77
"type": "git",
88
"url": "git+https://github.com/ovh/manager.git",
9-
"directory": "packages/manager-components"
9+
"directory": "packages/manager-react-components"
1010
},
1111
"files": [
1212
"dist"

packages/manager-components/src/components/ManagerButton/ManagerButton.spec.tsx packages/manager-react-components/src/components/ManagerButton/ManagerButton.spec.tsx

+11-6
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ describe('ManagerButton tests', () => {
2626
isFetched: true,
2727
});
2828
renderComponent({
29-
urn: 'urn:v9:eu:resource:manager-components:vrz-a878-dsflkds-fdsfsd',
29+
urn:
30+
'urn:v9:eu:resource:manager-react-components:vrz-a878-dsflkds-fdsfsd',
3031
iamActions: [
31-
'manager-components:apiovh:manager-components/attach-action',
32+
'manager-react-components:apiovh:manager-react-components/attach-action',
3233
],
3334
children: <div>foo-manager-button</div>,
3435
});
@@ -42,8 +43,11 @@ describe('ManagerButton tests', () => {
4243
isFetched: true,
4344
});
4445
renderComponent({
45-
urn: 'urn:v9:eu:resource:manager-components:vrz-a878-dsflkds-fdsfsd',
46-
iamActions: ['manager-components:apiovh:manager-components/attach'],
46+
urn:
47+
'urn:v9:eu:resource:manager-react-components:vrz-a878-dsflkds-fdsfsd',
48+
iamActions: [
49+
'manager-react-components:apiovh:manager-react-components/attach',
50+
],
4751
children: <div>foo-manager-button</div>,
4852
});
4953
expect(screen.getAllByText('foo-manager-button')).not.toBeNull();
@@ -61,9 +65,10 @@ describe('ManagerButton tests', () => {
6165
isFetched: true,
6266
});
6367
renderComponent({
64-
urn: 'urn:v9:eu:resource:manager-components:vrz-a878-dsflkds-fdsfsd',
68+
urn:
69+
'urn:v9:eu:resource:manager-react-components:vrz-a878-dsflkds-fdsfsd',
6570
iamActions: [
66-
'manager-components:apiovh:manager-components/attach-action',
71+
'manager-react-components:apiovh:manager-react-components/attach-action',
6772
],
6873
children: <div>foo-manager-button</div>,
6974
});

packages/manager-components/src/components/ManagerButton/ManagerButton.stories.tsx packages/manager-react-components/src/components/ManagerButton/ManagerButton.stories.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ManagerButton, ManagerButtonProps } from './ManagerButton';
44
export const Default = {
55
args: {
66
children: 'Remove button',
7-
urn: 'urn:v9:eu:resource:manager-components:vrz-a878-dsflkds-fdsfsd',
7+
urn: 'urn:v9:eu:resource:manager-react-components:vrz-a878-dsflkds-fdsfsd',
88
iamActions: ['vrackServices:apiovh:iam/resource/tag/remove'],
99
},
1010
};

0 commit comments

Comments
 (0)