@openshift-migration-advisor/shared-components 0.0.0 → 0.21.0-7c891f79a5ac

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -19,15 +19,6 @@ yarn workspace @openshift-migration-advisor/agent-ui add @openshift-migration-ad
19
19
  npm install @openshift-migration-advisor/shared-components
20
20
  ```
21
21
 
22
- ## Peer dependencies
23
-
24
- Consumers must provide:
25
-
26
- - `react` / `react-dom` (^18.3)
27
- - `@patternfly/react-core`, `@patternfly/react-charts` (^8), `@patternfly/react-icons`, `@patternfly/react-table`, `@patternfly/react-tokens`
28
- - `@emotion/css`
29
- - `react-hook-form` (for form components)
30
-
31
22
  ## Usage
32
23
 
33
24
  ```tsx
@@ -73,4 +64,4 @@ No npm token is stored in the repo; publish uses OIDC (`id-token: write`).
73
64
 
74
65
  ## License
75
66
 
76
- [Apache 2.0](LICENSE)
67
+ [Apache 2.0](LICENSE)
@@ -6,6 +6,18 @@
6
6
  export declare const chartColorSuccess: "#0066cc";
7
7
  export declare const chartColorFailure: "#dca614";
8
8
  export declare const REPORT_CARD_EMPTY_STATE_TITLES: {
9
+ readonly networks: "Network data not collected";
10
+ readonly nicCount: "NIC count data not collected";
11
+ readonly hosts: "Host data not collected";
12
+ readonly cpuMemory: "CPU and memory data not collected";
13
+ readonly cpu: "CPU data not collected";
14
+ readonly memory: "Memory data not collected";
15
+ readonly storage: "Storage data not collected";
16
+ readonly diskTypes: "Disk type data not collected";
17
+ readonly clusters: "Cluster data not collected";
18
+ readonly cpuOvercommitment: "CPU overcommitment data not collected";
9
19
  readonly operatingSystems: "Operating system data not collected";
20
+ readonly migrationStatus: "Migration status data not collected";
21
+ readonly issuesBreakdown: "Issues breakdown data not collected";
10
22
  };
