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.

fix remaining issues

Steven Tey1ed758012ca2
diff --git a/apps/web/lib/auth/workspace-edge.ts b/apps/web/lib/auth/workspace-edge.ts
index a1c3960bfa..bdc3bf4b1f 100644
--- a/apps/web/lib/auth/workspace-edge.ts
+++ b/apps/web/lib/auth/workspace-edge.ts
@@ -239,6 +239,7 @@ export const withWorkspaceEdge = (
id: true,
slug: true,
primary: true,
+ verified: true,
},
},
},
diff --git a/apps/web/lib/types.ts b/apps/web/lib/types.ts
index 23136d65bc..bc216f9275 100644
--- a/apps/web/lib/types.ts
+++ b/apps/web/lib/types.ts
@@ -88,6 +88,7 @@ export interface WorkspaceProps {
stripeConnectId: string | null;
createdAt: Date;
domains: {
+ id: string;
slug: string;
primary: boolean;
verified: boolean;
diff --git a/apps/web/ui/analytics/events/events-table.tsx b/apps/web/ui/analytics/events/events-table.tsx
index 05735fdbf0..588ff2ce45 100644
--- a/apps/web/ui/analytics/events/events-table.tsx
+++ b/apps/web/ui/analytics/events/events-table.tsx
@@ -139,6 +139,7 @@ const FilterButton = ({ set }: { set: Record<string, any> }) => {
href={
queryParams({
set,
+ del: "page",
getNewPath: true,
}) as string
}
diff --git a/apps/web/ui/analytics/events/events-tabs.tsx b/apps/web/ui/analytics/events/events-tabs.tsx
index f779d01b7f..fc936fcbab 100644
--- a/apps/web/ui/analytics/events/events-tabs.tsx
+++ b/apps/web/ui/analytics/events/events-tabs.tsx
@@ -68,7 +68,7 @@ export default function EventsTabs() {
set: { tab: event },
del: [
// Reset pagination
- "offset",
+ "page",
// Reset sort if not possible
...(currentSort && !sortOptions.includes(currentSort)
? ["sort"]
diff --git a/apps/web/ui/analytics/toggle.tsx b/apps/web/ui/analytics/toggle.tsx
index 39ef12346e..7c741135aa 100644
--- a/apps/web/ui/analytics/toggle.tsx
+++ b/apps/web/ui/analytics/toggle.tsx
@@ -539,6 +539,7 @@ export default function Toggle({
: {
[key]: value,
},
+ del: "page",
});
}
}}
@@ -659,7 +660,7 @@ export default function Toggle({
onRemoveAll={() =>
queryParams({
// Reset all filters except for date range
- del: VALID_ANALYTICS_FILTERS.filter(
+ del: VALID_ANALYTICS_FILTERS.concat(["page"]).filter(
(f) => !["interval", "start", "end"].includes(f),
),
})