Repository navigation
Client Settings: make the Webhook receiver a collapsible section (#3103) - #3104
Merged
Merged
Conversation
The Events webhook receiver now renders as a fourth accordion item in ClientSettingsForm, styled like Enterprise-Managed Authorization, CIMD and OAuth Redirect, instead of an always-open bordered panel below them. The modal's expand/collapse-all toggle counts it when it is present. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
…g their own bullets Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
… exposes (#3103) The web README now says which port to tunnel (the UI listener, not a separate one), gives ngrok and cloudflared examples, walks through setting the public address and subscribing, and states what a tunnel to the port exposes under --web versus --dev. docs/test-servers.md no longer implies path-level forwarding and points at the README. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the Webhook receiver accordion change.
No open issues 🎉
What changed in this PR
Makes the Webhook receiver a fourth collapsible section in Client Settings, addressing #3103 while preserving its visibility only when the backend offers a receiver.
Changes:
- Moves receiver settings into the shared accordion and includes them in Expand all / Collapse all.
- Adds coverage for the initially collapsed state, individual toggling, and toggle-all behavior.
- Separates backend helper descriptions into individual README bullets.
| File | Description |
|---|---|
| clients/web/src/components/groups/WebhookReceiverSettings/WebhookReceiverSettings.tsx | Removes the standalone panel and heading, retaining the settings body. |
| clients/web/src/components/groups/ClientSettingsModal/ClientSettingsModal.tsx | Passes receiver settings into the form and updates toggle-all logic. |
| clients/web/src/components/groups/ClientSettingsModal/ClientSettingsModal.test.tsx | Tests receiver expansion, collapse, and toggle-all inclusion. |
| clients/web/src/components/groups/ClientSettingsForm/ClientSettingsForm.tsx | Adds the optional webhook accordion section. |
| clients/web/README.md | Gives three backend helpers separate documentation bullets. |
Review effort: Balanced
…WED_ORIGINS also admits a host Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
Member
Author
|
Copilot round 2: both findings fixed in 177c179 (docs only; gate re-run green). Resubscribing after re-pointing the receiver is now documented, and the tunnel-isolation claim is qualified to the default settings, with a warning against admitting the tunnel host via |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Closes #3103
What changed
Webhook receiver (Events) is now a fourth collapsible section in Client Settings, after Enterprise-Managed Authorization, OAuth Client ID Metadata Document and OAuth Redirect. Before, it was an always-open bordered panel below them.
ClientSettingsForm:ClientSettingsSectiongains"webhook".webhookReceiverprop. When it's set, the form renders anAccordion.Itemwhose control is the section title and whose panel isWebhookReceiverSettings.WebhookReceiverSettingsrenders only the section's body. Its borderedPaperand its own title are gone, since the accordion control is the heading now. Its behavior (apply, reset, refusal shown under the field) is unchanged.ClientSettingsModal:webhookReceiverinto the form.clients/web/README.md: as requested on the side,public-address.ts,ensure-web-build.tsandvite-base-config.tseach get their own bullet in theserver/list instead of sharing one with the sandbox and app-origin controllers. This is a separate commit.335fe064):clients/web/README.mdgains Setting up a tunnel to the receiver in the Events tab section.CLIENT_PORT, not a separate port and not the sandbox.ngrokandcloudflaredexamples, the steps from starting the tunnel to subscribing with Use the Inspector's receiver, and re-pointing after a quick tunnel's URL changes.server.tsandvite-hono-plugin.ts:--web, a request with the tunnel'sHostreaches onlyPOST /webhooks/eventsand/healthz; theHostallow-list refuses the page, assets and/api/*--dev, the backend middleware runs ahead of Vite'sallowedHostscheck, so/api/*is reachable through the tunnel (token-protected); hence "use--webbehind a tunnel"docs/test-servers.mdno longer implies path-level forwarding (forward <tunnel>/webhooks/events to …). It gives the port-level commands and links to the README.Tests
ClientSettingsModal.test.tsxadds one test (#3103) covering:The existing #3064 test (section shown only when a receiver is given) and the
WebhookReceiverSettingstests pass unchanged.npm run local:gatepasses on5db59b75and again on335fe064.Screenshots (1280×900, Chromium)
Taken with an isolated
HOME, so the footer shows the plaintext-file secret backend rather than the keychain.All four sections collapsed:
Webhook receiver expanded:
🤖 Generated with Claude Code