-
Notifications
You must be signed in to change notification settings - Fork 0
[TES-6303] Update Test Run List table column and decorators #37
Conversation
minWidth: 80, | ||
flex: 0.7, | ||
headerClassName: classes.tableHeader, | ||
renderCell: cell => IDDecorator(cell.value), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idDecorator
); | ||
}; | ||
|
||
const IDDecorator = (id: string) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idDecorator
return ( | ||
<div style={{ display: 'flex', alignItems: 'center', height: '100%' }}> | ||
<div style={{ marginRight: '4px' }}> | ||
<Icon src="/static/assets/images/katalon/profile.svg" size="16px" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move icons to common components.
let decoratedDuration = moment.utc(milliseconds).format('HH[h] mm[m] ss[s]'); | ||
decoratedDuration = decoratedDuration.replace(/00[hms]/g, '').trim(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move to helper
const columns: GridColDef[] = [ | ||
{ | ||
field: 'status', | ||
headerName: 'STATUS', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i18n
|
||
const rows = formatData(data); | ||
|
||
const columns: GridColDef[] = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revamp to support decorators based on specific dataset.
NOTE: ONLY REVIEW FILES THAT ARE NEW OR MODIFIED
Todo Decorators
stage
&status
logic+n
?+n