11
23
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/report/constants.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,WAA6B,CAAC;AAC5D,eAAO,MAAM,iBAAiB,WAA+B,CAAC;AAE9D,eAAO,MAAM,8BAA8B;;CAEjC,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/report/constants.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,WAA6B,CAAC;AAC5D,eAAO,MAAM,iBAAiB,WAA+B,CAAC;AAE9D,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;CAcjC,CAAC"}
@@ -1,5 +1,4 @@
1
- import { chart_color_blue_300 } from "@patternfly/react-tokens/dist/esm/chart_color_blue_300";
2
- import { chart_color_yellow_300 } from "@patternfly/react-tokens/dist/esm/chart_color_yellow_300";
1
+ import { chart_color_blue_300, chart_color_yellow_300, } from "@patternfly/react-tokens";
3
2
  /**
4
3
  * PatternFly chart color semantics (https://www.patternfly.org/charts/colors-for-charts/design-guidelines/#best-practices):
5
4
  * Blue → success / migratable / supported
@@ -8,5 +7,17 @@ import { chart_color_yellow_300 } from "@patternfly/react-tokens/dist/esm/chart_
8
7
  export const chartColorSuccess = chart_color_blue_300.value;
9
8
  export const chartColorFailure = chart_color_yellow_300.value;
10
9
  export const REPORT_CARD_EMPTY_STATE_TITLES = {
10
+ networks: "Network data not collected",
11
+ nicCount: "NIC count data not collected",
12
+ hosts: "Host data not collected",
13
+ cpuMemory: "CPU and memory data not collected",
14
+ cpu: "CPU data not collected",
15
+ memory: "Memory data not collected",
16
+ storage: "Storage data not collected",
17
+ diskTypes: "Disk type data not collected",
18
+ clusters: "Cluster data not collected",
19
+ cpuOvercommitment: "CPU overcommitment data not collected",
11
20
  operatingSystems: "Operating system data not collected",
21
+ migrationStatus: "Migration status data not collected",
22
+ issuesBreakdown: "Issues breakdown data not collected",
12
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"osSupportTier.d.ts","sourceRoot":"","sources":["../../src/report/osSupportTier.ts"],"names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CACnD,WAAW,EACX,qBAAqB,CAkBtB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,WAAW,GAAG,SAAS,EACpC,SAAS,EAAE,OAAO,GACjB,WAAW,CAMb;AAED,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,GAC1C,OAAO,CAeT;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAEjE;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAEnE;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAElE;AAED,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,WAAW,GAChB,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAElC;AAED,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,WAAW,GAChB,qBAAqB,CAEvB"}
@@ -1,11 +1,4 @@
1
- import { t_color_blue_20 } from "@patternfly/react-tokens/dist/esm/t_color_blue_20";
2
- import { t_color_blue_60 } from "@patternfly/react-tokens/dist/esm/t_color_blue_60";
3
- import { t_color_green_20 } from "@patternfly/react-tokens/dist/esm/t_color_green_20";
4
- import { t_color_green_60 } from "@patternfly/react-tokens/dist/esm/t_color_green_60";
5
- import { t_color_orange_20 } from "@patternfly/react-tokens/dist/esm/t_color_orange_20";
6
- import { t_color_orange_60 } from "@patternfly/react-tokens/dist/esm/t_color_orange_60";
7
- import { t_color_yellow_20 } from "@patternfly/react-tokens/dist/esm/t_color_yellow_20";
8
- import { t_color_yellow_60 } from "@patternfly/react-tokens/dist/esm/t_color_yellow_60";
1
+ import { t_color_blue_20, t_color_blue_60, t_color_green_20, t_color_green_60, t_color_orange_20, t_color_orange_60, t_color_yellow_20, t_color_yellow_60, } from "@patternfly/react-tokens";
9
2
  /**
10
3
  * Guest OS support tiers (matches agent-sdk / planner-sdk `OsInfoSupportTierEnum` values).
11
4
  * Defined locally so this package stays SDK-agnostic.
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/shared-components",
3
- "version": "0.0.0",
3
+ "version": "0.21.0-7c891f79a5ac",
4
4
  "description": "Shared React UI components for Migration Advisor apps (report charts, forms, OS support tiers)",
5
- "author": "Red Hat",
5
+ "author": "Montse Ortega <mortegag@redhat.com>",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
8
8
  "type": "git",
@@ -36,6 +36,7 @@
36
36
  "check": "yarn run -T biome check .",
37
37
  "check:fix": "yarn run -T biome check --write .",
38
38
  "test": "yarn run -T vitest run",
39
+ "test:watch": "yarn run -T vitest",
39
40
  "typecheck": "yarn run -T tsc -b --noEmit"
40
41
  },
41
42
  "files": [
@@ -43,21 +44,5 @@
43
44
  "src",
44
45
  "LICENSE",
45
46
  "README.md"
46
- ],
47
- "peerDependencies": {
48
- "@emotion/css": "^11.13.0",
49
- "@patternfly/react-charts": "^8.0.0",
50
- "@patternfly/react-core": "^6.5.0",
51
- "@patternfly/react-icons": "^6.5.0",
52
- "@patternfly/react-table": "^6.5.0",
53
- "@patternfly/react-tokens": "^6.5.0",
54
- "react": "^18.3.0",
55
- "react-dom": "^18.3.0",
56
- "react-hook-form": "^7.0.0"
57
- },
58
- "devDependencies": {
59
- "@testing-library/jest-dom": "^6.9.1",
60
- "@testing-library/react": "^16.3.2",
61
- "@testing-library/user-event": "^14.6.1"
62
- }
47
+ ]
63
48
  }
@@ -1,5 +1,7 @@
1
- import { chart_color_blue_300 } from "@patternfly/react-tokens/dist/esm/chart_color_blue_300";
2
- import { chart_color_yellow_300 } from "@patternfly/react-tokens/dist/esm/chart_color_yellow_300";
1
+ import {
2
+ chart_color_blue_300,
3
+ chart_color_yellow_300,
4
+ } from "@patternfly/react-tokens";
3
5
 
4
6
  /**
5
7
  * PatternFly chart color semantics (https://www.patternfly.org/charts/colors-for-charts/design-guidelines/#best-practices):
@@ -10,5 +12,17 @@ export const chartColorSuccess = chart_color_blue_300.value;
10
12
  export const chartColorFailure = chart_color_yellow_300.value;
11
13
 
12
14
  export const REPORT_CARD_EMPTY_STATE_TITLES = {
15
+ networks: "Network data not collected",
16
+ nicCount: "NIC count data not collected",
17
+ hosts: "Host data not collected",
18
+ cpuMemory: "CPU and memory data not collected",
19
+ cpu: "CPU data not collected",
20
+ memory: "Memory data not collected",
21
+ storage: "Storage data not collected",
22
+ diskTypes: "Disk type data not collected",
23
+ clusters: "Cluster data not collected",
24
+ cpuOvercommitment: "CPU overcommitment data not collected",
13
25
  operatingSystems: "Operating system data not collected",
26
+ migrationStatus: "Migration status data not collected",
27
+ issuesBreakdown: "Issues breakdown data not collected",
14
28
  } as const;
@@ -1,12 +1,14 @@
1
1
  import type { LabelProps } from "@patternfly/react-core";
2
- import { t_color_blue_20 } from "@patternfly/react-tokens/dist/esm/t_color_blue_20";
3
- import { t_color_blue_60 } from "@patternfly/react-tokens/dist/esm/t_color_blue_60";
4
- import { t_color_green_20 } from "@patternfly/react-tokens/dist/esm/t_color_green_20";
5
- import { t_color_green_60 } from "@patternfly/react-tokens/dist/esm/t_color_green_60";
6
- import { t_color_orange_20 } from "@patternfly/react-tokens/dist/esm/t_color_orange_20";
7
- import { t_color_orange_60 } from "@patternfly/react-tokens/dist/esm/t_color_orange_60";
8
- import { t_color_yellow_20 } from "@patternfly/react-tokens/dist/esm/t_color_yellow_20";
9
- import { t_color_yellow_60 } from "@patternfly/react-tokens/dist/esm/t_color_yellow_60";
2
+ import {
3
+ t_color_blue_20,
4
+ t_color_blue_60,
5
+ t_color_green_20,
6
+ t_color_green_60,
7
+ t_color_orange_20,
8
+ t_color_orange_60,
9
+ t_color_yellow_20,
10
+ t_color_yellow_60,
11
+ } from "@patternfly/react-tokens";
10
12
 
11
13
  /**
12
14
  * Guest OS support tiers (matches agent-sdk / planner-sdk `OsInfoSupportTierEnum` values).