Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update paths

Tim Wilsoncd5fe8e3b237
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/emails/[id]/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/emails/[emailId]/page-client.tsx
similarity index 95%
rename from apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/emails/[id]/page-client.tsx
rename to apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/emails/[emailId]/page-client.tsx
index bbadaa3181..8a5a9bdfa9 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/emails/[id]/page-client.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/emails/[emailId]/page-client.tsx
@@ -8,8 +8,8 @@ import { useSearchParams } from "next/navigation";
import { Controller, useForm } from "react-hook-form";
import { z } from "zod";
-export function ProgramEmailPageClient({ id }: { id: string }) {
- if (id !== "new") return <div>WIP</div>;
+export function ProgramEmailPageClient({ emailId }: { emailId: string }) {
+ if (emailId !== "new") return <div>WIP</div>;
// TODO: Load existing email data
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/emails/[id]/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/emails/[emailId]/page.tsx
similarity index 51%
rename from apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/emails/[id]/page.tsx
rename to apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/emails/[emailId]/page.tsx
index dc031dea7f..9237329597 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/emails/[id]/page.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/emails/[emailId]/page.tsx
@@ -3,9 +3,9 @@ import { ProgramEmailPageClient } from "./page-client";
export default function ProgramEmailPage({
params,
}: {
- params: { id: string };
+ params: { emailId: string };
}) {
- const { id } = params;
+ const { emailId } = params;
- return <ProgramEmailPageClient id={id} />;
+ return <ProgramEmailPageClient emailId={emailId} />;
}
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/emails/create-email-button.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/emails/create-email-button.tsx
similarity index 96%
rename from apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/emails/create-email-button.tsx
rename to apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/emails/create-email-button.tsx
index 32c4871f66..e0b7c1084e 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/emails/create-email-button.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/emails/create-email-button.tsx
@@ -79,7 +79,7 @@ function CreateEmailModal({
({ type, icon: Icon, name, description, colorClassName }) => (
<Link
key={type}
- href={`/${workspaceSlug}/program/communication/emails/new?type=${type}`}
+ href={`/${workspaceSlug}/program/emails/new?type=${type}`}
className="border-border-subtle flex flex-col items-center gap-5 rounded-xl border px-2 py-6 transition-[background-color,transform] hover:bg-neutral-50 active:scale-[0.98]"
>
<div
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/emails/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/emails/page-client.tsx
similarity index 100%
rename from apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/emails/page-client.tsx
rename to apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/emails/page-client.tsx
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/emails/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/emails/page.tsx
similarity index 100%
rename from apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/emails/page.tsx
rename to apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/emails/page.tsx
diff --git a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
index ed4696d9c1..f4a4088333 100644
--- a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
+++ b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
@@ -250,7 +250,7 @@ const NAV_AREAS: SidebarNavAreas<SidebarNavData> = {
{
name: "Email Campaigns",
icon: PaperPlane,
- href: `/${slug}/program/communication/emails`,
+ href: `/${slug}/program/emails`,
badge: "New",
},
{