Skip to content

Commit

Permalink
Merge pull request #3441 from project-koku/release_prod-stable.8008
Browse files Browse the repository at this point in the history
Deployment commit for prod-stable
  • Loading branch information
dlabrecq committed Oct 13, 2023
2 parents 78a7560 + 64d0d4d commit 0f0b085
Show file tree
Hide file tree
Showing 303 changed files with 6,211 additions and 3,730 deletions.
40 changes: 40 additions & 0 deletions .archive/components/drawers/optimzations/optimizations.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
@import url("~@patternfly/patternfly/base/patternfly-variables.css");

.optimizationsOverride {
div {
display: block;
margin-right: 0;
margin-bottom: var(--pf-v5-global--spacer--xs);
&.iconOverride {
&.decrease {
// color: var(--pf-v5-global--success-color--100);
}
&.increase {
// color: var(--pf-v5-global--danger-color--100);
}
.fa-equals {
margin-left: 25px;
position: relative;
}
.fa-sort-up {
margin-left: 25px;
position: relative;
top: 3px;
}
.fa-sort-down {
margin-left: 25px;
position: relative;
top: -3px;
}
.fa-sort-up::before {
// color: var(--pf-v5-global--danger-color--100);
}
.fa-sort-down::before {
// color: var(--pf-v5-global--success-color--100);
}
span {
margin-right: -17px !important;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
TextListVariants,
} from '@patternfly/react-core';
import { ExclamationTriangleIcon } from '@patternfly/react-icons/dist/esm/icons/exclamation-triangle-icon';
import { TableComposable, TableVariant, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table';
import { Table, TableVariant, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table';
import type { RecommendationItem, RecommendationReportData } from 'api/ros/recommendations';
import { RosPathsType, RosType } from 'api/ros/ros';
import type { AxiosError } from 'axios';
Expand Down Expand Up @@ -265,10 +265,9 @@ class OptimizationsContentBase extends React.Component<OptimizationsContentProps
const memVariationUnits = hasVariationLimitsMemory ? term.variation.limits.memory.format : undefined;

return (
<TableComposable
<Table
aria-label={intl.formatMessage(messages.optimizationsTableAriaLabel)}
borders={false}
hasSelectableRowCaption
variant={TableVariant.compact}
>
<Thead>
Expand Down Expand Up @@ -313,7 +312,7 @@ class OptimizationsContentBase extends React.Component<OptimizationsContentProps
<Td>{this.getChangeValue(memVariation, memVariationUnits)}</Td>
</Tr>
</Tbody>
</TableComposable>
</Table>
);
};

Expand Down Expand Up @@ -377,10 +376,9 @@ class OptimizationsContentBase extends React.Component<OptimizationsContentProps
const memVariationUnits = hasVariationRequestsMemory ? term.variation.requests.memory.format : undefined;

return (
<TableComposable
<Table
aria-label={intl.formatMessage(messages.optimizationsTableAriaLabel)}
borders={false}
hasSelectableRowCaption
variant={TableVariant.compact}
>
<Thead>
Expand Down Expand Up @@ -425,7 +423,7 @@ class OptimizationsContentBase extends React.Component<OptimizationsContentProps
<Td>{this.getChangeValue(memVariation, memVariationUnits)}</Td>
</Tr>
</Tbody>
</TableComposable>
</Table>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class OptimizationsLinkBase extends React.Component<OptimizationsLinkProps, any>
};

public render() {
const { intl, isStandalone, project, report, router } = this.props;
const { intl, isStandalone, project, report } = this.props;

if (!isStandalone || !report) {
return null;
Expand All @@ -92,12 +92,11 @@ class OptimizationsLinkBase extends React.Component<OptimizationsLinkProps, any>
const isDisabled = computedItems.length === 0;

const breakdownPath = getBreakdownPath({
basePath: formatPath(routes.ocpDetailsBreakdown.path),
basePath: formatPath(routes.ocpBreakdown.path),
groupBy: 'project',
id: project,
isOptimizationsPath: true,
isOptimizationsTab: true,
router,
title: project,
});

Expand All @@ -111,11 +110,7 @@ class OptimizationsLinkBase extends React.Component<OptimizationsLinkProps, any>
</Button>
);
if (isDisabled) {
return (
<Tooltip content={intl.formatMessage(messages.optimizationsViewAllDisabled)} removeFindDomNode>
{buttonComponent}
</Tooltip>
);
return <Tooltip content={intl.formatMessage(messages.optimizationsViewAllDisabled)}>{buttonComponent}</Tooltip>;
}
return buttonComponent;
}
Expand Down
7 changes: 4 additions & 3 deletions .archive/routes/components/dataToolbar/workloadType.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import './dataToolbar.scss';

import type { SelectOptionObject, ToolbarChipGroup } from '@patternfly/react-core';
import { Select, SelectOption, SelectVariant } from '@patternfly/react-core';
import type { ToolbarChipGroup } from '@patternfly/react-core';
import type { SelectOptionObject } from '@patternfly/react-core/deprecated';
import { Select, SelectOption, SelectVariant } from '@patternfly/react-core/deprecated';
import messages from 'locales/messages';
import React from 'react';
import type { WrappedComponentProps } from 'react-intl';
Expand Down Expand Up @@ -60,8 +61,8 @@ class WorkloadTypeBase extends React.Component<WorkloadTypeProps, WorkloadTypeSt
isDisabled={isDisabled}
variant={SelectVariant.checkbox}
aria-label={intl.formatMessage(messages.filterByWorkloadTypeAriaLabel)}
onToggle={this.onToggle}
onSelect={onSelect}
onToggle={(_evt, isExpanded) => this.onToggle(isExpanded)}
selections={selections}
isOpen={isWorkloadTypeExpanded}
placeholderText={intl.formatMessage(messages.chooseValuePlaceholder)}
Expand Down
2 changes: 2 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@
"react/prop-types": 0,
"simple-import-sort/imports": "error",
"spaced-comment": "error",
"rulesdir/disallow-pf-migrated-components": "off",
"rulesdir/forbid-pf-relative-imports": "off",
"testing-library/await-async-queries": "error",
"testing-library/no-await-sync-queries": "error",
"testing-library/no-debugging-utils": "warn",
Expand Down
8 changes: 5 additions & 3 deletions fec.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ module.exports = {
interceptChromeConfig: false, // Change to false after your app is registered in configuration files
proxyVerbose: true,
sassPrefix: `.${moduleName}`,
// sassPrefix: 'body', // For PF v5 testing only
// bundlePfModules: true, // For PF v5 testing only
stats,
standalone: process.env.LOCAL_API_PORT ? true : false,
useCache: true,
Expand All @@ -61,9 +63,9 @@ module.exports = {
'./RootApp': path.resolve(__dirname, './src/appEntry.tsx'),
},
shared: [
{ 'react-redux': { requiredVersion: dependencies['react-redux'] } },
{ 'react-router-dom': { import: false, requiredVersion: '*', singleton: true } },
{ '@unleash/proxy-client-react': { requiredVersion: '*', singleton: true } },
{ 'react-redux': { version: dependencies['react-redux'] } },
{ 'react-router-dom': { version: dependencies['react-router-dom'], import: false, singleton: true } },
{ '@unleash/proxy-client-react': { version: dependencies['@unleash/proxy-client-react'], singleton: true } },
],
},
/**
Expand Down

0 comments on commit 0f0b085

Please sign in to comment.