Skip to content

Commit

Permalink
Merge pull request #753 from rszwajko/bumpDepTo4_13
Browse files Browse the repository at this point in the history
Synchronize dependencies with Console 4.13
  • Loading branch information
yaacov authored Oct 8, 2023
2 parents 4ee0525 + 1bbd8d6 commit b85d662
Show file tree
Hide file tree
Showing 14 changed files with 69 additions and 54 deletions.
58 changes: 29 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"peerDependencies": {
"@openshift-console/dynamic-plugin-sdk": "0.0.18",
"@openshift/dynamic-plugin-sdk": "3.0.0",
"@patternfly/react-core": "4.221.3",
"@patternfly/react-table": "4.90.3",
"@patternfly/react-core": "4.276.6",
"@patternfly/react-table": "4.112.39",
"react": "^17.0.1",
"react-i18next": "^11.7.3",
"react-query": "^3.39.2",
Expand All @@ -55,4 +55,4 @@
"sass": "^1.63.3",
"storybook": "^7.0.14"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const visibleColumns: ResourceField[] = [

function SimpleRow<T>({ resourceFields, resourceData }: RowProps<T>) {
return (
<Tr ouiaId={undefined} ouiaSafe={undefined}>
<Tr>
{resourceFields.map(({ resourceFieldId, label }) => (
<Td key={resourceFieldId} dataLabel={label}>
{String(resourceData[resourceFieldId] ?? '')}
Expand Down
5 changes: 1 addition & 4 deletions packages/common/src/components/Filter/FreetextFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ export const FreetextFilter = ({
placeholder={placeholderLabel}
value={inputValue}
onChange={(event, value) => {
// starting with react-core 4.273.0 parameters were re-ordered
// the workaround can be removed when last supported Console version is 4.13
const isReactCoreBefore4_273_0 = typeof value === 'object';
setInputValue(isReactCoreBefore4_273_0 ? event : value);
setInputValue(value);
}}
onSearch={onTextInput}
onClear={() => setInputValue('')}
Expand Down
8 changes: 4 additions & 4 deletions packages/forklift-console-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
"peerDependencies": {
"@openshift-console/dynamic-plugin-sdk": "0.0.18",
"@openshift/dynamic-plugin-sdk": "3.0.0",
"@patternfly/react-core": "4.221.3",
"@patternfly/react-table": "4.90.3",
"@patternfly/react-charts": "6.94.19",
"react-dom": "^17",
"@patternfly/react-core": "4.276.6",
"@patternfly/react-table": "4.112.39",
"@patternfly/react-charts": "6.94.18",
"react-dom": "^17.0.1",
"react": "^17.0.1",
"react-i18next": "^11.7.3",
"react-router": "5.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,23 +121,23 @@ function MappingRow<T extends CommonMapping>({
);
return (
<>
<Tr ouiaId={undefined} ouiaSafe={undefined}>
<Tr>
<Td
expand={{
rowIndex,
isExpanded: isRowExpanded,
onToggle: toggleExpand,
}}
/>
{resourceFields.map(({ resourceFieldId, label }) => {
{resourceFields.map(({ resourceFieldId, label }, columnIndex) => {
const Cell = cellCreator[resourceFieldId] ?? TextCell;
return (
<Td
key={resourceFieldId}
dataLabel={label}
compoundExpand={
resourceFieldId === C.FROM || resourceFieldId === C.TO
? { isExpanded: isRowExpanded, onToggle: toggleExpand }
? { isExpanded: isRowExpanded, onToggle: toggleExpand, rowIndex, columnIndex }
: undefined
}
>
Expand All @@ -153,7 +153,7 @@ function MappingRow<T extends CommonMapping>({
);
})}
</Tr>
<Tr isExpanded={isRowExpanded} ouiaId={undefined} ouiaSafe={undefined}>
<Tr isExpanded={isRowExpanded}>
<Td dataLabel={t('Mapping graph')} noPadding colSpan={resourceFields.length}>
{isRowExpanded && (
<ExpandableRowContent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ afterEach(cleanup);

function SimpleRow<T>({ resourceFields, resourceData }: RowProps<T>) {
return (
<Tr ouiaId={undefined} ouiaSafe={undefined}>
<Tr>
{resourceFields.map(({ resourceFieldId, label }) => (
<Td key={resourceFieldId} dataLabel={label}>
{String(resourceData[resourceFieldId] ?? '')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ exports[`NetworkMap rows plantest1-generated-zxcv 1`] = `
<button
aria-expanded="false"
class="pf-c-table__button"
id="expand-toggle-0-4"
type="button"
>
<span
Expand Down Expand Up @@ -164,6 +165,7 @@ exports[`NetworkMap rows plantest1-generated-zxcv 1`] = `
<button
aria-expanded="false"
class="pf-c-table__button"
id="expand-toggle-0-6"
type="button"
>
<span
Expand Down Expand Up @@ -307,6 +309,7 @@ exports[`NetworkMap rows vcenter1-netstore-to-ocp1-network1 1`] = `
<button
aria-expanded="false"
class="pf-c-table__button"
id="expand-toggle-0-4"
type="button"
>
<span
Expand Down Expand Up @@ -367,6 +370,7 @@ exports[`NetworkMap rows vcenter1-netstore-to-ocp1-network1 1`] = `
<button
aria-expanded="false"
class="pf-c-table__button"
id="expand-toggle-0-6"
type="button"
>
<span
Expand Down Expand Up @@ -510,6 +514,7 @@ exports[`NetworkMap rows vcenter1-netstore-to-ocp1-network2 1`] = `
<button
aria-expanded="false"
class="pf-c-table__button"
id="expand-toggle-0-4"
type="button"
>
<span
Expand Down Expand Up @@ -570,6 +575,7 @@ exports[`NetworkMap rows vcenter1-netstore-to-ocp1-network2 1`] = `
<button
aria-expanded="false"
class="pf-c-table__button"
id="expand-toggle-0-6"
type="button"
>
<span
Expand Down Expand Up @@ -731,6 +737,7 @@ exports[`NetworkMap rows vcenter3-invalid-network-map 1`] = `
<button
aria-expanded="false"
class="pf-c-table__button"
id="expand-toggle-0-4"
type="button"
>
<span
Expand Down Expand Up @@ -791,6 +798,7 @@ exports[`NetworkMap rows vcenter3-invalid-network-map 1`] = `
<button
aria-expanded="false"
class="pf-c-table__button"
id="expand-toggle-0-6"
type="button"
>
<span
Expand Down Expand Up @@ -934,6 +942,7 @@ exports[`NetworkMap rows vcenter4-invalid-network-map 1`] = `
<button
aria-expanded="false"
class="pf-c-table__button"
id="expand-toggle-0-4"
type="button"
>
<span
Expand Down Expand Up @@ -994,6 +1003,7 @@ exports[`NetworkMap rows vcenter4-invalid-network-map 1`] = `
<button
aria-expanded="false"
class="pf-c-table__button"
id="expand-toggle-0-6"
type="button"
>
<span
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ const PlanRow = ({
}: RowProps<FlatPlan>) => {
const primaryAction = getPrimaryActionFromPlanState(resourceData.status);
return (
<Tr ouiaId={undefined} ouiaSafe={undefined}>
<Tr>
{resourceFields.map(({ resourceFieldId, label }) => {
const Cell = cellCreator[resourceFieldId] ?? TextCell;
return resourceFieldId === C.DESCRIPTION ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const VSphereHostsRow: React.FC<RowProps<InventoryHostPair>> = ({
resourceIndex: rowIndex,
}) => {
return (
<Tr ouiaId={undefined} ouiaSafe={undefined}>
<Tr>
{!!toggleSelect && (
<Td
select={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import {
*/
export const ProviderRow: React.FC<RowProps<ProviderData>> = ({ resourceFields, resourceData }) => {
return (
<Tr ouiaId={undefined} ouiaSafe={undefined}>
<Tr>
{resourceFields.map(({ resourceFieldId }) =>
renderTd({ resourceData, resourceFieldId, resourceFields }),
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ exports[`StorageMap rows plantest1-generated-asdf 1`] = `
<button
aria-expanded="false"
class="pf-c-table__button"
id="expand-toggle-0-4"
type="button"
>
<span
Expand Down Expand Up @@ -164,6 +165,7 @@ exports[`StorageMap rows plantest1-generated-asdf 1`] = `
<button
aria-expanded="false"
class="pf-c-table__button"
id="expand-toggle-0-6"
type="button"
>
<span
Expand Down Expand Up @@ -307,6 +309,7 @@ exports[`StorageMap rows vcenter1-datastore-to-ocpv-storageclass1 1`] = `
<button
aria-expanded="false"
class="pf-c-table__button"
id="expand-toggle-0-4"
type="button"
>
<span
Expand Down Expand Up @@ -367,6 +370,7 @@ exports[`StorageMap rows vcenter1-datastore-to-ocpv-storageclass1 1`] = `
<button
aria-expanded="false"
class="pf-c-table__button"
id="expand-toggle-0-6"
type="button"
>
<span
Expand Down Expand Up @@ -510,6 +514,7 @@ exports[`StorageMap rows vcenter1-invalid-storage-mapping 1`] = `
<button
aria-expanded="false"
class="pf-c-table__button"
id="expand-toggle-0-4"
type="button"
>
<span
Expand Down Expand Up @@ -570,6 +575,7 @@ exports[`StorageMap rows vcenter1-invalid-storage-mapping 1`] = `
<button
aria-expanded="false"
class="pf-c-table__button"
id="expand-toggle-0-6"
type="button"
>
<span
Expand Down Expand Up @@ -713,6 +719,7 @@ exports[`StorageMap rows vcenter3-datastore-to-ocpv-storageclass2 1`] = `
<button
aria-expanded="false"
class="pf-c-table__button"
id="expand-toggle-0-4"
type="button"
>
<span
Expand Down Expand Up @@ -773,6 +780,7 @@ exports[`StorageMap rows vcenter3-datastore-to-ocpv-storageclass2 1`] = `
<button
aria-expanded="false"
class="pf-c-table__button"
id="expand-toggle-0-6"
type="button"
>
<span
Expand Down
Loading

0 comments on commit b85d662

Please sign in to comment.