Skip to content

Commit

Permalink
update date format
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikjeeyar committed Jan 23, 2024
1 parent 63cbefd commit 755d4de
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ import {
DescriptionListDescription,
DescriptionListGroup,
DescriptionListTerm,
Icon,
Timestamp,
Truncate,
} from '@patternfly/react-core';
import { GlobeAmericasIcon } from '@patternfly/react-icons/dist/js/icons/globe-americas-icon';
import { ExpandableRowContent, Tbody, Td, Tr } from '@patternfly/react-table';
import { EnterpriseContractPolicy } from '../../types';
import { getRuleStatus } from '../../utils/summary-utils';
Expand Down Expand Up @@ -68,7 +70,10 @@ export const EnterpriseContractRow: React.FC<EnterpriseContractRowType> = ({ dat
<DescriptionListGroup>
<DescriptionListTerm>Effective from</DescriptionListTerm>
<DescriptionListDescription>
<Timestamp>{data.timestamp}</Timestamp>
<Icon iconSize="sm">
<GlobeAmericasIcon />
</Icon>{' '}
<Timestamp dateTime={data.timestamp} dateFormat="medium" timeFormat="medium" />
</DescriptionListDescription>
</DescriptionListGroup>
) : null}
Expand Down
16 changes: 16 additions & 0 deletions packages/pipelines/src/components/Output/utils/helper-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,19 @@ export const toPascalCase = (string: string): string =>
.replace(new RegExp(/\w/), (s) => s.toUpperCase());

export const isEmpty = <T extends object>(obj: T): boolean => Object.keys(obj).length === 0;


// export const getTaskruns = (pipelineRun, taskRuns) => {
// PipelineRun, TaskRuns etc
// Process all the taskruns and Identify EC, ACS, and other taskruns.


// transformer to use annotations format to decide the rendering
// type = logs, result
// key = 'SCAN_OUTPUT', ''
//
//
//
//
//
// }

0 comments on commit 755d4de

Please sign in to comment.