diff --git a/apps/web/app/(app)/[emailAccountId]/assistant/RulesTab.tsx b/apps/web/app/(app)/[emailAccountId]/assistant/RulesTab.tsx new file mode 100644 index 0000000000..2862b015c4 --- /dev/null +++ b/apps/web/app/(app)/[emailAccountId]/assistant/RulesTab.tsx @@ -0,0 +1,24 @@ +import { Rules } from "@/app/(app)/[emailAccountId]/assistant/Rules"; +import { RulesPrompt } from "@/app/(app)/[emailAccountId]/assistant/RulesPrompt"; +import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; + +export function RulesTab() { + return ( + +
+ View as: + + Prompt + Rules + +
+ + + + + + + +
+ ); +} diff --git a/apps/web/app/(app)/[emailAccountId]/assistant/SettingsTab.tsx b/apps/web/app/(app)/[emailAccountId]/assistant/SettingsTab.tsx index 3c0df5deca..41d6b1076d 100644 --- a/apps/web/app/(app)/[emailAccountId]/assistant/SettingsTab.tsx +++ b/apps/web/app/(app)/[emailAccountId]/assistant/SettingsTab.tsx @@ -1,33 +1,13 @@ import { AboutSetting } from "@/app/(app)/[emailAccountId]/assistant/AboutSetting"; import { DigestSetting } from "@/app/(app)/[emailAccountId]/assistant/DigestSetting"; import { DraftReplies } from "@/app/(app)/[emailAccountId]/assistant/DraftReplies"; -import { Rules } from "@/app/(app)/[emailAccountId]/assistant/Rules"; -import { RulesPrompt } from "@/app/(app)/[emailAccountId]/assistant/RulesPrompt"; -import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; export function SettingsTab() { return ( - -
- View as: - - Prompt - Rules - -
- - - - - - - - -
- - - -
-
+
+ + + +
); } diff --git a/apps/web/app/(app)/[emailAccountId]/automation/page.tsx b/apps/web/app/(app)/[emailAccountId]/automation/page.tsx index d92b1db49a..91029eb617 100644 --- a/apps/web/app/(app)/[emailAccountId]/automation/page.tsx +++ b/apps/web/app/(app)/[emailAccountId]/automation/page.tsx @@ -19,10 +19,16 @@ import { checkUserOwnsEmailAccount } from "@/utils/email-account"; import { SettingsTab } from "@/app/(app)/[emailAccountId]/assistant/SettingsTab"; import { PageHeading } from "@/components/Typography"; import { TabSelect } from "@/components/TabSelect"; +import { RulesTab } from "@/app/(app)/[emailAccountId]/assistant/RulesTab"; export const maxDuration = 300; // Applies to the actions const tabOptions = (emailAccountId: string) => [ + { + id: "rules", + label: "Rules", + href: `/${emailAccountId}/automation?tab=rules`, + }, { id: "settings", label: "Settings", @@ -94,7 +100,7 @@ export default async function AutomationPage({ fallback={ } > @@ -106,7 +112,10 @@ export default async function AutomationPage({ - + + + + @@ -151,7 +160,7 @@ async function TabNavigation({ ] : []), ]} - selected={tab ?? "settings"} + selected={tab ?? "rules"} /> ); } diff --git a/version.txt b/version.txt index ba1e8bf0bd..b95e90dc75 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -v1.9.1 +v1.9.2