From 66e7fc4ee4e8e9b9a1895bbc64a1453aea55f16b Mon Sep 17 00:00:00 2001 From: Eliezer Steinbock <3090527+elie222@users.noreply.github.com> Date: Tue, 19 Aug 2025 11:27:56 +0300 Subject: [PATCH 1/5] Use common page structure for the main pages --- .../[emailAccountId]/automation/page.tsx | 87 +++--- .../bulk-unsubscribe/BulkActions.tsx | 2 +- .../bulk-unsubscribe/BulkUnsubscribe.tsx | 94 ------ .../BulkUnsubscribeSection.tsx | 267 ++++++++++-------- .../bulk-unsubscribe/page.tsx | 3 +- .../(app)/[emailAccountId]/stats/Stats.tsx | 27 +- apps/web/components/PageWrapper.tsx | 15 + 7 files changed, 228 insertions(+), 267 deletions(-) delete mode 100644 apps/web/app/(app)/[emailAccountId]/bulk-unsubscribe/BulkUnsubscribe.tsx create mode 100644 apps/web/components/PageWrapper.tsx diff --git a/apps/web/app/(app)/[emailAccountId]/automation/page.tsx b/apps/web/app/(app)/[emailAccountId]/automation/page.tsx index 679f92548c..ff5366f52a 100644 --- a/apps/web/app/(app)/[emailAccountId]/automation/page.tsx +++ b/apps/web/app/(app)/[emailAccountId]/automation/page.tsx @@ -21,6 +21,7 @@ import { PageHeading } from "@/components/Typography"; import { TabSelect } from "@/components/TabSelect"; import { RulesTab } from "@/app/(app)/[emailAccountId]/assistant/RulesTab"; import { AIChatButton } from "@/app/(app)/[emailAccountId]/assistant/AIChatButton"; +import { PageWrapper } from "@/components/PageWrapper"; export const maxDuration = 300; // Applies to the actions @@ -86,53 +87,51 @@ export default async function AutomationPage({ -
-
-
- - -
- Assistant - -
- -
- - } - > - +
+ + +
+ Assistant + +
+ +
+ - -
- - - - - - - - - - - - - - - - - - + } + > + +
+ + + + + + + + + + + + + + + + + +
-
+ ); diff --git a/apps/web/app/(app)/[emailAccountId]/bulk-unsubscribe/BulkActions.tsx b/apps/web/app/(app)/[emailAccountId]/bulk-unsubscribe/BulkActions.tsx index 94c99fbd47..d823ed9e6a 100644 --- a/apps/web/app/(app)/[emailAccountId]/bulk-unsubscribe/BulkActions.tsx +++ b/apps/web/app/(app)/[emailAccountId]/bulk-unsubscribe/BulkActions.tsx @@ -68,7 +68,7 @@ export function BulkActions({ return ( <> -
+