Skip to content

Commit 75c654a

Browse files
committed
add description in schema preview
1 parent 2d8fff6 commit 75c654a

File tree

2 files changed

+10
-0
lines changed
  • app/[locale]
    • (user)/datasets/[datasetIdentifier]/components/Resources
    • dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/publish

2 files changed

+10
-0
lines changed

app/[locale]/(user)/datasets/[datasetIdentifier]/components/Resources/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ const Resources = () => {
8989
accessorKey: 'name',
9090
header: 'Name of the Field',
9191
},
92+
{
93+
accessorKey: 'description',
94+
header: 'Description',
95+
},
9296
{
9397
accessorKey: 'format',
9498
header: 'Format',
@@ -97,6 +101,7 @@ const Resources = () => {
97101
rows={row.original.schema.map((item: any) => ({
98102
name: item.fieldName,
99103
format: item.format,
104+
description: item.description,
100105
}))}
101106
/>
102107
</Dialog.Content>

app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/publish/page.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,18 @@ const generateColumnData = (name: any) => {
130130
accessorKey: 'name',
131131
header: 'Name of the Field',
132132
},
133+
{
134+
accessorKey: 'description',
135+
header: 'Description',
136+
},
133137
{
134138
accessorKey: 'format',
135139
header: 'Format',
136140
},
137141
]}
138142
rows={row.original.dialog.map((item: any) => ({
139143
name: item.fieldName,
144+
description: item.description,
140145
format: item.format,
141146
}))}
142147
hideFooter

0 commit comments

Comments
 (0)