diff --git a/src/Messages.js b/src/Messages.js index 3cad4d8fa..22eed0c16 100644 --- a/src/Messages.js +++ b/src/Messages.js @@ -11,6 +11,11 @@ export default defineMessages({ description: 'regsiter page title', defaultMessage: 'Patch' }, + labelsActions: { + id: 'labelsActions', + description: 'dropdown with actions label', + defaultMessage: 'Actions' + }, labelsApplicableSystemsCount: { id: 'labelsApplicableSystemsCount', description: 'applicable systems number label', @@ -44,7 +49,7 @@ export default defineMessages({ labelsButtonRemoveTemplate: { id: 'labelsButtonRemoveTemplate', description: 'button label', - defaultMessage: 'Remove template' + defaultMessage: 'Delete template' }, labelsCancel: { id: 'labelsCancel', @@ -146,6 +151,11 @@ export default defineMessages({ description: 'Label', defaultMessage: 'Date' }, + labelsDelete: { + id: 'labelsDelete', + description: 'button label', + defaultMessage: 'Delete' + }, labelsDescription: { id: 'labelsDescription', description: 'Label', @@ -492,6 +502,11 @@ export default defineMessages({ description: 'description of the patch template wizard', defaultMessage: 'Schedule patch template ' }, + templateDetailHeaderBreadcrumb: { + id: 'templateDetailHeaderBreadcrumb', + description: 'breadcrumb for template detail header', + defaultMessage: 'Content templates' + }, templateEdit: { id: 'templateEdit', description: 'step name of the patch template wizard', @@ -692,6 +707,26 @@ export default defineMessages({ description: 'title with capital letters', defaultMessage: 'Assign to a template' }, + titlesTemplateDeleteModalCheckbox: { + id: 'titlesTemplateDeleteModalCheckbox', + description: 'page title with capital letter', + defaultMessage: 'I understand that this action cannot be undone.' + }, + titlesTemplateDeleteModalText: { + id: 'titlesTemplateDeleteModalText', + description: 'page title with capital letter', + defaultMessage: '{templateName} and all its data will be permanently deleted. Associated systems will be removed from the template but will not be deleted.' + }, + titlesTemplateDeleteModalTitle: { + id: 'titlesTemplateDeleteModalTitle', + description: 'page title with capital letter', + defaultMessage: 'Delete template?' + }, + titlesTemplateNoDescription: { + id: 'titlesTemplateNoDescription', + description: 'title with capital letters', + defaultMessage: 'No description available' + }, titlesTemplateRemoveMultipleButton: { id: 'titlesTemplateRemoveMultipleButton', description: 'title with capital letters', diff --git a/src/PresentationalComponents/Header/Header.js b/src/PresentationalComponents/Header/Header.js index d716df03b..ae8063bb8 100644 --- a/src/PresentationalComponents/Header/Header.js +++ b/src/PresentationalComponents/Header/Header.js @@ -1,3 +1,4 @@ +import { Split, SplitItem } from '@patternfly/react-core'; import { PageHeader, PageHeaderTitle @@ -7,17 +8,25 @@ import React from 'react'; import HeaderBreadcrumbs from './HeaderBreadcrumbs'; import HeaderTabs from './HeaderTabs'; -const Header = ({ title, showTabs, breadcrumbs, children, headerOUIA }) => { +const Header = ({ title, showTabs, breadcrumbs, children, headerOUIA, actions }) => { return ( {breadcrumbs && } - + + + + + + + {actions} + + {children} - {showTabs && } + {showTabs && } ); }; @@ -27,7 +36,8 @@ Header.propTypes = { showTabs: PropTypes.bool, breadcrumbs: PropTypes.array, children: PropTypes.any, - headerOUIA: PropTypes.string + headerOUIA: PropTypes.string, + actions: PropTypes.node }; export default Header; diff --git a/src/PresentationalComponents/Header/__snapshots__/Header.test.js.snap b/src/PresentationalComponents/Header/__snapshots__/Header.test.js.snap index f0606aaf6..cf17d3757 100644 --- a/src/PresentationalComponents/Header/__snapshots__/Header.test.js.snap +++ b/src/PresentationalComponents/Header/__snapshots__/Header.test.js.snap @@ -101,24 +101,48 @@ exports[`Header component should render with 1 breadcrumb item and last is activ - - + <div + className="pf-l-split" > - <h1 - className="pf-c-title pf-m-2xl" - data-ouia-component-id="OUIA-Generated-Title-4" - data-ouia-component-type="PF4/Title" - data-ouia-safe={true} - widget-type="InsightsPageHeaderTitle" - /> - - + +
+ + + <h1 + className="pf-c-title pf-m-2xl" + data-ouia-component-id="OUIA-Generated-Title-4" + data-ouia-component-type="PF4/Title" + data-ouia-safe={true} + widget-type="InsightsPageHeaderTitle" + /> + + +
+
+ +
+ + +
+ +
+ @@ -296,24 +320,48 @@ exports[`Header component should render with 2 breadcrumb items and last is acti - - + <div + className="pf-l-split" > - <h1 - className="pf-c-title pf-m-2xl" - data-ouia-component-id="OUIA-Generated-Title-6" - data-ouia-component-type="PF4/Title" - data-ouia-safe={true} - widget-type="InsightsPageHeaderTitle" - /> - - + +
+ + + <h1 + className="pf-c-title pf-m-2xl" + data-ouia-component-id="OUIA-Generated-Title-6" + data-ouia-component-type="PF4/Title" + data-ouia-safe={true} + widget-type="InsightsPageHeaderTitle" + /> + + +
+
+ +
+ + +
+ +
+ @@ -561,24 +609,48 @@ exports[`Header component should render with 3 breadcrumb items and last is acti - - + <div + className="pf-l-split" > - <h1 - className="pf-c-title pf-m-2xl" - data-ouia-component-id="OUIA-Generated-Title-7" - data-ouia-component-type="PF4/Title" - data-ouia-safe={true} - widget-type="InsightsPageHeaderTitle" - /> - - + +
+ + + <h1 + className="pf-c-title pf-m-2xl" + data-ouia-component-id="OUIA-Generated-Title-7" + data-ouia-component-type="PF4/Title" + data-ouia-safe={true} + widget-type="InsightsPageHeaderTitle" + /> + + +
+
+ +
+ + +
+ +
+ @@ -639,24 +711,48 @@ exports[`Header component should render with empty breadcrumb 1`] = ` - - + <div + className="pf-l-split" > - <h1 - className="pf-c-title pf-m-2xl" - data-ouia-component-id="OUIA-Generated-Title-3" - data-ouia-component-type="PF4/Title" - data-ouia-safe={true} - widget-type="InsightsPageHeaderTitle" - /> - - + +
+ + + <h1 + className="pf-c-title pf-m-2xl" + data-ouia-component-id="OUIA-Generated-Title-3" + data-ouia-component-type="PF4/Title" + data-ouia-safe={true} + widget-type="InsightsPageHeaderTitle" + /> + + +
+
+ +
+ + +
+ +
+ @@ -699,26 +795,50 @@ exports[`Header component should render with header Hello world 1`] = ` data-ouia-component-type="undefined-page-header" widget-type="InsightsPageHeader" > - - + <div + className="pf-l-split" > - <h1 - className="pf-c-title pf-m-2xl" - data-ouia-component-id="OUIA-Generated-Title-2" - data-ouia-component-type="PF4/Title" - data-ouia-safe={true} - widget-type="InsightsPageHeaderTitle" + <SplitItem> + <div + className="pf-l-split__item" + > + <PageHeaderTitle + title="Hello world" + > + <Title + className="" + headingLevel="h1" + size="2xl" + widget-type="InsightsPageHeaderTitle" + > + <h1 + className="pf-c-title pf-m-2xl" + data-ouia-component-id="OUIA-Generated-Title-2" + data-ouia-component-type="PF4/Title" + data-ouia-safe={true} + widget-type="InsightsPageHeaderTitle" + > + Hello world + </h1> + + +
+
+ - Hello world - - - +
+ + +
+ +
+ @@ -761,24 +881,48 @@ exports[`Header component should render with header as empty string 1`] = ` data-ouia-component-type="undefined-page-header" widget-type="InsightsPageHeader" > - - + <div + className="pf-l-split" > - <h1 - className="pf-c-title pf-m-2xl" - data-ouia-component-id="OUIA-Generated-Title-1" - data-ouia-component-type="PF4/Title" - data-ouia-safe={true} - widget-type="InsightsPageHeaderTitle" - /> - - + +
+ + + <h1 + className="pf-c-title pf-m-2xl" + data-ouia-component-id="OUIA-Generated-Title-1" + data-ouia-component-type="PF4/Title" + data-ouia-safe={true} + widget-type="InsightsPageHeaderTitle" + /> + + +
+
+ +
+ + +
+ +
+ @@ -865,24 +1009,48 @@ exports[`Header component should render without to attribute 1`] = ` - - + <div + className="pf-l-split" > - <h1 - className="pf-c-title pf-m-2xl" - data-ouia-component-id="OUIA-Generated-Title-5" - data-ouia-component-type="PF4/Title" - data-ouia-safe={true} - widget-type="InsightsPageHeaderTitle" - /> - - + +
+ + + <h1 + className="pf-c-title pf-m-2xl" + data-ouia-component-id="OUIA-Generated-Title-5" + data-ouia-component-type="PF4/Title" + data-ouia-safe={true} + widget-type="InsightsPageHeaderTitle" + /> + + +
+
+ +
+ + +
+ +
+ diff --git a/src/Routes.js b/src/Routes.js index f047bba9d..2d9bd419e 100644 --- a/src/Routes.js +++ b/src/Routes.js @@ -61,11 +61,11 @@ const InventoryDetail = lazy(() => const AdvisoryPage = lazy(() => import( - /* webpackChunkName: "AdvisoryyPage" */ './SmartComponents/AdvisoryDetail/AdvisoryDetail' + /* webpackChunkName: "AdvisoryPage" */ './SmartComponents/AdvisoryDetail/AdvisoryDetail' ) ); -const PackagsPage = lazy(() => +const PackagesPage = lazy(() => import( /* webpackChunkName: "Packages" */ './SmartComponents/Packages/Packages' ) @@ -79,7 +79,13 @@ const PackageDetail = lazy(() => const Templates = lazy(() => import( - /* webpackChunkName: "PackageDetail" */ './SmartComponents/PatchSet/PatchSet' + /* webpackChunkName: "Templates" */ './SmartComponents/PatchSet/PatchSet' + ) +); + +const TemplateDetail = lazy(() => + import( + /* webpackChunkName: "TemplateDetail" */ './SmartComponents/PatchSetDetail/PatchSetDetail' ) ); @@ -133,15 +139,20 @@ export const paths = [ path: '/packages', isExact: true, requiredPermissions: generalPermissions, - component: PackagsPage + component: PackagesPage }, ...(isPatchSetEnabled ? [{ + path: '/templates/:templateName', + isExact: true, + requiredPermissions: generalPermissions, + component: TemplateDetail + }, + { path: '/templates', isExact: true, requiredPermissions: generalPermissions, component: Templates }] : []) - ]; export const Routes = () => { diff --git a/src/SmartComponents/AdvisoryDetail/__snapshots__/AdvisoryDetail.test.js.snap b/src/SmartComponents/AdvisoryDetail/__snapshots__/AdvisoryDetail.test.js.snap index 7e4d0b67c..85c44008b 100644 --- a/src/SmartComponents/AdvisoryDetail/__snapshots__/AdvisoryDetail.test.js.snap +++ b/src/SmartComponents/AdvisoryDetail/__snapshots__/AdvisoryDetail.test.js.snap @@ -199,22 +199,46 @@ exports[`AdvisoryDetail.js Should match the snapshots 1`] = ` - - + <div + className="pf-l-split" > - <h1 - className="pf-c-title pf-m-2xl" - data-ouia-component-id="OUIA-Generated-Title-1" - data-ouia-component-type="PF4/Title" - data-ouia-safe={true} - widget-type="InsightsPageHeaderTitle" - /> - - + +
+ + + <h1 + className="pf-c-title pf-m-2xl" + data-ouia-component-id="OUIA-Generated-Title-1" + data-ouia-component-type="PF4/Title" + data-ouia-safe={true} + widget-type="InsightsPageHeaderTitle" + /> + + +
+
+ +
+ + +
+ +
+ { + const [isCheckboxChecked, setCheckboxChecked] = useState(false); + + const onClose = () => { + setModalOpen(false); + setCheckboxChecked(false); + }; + + return ( + {onClose(); onConfirm();}} isDisabled={!isCheckboxChecked}> + {intl.formatMessage(messages.labelsDelete)} + , + + ]} + > + {intl.formatMessage(messages.titlesTemplateDeleteModalText, { templateName, b: (...chunks) => {chunks} })} + setCheckboxChecked(value)} + label={intl.formatMessage(messages.titlesTemplateDeleteModalCheckbox)} + id="template-delete-modal-checkbox" + /> + + ); +}; + +DeleteSetModal.propTypes = { + isModalOpen: propTypes.bool, + setModalOpen: propTypes.func, + templateName: propTypes.string, + onConfirm: propTypes.func +}; + +export default DeleteSetModal; diff --git a/src/SmartComponents/PackageDetail/__snapshots__/PackageDetail.test.js.snap b/src/SmartComponents/PackageDetail/__snapshots__/PackageDetail.test.js.snap index 2fb65468c..6f22abcd9 100644 --- a/src/SmartComponents/PackageDetail/__snapshots__/PackageDetail.test.js.snap +++ b/src/SmartComponents/PackageDetail/__snapshots__/PackageDetail.test.js.snap @@ -199,22 +199,46 @@ exports[`PackageDetail.js should match the snapshot 1`] = ` - - + <div + className="pf-l-split" > - <h1 - className="pf-c-title pf-m-2xl" - data-ouia-component-id="OUIA-Generated-Title-1" - data-ouia-component-type="PF4/Title" - data-ouia-safe={true} - widget-type="InsightsPageHeaderTitle" - /> - - + +
+ + + <h1 + className="pf-c-title pf-m-2xl" + data-ouia-component-id="OUIA-Generated-Title-1" + data-ouia-component-type="PF4/Title" + data-ouia-safe={true} + widget-type="InsightsPageHeaderTitle" + /> + + +
+
+ +
+ + +
+ +
+ - - + <div + className="pf-l-split" > - <h1 - className="pf-c-title pf-m-2xl" - data-ouia-component-id="OUIA-Generated-Title-1" - data-ouia-component-type="PF4/Title" - data-ouia-safe={true} - widget-type="InsightsPageHeaderTitle" + <SplitItem> + <div + className="pf-l-split__item" + > + <PageHeaderTitle + title="Patch packages" + > + <Title + className="" + headingLevel="h1" + size="2xl" + widget-type="InsightsPageHeaderTitle" + > + <h1 + className="pf-c-title pf-m-2xl" + data-ouia-component-id="OUIA-Generated-Title-1" + data-ouia-component-type="PF4/Title" + data-ouia-safe={true} + widget-type="InsightsPageHeaderTitle" + > + Patch packages + </h1> + + +
+
+ - Patch packages - - - +
+ + +
+ +
+ diff --git a/src/SmartComponents/PatchSet/PatchSet.js b/src/SmartComponents/PatchSet/PatchSet.js index 092957e1e..b795c5712 100644 --- a/src/SmartComponents/PatchSet/PatchSet.js +++ b/src/SmartComponents/PatchSet/PatchSet.js @@ -29,6 +29,7 @@ import { usePermissionsWithContext } from '@redhat-cloud-services/frontend-compo import { useOnSelect, ID_API_ENDPOINTS } from '../../Utilities/useOnSelect'; import { ExternalLinkAltIcon, OutlinedQuestionCircleIcon } from '@patternfly/react-icons'; import { Popover } from '@patternfly/react-core'; +import DeleteSetModal from '../Modals/DeleteSetModal'; import { NoPatchSetList, NoSmartManagement } from '../../PresentationalComponents/Snippets/EmptyStates'; const PatchSet = () => { @@ -42,6 +43,9 @@ const PatchSet = () => { const history = useHistory(); const [firstMount, setFirstMount] = React.useState(true); const [hasSmartManagement, setSmartManagement] = React.useState(true); + const [isDeleteConfirmModalOpen, setDeleteConfirmModalOpen] = React.useState(false); + const [patchSetToDelete, setPatchSetToDelete] = React.useState(null); + const patchSets = useSelector( ({ PatchSetsStore }) => PatchSetsStore.rows ); @@ -124,13 +128,18 @@ const PatchSet = () => { const onSetPage = useSetPage(metadata.limit, apply); const onPerPageSelect = usePerPageSelect(apply); - const handlePatchSetDelete = (rowData) => { - deletePatchSet(rowData.id).then(() => { - dispatch(addNotification(patchSetDeleteNotifications.success)); + const openPatchDeleteModal = (rowData) => { + setDeleteConfirmModalOpen(true); + setPatchSetToDelete(rowData); + }; + + const handlePatchSetDelete = () => { + deletePatchSet(patchSetToDelete.id).then(() => { + dispatch(addNotification(patchSetDeleteNotifications(patchSetToDelete.displayName).success)); refreshTable(); }).catch(() => { - dispatch(addNotification(patchSetDeleteNotifications.error)); - });; + dispatch(addNotification(patchSetDeleteNotifications(patchSetToDelete.displayName).error)); + }); }; const { hasAccess } = usePermissionsWithContext([ @@ -138,7 +147,7 @@ const PatchSet = () => { 'patch:template:write' ]); const CreatePatchSetButton = createPatchSetButton(setPatchSetState, hasAccess); - const actionsConfig = patchSetRowActions(openPatchSetEditModal, handlePatchSetDelete); + const actionsConfig = patchSetRowActions(openPatchSetEditModal, openPatchDeleteModal); //TODO: refactor search filter to be able to wrap this into useMemo const filterConfig = { @@ -152,6 +161,12 @@ const PatchSet = () => { return ( +
diff --git a/src/SmartComponents/PatchSet/PatchSetAssets.js b/src/SmartComponents/PatchSet/PatchSetAssets.js index daae2d64f..fbd6df07d 100644 --- a/src/SmartComponents/PatchSet/PatchSetAssets.js +++ b/src/SmartComponents/PatchSet/PatchSetAssets.js @@ -23,18 +23,27 @@ export const patchSetColumns = [ { key: 'name', title: 'Name', - transforms: [sortable], - props: { - width: 50 - } + transforms: [sortable] }, { key: 'systems', - title: 'Systems', - transforms: [sortable], - props: { - width: 50 - } + title: 'Systems applied', + transforms: [sortable] + }, + { + key: 'last_edited', + title: 'Last edited', + transforms: [sortable] + }, + { + key: 'published', + title: 'Published', + transforms: [sortable] + }, + { + key: 'creator', + title: 'Created by', + transforms: [sortable] } ]; diff --git a/src/SmartComponents/PatchSet/__snapshots__/PatchSet.test.js.snap b/src/SmartComponents/PatchSet/__snapshots__/PatchSet.test.js.snap index a4fc317df..0d04c6244 100644 --- a/src/SmartComponents/PatchSet/__snapshots__/PatchSet.test.js.snap +++ b/src/SmartComponents/PatchSet/__snapshots__/PatchSet.test.js.snap @@ -44,6 +44,86 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` } } > + + + Delete + , + , + ] + } + appendTo={[Function]} + aria-describedby="" + aria-label="" + aria-labelledby="" + className="" + hasNoBodyWrapper={false} + isOpen={false} + onClose={[Function]} + ouiaSafe={true} + showClose={true} + title="Delete template?" + titleIconVariant="warning" + titleLabel="" + variant="small" + > + } + > + + Delete + , + , + ] + } + aria-describedby="" + aria-label="" + aria-labelledby="" + boxId="pf-modal-part-0" + className="" + descriptorId="pf-modal-part-2" + hasNoBodyWrapper={false} + isOpen={false} + labelId="pf-modal-part-1" + onClose={[Function]} + ouiaId="OUIA-Generated-Modal-small-1" + ouiaSafe={true} + showClose={true} + title="Delete template?" + titleIconVariant="warning" + titleLabel="" + variant="small" + /> + + +
- - Templates - - Read more - - - - } - hasAutoWidth={true} - headerContent="About Templates" - id="template-header-title-popover" - maxWidth="320px" - position="right" - > - - - - } - > - + <div + className="pf-l-split" > - <h1 - className="pf-c-title pf-m-2xl" - data-ouia-component-id="OUIA-Generated-Title-1" - data-ouia-component-type="PF4/Title" - data-ouia-safe={true} - widget-type="InsightsPageHeaderTitle" - > - <span> - Templates - <Popover - aria-describedby="template-header-title-popover" - aria-labelledby="template-header-title-popover" - bodyContent="Templates allow you to control the scope of package and advisory updates to be installed on selected systems." - enableFlip={true} - footerContent={ - <a - href="https://access.redhat.com/documentation/en-us/red_hat_insights/2022/html/system_patching_using_ansible_playbooks_via_remediations/index" - rel="noopener noreferrer" - target="__blank" - > - Read more - - <ExternalLinkAltIcon - color="currentColor" - noVerticalAlign={false} - size="sm" - /> - </a> - } - hasAutoWidth={true} - headerContent="About Templates" - id="template-header-title-popover" - maxWidth="320px" - position="right" - > - <Popper - appendTo={[Function]} - distance={25} - enableFlip={true} - flipBehavior={ - Array [ - "top", - "bottom", - "left", - "right", - "top-start", - "top-end", - "bottom-start", - "bottom-end", - "left-start", - "left-end", - "right-start", - "right-end", - ] - } - isVisible={false} - onDocumentClick={[Function]} - onDocumentKeyDown={[Function]} - onTriggerClick={[Function]} - placement="right" - popper={ - <ForwardRef - active={false} + <SplitItem> + <div + className="pf-l-split__item" + > + <PageHeaderTitle + title={ + <span> + Templates + <Popover aria-describedby="template-header-title-popover" aria-labelledby="template-header-title-popover" - aria-modal="true" - className="pf-c-popover pf-m-width-auto" - focusTrapOptions={ - Object { - "clickOutsideDeactivates": true, - "fallbackFocus": [Function], - "returnFocusOnDeactivate": true, - "tabbableOptions": Object { - "displayCheck": "none", - }, - } - } - onMouseDown={[Function]} - preventScrollOnDeactivate={true} - role="dialog" - style={ - Object { - "maxWidth": "320px", - "minWidth": null, - "opacity": 0, - "transition": "opacity 300ms cubic-bezier(.54, 1.5, .38, 1.11)", - } + bodyContent="Templates allow you to control the scope of package and advisory updates to be installed on selected systems." + enableFlip={true} + footerContent={ + <a + href="https://access.redhat.com/documentation/en-us/red_hat_insights/2022/html/system_patching_using_ansible_playbooks_via_remediations/index" + rel="noopener noreferrer" + target="__blank" + > + Read more + + <ExternalLinkAltIcon + color="currentColor" + noVerticalAlign={false} + size="sm" + /> + </a> } + hasAutoWidth={true} + headerContent="About Templates" + id="template-header-title-popover" + maxWidth="320px" + position="right" > - <PopoverArrow /> - <PopoverContent> - <PopoverCloseButton - aria-label="Close" - onClose={[Function]} - /> - <PopoverHeader - alertSeverityScreenReaderText="undefined alert:" - icon={null} - id="popover-template-header-title-popover-header" - titleHeadingLevel="h6" - > - About Templates - </PopoverHeader> - <PopoverBody - id="popover-template-header-title-popover-body" - > - Templates allow you to control the scope of package and advisory updates to be installed on selected systems. - </PopoverBody> - <PopoverFooter - id="popover-template-header-title-popover-footer" - > + <OutlinedQuestionCircleIcon + className="pf-u-ml-sm" + color="var(--pf-global--secondary-color--100)" + noVerticalAlign={false} + size="sm" + style={ + Object { + "cursor": "pointer", + "fontSize": 16, + "verticalAlign": "0", + } + } + /> + </Popover> + </span> + } + > + <Title + className="" + headingLevel="h1" + size="2xl" + widget-type="InsightsPageHeaderTitle" + > + <h1 + className="pf-c-title pf-m-2xl" + data-ouia-component-id="OUIA-Generated-Title-1" + data-ouia-component-type="PF4/Title" + data-ouia-safe={true} + widget-type="InsightsPageHeaderTitle" + > + <span> + Templates + <Popover + aria-describedby="template-header-title-popover" + aria-labelledby="template-header-title-popover" + bodyContent="Templates allow you to control the scope of package and advisory updates to be installed on selected systems." + enableFlip={true} + footerContent={ <a href="https://access.redhat.com/documentation/en-us/red_hat_insights/2022/html/system_patching_using_ansible_playbooks_via_remediations/index" rel="noopener noreferrer" @@ -277,90 +269,202 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` size="sm" /> </a> - </PopoverFooter> - </PopoverContent> - </ForwardRef> - } - popperMatchesTriggerWidth={false} - positionModifiers={ - Object { - "bottom": "pf-m-bottom", - "bottom-end": "pf-m-bottom-right", - "bottom-start": "pf-m-bottom-left", - "left": "pf-m-left", - "left-end": "pf-m-left-bottom", - "left-start": "pf-m-left-top", - "right": "pf-m-right", - "right-end": "pf-m-right-bottom", - "right-start": "pf-m-right-top", - "top": "pf-m-top", - "top-end": "pf-m-top-right", - "top-start": "pf-m-top-left", - } - } - removeFindDomNode={false} - trigger={ - <OutlinedQuestionCircleIcon - className="pf-u-ml-sm" - color="var(--pf-global--secondary-color--100)" - noVerticalAlign={false} - size="sm" - style={ - Object { - "cursor": "pointer", - "fontSize": 16, - "verticalAlign": "0", - } - } - /> - } - zIndex={9999} - > - <FindRefWrapper - onFoundRef={[Function]} - > - <OutlinedQuestionCircleIcon - className="pf-u-ml-sm" - color="var(--pf-global--secondary-color--100)" - noVerticalAlign={false} - size="sm" - style={ - Object { - "cursor": "pointer", - "fontSize": 16, - "verticalAlign": "0", - } - } - > - <svg - aria-hidden={true} - aria-labelledby={null} - className="pf-u-ml-sm" - fill="var(--pf-global--secondary-color--100)" - height="1em" - role="img" - style={ - Object { - "cursor": "pointer", - "fontSize": 16, - "verticalAlign": "0", - } } - viewBox="0 0 512 512" - width="1em" + hasAutoWidth={true} + headerContent="About Templates" + id="template-header-title-popover" + maxWidth="320px" + position="right" > - <path - d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z" - /> - </svg> - </OutlinedQuestionCircleIcon> - </FindRefWrapper> - </Popper> - </Popover> - </span> - </h1> - - + + + + + + About Templates + + + Templates allow you to control the scope of package and advisory updates to be installed on selected systems. + + + + Read more + + + + + + + } + popperMatchesTriggerWidth={false} + positionModifiers={ + Object { + "bottom": "pf-m-bottom", + "bottom-end": "pf-m-bottom-right", + "bottom-start": "pf-m-bottom-left", + "left": "pf-m-left", + "left-end": "pf-m-left-bottom", + "left-start": "pf-m-left-top", + "right": "pf-m-right", + "right-end": "pf-m-right-bottom", + "right-start": "pf-m-right-top", + "top": "pf-m-top", + "top-end": "pf-m-top-right", + "top-start": "pf-m-top-left", + } + } + removeFindDomNode={false} + trigger={ + + } + zIndex={9999} + > + + + + + + + + + + + + + +
+
+ +
+ + +
+ +
+ @@ -380,7 +484,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", }, ] } @@ -390,9 +494,6 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` Array [ Object { "key": "name", - "props": Object { - "width": 50, - }, "title": "Name", "transforms": Array [ [Function], @@ -400,10 +501,28 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "key": "systems", - "props": Object { - "width": 50, - }, - "title": "Systems", + "title": "Systems applied", + "transforms": Array [ + [Function], + ], + }, + Object { + "key": "last_edited", + "title": "Last edited", + "transforms": Array [ + [Function], + ], + }, + Object { + "key": "published", + "title": "Published", + "transforms": Array [ + [Function], + ], + }, + Object { + "key": "creator", + "title": "Created by", "transforms": Array [ [Function], ], @@ -449,65 +568,145 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "rows": Array [ Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "displayName": undefined, "id": 1, "key": 1, "selected": false, }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "displayName": undefined, "id": 2, "key": 2, "selected": false, }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "displayName": undefined, "id": 3, "key": 3, "selected": false, }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "displayName": undefined, "id": 4, "key": 4, "selected": false, }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "displayName": undefined, "id": 5, "key": 5, "selected": false, @@ -1590,7 +1789,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", }, ] } @@ -1604,9 +1803,6 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` Array [ Object { "key": "name", - "props": Object { - "width": 50, - }, "title": "Name", "transforms": Array [ [Function], @@ -1614,10 +1810,28 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "key": "systems", - "props": Object { - "width": 50, - }, - "title": "Systems", + "title": "Systems applied", + "transforms": Array [ + [Function], + ], + }, + Object { + "key": "last_edited", + "title": "Last edited", + "transforms": Array [ + [Function], + ], + }, + Object { + "key": "published", + "title": "Published", + "transforms": Array [ + [Function], + ], + }, + Object { + "key": "creator", + "title": "Created by", "transforms": Array [ [Function], ], @@ -1645,52 +1859,116 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` Array [ Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "displayName": undefined, "id": 1, "key": 1, "selected": false, }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "displayName": undefined, "id": 2, "key": 2, "selected": false, }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "displayName": undefined, "id": 3, "key": 3, "selected": false, }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "displayName": undefined, "id": 4, "key": 4, "selected": false, @@ -1698,15 +1976,31 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` Object { "cells": Array [ Object { - "title": undefined, + "title": , }, Object { "title": undefined, }, - ], - "id": 5, - "key": 5, - "selected": false, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, + Object { + "title": undefined, + }, + ], + "displayName": undefined, + "id": 5, + "key": 5, + "selected": false, }, ] } @@ -1739,7 +2033,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", }, ], "actionsToggle": [Function], @@ -1779,7 +2073,6 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "props": Object { "data-key": 0, "data-label": "Name", - "width": 50, }, }, Object { @@ -1801,7 +2094,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", }, ], "actionsToggle": [Function], @@ -1830,18 +2123,200 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, "header": Object { "formatters": Array [], - "label": "Systems", + "label": "Systems applied", "transforms": Array [ [Function], [Function], [Function], ], }, - "property": "systems", + "property": "systems-applied", "props": Object { "data-key": 1, - "data-label": "Systems", - "width": 50, + "data-label": "Systems applied", + }, + }, + Object { + "cell": Object { + "formatters": Array [ + [Function], + ], + "transforms": Array [ + [Function], + ], + }, + "data": undefined, + "extraParams": Object { + "actionResolver": undefined, + "actions": Array [ + Object { + "onClick": [Function], + "title": "Edit template", + }, + Object { + "onClick": [Function], + "title": "Delete template", + }, + ], + "actionsToggle": [Function], + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": false, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 0, + "isHeaderSelectDisabled": false, + "onCollapse": undefined, + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": false, + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": Object {}, + }, + "header": Object { + "formatters": Array [], + "label": "Last edited", + "transforms": Array [ + [Function], + [Function], + [Function], + ], + }, + "property": "last-edited", + "props": Object { + "data-key": 2, + "data-label": "Last edited", + }, + }, + Object { + "cell": Object { + "formatters": Array [ + [Function], + ], + "transforms": Array [ + [Function], + ], + }, + "data": undefined, + "extraParams": Object { + "actionResolver": undefined, + "actions": Array [ + Object { + "onClick": [Function], + "title": "Edit template", + }, + Object { + "onClick": [Function], + "title": "Delete template", + }, + ], + "actionsToggle": [Function], + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": false, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 0, + "isHeaderSelectDisabled": false, + "onCollapse": undefined, + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": false, + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": Object {}, + }, + "header": Object { + "formatters": Array [], + "label": "Published", + "transforms": Array [ + [Function], + [Function], + [Function], + ], + }, + "property": "published", + "props": Object { + "data-key": 3, + "data-label": "Published", + }, + }, + Object { + "cell": Object { + "formatters": Array [ + [Function], + ], + "transforms": Array [ + [Function], + ], + }, + "data": undefined, + "extraParams": Object { + "actionResolver": undefined, + "actions": Array [ + Object { + "onClick": [Function], + "title": "Edit template", + }, + Object { + "onClick": [Function], + "title": "Delete template", + }, + ], + "actionsToggle": [Function], + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": false, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 0, + "isHeaderSelectDisabled": false, + "onCollapse": undefined, + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": false, + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": Object {}, + }, + "header": Object { + "formatters": Array [], + "label": "Created by", + "transforms": Array [ + [Function], + [Function], + [Function], + ], + }, + "property": "created-by", + "props": Object { + "data-key": 4, + "data-label": "Created by", }, }, Object { @@ -1864,7 +2339,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", }, ], "actionsToggle": [Function], @@ -1900,9 +2375,9 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` [Function], ], }, - "property": "column-2", + "property": "column-5", "props": Object { - "data-key": 2, + "data-key": 5, "data-label": "", }, }, @@ -1995,7 +2470,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", }, ], "actionsToggle": [Function], @@ -2035,7 +2510,6 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "props": Object { "data-key": 0, "data-label": "Name", - "width": 50, }, }, Object { @@ -2057,7 +2531,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", }, ], "actionsToggle": [Function], @@ -2086,18 +2560,17 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, "header": Object { "formatters": Array [], - "label": "Systems", + "label": "Systems applied", "transforms": Array [ [Function], [Function], [Function], ], }, - "property": "systems", + "property": "systems-applied", "props": Object { "data-key": 1, - "data-label": "Systems", - "width": 50, + "data-label": "Systems applied", }, }, Object { @@ -2107,7 +2580,6 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` ], "transforms": Array [ [Function], - [Function], ], }, "data": undefined, @@ -2120,7 +2592,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", }, ], "actionsToggle": [Function], @@ -2149,41 +2621,225 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, "header": Object { "formatters": Array [], - "label": "", + "label": "Last edited", "transforms": Array [ [Function], [Function], [Function], ], }, - "property": "column-2", + "property": "last-edited", "props": Object { "data-key": 2, - "data-label": "", + "data-label": "Last edited", }, }, - ] - } - headerRows={null} - renderers={ - Object { - "body": Object { - "cell": [Function], - "row": [Function], - "wrapper": [Function], - }, - "header": Object { - "cell": [Function], - "row": Object { - "$$typeof": Symbol(react.forward_ref), - "render": [Function], + Object { + "cell": Object { + "formatters": Array [ + [Function], + ], + "transforms": Array [ + [Function], + ], }, - "wrapper": Object { - "$$typeof": Symbol(react.forward_ref), - "render": [Function], + "data": undefined, + "extraParams": Object { + "actionResolver": undefined, + "actions": Array [ + Object { + "onClick": [Function], + "title": "Edit template", + }, + Object { + "onClick": [Function], + "title": "Delete template", + }, + ], + "actionsToggle": [Function], + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": false, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 0, + "isHeaderSelectDisabled": false, + "onCollapse": undefined, + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": false, + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": Object {}, + }, + "header": Object { + "formatters": Array [], + "label": "Published", + "transforms": Array [ + [Function], + [Function], + [Function], + ], + }, + "property": "published", + "props": Object { + "data-key": 3, + "data-label": "Published", }, }, - "table": Object { + Object { + "cell": Object { + "formatters": Array [ + [Function], + ], + "transforms": Array [ + [Function], + ], + }, + "data": undefined, + "extraParams": Object { + "actionResolver": undefined, + "actions": Array [ + Object { + "onClick": [Function], + "title": "Edit template", + }, + Object { + "onClick": [Function], + "title": "Delete template", + }, + ], + "actionsToggle": [Function], + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": false, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 0, + "isHeaderSelectDisabled": false, + "onCollapse": undefined, + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": false, + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": Object {}, + }, + "header": Object { + "formatters": Array [], + "label": "Created by", + "transforms": Array [ + [Function], + [Function], + [Function], + ], + }, + "property": "created-by", + "props": Object { + "data-key": 4, + "data-label": "Created by", + }, + }, + Object { + "cell": Object { + "formatters": Array [ + [Function], + ], + "transforms": Array [ + [Function], + [Function], + ], + }, + "data": undefined, + "extraParams": Object { + "actionResolver": undefined, + "actions": Array [ + Object { + "onClick": [Function], + "title": "Edit template", + }, + Object { + "onClick": [Function], + "title": "Delete template", + }, + ], + "actionsToggle": [Function], + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": false, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 0, + "isHeaderSelectDisabled": false, + "onCollapse": undefined, + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": false, + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": Object {}, + }, + "header": Object { + "formatters": Array [], + "label": "", + "transforms": Array [ + [Function], + [Function], + [Function], + ], + }, + "property": "column-5", + "props": Object { + "data-key": 5, + "data-label": "", + }, + }, + ] + } + headerRows={null} + renderers={ + Object { + "body": Object { + "cell": [Function], + "row": [Function], + "wrapper": [Function], + }, + "header": Object { + "cell": [Function], + "row": Object { + "$$typeof": Symbol(react.forward_ref), + "render": [Function], + }, + "wrapper": Object { + "$$typeof": Symbol(react.forward_ref), + "render": [Function], + }, + }, + "table": Object { "$$typeof": Symbol(react.forward_ref), "render": [Function], }, @@ -2236,7 +2892,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", }, ], "actionsToggle": [Function], @@ -2276,7 +2932,6 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "props": Object { "data-key": 0, "data-label": "Name", - "width": 50, }, }, Object { @@ -2298,7 +2953,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", }, ], "actionsToggle": [Function], @@ -2327,18 +2982,17 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, "header": Object { "formatters": Array [], - "label": "Systems", + "label": "Systems applied", "transforms": Array [ [Function], [Function], [Function], ], }, - "property": "systems", + "property": "systems-applied", "props": Object { "data-key": 1, - "data-label": "Systems", - "width": 50, + "data-label": "Systems applied", }, }, Object { @@ -2348,7 +3002,6 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` ], "transforms": Array [ [Function], - [Function], ], }, "data": undefined, @@ -2361,7 +3014,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", }, ], "actionsToggle": [Function], @@ -2390,171 +3043,254 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, "header": Object { "formatters": Array [], - "label": "", + "label": "Last edited", "transforms": Array [ [Function], [Function], [Function], ], }, - "property": "column-2", + "property": "last-edited", "props": Object { "data-key": 2, - "data-label": "", + "data-label": "Last edited", }, }, - ] - } - rowIndex={0} - > - - - - - - - - - - - - - - - + Object { + "cell": Object { + "formatters": Array [ + [Function], + ], + "transforms": Array [ + [Function], + ], + }, + "data": undefined, + "extraParams": Object { + "actionResolver": undefined, + "actions": Array [ + Object { + "onClick": [Function], + "title": "Edit template", + }, + Object { + "onClick": [Function], + "title": "Delete template", + }, + ], + "actionsToggle": [Function], + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": false, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 0, + "isHeaderSelectDisabled": false, + "onCollapse": undefined, + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": false, + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": Object {}, + }, + "header": Object { + "formatters": Array [], + "label": "Published", + "transforms": Array [ + [Function], + [Function], + [Function], + ], + }, + "property": "published", + "props": Object { + "data-key": 3, + "data-label": "Published", + }, + }, + Object { + "cell": Object { + "formatters": Array [ + [Function], + ], + "transforms": Array [ + [Function], + ], + }, + "data": undefined, + "extraParams": Object { + "actionResolver": undefined, + "actions": Array [ + Object { + "onClick": [Function], + "title": "Edit template", + }, + Object { + "onClick": [Function], + "title": "Delete template", + }, + ], + "actionsToggle": [Function], + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": false, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 0, + "isHeaderSelectDisabled": false, + "onCollapse": undefined, + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": false, + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": Object {}, + }, + "header": Object { + "formatters": Array [], + "label": "Created by", + "transforms": Array [ + [Function], + [Function], + [Function], + ], + }, + "property": "created-by", + "props": Object { + "data-key": 4, + "data-label": "Created by", + }, + }, + Object { + "cell": Object { + "formatters": Array [ + [Function], + ], + "transforms": Array [ + [Function], + [Function], + ], + }, + "data": undefined, + "extraParams": Object { + "actionResolver": undefined, + "actions": Array [ + Object { + "onClick": [Function], + "title": "Edit template", + }, + Object { + "onClick": [Function], + "title": "Delete template", + }, + ], + "actionsToggle": [Function], + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": false, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 0, + "isHeaderSelectDisabled": false, + "onCollapse": undefined, + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": false, + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": Object {}, + }, + "header": Object { + "formatters": Array [], + "label": "", + "transforms": Array [ + [Function], + [Function], + [Function], + ], + }, + "property": "column-5", + "props": Object { + "data-key": 5, + "data-label": "", + }, + }, + ] + } + rowIndex={0} + > + + + + @@ -2576,7 +3312,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` className="pf-c-table__text" onMouseEnter={[Function]} > - Systems + Name - - - - - - - - - - - - - - + scope="col" + > + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "displayName": undefined, "id": 1, "key": 1, "selected": false, }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "displayName": undefined, "id": 2, "key": 2, "selected": false, }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "displayName": undefined, "id": 3, "key": 3, "selected": false, @@ -2904,25 +4249,57 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` Object { "cells": Array [ Object { - "title": undefined, + "title": , + }, + Object { + "title": undefined, + }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", }, Object { "title": undefined, }, ], + "displayName": undefined, "id": 4, "key": 4, "selected": false, }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "displayName": undefined, "id": 5, "key": 5, "selected": false, @@ -2937,13 +4314,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` Array [ Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 1, "isExpanded": undefined, "isFirst": true, @@ -2952,16 +4352,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 1, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 1, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -2971,13 +4391,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 2, "isExpanded": undefined, "isFirst": false, @@ -2986,16 +4429,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 2, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 2, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -3005,13 +4468,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 3, "isExpanded": undefined, "isFirst": false, @@ -3020,16 +4506,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 3, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 3, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -3039,13 +4545,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 4, "isExpanded": undefined, "isFirst": false, @@ -3054,16 +4583,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 4, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 4, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -3073,13 +4622,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 5, "isExpanded": undefined, "isFirst": false, @@ -3088,16 +4660,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": true, "isLastVisible": true, "key": 5, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 5, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -3113,13 +4705,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` Array [ Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 1, "isExpanded": undefined, "isFirst": true, @@ -3128,16 +4743,113 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 1, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 1, "selected": false, - "systems": Object { + "systems-applied": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + }, + Object { + "cells": Array [ + Object { + "title": , + }, + Object { + "title": undefined, + }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, + Object { + "title": undefined, + }, + ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, + "id": 2, + "isExpanded": undefined, + "isFirst": false, + "isFirstVisible": false, + "isHeightAuto": false, + "isLast": false, + "isLastVisible": false, + "key": 2, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, + "name": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, + "secretTableRowKeyId": 2, + "selected": false, + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -3148,30 +4860,73 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` Object { "cells": Array [ Object { - "title": undefined, + "title": , + }, + Object { + "title": undefined, + }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", }, Object { "title": undefined, }, ], - "id": 2, + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, + "id": 3, "isExpanded": undefined, "isFirst": false, "isFirstVisible": false, "isHeightAuto": false, "isLast": false, "isLastVisible": false, - "key": 2, + "key": 3, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , }, - "secretTableRowKeyId": 2, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, + "secretTableRowKeyId": 3, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -3181,31 +4936,74 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], - "id": 3, + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, + "id": 4, "isExpanded": undefined, "isFirst": false, "isFirstVisible": false, "isHeightAuto": false, "isLast": false, "isLastVisible": false, - "key": 3, + "key": 4, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , }, - "secretTableRowKeyId": 3, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, + "secretTableRowKeyId": 4, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -3215,31 +5013,74 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], - "id": 4, + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, + "id": 5, "isExpanded": undefined, "isFirst": false, "isFirstVisible": false, "isHeightAuto": false, - "isLast": false, - "isLastVisible": false, - "key": 4, + "isLast": true, + "isLastVisible": true, + "key": 5, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , }, - "secretTableRowKeyId": 4, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, + "secretTableRowKeyId": 5, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -3247,47 +5088,196 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "title": undefined, }, }, - Object { - "cells": Array [ - Object { - "title": undefined, + ] + } + > + - , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 1, "isExpanded": undefined, "isFirst": true, @@ -3496,16 +5507,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 1, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 1, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -3515,13 +5546,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 2, "isExpanded": undefined, "isFirst": false, @@ -3530,16 +5584,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 2, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 2, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -3549,13 +5623,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 3, "isExpanded": undefined, "isFirst": false, @@ -3564,16 +5661,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 3, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 3, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -3583,13 +5700,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 4, "isExpanded": undefined, "isFirst": false, @@ -3598,16 +5738,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 4, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 4, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -3617,13 +5777,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 5, "isExpanded": undefined, "isFirst": false, @@ -3632,16 +5815,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": true, "isLastVisible": true, "key": 5, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 5, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -3681,13 +5884,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` Array [ Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 1, "isExpanded": undefined, "isFirst": true, @@ -3696,16 +5922,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 1, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 1, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -3715,13 +5961,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 2, "isExpanded": undefined, "isFirst": false, @@ -3730,16 +5999,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 2, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 2, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -3749,13 +6038,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 3, "isExpanded": undefined, "isFirst": false, @@ -3764,16 +6076,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 3, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 3, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -3783,13 +6115,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 4, "isExpanded": undefined, "isFirst": false, @@ -3798,16 +6153,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 4, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 4, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -3817,13 +6192,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 5, "isExpanded": undefined, "isFirst": false, @@ -3832,16 +6230,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": true, "isLastVisible": true, "key": 5, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 5, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -3859,13 +6277,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` Array [ Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 1, "isExpanded": undefined, "isFirst": true, @@ -3874,16 +6315,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 1, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 1, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -3893,13 +6354,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 2, "isExpanded": undefined, "isFirst": false, @@ -3908,16 +6392,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 2, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 2, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -3927,13 +6431,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 3, "isExpanded": undefined, "isFirst": false, @@ -3942,16 +6469,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 3, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 3, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -3961,13 +6508,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 4, "isExpanded": undefined, "isFirst": false, @@ -3976,16 +6546,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 4, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 4, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -3995,13 +6585,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 5, "isExpanded": undefined, "isFirst": false, @@ -4010,16 +6623,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": true, "isLastVisible": true, "key": 5, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 5, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -4063,7 +6696,68 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", + }, + ], + "actionsToggle": [Function], + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": false, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 0, + "isHeaderSelectDisabled": false, + "onCollapse": undefined, + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": false, + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": Object {}, + }, + "header": Object { + "formatters": Array [], + "label": "Name", + "transforms": Array [ + [Function], + [Function], + [Function], + ], + }, + "property": "name", + "props": Object { + "data-key": 0, + "data-label": "Name", + }, + }, + Object { + "cell": Object { + "formatters": Array [ + [Function], + ], + "transforms": Array [ + [Function], + ], + }, + "data": undefined, + "extraParams": Object { + "actionResolver": undefined, + "actions": Array [ + Object { + "onClick": [Function], + "title": "Edit template", + }, + Object { + "onClick": [Function], + "title": "Delete template", }, ], "actionsToggle": [Function], @@ -4092,18 +6786,17 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, "header": Object { "formatters": Array [], - "label": "Name", + "label": "Systems applied", "transforms": Array [ [Function], [Function], [Function], ], }, - "property": "name", + "property": "systems-applied", "props": Object { - "data-key": 0, - "data-label": "Name", - "width": 50, + "data-key": 1, + "data-label": "Systems applied", }, }, Object { @@ -4125,7 +6818,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", }, ], "actionsToggle": [Function], @@ -4154,18 +6847,139 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, "header": Object { "formatters": Array [], - "label": "Systems", + "label": "Last edited", "transforms": Array [ [Function], [Function], [Function], ], }, - "property": "systems", + "property": "last-edited", "props": Object { - "data-key": 1, - "data-label": "Systems", - "width": 50, + "data-key": 2, + "data-label": "Last edited", + }, + }, + Object { + "cell": Object { + "formatters": Array [ + [Function], + ], + "transforms": Array [ + [Function], + ], + }, + "data": undefined, + "extraParams": Object { + "actionResolver": undefined, + "actions": Array [ + Object { + "onClick": [Function], + "title": "Edit template", + }, + Object { + "onClick": [Function], + "title": "Delete template", + }, + ], + "actionsToggle": [Function], + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": false, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 0, + "isHeaderSelectDisabled": false, + "onCollapse": undefined, + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": false, + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": Object {}, + }, + "header": Object { + "formatters": Array [], + "label": "Published", + "transforms": Array [ + [Function], + [Function], + [Function], + ], + }, + "property": "published", + "props": Object { + "data-key": 3, + "data-label": "Published", + }, + }, + Object { + "cell": Object { + "formatters": Array [ + [Function], + ], + "transforms": Array [ + [Function], + ], + }, + "data": undefined, + "extraParams": Object { + "actionResolver": undefined, + "actions": Array [ + Object { + "onClick": [Function], + "title": "Edit template", + }, + Object { + "onClick": [Function], + "title": "Delete template", + }, + ], + "actionsToggle": [Function], + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": false, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 0, + "isHeaderSelectDisabled": false, + "onCollapse": undefined, + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": false, + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": Object {}, + }, + "header": Object { + "formatters": Array [], + "label": "Created by", + "transforms": Array [ + [Function], + [Function], + [Function], + ], + }, + "property": "created-by", + "props": Object { + "data-key": 4, + "data-label": "Created by", }, }, Object { @@ -4188,7 +7002,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", }, ], "actionsToggle": [Function], @@ -4224,9 +7038,9 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` [Function], ], }, - "property": "column-2", + "property": "column-5", "props": Object { - "data-key": 2, + "data-key": 5, "data-label": "", }, }, @@ -4244,13 +7058,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` rowData={ Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 1, "isExpanded": undefined, "isFirst": true, @@ -4259,16 +7096,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 1, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 1, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -4287,13 +7144,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` row={ Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 1, "isExpanded": undefined, "isFirst": true, @@ -4302,16 +7182,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 1, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 1, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -4348,70 +7248,182 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` onKeyDown={[Function]} > + + + + + + + + + + + + + + N/A + + + + + + + + + N/A + + + + + + + + @@ -4419,10 +7431,10 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 1, "isExpanded": undefined, "isFirst": true, @@ -4570,16 +7605,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 1, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 1, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -4605,7 +7660,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` data-key={1} onClick={[Function]} > - Remove template + Delete template , ] } @@ -4648,7 +7703,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` data-key={1} onClick={[Function]} > - Remove template + Delete template , ] } @@ -4887,7 +7942,190 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", + }, + ], + "actionsToggle": [Function], + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": false, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 0, + "isHeaderSelectDisabled": false, + "onCollapse": undefined, + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": false, + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": Object {}, + }, + "header": Object { + "formatters": Array [], + "label": "Name", + "transforms": Array [ + [Function], + [Function], + [Function], + ], + }, + "property": "name", + "props": Object { + "data-key": 0, + "data-label": "Name", + }, + }, + Object { + "cell": Object { + "formatters": Array [ + [Function], + ], + "transforms": Array [ + [Function], + ], + }, + "data": undefined, + "extraParams": Object { + "actionResolver": undefined, + "actions": Array [ + Object { + "onClick": [Function], + "title": "Edit template", + }, + Object { + "onClick": [Function], + "title": "Delete template", + }, + ], + "actionsToggle": [Function], + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": false, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 0, + "isHeaderSelectDisabled": false, + "onCollapse": undefined, + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": false, + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": Object {}, + }, + "header": Object { + "formatters": Array [], + "label": "Systems applied", + "transforms": Array [ + [Function], + [Function], + [Function], + ], + }, + "property": "systems-applied", + "props": Object { + "data-key": 1, + "data-label": "Systems applied", + }, + }, + Object { + "cell": Object { + "formatters": Array [ + [Function], + ], + "transforms": Array [ + [Function], + ], + }, + "data": undefined, + "extraParams": Object { + "actionResolver": undefined, + "actions": Array [ + Object { + "onClick": [Function], + "title": "Edit template", + }, + Object { + "onClick": [Function], + "title": "Delete template", + }, + ], + "actionsToggle": [Function], + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": false, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 0, + "isHeaderSelectDisabled": false, + "onCollapse": undefined, + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": false, + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": Object {}, + }, + "header": Object { + "formatters": Array [], + "label": "Last edited", + "transforms": Array [ + [Function], + [Function], + [Function], + ], + }, + "property": "last-edited", + "props": Object { + "data-key": 2, + "data-label": "Last edited", + }, + }, + Object { + "cell": Object { + "formatters": Array [ + [Function], + ], + "transforms": Array [ + [Function], + ], + }, + "data": undefined, + "extraParams": Object { + "actionResolver": undefined, + "actions": Array [ + Object { + "onClick": [Function], + "title": "Edit template", + }, + Object { + "onClick": [Function], + "title": "Delete template", }, ], "actionsToggle": [Function], @@ -4916,18 +8154,17 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, "header": Object { "formatters": Array [], - "label": "Name", + "label": "Published", "transforms": Array [ [Function], [Function], [Function], ], }, - "property": "name", + "property": "published", "props": Object { - "data-key": 0, - "data-label": "Name", - "width": 50, + "data-key": 3, + "data-label": "Published", }, }, Object { @@ -4949,7 +8186,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", }, ], "actionsToggle": [Function], @@ -4978,18 +8215,17 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, "header": Object { "formatters": Array [], - "label": "Systems", + "label": "Created by", "transforms": Array [ [Function], [Function], [Function], ], }, - "property": "systems", + "property": "created-by", "props": Object { - "data-key": 1, - "data-label": "Systems", - "width": 50, + "data-key": 4, + "data-label": "Created by", }, }, Object { @@ -5012,7 +8248,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", }, ], "actionsToggle": [Function], @@ -5048,9 +8284,9 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` [Function], ], }, - "property": "column-2", + "property": "column-5", "props": Object { - "data-key": 2, + "data-key": 5, "data-label": "", }, }, @@ -5068,13 +8304,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` rowData={ Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 2, "isExpanded": undefined, "isFirst": false, @@ -5083,16 +8342,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 2, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 2, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -5111,13 +8390,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` row={ Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 2, "isExpanded": undefined, "isFirst": false, @@ -5126,16 +8428,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 2, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 2, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -5176,7 +8498,6 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` data-label="Name" isVisible={true} key="col-0-row-1" - width={50} > + > + + + + + + + + + + N/A + + + + + + + + + N/A + + + + + + + + + + + + , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 2, "isExpanded": undefined, "isFirst": false, @@ -5394,16 +8851,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 2, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 2, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -5429,7 +8906,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` data-key={1} onClick={[Function]} > - Remove template + Delete template , ] } @@ -5472,7 +8949,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` data-key={1} onClick={[Function]} > - Remove template + Delete template , ] } @@ -5711,7 +9188,68 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", + }, + ], + "actionsToggle": [Function], + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": false, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 0, + "isHeaderSelectDisabled": false, + "onCollapse": undefined, + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": false, + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": Object {}, + }, + "header": Object { + "formatters": Array [], + "label": "Name", + "transforms": Array [ + [Function], + [Function], + [Function], + ], + }, + "property": "name", + "props": Object { + "data-key": 0, + "data-label": "Name", + }, + }, + Object { + "cell": Object { + "formatters": Array [ + [Function], + ], + "transforms": Array [ + [Function], + ], + }, + "data": undefined, + "extraParams": Object { + "actionResolver": undefined, + "actions": Array [ + Object { + "onClick": [Function], + "title": "Edit template", + }, + Object { + "onClick": [Function], + "title": "Delete template", }, ], "actionsToggle": [Function], @@ -5740,18 +9278,17 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, "header": Object { "formatters": Array [], - "label": "Name", + "label": "Systems applied", "transforms": Array [ [Function], [Function], [Function], ], }, - "property": "name", + "property": "systems-applied", "props": Object { - "data-key": 0, - "data-label": "Name", - "width": 50, + "data-key": 1, + "data-label": "Systems applied", }, }, Object { @@ -5773,7 +9310,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", }, ], "actionsToggle": [Function], @@ -5802,18 +9339,139 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, "header": Object { "formatters": Array [], - "label": "Systems", + "label": "Last edited", "transforms": Array [ [Function], [Function], [Function], ], }, - "property": "systems", + "property": "last-edited", "props": Object { - "data-key": 1, - "data-label": "Systems", - "width": 50, + "data-key": 2, + "data-label": "Last edited", + }, + }, + Object { + "cell": Object { + "formatters": Array [ + [Function], + ], + "transforms": Array [ + [Function], + ], + }, + "data": undefined, + "extraParams": Object { + "actionResolver": undefined, + "actions": Array [ + Object { + "onClick": [Function], + "title": "Edit template", + }, + Object { + "onClick": [Function], + "title": "Delete template", + }, + ], + "actionsToggle": [Function], + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": false, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 0, + "isHeaderSelectDisabled": false, + "onCollapse": undefined, + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": false, + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": Object {}, + }, + "header": Object { + "formatters": Array [], + "label": "Published", + "transforms": Array [ + [Function], + [Function], + [Function], + ], + }, + "property": "published", + "props": Object { + "data-key": 3, + "data-label": "Published", + }, + }, + Object { + "cell": Object { + "formatters": Array [ + [Function], + ], + "transforms": Array [ + [Function], + ], + }, + "data": undefined, + "extraParams": Object { + "actionResolver": undefined, + "actions": Array [ + Object { + "onClick": [Function], + "title": "Edit template", + }, + Object { + "onClick": [Function], + "title": "Delete template", + }, + ], + "actionsToggle": [Function], + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": false, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 0, + "isHeaderSelectDisabled": false, + "onCollapse": undefined, + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": false, + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": Object {}, + }, + "header": Object { + "formatters": Array [], + "label": "Created by", + "transforms": Array [ + [Function], + [Function], + [Function], + ], + }, + "property": "created-by", + "props": Object { + "data-key": 4, + "data-label": "Created by", }, }, Object { @@ -5836,7 +9494,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", }, ], "actionsToggle": [Function], @@ -5872,9 +9530,9 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` [Function], ], }, - "property": "column-2", + "property": "column-5", "props": Object { - "data-key": 2, + "data-key": 5, "data-label": "", }, }, @@ -5892,13 +9550,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` rowData={ Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 3, "isExpanded": undefined, "isFirst": false, @@ -5907,16 +9588,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 3, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 3, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -5935,13 +9636,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` row={ Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 3, "isExpanded": undefined, "isFirst": false, @@ -5950,16 +9674,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 3, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 3, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -5996,70 +9740,182 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` onKeyDown={[Function]} > + + + + + + + + + + + + + + + + + + + + + + + + N/A + + + + + + > + N/A + @@ -6067,10 +9923,10 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 3, "isExpanded": undefined, "isFirst": false, @@ -6218,16 +10097,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 3, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 3, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -6253,7 +10152,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` data-key={1} onClick={[Function]} > - Remove template + Delete template , ] } @@ -6296,7 +10195,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` data-key={1} onClick={[Function]} > - Remove template + Delete template , ] } @@ -6535,7 +10434,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", }, ], "actionsToggle": [Function], @@ -6575,7 +10474,6 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "props": Object { "data-key": 0, "data-label": "Name", - "width": 50, }, }, Object { @@ -6597,7 +10495,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", }, ], "actionsToggle": [Function], @@ -6626,18 +10524,200 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, "header": Object { "formatters": Array [], - "label": "Systems", + "label": "Systems applied", "transforms": Array [ [Function], [Function], [Function], ], }, - "property": "systems", + "property": "systems-applied", "props": Object { "data-key": 1, - "data-label": "Systems", - "width": 50, + "data-label": "Systems applied", + }, + }, + Object { + "cell": Object { + "formatters": Array [ + [Function], + ], + "transforms": Array [ + [Function], + ], + }, + "data": undefined, + "extraParams": Object { + "actionResolver": undefined, + "actions": Array [ + Object { + "onClick": [Function], + "title": "Edit template", + }, + Object { + "onClick": [Function], + "title": "Delete template", + }, + ], + "actionsToggle": [Function], + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": false, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 0, + "isHeaderSelectDisabled": false, + "onCollapse": undefined, + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": false, + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": Object {}, + }, + "header": Object { + "formatters": Array [], + "label": "Last edited", + "transforms": Array [ + [Function], + [Function], + [Function], + ], + }, + "property": "last-edited", + "props": Object { + "data-key": 2, + "data-label": "Last edited", + }, + }, + Object { + "cell": Object { + "formatters": Array [ + [Function], + ], + "transforms": Array [ + [Function], + ], + }, + "data": undefined, + "extraParams": Object { + "actionResolver": undefined, + "actions": Array [ + Object { + "onClick": [Function], + "title": "Edit template", + }, + Object { + "onClick": [Function], + "title": "Delete template", + }, + ], + "actionsToggle": [Function], + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": false, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 0, + "isHeaderSelectDisabled": false, + "onCollapse": undefined, + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": false, + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": Object {}, + }, + "header": Object { + "formatters": Array [], + "label": "Published", + "transforms": Array [ + [Function], + [Function], + [Function], + ], + }, + "property": "published", + "props": Object { + "data-key": 3, + "data-label": "Published", + }, + }, + Object { + "cell": Object { + "formatters": Array [ + [Function], + ], + "transforms": Array [ + [Function], + ], + }, + "data": undefined, + "extraParams": Object { + "actionResolver": undefined, + "actions": Array [ + Object { + "onClick": [Function], + "title": "Edit template", + }, + Object { + "onClick": [Function], + "title": "Delete template", + }, + ], + "actionsToggle": [Function], + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": false, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 0, + "isHeaderSelectDisabled": false, + "onCollapse": undefined, + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": false, + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": Object {}, + }, + "header": Object { + "formatters": Array [], + "label": "Created by", + "transforms": Array [ + [Function], + [Function], + [Function], + ], + }, + "property": "created-by", + "props": Object { + "data-key": 4, + "data-label": "Created by", }, }, Object { @@ -6660,7 +10740,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", }, ], "actionsToggle": [Function], @@ -6696,9 +10776,9 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` [Function], ], }, - "property": "column-2", + "property": "column-5", "props": Object { - "data-key": 2, + "data-key": 5, "data-label": "", }, }, @@ -6716,13 +10796,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` rowData={ Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 4, "isExpanded": undefined, "isFirst": false, @@ -6731,16 +10834,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 4, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 4, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -6759,13 +10882,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` row={ Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 4, "isExpanded": undefined, "isFirst": false, @@ -6774,16 +10920,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 4, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 4, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -6824,7 +10990,6 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` data-label="Name" isVisible={true} key="col-0-row-3" - width={50} > + > + + + + + + + + + + N/A + + + + + + + + + N/A + + + + + + + + + + + + , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 4, "isExpanded": undefined, "isFirst": false, @@ -7042,16 +11343,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": false, "isLastVisible": false, "key": 4, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 4, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -7077,7 +11398,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` data-key={1} onClick={[Function]} > - Remove template + Delete template , ] } @@ -7120,7 +11441,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` data-key={1} onClick={[Function]} > - Remove template + Delete template , ] } @@ -7359,7 +11680,129 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", + }, + ], + "actionsToggle": [Function], + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": false, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 0, + "isHeaderSelectDisabled": false, + "onCollapse": undefined, + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": false, + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": Object {}, + }, + "header": Object { + "formatters": Array [], + "label": "Name", + "transforms": Array [ + [Function], + [Function], + [Function], + ], + }, + "property": "name", + "props": Object { + "data-key": 0, + "data-label": "Name", + }, + }, + Object { + "cell": Object { + "formatters": Array [ + [Function], + ], + "transforms": Array [ + [Function], + ], + }, + "data": undefined, + "extraParams": Object { + "actionResolver": undefined, + "actions": Array [ + Object { + "onClick": [Function], + "title": "Edit template", + }, + Object { + "onClick": [Function], + "title": "Delete template", + }, + ], + "actionsToggle": [Function], + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": false, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 0, + "isHeaderSelectDisabled": false, + "onCollapse": undefined, + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": false, + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": Object {}, + }, + "header": Object { + "formatters": Array [], + "label": "Systems applied", + "transforms": Array [ + [Function], + [Function], + [Function], + ], + }, + "property": "systems-applied", + "props": Object { + "data-key": 1, + "data-label": "Systems applied", + }, + }, + Object { + "cell": Object { + "formatters": Array [ + [Function], + ], + "transforms": Array [ + [Function], + ], + }, + "data": undefined, + "extraParams": Object { + "actionResolver": undefined, + "actions": Array [ + Object { + "onClick": [Function], + "title": "Edit template", + }, + Object { + "onClick": [Function], + "title": "Delete template", }, ], "actionsToggle": [Function], @@ -7388,18 +11831,17 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, "header": Object { "formatters": Array [], - "label": "Name", + "label": "Last edited", "transforms": Array [ [Function], [Function], [Function], ], }, - "property": "name", + "property": "last-edited", "props": Object { - "data-key": 0, - "data-label": "Name", - "width": 50, + "data-key": 2, + "data-label": "Last edited", }, }, Object { @@ -7421,7 +11863,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", }, ], "actionsToggle": [Function], @@ -7450,18 +11892,78 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, "header": Object { "formatters": Array [], - "label": "Systems", + "label": "Published", "transforms": Array [ [Function], [Function], [Function], ], }, - "property": "systems", + "property": "published", "props": Object { - "data-key": 1, - "data-label": "Systems", - "width": 50, + "data-key": 3, + "data-label": "Published", + }, + }, + Object { + "cell": Object { + "formatters": Array [ + [Function], + ], + "transforms": Array [ + [Function], + ], + }, + "data": undefined, + "extraParams": Object { + "actionResolver": undefined, + "actions": Array [ + Object { + "onClick": [Function], + "title": "Edit template", + }, + Object { + "onClick": [Function], + "title": "Delete template", + }, + ], + "actionsToggle": [Function], + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": false, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 0, + "isHeaderSelectDisabled": false, + "onCollapse": undefined, + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": false, + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": Object {}, + }, + "header": Object { + "formatters": Array [], + "label": "Created by", + "transforms": Array [ + [Function], + [Function], + [Function], + ], + }, + "property": "created-by", + "props": Object { + "data-key": 4, + "data-label": "Created by", }, }, Object { @@ -7484,7 +11986,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` }, Object { "onClick": [Function], - "title": "Remove template", + "title": "Delete template", }, ], "actionsToggle": [Function], @@ -7520,9 +12022,9 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` [Function], ], }, - "property": "column-2", + "property": "column-5", "props": Object { - "data-key": 2, + "data-key": 5, "data-label": "", }, }, @@ -7540,13 +12042,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` rowData={ Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 5, "isExpanded": undefined, "isFirst": false, @@ -7555,16 +12080,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": true, "isLastVisible": true, "key": 5, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 5, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -7583,13 +12128,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` row={ Object { "cells": Array [ + Object { + "title": , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 5, "isExpanded": undefined, "isFirst": false, @@ -7598,16 +12166,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": true, "isLastVisible": true, "key": 5, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 5, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -7648,7 +12236,6 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` data-label="Name" isVisible={true} key="col-0-row-4" - width={50} > + > + + + + + + + + + + N/A + + + + + + + + + N/A + + + + + + + + + + + + , + }, Object { "title": undefined, }, + Object { + "title": "N/A", + }, + Object { + "title": "N/A", + }, Object { "title": undefined, }, ], + "created-by": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": undefined, + }, + "displayName": undefined, "id": 5, "isExpanded": undefined, "isFirst": false, @@ -7866,16 +12589,36 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` "isLast": true, "isLastVisible": true, "key": 5, + "last-edited": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", + }, "name": Object { "formatters": Array [], "props": Object { "isVisible": true, }, - "title": undefined, + "title": , + }, + "published": Object { + "formatters": Array [], + "props": Object { + "isVisible": true, + }, + "title": "N/A", }, "secretTableRowKeyId": 5, "selected": false, - "systems": Object { + "systems-applied": Object { "formatters": Array [], "props": Object { "isVisible": true, @@ -7901,7 +12644,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` data-key={1} onClick={[Function]} > - Remove template + Delete template , ] } @@ -7944,7 +12687,7 @@ exports[`HeaderBreadcrumbs Should render correctly 1`] = ` data-key={1} onClick={[Function]} > - Remove template + Delete template , ] } diff --git a/src/SmartComponents/PatchSetDetail/PatchSetDetail.js b/src/SmartComponents/PatchSetDetail/PatchSetDetail.js new file mode 100644 index 000000000..e2bed8260 --- /dev/null +++ b/src/SmartComponents/PatchSetDetail/PatchSetDetail.js @@ -0,0 +1,195 @@ +import { Main } from '@redhat-cloud-services/frontend-components/Main'; +import React, { useEffect, useState, Fragment } from 'react'; +import { useIntl } from 'react-intl'; +import { useDispatch, useSelector } from 'react-redux'; +import { useHistory } from 'react-router-dom'; +import messages from '../../Messages'; +import Header from '../../PresentationalComponents/Header/Header'; +//import { NoSmartManagement } from '../../PresentationalComponents/Snippets/EmptyStates'; +//import TableView from '../../PresentationalComponents/TableView/TableView'; +//import { useEntitlements } from '../../Utilities/Hooks'; +import { fetchPatchSetAction } from '../../store/Actions/Actions'; +import { Dropdown, DropdownItem, DropdownPosition, DropdownToggle, Skeleton } from '@patternfly/react-core'; +import DeleteSetModal from '../Modals/DeleteSetModal'; +import { deletePatchSet } from '../../Utilities/api'; +import { addNotification } from '@redhat-cloud-services/frontend-components-notifications/redux'; +import { patchSetDeleteNotifications } from '../../Utilities/constants'; +import ErrorHandler from '../../PresentationalComponents/Snippets/ErrorHandler'; +import { processDate } from '@redhat-cloud-services/frontend-components-utilities/helpers'; + +const PatchSetDetail = () => { + //const getEntitlements = useEntitlements(); + const intl = useIntl(); + const dispatch = useDispatch(); + const history = useHistory(); + + const patchSetId = history.location.pathname.split('/')[2]; + + const [isHeaderDropdownOpen, setHeaderDropdownOpen] = useState(false); + + // const [hasSmartManagement, setSmartManagement] = React.useState(true); + + const [isDeleteConfirmModalOpen, setDeleteConfirmModalOpen] = useState(false); + + const templateDetails = useSelector( + ({ PatchSetDetailStore }) => PatchSetDetailStore + ); + + const status = useSelector( + ({ PatchSetDetailStore }) => PatchSetDetailStore.status + ); + + const { hasError, metadata, isLoading, code } = status; + + const patchSetName = templateDetails.data.attributes.name; + + useEffect(() => { + /* + getEntitlements().then((entitelements) => { + setSmartManagement( + entitelements?.smart_management?.is_entitled + ); + }); + */ + + dispatch(fetchPatchSetAction(patchSetId)); + }, []); + + const deleteSet = () => { + deletePatchSet(patchSetId).then(() => { + dispatch(addNotification(patchSetDeleteNotifications(patchSetName).success)); + history.push('/templates'); + }).catch(() => { + dispatch(addNotification(patchSetDeleteNotifications(patchSetName).error)); + }); + }; + + const dropdownItems = [ + setDeleteConfirmModalOpen(true)} + > + {intl.formatMessage(messages.labelsButtonRemoveTemplate)} + + ]; + + return ( + (hasError || metadata?.has_systems === false) + ? + : + +
: patchSetName} + headerOUIA={'template-details'} + breadcrumbs={[ + { + title: intl.formatMessage(messages.templateDetailHeaderBreadcrumb), + to: '/templates', + isActive: false + }, + { + title: isLoading ? : patchSetName, + isActive: true + } + ]} + actions={ + { + setHeaderDropdownOpen(false); + document.getElementById('patch-set-detail-header-kebab').focus(); + }} + toggle={ + setHeaderDropdownOpen(isOpen)} + style={{ minWidth: 150 }} + > + {intl.formatMessage(messages.labelsActions)} + + } + isOpen={isHeaderDropdownOpen} + dropdownItems={dropdownItems} + /> + } + > + + + + + + + + + + + + + + + + + + + + + + + +
Template description: + {isLoading + ? + : templateDetails.data.attributes.description + || intl.formatMessage(messages.titlesTemplateNoDescription)} +
Red Hat repositories up to: + {isLoading + ? + : processDate(templateDetails.data.attributes.config.to_time)} +
Created by: + {isLoading + ? + : templateDetails.data.attributes.creator} +
Published: + {isLoading + ? + : processDate(templateDetails.data.attributes.published)} +
Last edited: + {isLoading + ? + : processDate(templateDetails.data.attributes.last_edited)} +
+
+
+ {/* + {hasSmartManagement ? 0) && actionsConfig} + filterConfig={filterConfig} + searchChipLabel={intl.formatMessage(messages.labelsFiltersSearchTemplateTitle)} + CreatePatchSetButton={CreatePatchSetButton} + actionsToggle={!hasAccess ? CustomActionsToggle : null} + /> : } + */} +
+
); +}; + +export default PatchSetDetail; diff --git a/src/SmartComponents/SystemDetail/__snapshots__/InventoryDetail.test.js.snap b/src/SmartComponents/SystemDetail/__snapshots__/InventoryDetail.test.js.snap index 6379b62dc..42a286350 100644 --- a/src/SmartComponents/SystemDetail/__snapshots__/InventoryDetail.test.js.snap +++ b/src/SmartComponents/SystemDetail/__snapshots__/InventoryDetail.test.js.snap @@ -137,24 +137,48 @@ exports[`InventoryPage.js Should match the snapshots 1`] = ` - - + <div + className="pf-l-split" > - <h1 - className="pf-c-title pf-m-2xl" - data-ouia-component-id="OUIA-Generated-Title-1" - data-ouia-component-type="PF4/Title" - data-ouia-safe={true} - widget-type="InsightsPageHeaderTitle" - /> - - + +
+ + + <h1 + className="pf-c-title pf-m-2xl" + data-ouia-component-id="OUIA-Generated-Title-1" + data-ouia-component-type="PF4/Title" + data-ouia-safe={true} + widget-type="InsightsPageHeaderTitle" + /> + + +
+
+ +
+ + +
+ +
+ - - + <div + className="pf-l-split" > - <h1 - className="pf-c-title pf-m-2xl" - data-ouia-component-id="OUIA-Generated-Title-1" - data-ouia-component-type="PF4/Title" - data-ouia-safe={true} - widget-type="InsightsPageHeaderTitle" + <SplitItem> + <div + className="pf-l-split__item" + > + <PageHeaderTitle + title="Patch systems" + > + <Title + className="" + headingLevel="h1" + size="2xl" + widget-type="InsightsPageHeaderTitle" + > + <h1 + className="pf-c-title pf-m-2xl" + data-ouia-component-id="OUIA-Generated-Title-1" + data-ouia-component-type="PF4/Title" + data-ouia-safe={true} + widget-type="InsightsPageHeaderTitle" + > + Patch systems + </h1> + + +
+
+ - Patch systems - - - +
+ + +
+ +
+ diff --git a/src/Utilities/DataMappers.js b/src/Utilities/DataMappers.js index eaf54edd5..c88209271 100644 --- a/src/Utilities/DataMappers.js +++ b/src/Utilities/DataMappers.js @@ -3,6 +3,7 @@ import { SecurityIcon } from '@patternfly/react-icons'; import { processDate } from '@redhat-cloud-services/frontend-components-utilities/helpers'; import { flatMap } from 'lodash'; import React from 'react'; +import { Link } from 'react-router-dom'; import messages from '../Messages'; import AdvisoryType from '../PresentationalComponents/AdvisoryType/AdvisoryType'; import { DescriptionWithLink } from '../PresentationalComponents/Snippets/DescriptionWithLink'; @@ -349,11 +350,21 @@ export const createPatchSetRows = (rows, selectedRows = {}, filters) => { rows.map(row => { return { id: row.id, + displayName: row.name, key: row.id, selected: selectedRows[row.id] !== undefined, cells: [ - { title: row.name }, - { title: row.systems } + { + title: ( + + {row.name} + + ) + }, + { title: row.systems }, + { title: processDate(row.last_edited) }, + { title: processDate(row.published) }, + { title: row.creator } ] }; }); diff --git a/src/Utilities/api.js b/src/Utilities/api.js index abed7be49..b4ae394d9 100644 --- a/src/Utilities/api.js +++ b/src/Utilities/api.js @@ -6,6 +6,7 @@ const INVENTORY_API_BASE = '/api/inventory/v1'; export function createApiCall( endpoint, + version, method, parameters = undefined, data = undefined, @@ -17,7 +18,7 @@ export function createApiCall( let result = axios({ method, - url: '/api/patch/v2' + endpoint, + url: '/api/patch/' + version + endpoint, withCredentials: true, data, ...requestConfig @@ -29,48 +30,48 @@ export function createApiCall( const systemProfile = new SystemProfileApi(undefined, INVENTORY_API_BASE, axios); export const fetchApplicableAdvisoriesApi = params => { - return createApiCall('/advisories', 'get', params); + return createApiCall('/advisories', 'v2', 'get', params); }; export const fetchApplicableSystemAdvisoriesApi = params => { let { id, ...allParams } = params; - return createApiCall(`/systems/${id}/advisories`, 'get', allParams); + return createApiCall(`/systems/${id}/advisories`, 'v2', 'get', allParams); }; export const fetchSystems = params => { - return createApiCall('/systems', 'get', prepareEntitiesParams(params)); + return createApiCall('/systems', 'v2', 'get', prepareEntitiesParams(params)); }; export const fetchSystemDetails = id => { - return createApiCall(`/systems/${id}`, 'get'); + return createApiCall(`/systems/${id}`, 'v2', 'get'); }; export const fetchAdvisoryDetailsApi = params => { - return createApiCall(`/advisories/${params.advisoryName}`, 'get'); + return createApiCall(`/advisories/${params.advisoryName}`, 'v2', 'get'); }; export const fetchPackageDetailsApi = params => { - return createApiCall(`/packages/${params.packageName}`, 'get'); + return createApiCall(`/packages/${params.packageName}`, 'v2', 'get'); }; export const fetchApplicablePackagesApi = params => { let { id, ...allParams } = params; - return createApiCall(`/systems/${id}/packages`, 'get', allParams); + return createApiCall(`/systems/${id}/packages`, 'v2', 'get', allParams); }; export const fetchAdvisorySystems = params => { const { id, ...args } = params; - return createApiCall(`/advisories/${id}/systems`, 'get', prepareEntitiesParams(args)); + return createApiCall(`/advisories/${id}/systems`, 'v2', 'get', prepareEntitiesParams(args)); }; export const fetchPackageSystems = params => { const { package_name: packageName, ...args } = params; - return createApiCall(`/packages/${packageName}/systems`, 'get', prepareEntitiesParams(args)); + return createApiCall(`/packages/${packageName}/systems`, 'v2', 'get', prepareEntitiesParams(args)); }; export const fetchPackageVersions = params => { const { package_name: packageName, ...args } = params; - return createApiCall(`/packages/${packageName}/versions`, 'get', args); + return createApiCall(`/packages/${packageName}/versions`, 'v2', 'get', args); }; export const fetchPackagesList = params => { @@ -81,10 +82,10 @@ export const fetchPackagesList = params => { const paramsWithoutSystemsUpdatable = JSON.parse(JSON.stringify(params)); delete paramsWithoutSystemsUpdatable.filter.systems_updatable; - return createApiCall('/packages', 'get', paramsWithoutSystemsUpdatable); + return createApiCall('/packages', 'v2', 'get', paramsWithoutSystemsUpdatable); } - return createApiCall('/packages', 'get', params); + return createApiCall('/packages', 'v2', 'get', params); }; export const fetchCvesInfo = async ({ cveIds }) => { @@ -182,31 +183,31 @@ export const exportPackageSystemsJSON = (params, packageName) => { }; export const assignSystemPatchSet = (payload) => { - return createApiCall(`/baselines`, 'put', null, payload); + return createApiCall(`/baselines`, 'v2', 'put', null, payload); }; export const fetchPatchSets = params => { - return createApiCall(`/baselines`, 'get', params); + return createApiCall(`/baselines`, 'v3', 'get', params); }; export const updatePatchSets = (payload, id) => { - return createApiCall(`/baselines/${id}`, 'put', null, payload); + return createApiCall(`/baselines/${id}`, 'v2', 'put', null, payload); }; export const deletePatchSet = patchSetID => { - return createApiCall(`/baselines/${patchSetID}`, 'delete'); + return createApiCall(`/baselines/${patchSetID}`, 'v2', 'delete'); }; export const fetchPatchSet = id => { - return createApiCall(`/baselines/${id}`, 'get'); + return createApiCall(`/baselines/${id}`, 'v3', 'get'); }; export const fetchPatchSetSystems = (id, params) => { - return createApiCall(`/baselines/${id}/systems`, 'get', params); + return createApiCall(`/baselines/${id}/systems`, 'v2', 'get', params); }; export const removePatchSetApi = (payload) => { - return createApiCall('/baselines/systems/remove', 'post', null, payload); + return createApiCall('/baselines/systems/remove', 'v2', 'post', null, payload); }; export const getOperatingSystems = () => { @@ -214,5 +215,5 @@ export const getOperatingSystems = () => { }; export const fetchIDs = (endpoint, queryParams) => { - return createApiCall(endpoint, 'get', queryParams); + return createApiCall(endpoint, 'v2', 'get', queryParams); }; diff --git a/src/Utilities/api.test.js b/src/Utilities/api.test.js index 88dfbb845..7235e20d7 100644 --- a/src/Utilities/api.test.js +++ b/src/Utilities/api.test.js @@ -19,7 +19,7 @@ describe('api', () => { headers: { get: () => [] } }) ); - const response = createApiCall('testEndpoint', 'get', { testParam: 1 }, { data: 'testData' }); + const response = createApiCall('testEndpoint', 'v2', 'get', { testParam: 1 }, { data: 'testData' }); response.catch((err) => { expect(err).toEqual({ title: 'There was an error getting data', @@ -37,7 +37,7 @@ describe('api', () => { headers: { get: () => ['json'] } }) ); - const response = createApiCall('testEndpoint', 'get', { testParam: 1 }, { data: 'testData' }); + const response = createApiCall('testEndpoint', 'v2', 'get', { testParam: 1 }, { data: 'testData' }); response.catch((res) => expect(res).toEqual({ title: 'There was an error getting data', detail: 'testStatusTextsssss', diff --git a/src/Utilities/constants.js b/src/Utilities/constants.js index 1230d2cc2..022fb5131 100644 --- a/src/Utilities/constants.js +++ b/src/Utilities/constants.js @@ -260,13 +260,13 @@ export const exportNotifications = (format) => ({ } }); -export const patchSetDeleteNotifications = ({ +export const patchSetDeleteNotifications = (templateName) => ({ success: { - title: `Patch template has been deleted.`, + title: `Deleted “${templateName}”.`, variant: 'success' }, error: { - title: 'Couldn’t delete patch template.', + title: `Failed to delete “${templateName}”.`, variant: 'danger' } }); diff --git a/src/store/Reducers/PatchSetDetailStore.js b/src/store/Reducers/PatchSetDetailStore.js new file mode 100644 index 000000000..d70fc54a0 --- /dev/null +++ b/src/store/Reducers/PatchSetDetailStore.js @@ -0,0 +1,33 @@ +import { CLEAR_PATCH_SET, FETCH_PATCH_SET } from '../ActionTypes'; +import { fetchPending, fetchRejected } from './HelperReducers'; + +export let initialState = { + data: { attributes: {} }, + status: { isLoading: true } +}; + +export const PatchSetDetailStore = (state = initialState, action) => { + let newState = { ...state }; + + switch (action.type) { + case FETCH_PATCH_SET + '_FULFILLED': + return { + ...state, + status: { isLoading: false }, + data: action.payload.data, + error: {} + }; + + case FETCH_PATCH_SET + '_PENDING': + return fetchPending(newState); + + case FETCH_PATCH_SET + '_REJECTED': + return fetchRejected(newState, action); + + case CLEAR_PATCH_SET: + return initialState; + + default: + return state; + } +}; diff --git a/src/store/index.js b/src/store/index.js index 76989f48c..3781afaee 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -14,6 +14,7 @@ import { PackageSystemsStore } from './Reducers/PackageSystemsStore'; import { AdvisorySystemsStore } from './Reducers/AdvisorySystemsStore'; import { GlobalFilterStore } from './Reducers/GlobalFilterStore'; import { PatchSetsReducer } from './Reducers/PatchSetsReducer'; +import { PatchSetDetailStore } from './Reducers/PatchSetDetailStore'; import { SpecificPatchSetReducer } from './Reducers/SpecificPatchSetReducer'; import { legacy_createStore as createStore, applyMiddleware, combineReducers, compose } from 'redux'; @@ -33,6 +34,7 @@ export const defaultReducers = { AdvisorySystemsStore, GlobalFilterStore, PatchSetsStore: PatchSetsReducer, + PatchSetDetailStore, SpecificPatchSetReducer, notifications: notificationsReducer };