Skip to content

add insight filter selection to webhook creation and update #7598

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { ThirdwebClient } from "thirdweb";
import type { Topic } from "@/api/webhook-configs";
import { WebhookConfigModal } from "./webhook-config-modal";

Expand All @@ -7,15 +8,19 @@ interface CreateWebhookConfigModalProps {
teamSlug: string;
projectSlug: string;
topics: Topic[];
client?: ThirdwebClient;
supportedChainIds?: Array<number>;
}

export function CreateWebhookConfigModal(props: CreateWebhookConfigModalProps) {
return (
<WebhookConfigModal
client={props.client}
mode="create"
onOpenChange={props.onOpenChange}
open={props.open}
projectSlug={props.projectSlug}
supportedChainIds={props.supportedChainIds}
teamSlug={props.teamSlug}
topics={props.topics}
/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { ThirdwebClient } from "thirdweb";
import type { Topic, WebhookConfig } from "@/api/webhook-configs";
import { WebhookConfigModal } from "./webhook-config-modal";

Expand All @@ -8,15 +9,19 @@ interface EditWebhookConfigModalProps {
projectSlug: string;
topics: Topic[];
webhookConfig: WebhookConfig;
client?: ThirdwebClient;
supportedChainIds?: Array<number>;
}

export function EditWebhookConfigModal(props: EditWebhookConfigModalProps) {
return (
<WebhookConfigModal
client={props.client}
mode="edit"
onOpenChange={props.onOpenChange}
open={props.open}
projectSlug={props.projectSlug}
supportedChainIds={props.supportedChainIds}
teamSlug={props.teamSlug}
topics={props.topics}
webhookConfig={props.webhookConfig}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use client";

import { redirect } from "next/navigation";
import type { ThirdwebClient } from "thirdweb";
import type { Topic, WebhookConfig } from "@/api/webhook-configs";
import type { WebhookSummaryStats } from "@/types/analytics";
import { WebhookConfigsTable } from "./webhook-configs-table";
Expand All @@ -13,6 +14,8 @@ interface WebhooksOverviewProps {
webhookConfigs: WebhookConfig[];
topics: Topic[];
metricsMap: Map<string, WebhookSummaryStats | null>;
client?: ThirdwebClient;
supportedChainIds?: Array<number>;
}

export function WebhooksOverview({
Expand All @@ -23,6 +26,8 @@ export function WebhooksOverview({
webhookConfigs,
topics,
metricsMap,
client,
supportedChainIds,
}: WebhooksOverviewProps) {
// Feature is enabled (matches server component behavior)
const isFeatureEnabled = true;
Expand All @@ -35,9 +40,11 @@ export function WebhooksOverview({
// Show full webhook functionality
return (
<WebhookConfigsTable
client={client}
metricsMap={metricsMap}
projectId={projectId}
projectSlug={projectSlug}
supportedChainIds={supportedChainIds}
teamId={teamId}
teamSlug={teamSlug}
topics={topics}
Expand Down
Loading
Loading