fix(migration): add Status column back to DashboardDataGrid

Restored the Status column (published/draft badge) that was dropped during
the DashboardGrid→DashboardDataGrid migration. The text filter now searches
status values as intended. Validate/Git columns remain removed as they are
irrelevant to the migration workflow.
This commit is contained in:
2026-06-17 17:29:35 +03:00
parent 367953b25e
commit 03b7e4f67f

View File

@@ -263,6 +263,17 @@
columns={[
{ key: 'title', label: $t.dashboard?.title || 'Title', sortable: true },
{ key: 'last_modified', label: $t.dashboard?.last_modified || 'Last Modified', sortable: true },
{
key: 'status',
label: $t.dashboard?.status || 'Status',
sortable: true,
raw: true,
render: (item: any) => {
const isPublished = item.status === 'published';
const cls = isPublished ? 'bg-success-light text-success' : 'bg-surface-muted text-text';
return `<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium ${cls}">${item.status || ''}</span>`;
},
},
]}
bind:selectedIds={model.selectedDashboardIds}
selectable