Skip to content

Commit 1fb63f5

Browse files
committed
chore: merge main into release for new releases
2 parents 38acd34 + 7a85be8 commit 1fb63f5

File tree

30 files changed

+2881
-387
lines changed

30 files changed

+2881
-387
lines changed

apps/api/src/tasks/dto/task-responses.dto.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,12 @@ export class TaskResponseDto {
7777
example: '2024-01-15T10:30:00Z',
7878
})
7979
updatedAt: Date;
80+
81+
@ApiProperty({
82+
description: 'Task template ID',
83+
example: 'frk_tt_68406e353df3bc002994acef',
84+
nullable: true,
85+
required: false,
86+
})
87+
taskTemplateId?: string | null;
8088
}

apps/api/src/tasks/tasks.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export class TasksService {
2929
status: task.status,
3030
createdAt: task.createdAt,
3131
updatedAt: task.updatedAt,
32+
taskTemplateId: task.taskTemplateId,
3233
}));
3334
} catch (error) {
3435
console.error('Error fetching tasks:', error);

apps/app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"@vercel/sandbox": "^0.0.21",
6363
"@vercel/sdk": "^1.7.1",
6464
"ai": "^5.0.60",
65+
"ai-elements": "^1.6.1",
6566
"axios": "^1.9.0",
6667
"better-auth": "^1.3.27",
6768
"botid": "^1.5.5",

apps/app/src/app/(app)/[orgId]/cloud-tests/components/EmptyState.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export function EmptyState({ onBack, connectedProviders = [], onConnected }: Emp
258258
// AWS Step 2.5: Region Selection (after credential validation)
259259
if (step === 'validate-aws' && provider && selectedProvider === 'aws') {
260260
return (
261-
<div className="container mx-auto flex min-h-[600px] w-full flex-col gap-6 p-4 md:p-6 lg:p-8">
261+
<div className="mx-auto max-w-7xl flex min-h-[600px] w-full flex-col gap-6 py-4 md:py-6 lg:py-8">
262262
<div className="flex items-center gap-4">
263263
<Button variant="ghost" size="sm" onClick={() => setStep('connect')}>
264264
<ArrowLeft className="mr-2 h-4 w-4" />
@@ -413,7 +413,7 @@ export function EmptyState({ onBack, connectedProviders = [], onConnected }: Emp
413413
const fields = PROVIDER_FIELDS[provider.id];
414414

415415
return (
416-
<div className="container mx-auto flex min-h-[600px] w-full flex-col gap-6 p-4 md:p-6 lg:p-8">
416+
<div className="mx-auto max-w-7xl flex min-h-[600px] w-full flex-col gap-6 py-4 md:py-6 lg:py-8">
417417
<div className="flex items-center gap-4">
418418
<Button variant="ghost" size="sm" onClick={handleBack}>
419419
<ArrowLeft className="mr-2 h-4 w-4" />

apps/app/src/app/(app)/[orgId]/cloud-tests/components/TestsLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export function TestsLayout({
199199
const providerFindings = findingsByProvider[provider.integrationId] ?? [];
200200

201201
return (
202-
<div className="container mx-auto flex w-full flex-col gap-6 p-4 md:p-6 lg:p-8">
202+
<div className="mx-auto max-w-7xl flex w-full flex-col gap-6 py-4 md:py-6 lg:py-8">
203203
<div className="flex items-center justify-between">
204204
<div className="space-y-1">
205205
<h1 className="text-2xl font-semibold tracking-tight">Cloud Security Tests</h1>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
'use client';
2+
3+
import { usePathname } from 'next/navigation';
4+
5+
export function ConditionalPaddingWrapper({ children }: { children: React.ReactNode }) {
6+
const pathname = usePathname();
7+
8+
// Don't add padding for automation pages, automation overview pages, and task detail pages
9+
const isAutomationPage = pathname?.includes('/automation/');
10+
const isAutomationOverviewPage = pathname?.includes('/automations/');
11+
const isTaskDetailPage = pathname?.match(/\/tasks\/[^/]+$/) !== null; // Matches /tasks/[taskId] but not /tasks/[taskId]/automation
12+
13+
if (isAutomationPage || isAutomationOverviewPage || isTaskDetailPage) {
14+
return <>{children}</>;
15+
}
16+
17+
return <div className="px-4 sm:px-6 lg:px-8">{children}</div>;
18+
}

0 commit comments

Comments
 (0)