Skip to content

Commit bda91a9

Browse files
Add table column to show template updatedAt field (#622)
When iterating on templates, our team often wanted to sanity check when a template was modified. So we end up opening the network log and reading the `templates` object resp manually. If you've gotten this feedback from other users, here's a PR to show `updatedAt` as a column.
2 parents 5ca2b9c + 63dd3af commit bda91a9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/web/src/components/Dashboard/Templates.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ export function TemplatesContent({
153153
<TableHead>RAM MiB</TableHead>
154154
<TableHead>Created by</TableHead>
155155
<TableHead>Created at</TableHead>
156+
<TableHead>Updated at</TableHead>
156157
<TableHead></TableHead>
157158
</TableRow>
158159
</TableHeader>
@@ -191,6 +192,9 @@ export function TemplatesContent({
191192
<TableCell>
192193
{new Date(template.createdAt).toLocaleString()}
193194
</TableCell>
195+
<TableCell>
196+
{new Date(template.updatedAt).toLocaleString()}
197+
</TableCell>
194198
<TableCell>
195199
<DropdownMenu>
196200
<DropdownMenuTrigger>

0 commit comments

Comments
 (0)