feat(MED-97): fix missing breadcrumbs, consistent layouts

This commit is contained in:
2025-09-23 20:27:20 +03:00
parent fb03d548af
commit f1eb0e1ebf
9 changed files with 28 additions and 15 deletions

View File

@@ -170,6 +170,7 @@ async function TeamAccountPage(props: {
<>
<PageHeader
className="border-b"
title={'Account'}
description={
<AppBreadcrumbs
values={{

View File

@@ -18,8 +18,8 @@ export async function AdminDashboard() {
' xl:grid-cols-4'
}
>
<Card>
<CardHeader>
<Card className="flex flex-col">
<CardHeader className="flex-1">
<CardTitle>Users</CardTitle>
<CardDescription>
@@ -34,8 +34,8 @@ export async function AdminDashboard() {
</CardContent>
</Card>
<Card>
<CardHeader>
<Card className="flex flex-col">
<CardHeader className="flex-1">
<CardTitle>Company Accounts</CardTitle>
<CardDescription>

View File

@@ -7,6 +7,7 @@ import { ColumnDef } from '@tanstack/react-table';
import { Database } from '@kit/supabase/database';
import { DataTable } from '@kit/ui/enhanced-data-table';
import { ProfileAvatar } from '@kit/ui/profile-avatar';
import { formatDateAndTime } from '@kit/shared/utils';
type Memberships =
Database['medreport']['Functions']['get_account_members']['Returns'][number];
@@ -17,10 +18,6 @@ export function AdminMembersTable(props: { members: Memberships[] }) {
function getColumns(): ColumnDef<Memberships>[] {
return [
{
header: 'User ID',
accessorKey: 'user_id',
},
{
header: 'Name',
cell: ({ row }) => {
@@ -58,10 +55,16 @@ function getColumns(): ColumnDef<Memberships>[] {
{
header: 'Created At',
accessorKey: 'created_at',
cell: ({ row }) => {
return formatDateAndTime(row.original.created_at);
},
},
{
header: 'Updated At',
accessorKey: 'updated_at',
cell: ({ row }) => {
return formatDateAndTime(row.original.updated_at);
},
},
];
}