Skip to content

Commit ebc0f51

Browse files
committed
feat: add envd version to the template list
1 parent 38684b8 commit ebc0f51

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

src/features/dashboard/templates/table-cells.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,3 +284,15 @@ export function VisibilityCell({
284284
</span>
285285
)
286286
}
287+
288+
export function EnvdVersionCell({
289+
getValue,
290+
}: CellContext<Template | DefaultTemplate, unknown>) {
291+
const versionValue = getValue() as string
292+
293+
return (
294+
<span className={cn('text-fg-tertiary whitespace-nowrap font-mono')}>
295+
{versionValue}
296+
</span>
297+
)
298+
}

src/features/dashboard/templates/table-config.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
ActionsCell,
1717
CpuCell,
1818
CreatedAtCell,
19+
EnvdVersionCell,
1920
MemoryCell,
2021
TemplateIdCell,
2122
TemplateNameCell,
@@ -138,6 +139,14 @@ export const useColumns = (deps: unknown[]) => {
138139
enableSorting: false,
139140
filterFn: 'equals',
140141
},
142+
{
143+
accessorKey: 'envdVersion',
144+
header: 'Envd Version',
145+
size: 140,
146+
minSize: 100,
147+
cell: EnvdVersionCell,
148+
enableSorting: false,
149+
},
141150
],
142151
deps
143152
)

0 commit comments

Comments
 (0)