-
Notifications
You must be signed in to change notification settings - Fork 67
feat: webhook monitoring #322
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
sarimrmalik
wants to merge
132
commits into
main
Choose a base branch
from
feat/webhook-monitoring
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 49 commits
Commits
Show all changes
132 commits
Select commit
Hold shift + click to select a range
f8646d6
refactor: update webhooks page structure and remove unused components
sarimrmalik 2e0e1da
refactor: simplify webhooks table and update styling
sarimrmalik 9b80329
Merge remote-tracking branch 'origin/main' into refactor/webhooks-page
sarimrmalik 99ebc97
Fix type errors
sarimrmalik d3cd38c
refactor: enhance layout and styling for dashboard components
sarimrmalik 429f12e
refactor: enhance webhook add/edit dialog with example payload and ev…
sarimrmalik ab29a27
feat: add clearable input functionality to webhook dialog
sarimrmalik 50b1a30
refactor: enhance webhook dialog with dynamic example payload
sarimrmalik ced46af
Merge remote-tracking branch 'origin/main' into refactor/webhooks-page
sarimrmalik 333ad34
refactor: enhance webhook add/edit dialog with improved focus and sty…
sarimrmalik 6c16231
feat: integrate clipboard functionality in webhook dialog
sarimrmalik 63411f7
fix: ensure validation for webhook secret input
sarimrmalik 0511804
Merge remote-tracking branch 'origin/main' into refactor/webhooks-page
sarimrmalik 07d161e
refactor: overhaul webhooks management with TRPC integration
sarimrmalik ca97924
Merge remote-tracking branch 'origin/main' into refactor/webhooks-page
sarimrmalik 59aa65d
feat: add maxLength to custom secret input in webhook dialog
sarimrmalik 031df16
feat: integrate FinishWebhookSetupDialog for enhanced webhook setup e…
sarimrmalik a6eaccf
refactor: enhance WebhookTableRow component with improved structure a…
sarimrmalik 8f32bf2
refactor: improve styling and structure of WebhooksTable and WebhookR…
sarimrmalik 92c521a
refactor: update styling and structure of WebhookTableRow and Webhook…
sarimrmalik 52bca58
Merge branch 'main' of https://github.com/e2b-dev/dashboard into refa…
sarimrmalik 30a5425
refactor: update webhook management to use 'create' and 'update' modes
sarimrmalik 2db48f4
refactor: update UserAvatar component to use 'label' prop instead of …
sarimrmalik ce17dd8
refactor: enhance WebhookTableRow with URL copy functionality
sarimrmalik 1c45c47
refactor: enhance WebhookTableRow with event badges and tooltips
sarimrmalik 8bf085d
feat: introduce SandboxLifecycleEventType for webhook management
sarimrmalik 5e782c5
refactor: update WebhookTableRow and WebhooksTable for improved layou…
sarimrmalik ff7b46b
refactor: streamline WebhookTableRow actions and improve secret editi…
sarimrmalik 42a4519
feat: add DiscardWebhookChangesDialog for unsaved changes confirmation
sarimrmalik 3fdf280
refactor: replace WebhookDeleteDialog with DeleteWebhookDialog for im…
sarimrmalik 9494a15
refactor: enhance webhook dialogs and table layout for improved usabi…
sarimrmalik d6af1ae
refactor: improve EditSecretDialog and UpsertWebhookDialog for better…
sarimrmalik 07c1717
refactor: replace EditSecretDialog with UpdateWebhookSecretDialog for…
sarimrmalik 43c62a3
refactor: enhance UpsertWebhookDialog and related components for impr…
sarimrmalik a29e59c
refactor: simplify button variant logic in UpsertWebhookDialog
sarimrmalik 78094c5
refactor: enhance webhook upsert logic and validation
sarimrmalik 7cc4045
refactor: update event handling and validation in UpsertWebhookDialog
sarimrmalik ec0a71c
feat: add clearable functionality to webhook input field in UpsertWeb…
sarimrmalik 1edb57d
refactor: simplify WebhooksPageContent structure and enhance loading …
sarimrmalik 29ec381
refactor: remove disabled prop from WebhooksSearchFieldShell for impr…
sarimrmalik a0b0b79
refactor: update UpsertWebhookDialog to improve event handling and de…
sarimrmalik 14e3832
Remove unused component
sarimrmalik f072a70
refactor: update webhook context structure in webhooksRouter
sarimrmalik e4722c1
Merge remote-tracking branch 'origin/main' into refactor/webhooks-page
sarimrmalik cc60592
Merge branch 'feat/webhook-monitoring' of https://github.com/e2b-dev/…
sarimrmalik e7c369c
feat(webhooks): implement webhook delivery monitoring and details
sarimrmalik 757dbe8
refactor(webhooks): simplify stats range handling and improve overvie…
sarimrmalik 2d34a6b
refactor(webhooks): update WebhookTableRow to use Link component
sarimrmalik 23dccee
feat(webhooks): enhance webhook details and event display
sarimrmalik a7811d4
refactor(webhooks): enforce delivery stats range validation and updat…
sarimrmalik 854d047
feat(webhooks): implement cursor-based pagination for webhook deliveries
sarimrmalik 1e62dc8
Fix warning
sarimrmalik 5720a13
Merge origin/main into refactor/webhooks-page
sarimrmalik b2dca64
Remove unused constants
sarimrmalik 31113b8
Merge remote-tracking branch 'origin/refactor/webhooks-page' into fea…
sarimrmalik 9bff860
feat(webhooks): enhance webhook detail header and introduce IdBadge c…
sarimrmalik 730292b
Use URL state for webhook stats range
sarimrmalik 8ea57e9
refactor(webhooks): simplify webhook name display in settings
sarimrmalik 8d4f343
refactor(webhooks): enhance webhook overview and timestamp handling
sarimrmalik 0226d8a
refactor(webhooks): streamline event deliveries section layout
sarimrmalik df08a53
refactor(webhooks): update stats range handling and improve range sel…
sarimrmalik 2e3db05
feat(webhooks): add start and end query parameters for delivery filte…
sarimrmalik 11e0963
refactor(webhooks): update delivery status handling and introduce eve…
sarimrmalik f063514
refactor(webhooks): adjust table layout and improve delivery details …
sarimrmalik 1901943
refactor(webhooks): enhance delivery data visualization and timestamp…
sarimrmalik 7ee38c2
feat(webhooks): enhance response time metrics and chart visualization
sarimrmalik 6916abf
fix(webhooks): improve tooltip transition for webhook stats chart
sarimrmalik f4b1732
Merge remote-tracking branch 'origin/main' into refactor/webhooks-page
sarimrmalik 1831ec5
refactor(webhooks): simplify webhook name display and enhance row int…
sarimrmalik 2668bf9
refactor(webhooks): adjust deliveries table width for improved layout
sarimrmalik 21b766c
refactor(webhooks): update table and cell widths for improved layout
sarimrmalik 63f898c
refactor(webhooks): updated the SelectTrigger component in the Webhoo…
sarimrmalik 02433e2
refactor(webhooks): replace MetricCard and ChartCard components with …
sarimrmalik cf8d799
feat(webhooks): add CopyButton to timestamps and webhook URL for impr…
sarimrmalik 98ec142
refactor(webhooks): enhance webhook stats chart and data handling
sarimrmalik 9a02461
refactor(webhooks): improve delivery and response time data handling
sarimrmalik 27cc0eb
refactor(webhooks): update timestamp formatting and improve webhook d…
sarimrmalik d0809d0
refactor(webhooks): simplify layout of webhook overview content
sarimrmalik 6814704
refactor(webhooks): enhance deliveries content layout and detail pres…
sarimrmalik 615f6d2
feat(webhooks): implement virtualized table for improved performance …
sarimrmalik f67d035
refactor(webhooks): enhance layout and responsiveness of webhook over…
sarimrmalik cc42ebf
style: adjust minimum width of webhooks table for better layout
sarimrmalik 181f176
Merge remote-tracking branch 'origin/main' into refactor/webhooks-page
sarimrmalik 849f37b
Merge remote-tracking branch 'origin/refactor/webhooks-page' into fea…
sarimrmalik ea2a47c
style: update layout of deliveries content for improved alignment
sarimrmalik 33999c3
refactor(webhooks): update webhook overview content for improved clar…
sarimrmalik 13026c2
refactor(webhooks): rename 'Average' to 'Avg' in webhook overview con…
sarimrmalik d2b7deb
refactor(webhooks): update OpenAPI specification and TypeScript types…
sarimrmalik 9e96afc
refactor(webhooks): standardize webhook delivery status and duration …
sarimrmalik 9b9273b
refactor(webhooks): enhance webhook delivery data visualization
sarimrmalik 43da1be
refactor(webhooks): improve logic for hiding inactive zero-value poin…
sarimrmalik 51cf737
refactor(webhooks): remove webhook delivery retrieval functionality
sarimrmalik aa8b50a
refactor(webhooks): update data types for webhook delivery statistics
sarimrmalik c9d4c85
Comply with nextCursor in payload
sarimrmalik 457e946
merge(dashboard): pull main into refactor webhooks page
sarimrmalik c0cb9e0
fix(webhooks): organize imports after main merge
sarimrmalik a00d82b
refactor(webhooks): reuse upsert schema types
sarimrmalik 7c0b26b
refactor(webhooks): handle secret tab changes directly
sarimrmalik f326960
refactor(webhooks): simplify copied secret state
sarimrmalik 39a9fc6
Merge branch 'main' of https://github.com/e2b-dev/dashboard into refa…
sarimrmalik 3d1aef1
refactor(api): update errorClass type in OpenAPI and TypeScript defin…
sarimrmalik 7c22bcf
refactor(webhooks): rename WebhookDeliveryEvent to WebhookDeliveryGroup
sarimrmalik 69660f8
refactor(webhooks): improve row click handling in webhook table
sarimrmalik 0326d88
Merge remote-tracking branch 'origin/main' into refactor/webhooks-page
sarimrmalik 3699936
Merge remote-tracking branch 'origin/refactor/webhooks-page' into fea…
sarimrmalik e78677e
refactor(webhooks): adjust spacing in webhook table rows
sarimrmalik bb8ac22
Merge remote-tracking branch 'origin/main' into feat/webhook-monitoring
sarimrmalik dbdb7ee
refactor(webhooks): adjust padding in table row and header cell classes
sarimrmalik 26402b9
feat(api): add event type filtering to sandbox events
sarimrmalik 5a11a6a
refactor(webhooks): enhance TypeScript types for webhook operations
sarimrmalik 67babf0
refactor(webhooks): simplify webhook ID type definitions
sarimrmalik acc20bb
refactor(webhooks): update type references for webhook operations
sarimrmalik 0e6b489
refactor(api): update OpenAPI specification for query parameter handling
sarimrmalik d8043c0
refactor(dashboard): simplify layout header and webhook handling
sarimrmalik fe9591d
refactor(webhooks): improve class name usage for table headers and cells
sarimrmalik 9e338f5
refactor(webhooks): rename SandboxEventTypeBadge to EventTypeBadge
sarimrmalik 31ab90d
refactor(webhooks): remove WebhookStatusBadge component
sarimrmalik 11a60af
refactor(webhooks): integrate StatsChart and StatsIntervalSelect comp…
sarimrmalik 87770d2
refactor(webhooks): enforce maximum stats range for webhook data
sarimrmalik 81b34ec
refactor(webhooks): prefetch webhook deliveries in layout component
sarimrmalik c5ea173
refactor(webhooks): enhance layout and styling for webhook overview
sarimrmalik a36e23c
refactor(webhooks): update x-axis handling in StatsChart and WebhookO…
sarimrmalik 44d0450
refactor(webhooks): simplify latest attempt retrieval in delivery group
sarimrmalik ad1ea13
refactor(webhooks): optimize deliveries table rendering logic
sarimrmalik 6ad0c12
feat(webhooks): add chart utility functions for webhook delivery stats
sarimrmalik 0fd56bd
refactor(webhooks): update empty state label for event types in deliv…
sarimrmalik b360f98
refactor(webhooks): enhance delivery data processing in overview content
sarimrmalik 0524e22
refactor(webhooks): enhance chart utility functions for delivery stats
sarimrmalik 7de0638
feat(webhooks): add skeleton loading components for webhook details
sarimrmalik 41519a5
Merge remote-tracking branch 'origin/main' into feat/webhook-monitoring
sarimrmalik ba3fe77
feat(webhooks): add bucket interval parameter for webhook delivery stats
sarimrmalik d18c5ac
style: apply biome formatting
sarimrmalik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/app/dashboard/[teamSlug]/webhooks/[webhookId]/(tabs)/deliveries/page.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| import { WebhookDeliveriesContent } from '@/features/dashboard/settings/webhooks/detail' | ||
| import { prefetch, trpc } from '@/trpc/server' | ||
|
|
||
| type WebhookDeliveriesPageProps = { | ||
| params: Promise<{ | ||
| teamSlug: string | ||
| webhookId: string | ||
| }> | ||
| } | ||
|
|
||
| export default async function WebhookDeliveriesPage({ | ||
| params, | ||
| }: WebhookDeliveriesPageProps) { | ||
| const { teamSlug, webhookId } = await params | ||
|
|
||
| prefetch( | ||
| trpc.webhooks.listDeliveries.queryOptions({ | ||
| teamSlug, | ||
| webhookId, | ||
| limit: 25, | ||
| offset: 0, | ||
| deliveryStatus: 'all', | ||
| }) | ||
| ) | ||
|
|
||
| return <WebhookDeliveriesContent teamSlug={teamSlug} webhookId={webhookId} /> | ||
| } |
33 changes: 33 additions & 0 deletions
33
src/app/dashboard/[teamSlug]/webhooks/[webhookId]/(tabs)/layout.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| import { notFound } from 'next/navigation' | ||
| import { INCLUDE_ARGUS } from '@/configs/flags' | ||
| import { WebhookDetailLayout } from '@/features/dashboard/settings/webhooks/detail' | ||
| import { HydrateClient, prefetch, trpc } from '@/trpc/server' | ||
|
|
||
| type WebhookTabsLayoutProps = { | ||
| children: React.ReactNode | ||
| params: Promise<{ | ||
| teamSlug: string | ||
| webhookId: string | ||
| }> | ||
| } | ||
|
|
||
| export default async function WebhookTabsLayout({ | ||
| children, | ||
| params, | ||
| }: WebhookTabsLayoutProps) { | ||
| if (!INCLUDE_ARGUS) { | ||
| return notFound() | ||
| } | ||
|
|
||
| const { teamSlug, webhookId } = await params | ||
|
|
||
| prefetch(trpc.webhooks.get.queryOptions({ teamSlug, webhookId })) | ||
|
sarimrmalik marked this conversation as resolved.
|
||
|
|
||
| return ( | ||
| <HydrateClient> | ||
| <WebhookDetailLayout teamSlug={teamSlug} webhookId={webhookId}> | ||
| {children} | ||
| </WebhookDetailLayout> | ||
| </HydrateClient> | ||
| ) | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.