Skip to content

Commit

Permalink
Merge pull request #2093 from Hyperkid123/nx-cleanup
Browse files Browse the repository at this point in the history
Nx cleanup
  • Loading branch information
Hyperkid123 authored Oct 31, 2024
2 parents 57ced91 + 541f5d4 commit 5c2fc9f
Show file tree
Hide file tree
Showing 125 changed files with 204 additions and 20,367 deletions.
4 changes: 2 additions & 2 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
npx --no-install nx affected -t lint --exclude=@redhat-cloud-services/frontend-components-pdf-generator,@redhat-cloud-services/frontend-components-charts
npx --no-install nx affected -t lint
npx --no-install nx affected -t test:unit --exclude=demo
npx --no-install nx affected -t test:component --exclude=demo --parallel=1
npx --no-install nx affected -t build --exclude=demo,@redhat-cloud-services/frontend-components-pdf-generator,@redhat-cloud-services/frontend-components-charts
npx --no-install nx affected -t build --exclude=demo
9 changes: 9 additions & 0 deletions docs/migrations/charts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Charts

`@redhat-cloud-services/frontend-components-charts`

This package is deprecated and no longer used. Please use the official [Patternfly charts](https://www.patternfly.org/charts/about-charts/) package.

## SeverityLine

This component does not have an equivalent PF replacement. The component was moved to the `@redhat-cloud-services/frontend-components` package.
5 changes: 5 additions & 0 deletions docs/migrations/pdf-generator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# PDF Generator

`@redhat-cloud-services/frontend-components-pdf-generator`

The pdf generator package is deprecated. Please contact the platform team to learn about the available alternative.
58 changes: 58 additions & 0 deletions examples/demo/src/app/app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import PrimaryToolbar from '@redhat-cloud-services/frontend-components/PrimaryToolbar';
import { Button } from '@patternfly/react-core/dist/dynamic/components/Button';
import CriticalBattery from '@redhat-cloud-services/frontend-components/Battery/CriticalBattery';
import { RuleDetails } from '@redhat-cloud-services/frontend-components-advisor-components/RuleDetails';
import { AdvisorProduct } from '@redhat-cloud-services/frontend-components-advisor-components/types';

const MyCmp = () => {
return (
Expand All @@ -22,6 +24,62 @@ const MyCmp = () => {
}}
/>
<CriticalBattery label="Foo" severity="critical" />
<RuleDetails
isDetailsPage={false}
product={AdvisorProduct.ocp}
rule={{
active: false,
category: {
id: 1,
name: 'Foo',
},
description: 'Foo',
created_at: new Date().toString(),
deleted_at: new Date().toString(),
disabled: false,
generic: 'false',
hosts_acked_count: 1,
impact: {
impact: 1,
name: 'Foo',
},
likelihood: 1,
impacted_clusters_count: 1,
impacted_systems_count: 1,
more_info: 'foo',
node_id: 'foo',
playbook_count: 1,
publish_date: new Date().toString(),
rating: 1,
reason: 'foo',
reboot_required: false,
reports_shown: true,
resolution: 'foo',
resolution_set: [],
rule_id: 'foo',
risk_of_change: 1,
rule_status: 'foo',
summary: 'foo',
tags: [],
total_risk: 1,
updated_at: new Date().toString(),
}}
messages={{
feedbackThankYou: 'Foo',
impactDescription: 'Foo',
impactLevel: 'foo',
riskOfChange: 1,
riskOfChangeLabel: 'Foo',
riskOfChangeText: 'Foo',
ruleHelpful: true,
rulesDetailsTotalRiskBody: 'Foo',
totalRisk: 1,
knowledgebaseArticle: 'Foo',
systemReboot: 'Foo',
likelihoodLevel: 'foo',
likelihoodDescription: 'Foo',
}}
/>
</>
);
};
Expand Down
2 changes: 0 additions & 2 deletions examples/demo/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"@redhat-cloud-services/chrome/*": ["packages/chrome/src/*"],
"@redhat-cloud-services/frontend-components-advisor-components": ["packages/advisor-components/src"],
"@redhat-cloud-services/frontend-components-advisor-components/*": ["packages/advisor-components/src/*"],
"@redhat-cloud-services/frontend-components-charts": ["packages/charts/src"],
"@redhat-cloud-services/frontend-components-charts/*": ["packages/charts/src/*"],
"@redhat-cloud-services/frontend-components-config-utilities": ["packages/config-utilities"],
"@redhat-cloud-services/frontend-components-notifications": ["packages/notifications/src"],
"@redhat-cloud-services/frontend-components-notifications/*": ["packages/notifications/src/*"],
Expand Down
Loading

0 comments on commit 5c2fc9f

Please sign in to comment.