diff --git a/apps/web/app/(app)/[emailAccountId]/automation/onboarding/CategoriesSetup.tsx b/apps/web/app/(app)/[emailAccountId]/assistant/onboarding/CategoriesSetup.tsx
similarity index 97%
rename from apps/web/app/(app)/[emailAccountId]/automation/onboarding/CategoriesSetup.tsx
rename to apps/web/app/(app)/[emailAccountId]/assistant/onboarding/CategoriesSetup.tsx
index fcc4a0cbcd..8fcb11d385 100644
--- a/apps/web/app/(app)/[emailAccountId]/automation/onboarding/CategoriesSetup.tsx
+++ b/apps/web/app/(app)/[emailAccountId]/assistant/onboarding/CategoriesSetup.tsx
@@ -1,7 +1,6 @@
"use client";
import { useCallback } from "react";
-import Link from "next/link";
import { useRouter } from "next/navigation";
import { useForm } from "react-hook-form";
import { zodResolver } from "@hookform/resolvers/zod";
@@ -38,7 +37,7 @@ import {
} from "@/utils/cookies";
import { prefixPath } from "@/utils/path";
-const NEXT_URL = "/automation/onboarding/draft-replies";
+const NEXT_URL = "/assistant/onboarding/draft-replies";
export function CategoriesSetup({
emailAccountId,
@@ -148,7 +147,7 @@ export function CategoriesSetup({
variant="outline"
onClick={() => {
markOnboardingAsCompleted(ASSISTANT_ONBOARDING_COOKIE);
- router.push(prefixPath(emailAccountId, "/automation"));
+ router.push(prefixPath(emailAccountId, "/assistant"));
}}
>
Skip
diff --git a/apps/web/app/(app)/[emailAccountId]/automation/onboarding/completed/page.tsx b/apps/web/app/(app)/[emailAccountId]/assistant/onboarding/completed/page.tsx
similarity index 95%
rename from apps/web/app/(app)/[emailAccountId]/automation/onboarding/completed/page.tsx
rename to apps/web/app/(app)/[emailAccountId]/assistant/onboarding/completed/page.tsx
index dcdef4785b..2bcce98a22 100644
--- a/apps/web/app/(app)/[emailAccountId]/automation/onboarding/completed/page.tsx
+++ b/apps/web/app/(app)/[emailAccountId]/assistant/onboarding/completed/page.tsx
@@ -36,7 +36,7 @@ export default function CompletedPage(props: {
diff --git a/apps/web/app/(app)/[emailAccountId]/automation/onboarding/draft-replies/page.tsx b/apps/web/app/(app)/[emailAccountId]/assistant/onboarding/draft-replies/page.tsx
similarity index 96%
rename from apps/web/app/(app)/[emailAccountId]/automation/onboarding/draft-replies/page.tsx
rename to apps/web/app/(app)/[emailAccountId]/assistant/onboarding/draft-replies/page.tsx
index 7d87afe528..ed76f3ef64 100644
--- a/apps/web/app/(app)/[emailAccountId]/automation/onboarding/draft-replies/page.tsx
+++ b/apps/web/app/(app)/[emailAccountId]/assistant/onboarding/draft-replies/page.tsx
@@ -32,7 +32,7 @@ export default function DraftRepliesPage() {
markOnboardingAsCompleted(ASSISTANT_ONBOARDING_COOKIE);
router.push(
- prefixPath(emailAccountId, "/automation/onboarding/completed"),
+ prefixPath(emailAccountId, "/assistant/onboarding/completed"),
);
},
[router, emailAccountId],
diff --git a/apps/web/app/(app)/[emailAccountId]/automation/onboarding/page.tsx b/apps/web/app/(app)/[emailAccountId]/assistant/onboarding/page.tsx
similarity index 100%
rename from apps/web/app/(app)/[emailAccountId]/automation/onboarding/page.tsx
rename to apps/web/app/(app)/[emailAccountId]/assistant/onboarding/page.tsx
diff --git a/apps/web/app/(app)/[emailAccountId]/assistant/page.tsx b/apps/web/app/(app)/[emailAccountId]/assistant/page.tsx
index e639d62e87..c6dead6851 100644
--- a/apps/web/app/(app)/[emailAccountId]/assistant/page.tsx
+++ b/apps/web/app/(app)/[emailAccountId]/assistant/page.tsx
@@ -29,7 +29,7 @@ export default async function AssistantPage({
});
if (!hasRule) {
- redirect(prefixPath(emailAccountId, "/automation/onboarding"));
+ redirect(prefixPath(emailAccountId, "/assistant?onboarding=true"));
}
}
diff --git a/apps/web/app/(app)/[emailAccountId]/automation/AssistantTabs.tsx b/apps/web/app/(app)/[emailAccountId]/automation/AssistantTabs.tsx
index 468e922ecc..439799e6eb 100644
--- a/apps/web/app/(app)/[emailAccountId]/automation/AssistantTabs.tsx
+++ b/apps/web/app/(app)/[emailAccountId]/automation/AssistantTabs.tsx
@@ -41,7 +41,7 @@ export function AssistantTabs() {
Set Up
diff --git a/apps/web/app/(app)/[emailAccountId]/automation/ProcessingPromptFileDialog.tsx b/apps/web/app/(app)/[emailAccountId]/automation/ProcessingPromptFileDialog.tsx
index f5f5ba6fe8..498f63a835 100644
--- a/apps/web/app/(app)/[emailAccountId]/automation/ProcessingPromptFileDialog.tsx
+++ b/apps/web/app/(app)/[emailAccountId]/automation/ProcessingPromptFileDialog.tsx
@@ -271,7 +271,7 @@ function FinalStepReady({
Back
diff --git a/apps/web/app/(app)/[emailAccountId]/automation/RuleForm.tsx b/apps/web/app/(app)/[emailAccountId]/automation/RuleForm.tsx
index a4bc00d4a4..44089e8bd4 100644
--- a/apps/web/app/(app)/[emailAccountId]/automation/RuleForm.tsx
+++ b/apps/web/app/(app)/[emailAccountId]/automation/RuleForm.tsx
@@ -187,7 +187,7 @@ export function RuleForm({ rule }: { rule: CreateRuleBody & { id?: string } }) {
automate: data.automate,
runOnThreads: data.runOnThreads,
});
- router.push(prefixPath(emailAccountId, "/automation?tab=rules"));
+ router.push(prefixPath(emailAccountId, "/assistant?tab=rules"));
}
} else {
const res = await createRuleAction(emailAccountId, data);
@@ -210,7 +210,7 @@ export function RuleForm({ rule }: { rule: CreateRuleBody & { id?: string } }) {
router.replace(
prefixPath(emailAccountId, `/automation/rule/${res.data.rule.id}`),
);
- router.push(prefixPath(emailAccountId, "/automation?tab=rules"));
+ router.push(prefixPath(emailAccountId, "/assistant?tab=rules"));
}
}
},
@@ -735,7 +735,7 @@ export function RuleForm({ rule }: { rule: CreateRuleBody & { id?: string } }) {
description: "The rule has been deleted.",
});
router.push(
- prefixPath(emailAccountId, "/automation?tab=rules"),
+ prefixPath(emailAccountId, "/assistant?tab=rules"),
);
}
} catch (error) {
diff --git a/apps/web/app/(app)/[emailAccountId]/automation/Rules.tsx b/apps/web/app/(app)/[emailAccountId]/automation/Rules.tsx
index 09d231f58a..a1867df18d 100644
--- a/apps/web/app/(app)/[emailAccountId]/automation/Rules.tsx
+++ b/apps/web/app/(app)/[emailAccountId]/automation/Rules.tsx
@@ -290,7 +290,7 @@ export function Rules({ size = "md" }: { size?: "sm" | "md" }) {
)
: prefixPath(
emailAccountId,
- `/automation?tab=history&ruleId=${rule.id}`,
+ `/assistant?tab=history&ruleId=${rule.id}`,
)
}
target={
@@ -396,13 +396,13 @@ export function Rules({ size = "md" }: { size?: "sm" | "md" }) {
{hasRules && (
{/*
*/}