diff --git a/apps/web/src/actions/datasets/create.ts b/apps/web/src/actions/datasets/create.ts index 9ab2b9120..1b604fac4 100644 --- a/apps/web/src/actions/datasets/create.ts +++ b/apps/web/src/actions/datasets/create.ts @@ -35,5 +35,5 @@ export const createDatasetAction = authProcedure name: input.name, file: input.dataset_file, }, - }).then(r => r.unwrap()) + }).then((r) => r.unwrap()) }) diff --git a/apps/web/src/app/(private)/dashboard/layout.tsx b/apps/web/src/app/(private)/dashboard/layout.tsx index c17e5bd60..84fc17ed0 100644 --- a/apps/web/src/app/(private)/dashboard/layout.tsx +++ b/apps/web/src/app/(private)/dashboard/layout.tsx @@ -46,33 +46,29 @@ export default async function DashboardLayout({ > {children} - - + Add project + + } + /> + {projects.length > 0 && ( + + )} + {projects.length === 0 && ( + - Add project + + Create your first project + } /> - - {projects.length > 0 && ( - - )} - {projects.length === 0 && ( - - - Create your first project - - - } - /> - )} - - + )} ) diff --git a/apps/web/src/app/(private)/datasets/_components/DatasetsTable/index.tsx b/apps/web/src/app/(private)/datasets/_components/DatasetsTable/index.tsx index 16614e956..71e02c216 100644 --- a/apps/web/src/app/(private)/datasets/_components/DatasetsTable/index.tsx +++ b/apps/web/src/app/(private)/datasets/_components/DatasetsTable/index.tsx @@ -44,7 +44,10 @@ export function DatasetsTable({ {dataset.fileMetadata.headers.length} - + ))} diff --git a/packages/core/src/lib/disk.ts b/packages/core/src/lib/disk.ts index b7e83642e..79cdcd60e 100644 --- a/packages/core/src/lib/disk.ts +++ b/packages/core/src/lib/disk.ts @@ -39,7 +39,7 @@ export class DiskWrapper { this.disk = new Disk(this.buildDisk(args)) } - file (key: string) { + file(key: string) { return this.disk.file(key) } diff --git a/packages/core/src/services/datasets/create.ts b/packages/core/src/services/datasets/create.ts index 2d1b9f1ea..594f8095a 100644 --- a/packages/core/src/services/datasets/create.ts +++ b/packages/core/src/services/datasets/create.ts @@ -53,7 +53,7 @@ export const createDataset = async ( ...fileMetadata, headers, rowCount, - } + }, }) .returning() diff --git a/packages/web-ui/src/ds/atoms/Table/index.tsx b/packages/web-ui/src/ds/atoms/Table/index.tsx index 37672d131..10707d47e 100644 --- a/packages/web-ui/src/ds/atoms/Table/index.tsx +++ b/packages/web-ui/src/ds/atoms/Table/index.tsx @@ -100,7 +100,10 @@ const TableCell = forwardRef( ({ className, children, align = 'left', ...props }, ref) => (