@@ -3,14 +3,14 @@ import React from 'react';
3
3
import styled from 'styled-components' ;
4
4
import { colors } from '@src/alchemy-components/theme' ;
5
5
import { Pill } from '@src/alchemy-components/components/Pills' ;
6
- import moment from 'moment' ;
7
6
import { GetMlModelGroupQuery } from '../../../../graphql/mlModelGroup.generated' ;
8
7
import { EntityType } from '../../../../types.generated' ;
9
8
import { useEntityRegistry } from '../../../useEntityRegistry' ;
10
9
import { useBaseEntity } from '../../shared/EntityContext' ;
11
10
import { notEmpty } from '../../shared/utils' ;
12
11
import { EmptyTab } from '../../shared/components/styled/EmptyTab' ;
13
12
import { InfoItem } from '../../shared/components/styled/InfoItem' ;
13
+ import { TimestampPopover } from '../../../sharedV2/TimestampPopover' ;
14
14
15
15
const InfoItemContainer = styled . div < { justifyContent } > `
16
16
display: flex;
@@ -33,6 +33,7 @@ const NameLink = styled.a`
33
33
font-weight: 700;
34
34
color: inherit;
35
35
font-size: 0.9rem;
36
+
36
37
&:hover {
37
38
color: ${ colors . blue [ 400 ] } !important;
38
39
}
@@ -101,11 +102,7 @@ export default function MLGroupModels() {
101
102
key : 'createdAt' ,
102
103
width : 150 ,
103
104
render : ( _ : any , record : any ) => (
104
- < Typography . Text >
105
- { record . properties ?. createdTS ?. time
106
- ? moment ( record . properties . createdTS . time ) . format ( 'YYYY-MM-DD HH:mm:ss' )
107
- : '-' }
108
- </ Typography . Text >
105
+ < TimestampPopover timestamp = { record . properties ?. createdTS ?. time } title = "Created At" showPopover />
109
106
) ,
110
107
} ,
111
108
{
@@ -125,8 +122,8 @@ export default function MLGroupModels() {
125
122
} ,
126
123
} ,
127
124
{
128
- title : 'Tags ' ,
129
- key : 'tags ' ,
125
+ title : 'Properties ' ,
126
+ key : 'properties ' ,
130
127
width : 200 ,
131
128
render : ( _ : any , record : any ) => {
132
129
const tags = record . properties ?. tags || [ ] ;
@@ -159,18 +156,10 @@ export default function MLGroupModels() {
159
156
< Typography . Title level = { 3 } > Model Group Details</ Typography . Title >
160
157
< InfoItemContainer justifyContent = "left" >
161
158
< InfoItem title = "Created At" >
162
- < InfoItemContent >
163
- { modelGroup ?. properties ?. created ?. time
164
- ? moment ( modelGroup . properties . created . time ) . format ( 'YYYY-MM-DD HH:mm:ss' )
165
- : '-' }
166
- </ InfoItemContent >
159
+ < TimestampPopover timestamp = { modelGroup ?. properties ?. created ?. time } title = "Created At" />
167
160
</ InfoItem >
168
161
< InfoItem title = "Last Modified At" >
169
- < InfoItemContent >
170
- { modelGroup ?. properties ?. lastModified ?. time
171
- ? moment ( modelGroup . properties . lastModified . time ) . format ( 'YYYY-MM-DD HH:mm:ss' )
172
- : '-' }
173
- </ InfoItemContent >
162
+ < TimestampPopover timestamp = { modelGroup ?. properties ?. lastModified ?. time } title = "Last Modified At" />
174
163
</ InfoItem >
175
164
{ modelGroup ?. properties ?. created ?. actor && (
176
165
< InfoItem title = "Created By" >
0 commit comments