Skip to content

Fully autonomous AI Agents system capable of performing complex penetration testing tasks

refactor(webui): drop space-y/space-x for flex gap; fix calendar month offset

Sergey Kozyrenkoed559248739f
diff --git a/frontend/src/components/ui/calendar.tsx b/frontend/src/components/ui/calendar.tsx
index c3d9d5f1..7d1be806 100644
--- a/frontend/src/components/ui/calendar.tsx
+++ b/frontend/src/components/ui/calendar.tsx
@@ -28,10 +28,10 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }: C
day_button: 'h-9 w-9 p-0 font-normal',
disabled: 'text-muted-foreground opacity-50',
hidden: 'invisible',
- month: 'space-y-4',
+ month: 'flex flex-col gap-4',
month_caption: 'flex justify-center pt-1 pb-2 relative items-center',
- month_grid: 'w-full border-collapse mt-4',
- months: 'flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0',
+ month_grid: 'w-full border-collapse',
+ months: 'flex flex-col sm:flex-row',
nav: 'flex items-center m-0',
outside:
'day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30',
diff --git a/frontend/src/features/flows/dashboard/flow-dashboard-overview.tsx b/frontend/src/features/flows/dashboard/flow-dashboard-overview.tsx
index b090e50a..22c2c20d 100644
--- a/frontend/src/features/flows/dashboard/flow-dashboard-overview.tsx
+++ b/frontend/src/features/flows/dashboard/flow-dashboard-overview.tsx
@@ -103,7 +103,7 @@ export function FlowDashboardOverview({ flowId }: { flowId: string }) {
const anyLoading = usageLoading || toolcallsLoading || flowStatsLoading;
return (
- <div className="space-y-6">
+ <div className="flex flex-col gap-6">
<div className="grid grid-cols-2 gap-4 md:grid-cols-4">
<MetricCard
description={`Subtasks: ${flowStats?.totalSubtasksCount ?? 0} · Assistants: ${flowStats?.totalAssistantsCount ?? 0}`}
diff --git a/frontend/src/pages/dashboard/dashboard-analytics.tsx b/frontend/src/pages/dashboard/dashboard-analytics.tsx
index 5944a06b..94bacb00 100644
--- a/frontend/src/pages/dashboard/dashboard-analytics.tsx
+++ b/frontend/src/pages/dashboard/dashboard-analytics.tsx
@@ -367,7 +367,7 @@ export function DashboardAnalytics({ period }: { period: UsageStatsPeriod }) {
) : (
<div
className={cn(
- 'space-y-1 transition-opacity',
+ 'flex flex-col gap-1 transition-opacity',
deferredExecutionStats !== executionStats && 'opacity-60',
)}
>
@@ -433,7 +433,7 @@ const FlowExecutionItem = memo(function FlowExecutionItem({
</div>
</CollapsibleTrigger>
<CollapsibleContent>
- <div className="ml-7 space-y-1 border-l pl-3">
+ <div className="ml-7 flex flex-col gap-1 border-l pl-3">
{flow.tasks.map((task) => (
<TaskExecutionItem
key={task.taskId}
@@ -478,7 +478,7 @@ const TaskExecutionItem = memo(function TaskExecutionItem({ task }: { task: Flow
</CollapsibleTrigger>
{hasSubtasks && (
<CollapsibleContent>
- <div className="ml-6 space-y-0.5 border-l pl-3">
+ <div className="ml-6 flex flex-col gap-0.5 border-l pl-3">
{task.subtasks.map((subtask) => (
<div
className="text-muted-foreground flex items-center gap-3 px-3 py-1 text-xs"