Skip to content

Commit b230de0

Browse files
authored
Merge pull request #944 from trycompai/main
[comp] Production Deploy
2 parents 816c7d9 + c9cf5b5 commit b230de0

6 files changed

Lines changed: 30 additions & 57 deletions

File tree

apps/app/src/app/(app)/[orgId]/controls/page.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ interface ControlTableProps {
1010
searchParams: Promise<SearchParams>;
1111
}
1212

13+
export async function generateMetadata(): Promise<Metadata> {
14+
return {
15+
title: 'Controls',
16+
};
17+
}
18+
1319
export default async function ControlsPage({ ...props }: ControlTableProps) {
1420
const searchParams = await props.searchParams;
1521
const search = searchParamsCache.parse(searchParams);
Lines changed: 2 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,3 @@
1-
import { Card, CardContent, CardHeader, CardTitle } from '@comp/ui/card';
2-
import { Skeleton } from '@comp/ui/skeleton';
3-
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@comp/ui/table';
1+
import Loader from '@/components/ui/loader';
42

5-
export default function Loading() {
6-
return (
7-
<div className="flex flex-col gap-6">
8-
<Card>
9-
<CardHeader>
10-
<CardTitle className="flex items-center justify-between">
11-
<div>
12-
<Skeleton className="mb-2 h-4 w-24" />
13-
<Skeleton className="h-8 w-64" />
14-
</div>
15-
</CardTitle>
16-
</CardHeader>
17-
<CardContent>
18-
<Skeleton className="h-4 w-full" />
19-
</CardContent>
20-
</Card>
21-
22-
<Card>
23-
<CardHeader>
24-
<CardTitle>
25-
<Skeleton className="h-6 w-48" />
26-
</CardTitle>
27-
</CardHeader>
28-
<CardContent>
29-
<Table>
30-
<TableHeader>
31-
<TableRow>
32-
<TableHead>
33-
<Skeleton className="h-4 w-[300px]" />
34-
</TableHead>
35-
<TableHead>
36-
<Skeleton className="h-4 w-[200px]" />
37-
</TableHead>
38-
</TableRow>
39-
</TableHeader>
40-
<TableBody>
41-
{[1, 2, 3].map((index) => (
42-
<TableRow key={index}>
43-
<TableCell>
44-
<Skeleton className="h-4 w-[300px]" />
45-
</TableCell>
46-
<TableCell>
47-
<Skeleton className="h-4 w-[200px]" />
48-
</TableCell>
49-
</TableRow>
50-
))}
51-
</TableBody>
52-
</Table>
53-
</CardContent>
54-
</Card>
55-
</div>
56-
);
57-
}
3+
export default Loader;

apps/app/src/app/(app)/[orgId]/tasks/page.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ import { headers } from 'next/headers';
66
import { TaskList } from './components/TaskList';
77
import PageCore from '@/components/pages/PageCore.tsx';
88
import PageWithBreadcrumb from '@/components/pages/PageWithBreadcrumb';
9+
import { Metadata } from 'next';
10+
11+
export async function generateMetadata(): Promise<Metadata> {
12+
return {
13+
title: 'Tasks',
14+
};
15+
}
916

1017
// Force dynamic rendering to ensure searchParams are always fresh
1118
export const dynamic = 'force-dynamic';
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export default async function Layout({ children }: { children: React.ReactNode }) {
2+
return (
3+
<div className="m-auto max-w-[1200px]">
4+
<main>{children}</main>
5+
</div>
6+
);
7+
}

apps/app/src/app/(app)/[orgId]/tests/(overview)/loading.tsx renamed to apps/app/src/app/(app)/[orgId]/tests/loading.tsx

File renamed without changes.

apps/app/src/app/(app)/[orgId]/tests/(overview)/page.tsx renamed to apps/app/src/app/(app)/[orgId]/tests/page.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ import { auth } from '@/utils/auth';
33
import { db } from '@comp/db';
44
import { headers } from 'next/headers';
55
import { redirect } from 'next/navigation';
6+
import { Metadata } from 'next';
7+
8+
export async function generateMetadata(): Promise<Metadata> {
9+
return {
10+
title: 'Cloud Compliance',
11+
};
12+
}
613

714
export default async function CloudTests({ params }: { params: Promise<{ orgId: string }> }) {
815
const { orgId } = await params;
@@ -14,7 +21,7 @@ export default async function CloudTests({ params }: { params: Promise<{ orgId:
1421
}
1522

1623
return (
17-
<div className="m-auto max-w-[1200px]">
24+
<div className="m-auto">
1825
<AppOnboarding
1926
title={'Cloud Compliance'}
2027
description={

0 commit comments

Comments
 (0)