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.

Tweaks

Tim Wilsonaefd61a173cd
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/[campaignId]/campaign-events.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/[campaignId]/campaign-events.tsx
index e1b9931189..dc8c4eccb5 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/[campaignId]/campaign-events.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/[campaignId]/campaign-events.tsx
@@ -15,7 +15,7 @@ export type EventStatus = "delivered" | "opened" | "bounced";
export type CampaignEvent = z.infer<typeof campaignEventSchema>;
-const MAX_EVENTS = 3; // TODO: Change to 10
+const MAX_EVENTS = 10;
export function CampaignEvents() {
const router = useRouter();
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/page.tsx
index ff9d0e3981..5c6672644d 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/page.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/page.tsx
@@ -1,6 +1,5 @@
import { PageContent } from "@/ui/layout/page-content";
import { PageWidthWrapper } from "@/ui/layout/page-width-wrapper";
-import { CampaignStats } from "./campaign-stats";
import { CampaignsTable } from "./campaigns-table";
import { CreateCampaignButton } from "./create-campaign-button";
@@ -8,8 +7,8 @@ export default function ProgramCampaignsPage() {
return (
<PageContent title="Email campaigns" controls={<CreateCampaignButton />}>
<PageWidthWrapper>
- <CampaignStats />
- <div className="mt-6">
+ {/* <CampaignStats /> */}
+ <div>
<CampaignsTable />
</div>
</PageWidthWrapper>
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/use-campaigns-filters.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/use-campaigns-filters.tsx
index 4ec6ce0550..4ca60507a6 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/use-campaigns-filters.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/campaigns/use-campaigns-filters.tsx
@@ -1,12 +1,11 @@
import useWorkspace from "@/lib/swr/use-workspace";
import { CampaignStatus, CampaignType } from "@dub/prisma/client";
import { useRouterStuff } from "@dub/ui";
-import { CircleDotted, Sliders } from "@dub/ui/icons";
+import { CircleDotted } from "@dub/ui/icons";
import { nFormatter } from "@dub/utils";
import { cn } from "@dub/utils/src";
import { useMemo } from "react";
import { CAMPAIGN_STATUS_BADGES } from "./campaign-status-badges";
-import { CAMPAIGN_TYPE_BADGES } from "./campaign-type-badges";
import useCampaignsCount from "./use-campaigns-count";
interface CampaignsCountByType {
@@ -59,28 +58,28 @@ export function useCampaignsFilters() {
};
}) ?? [],
},
- {
- key: "type",
- icon: Sliders,
- label: "Type",
- options:
- countByType?.map(({ type, _count }) => {
- const {
- label,
- icon: Icon,
- iconClassName,
- } = CAMPAIGN_TYPE_BADGES[type];
-
- return {
- label,
- value: type,
- icon: (
- <Icon className={cn(iconClassName, "size-4 bg-transparent")} />
- ),
- right: nFormatter(_count || 0, { full: true }),
- };
- }) ?? [],
- },
+ // {
+ // key: "type",
+ // icon: Sliders,
+ // label: "Type",
+ // options:
+ // countByType?.map(({ type, _count }) => {
+ // const {
+ // label,
+ // icon: Icon,
+ // iconClassName,
+ // } = CAMPAIGN_TYPE_BADGES[type];
+
+ // return {
+ // label,
+ // value: type,
+ // icon: (
+ // <Icon className={cn(iconClassName, "size-4 bg-transparent")} />
+ // ),
+ // right: nFormatter(_count || 0, { full: true }),
+ // };
+ // }) ?? [],
+ // },
],
[countByType, countByStatus],
);