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.

WIP email campaigns

Tim Wilson13772e079d4a
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/communication/emails/page-client.tsx
new file mode 100644
index 0000000000..af4cc74923
--- /dev/null
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/emails/page-client.tsx
@@ -0,0 +1,5 @@
+"use client";
+
+export function ProgramEmailsPageClient() {
+ return <div>WIP</div>;
+}
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/communication/emails/page.tsx
new file mode 100644
index 0000000000..f0d4572ba4
--- /dev/null
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/emails/page.tsx
@@ -0,0 +1,13 @@
+import { PageContent } from "@/ui/layout/page-content";
+import { PageWidthWrapper } from "@/ui/layout/page-width-wrapper";
+import { ProgramEmailsPageClient } from "./page-client";
+
+export default function ProgramEmailsPage() {
+ return (
+ <PageContent title="Email campaigns">
+ <PageWidthWrapper className="mb-8">
+ <ProgramEmailsPageClient />
+ </PageWidthWrapper>
+ </PageContent>
+ );
+}
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/page.tsx
index b64b462aa3..55dae2cea7 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/page.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/communication/page.tsx
@@ -4,7 +4,7 @@ import { ProgramCommunication } from "./page-client";
export default function ProgramSettingsCommunicationPage() {
return (
- <PageContent title="Communication">
+ <PageContent title="Help & Support">
<PageWidthWrapper className="mb-8">
<ProgramCommunication />
</PageWidthWrapper>
diff --git a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
index 219c693316..ed4696d9c1 100644
--- a/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
+++ b/apps/web/ui/layout/sidebar/app-sidebar-nav.tsx
@@ -18,6 +18,7 @@ import {
Globe,
InvoiceDollar,
Key,
+ LifeRing,
LinesY as LinesYStatic,
MoneyBills2,
PaperPlane,
@@ -243,6 +244,23 @@ const NAV_AREAS: SidebarNavAreas<SidebarNavData> = {
},
],
},
+ {
+ name: "Communication",
+ items: [
+ {
+ name: "Email Campaigns",
+ icon: PaperPlane,
+ href: `/${slug}/program/communication/emails`,
+ badge: "New",
+ },
+ {
+ name: "Help & Support",
+ icon: LifeRing,
+ href: `/${slug}/program/communication`,
+ exact: true,
+ },
+ ],
+ },
{
name: "Configuration",
items: [
@@ -266,11 +284,6 @@ const NAV_AREAS: SidebarNavAreas<SidebarNavData> = {
icon: Sliders,
href: `/${slug}/program/link-settings`,
},
- {
- name: "Communication",
- icon: PaperPlane,
- href: `/${slug}/program/communication`,
- },
],
},
],
diff --git a/packages/ui/src/content.ts b/packages/ui/src/content.ts
index a840874704..15b8e9623d 100644
--- a/packages/ui/src/content.ts
+++ b/packages/ui/src/content.ts
@@ -11,7 +11,7 @@ import {
FeatherFill,
Github,
Go,
- LifeRing,
+ LifeRingFill,
LinkedIn,
MicrophoneFill,
Php,
@@ -162,7 +162,7 @@ export const SOLUTIONS: NavItemChildren = [
export const RESOURCES = [
{
- icon: LifeRing,
+ icon: LifeRingFill,
title: "Help Center",
description: "Answers to your questions",
href: "/help",
diff --git a/packages/ui/src/icons/nucleo/index.ts b/packages/ui/src/icons/nucleo/index.ts
index c82dc4eb3a..278e21e0c0 100644
--- a/packages/ui/src/icons/nucleo/index.ts
+++ b/packages/ui/src/icons/nucleo/index.ts
@@ -139,6 +139,7 @@ export * from "./key";
export * from "./layout-sidebar";
export * from "./license";
export * from "./life-ring";
+export * from "./life-ring-fill";
export * from "./lines-y";
export * from "./link-broken";
export * from "./link4";
diff --git a/packages/ui/src/icons/nucleo/life-ring-fill.tsx b/packages/ui/src/icons/nucleo/life-ring-fill.tsx
new file mode 100644
index 0000000000..e0cfffc104
--- /dev/null
+++ b/packages/ui/src/icons/nucleo/life-ring-fill.tsx
@@ -0,0 +1,64 @@
+import { SVGProps } from "react";
+
+export function LifeRingFill(props: SVGProps<SVGSVGElement>) {
+ return (
+ <svg
+ height="18"
+ width="18"
+ viewBox="0 0 18 18"
+ xmlns="http://www.w3.org/2000/svg"
+ {...props}
+ >
+ <g fill="currentColor">
+ <path
+ d="M6.188,7.951l-1.404-.525c.457-1.223,1.42-2.186,2.643-2.643l.525,1.405c-.815,.305-1.458,.947-1.764,1.763Z"
+ fill="currentColor"
+ />
+ <path
+ d="M11.812,7.951c-.306-.815-.948-1.458-1.764-1.763l.525-1.405c1.223,.457,2.186,1.42,2.643,2.643l-1.404,.525Z"
+ fill="currentColor"
+ />
+ <path
+ d="M10.574,13.217l-.525-1.405c.815-.305,1.458-.947,1.764-1.763l1.404,.525c-.457,1.223-1.42,2.186-2.643,2.643Z"
+ fill="currentColor"
+ />
+ <path
+ d="M7.426,13.217c-1.223-.457-2.186-1.42-2.643-2.643l1.404-.525c.306,.815,.948,1.458,1.764,1.763l-.525,1.405Z"
+ fill="currentColor"
+ />
+ <path
+ d="M6.202,16.497c-2.174-.812-3.887-2.524-4.698-4.699l1.404-.524c.66,1.767,2.052,3.159,3.819,3.818l-.525,1.405Z"
+ fill="currentColor"
+ />
+ <path
+ d="M11.798,16.497l-.525-1.405c1.768-.66,3.159-2.051,3.819-3.818l1.404,.524c-.812,2.175-2.524,3.888-4.698,4.699Z"
+ fill="currentColor"
+ />
+ <path
+ d="M15.091,6.727c-.658-1.767-2.05-3.159-3.818-3.819l.525-1.405c2.175,.812,3.888,2.525,4.699,4.7l-1.406,.524Z"
+ fill="currentColor"
+ />
+ <path
+ d="M2.908,6.727l-1.404-.524c.812-2.175,2.524-3.888,4.698-4.699l.525,1.405c-1.768,.66-3.159,2.051-3.819,3.818Z"
+ fill="currentColor"
+ />
+ <path
+ d="M10.312,6.237c-.087,0-.176-.015-.263-.047-.675-.251-1.429-.251-2.098,0-.188,.069-.394,.062-.574-.021-.181-.083-.321-.233-.392-.42l-1.399-3.749c-.069-.186-.062-.393,.021-.574,.083-.181,.234-.322,.42-.391,1.902-.71,4.045-.71,5.947,0,.388,.145,.585,.577,.44,.965l-1.399,3.75c-.113,.302-.399,.488-.703,.488Z"
+ fill="currentColor"
+ />
+ <path
+ d="M16.263,12.46c-.087,0-.176-.015-.263-.047l-3.749-1.399c-.388-.145-.585-.577-.44-.965,.126-.336,.189-.689,.189-1.049,0-.362-.063-.714-.188-1.047-.07-.187-.062-.393,.02-.575,.083-.181,.233-.322,.42-.392l3.749-1.399c.393-.145,.82,.053,.965,.44,.355,.949,.535,1.95,.535,2.973s-.18,2.024-.535,2.973c-.112,.301-.398,.487-.702,.487Z"
+ fill="currentColor"
+ />
+ <path
+ d="M9,17.5c-1.022,0-2.022-.18-2.974-.535-.388-.145-.585-.577-.44-.965l1.399-3.75c.146-.388,.576-.585,.966-.44,.675,.251,1.429,.251,2.098,0,.187-.07,.393-.063,.574,.021,.181,.083,.321,.233,.392,.42l1.399,3.749c.069,.186,.062,.393-.021,.574-.083,.181-.234,.322-.42,.391-.951,.355-1.951,.535-2.974,.535Z"
+ fill="currentColor"
+ />
+ <path
+ d="M1.737,12.46c-.304,0-.59-.186-.702-.487-.355-.949-.535-1.95-.535-2.973s.18-2.024,.535-2.973c.145-.387,.574-.584,.965-.44l3.749,1.399c.388,.145,.585,.577,.44,.965-.126,.336-.189,.689-.189,1.049,0,.362,.063,.714,.188,1.047,.07,.187,.062,.393-.02,.575-.083,.181-.233,.322-.42,.392l-3.749,1.399c-.087,.032-.176,.047-.263,.047Z"
+ fill="currentColor"
+ />
+ </g>
+ </svg>
+ );
+}
diff --git a/packages/ui/src/icons/nucleo/life-ring.tsx b/packages/ui/src/icons/nucleo/life-ring.tsx
index 5b2e9557f6..d120fd5845 100644
--- a/packages/ui/src/icons/nucleo/life-ring.tsx
+++ b/packages/ui/src/icons/nucleo/life-ring.tsx
@@ -11,52 +11,100 @@ export function LifeRing(props: SVGProps<SVGSVGElement>) {
>
<g fill="currentColor">
<path
- d="M6.188,7.951l-1.404-.525c.457-1.223,1.42-2.186,2.643-2.643l.525,1.405c-.815,.305-1.458,.947-1.764,1.763Z"
- fill="currentColor"
+ d="M5.486,7.688c.379-1.016,1.187-1.823,2.203-2.203"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
/>
<path
- d="M11.812,7.951c-.306-.815-.948-1.458-1.764-1.763l.525-1.405c1.223,.457,2.186,1.42,2.643,2.643l-1.404,.525Z"
- fill="currentColor"
+ d="M10.312,5.486c1.016,.379,1.823,1.187,2.203,2.203"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
/>
<path
- d="M10.574,13.217l-.525-1.405c.815-.305,1.458-.947,1.764-1.763l1.404,.525c-.457,1.223-1.42,2.186-2.643,2.643Z"
- fill="currentColor"
+ d="M12.514,10.312c-.379,1.016-1.187,1.823-2.203,2.203"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
/>
<path
- d="M7.426,13.217c-1.223-.457-2.186-1.42-2.643-2.643l1.404-.525c.306,.815,.948,1.458,1.764,1.763l-.525,1.405Z"
- fill="currentColor"
+ d="M7.688,12.514c-1.016-.379-1.823-1.187-2.203-2.203"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
/>
<path
- d="M6.202,16.497c-2.174-.812-3.887-2.524-4.698-4.699l1.404-.524c.66,1.767,2.052,3.159,3.819,3.818l-.525,1.405Z"
- fill="currentColor"
+ d="M6.464,15.794c-1.964-.733-3.525-2.294-4.259-4.259"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
/>
<path
- d="M11.798,16.497l-.525-1.405c1.768-.66,3.159-2.051,3.819-3.818l1.404,.524c-.812,2.175-2.524,3.888-4.698,4.699Z"
- fill="currentColor"
+ d="M15.794,11.536c-.733,1.964-2.295,3.525-4.259,4.259"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
/>
<path
- d="M15.091,6.727c-.658-1.767-2.05-3.159-3.818-3.819l.525-1.405c2.175,.812,3.888,2.525,4.699,4.7l-1.406,.524Z"
- fill="currentColor"
+ d="M11.536,2.206c1.964,.733,3.525,2.295,4.259,4.259"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
/>
<path
- d="M2.908,6.727l-1.404-.524c.812-2.175,2.524-3.888,4.698-4.699l.525,1.405c-1.768,.66-3.159,2.051-3.819,3.818Z"
- fill="currentColor"
+ d="M2.206,6.464c.733-1.964,2.294-3.525,4.259-4.259"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
/>
<path
- d="M10.312,6.237c-.087,0-.176-.015-.263-.047-.675-.251-1.429-.251-2.098,0-.188,.069-.394,.062-.574-.021-.181-.083-.321-.233-.392-.42l-1.399-3.749c-.069-.186-.062-.393,.021-.574,.083-.181,.234-.322,.42-.391,1.902-.71,4.045-.71,5.947,0,.388,.145,.585,.577,.44,.965l-1.399,3.75c-.113,.302-.399,.488-.703,.488Z"
- fill="currentColor"
+ d="M10.311,5.487l1.399-3.749h0c-.844-.315-1.757-.487-2.711-.487-.954,0-1.867,.172-2.711,.487l1.399,3.749c.409-.153,.849-.236,1.311-.236s.903,.084,1.311,.237Z"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
/>
<path
- d="M16.263,12.46c-.087,0-.176-.015-.263-.047l-3.749-1.399c-.388-.145-.585-.577-.44-.965,.126-.336,.189-.689,.189-1.049,0-.362-.063-.714-.188-1.047-.07-.187-.062-.393,.02-.575,.083-.181,.233-.322,.42-.392l3.749-1.399c.393-.145,.82,.053,.965,.44,.355,.949,.535,1.95,.535,2.973s-.18,2.024-.535,2.973c-.112,.301-.398,.487-.702,.487Z"
- fill="currentColor"
+ d="M12.513,10.311l3.749,1.399h0c.315-.844,.487-1.757,.487-2.71,0-.954-.172-1.867-.487-2.711l-3.749,1.399c.153,.409,.236,.849,.236,1.311s-.084,.903-.237,1.311Z"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
/>
<path
- d="M9,17.5c-1.022,0-2.022-.18-2.974-.535-.388-.145-.585-.577-.44-.965l1.399-3.75c.146-.388,.576-.585,.966-.44,.675,.251,1.429,.251,2.098,0,.187-.07,.393-.063,.574,.021,.181,.083,.321,.233,.392,.42l1.399,3.749c.069,.186,.062,.393-.021,.574-.083,.181-.234,.322-.42,.391-.951,.355-1.951,.535-2.974,.535Z"
- fill="currentColor"
+ d="M7.689,12.513l-1.399,3.749h0c.844,.315,1.757,.487,2.711,.487,.954,0,1.867-.172,2.711-.487l-1.399-3.749c-.409,.153-.849,.236-1.311,.236s-.903-.084-1.311-.237Z"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
/>
<path
- d="M1.737,12.46c-.304,0-.59-.186-.702-.487-.355-.949-.535-1.95-.535-2.973s.18-2.024,.535-2.973c.145-.387,.574-.584,.965-.44l3.749,1.399c.388,.145,.585,.577,.44,.965-.126,.336-.189,.689-.189,1.049,0,.362,.063,.714,.188,1.047,.07,.187,.062,.393-.02,.575-.083,.181-.233,.322-.42,.392l-3.749,1.399c-.087,.032-.176,.047-.263,.047Z"
- fill="currentColor"
+ d="M5.487,7.689l-3.749-1.399h0c-.315,.844-.487,1.757-.487,2.71,0,.954,.172,1.867,.487,2.711l3.749-1.399c-.153-.409-.236-.849-.236-1.311s.084-.903,.237-1.311Z"
+ fill="none"
+ stroke="currentColor"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth="1.5"
/>
</g>
</svg>
diff --git a/packages/ui/src/nav/content/resources-content.tsx b/packages/ui/src/nav/content/resources-content.tsx
index 12dba34ad9..00c5a78603 100644
--- a/packages/ui/src/nav/content/resources-content.tsx
+++ b/packages/ui/src/nav/content/resources-content.tsx
@@ -3,7 +3,7 @@ import { Link as NavigationMenuLink } from "@radix-ui/react-navigation-menu";
import Link from "next/link";
import { RESOURCES } from "../../content";
import { Grid } from "../../grid";
-import { Book2Fill, LifeRing } from "../../icons";
+import { Book2Fill, LifeRingFill } from "../../icons";
import {
ContentLinkCard,
contentHeadingClassName,
@@ -12,7 +12,7 @@ import {
const mainLinks = [
{
- icon: LifeRing,
+ icon: LifeRingFill,
title: "Help Center",
description: "Answers to your questions",
thumbnail: "https://assets.dub.co/misc/help-thumbnail.jpg", // TODO: Update