fix(router): event relays UI contract (stacks on #327) - #331
Merged
kkopanidis merged 4 commits intoSep 12, 2026
Merged
Conversation
Use auth.token client snippets with subscribe on connect, documentId defaults, server preview API, inline Active toggles, API 404 fallback, and docs for subscribe-only ReBAC delivery. Co-authored-by: Konstantinos Kopanidis <kkopanidis@users.noreply.github.com>
Align preview with Conduit #1604 (messageTemplate, samplePayload,
{ rendered }), debounce preview inputs by string, drop live-path
unsubscribe from snippets, omit active on edit PATCH, and skip the
sockets warning when Router settings fail to load.
Co-authored-by: Konstantinos Kopanidis <kkopanidis@users.noreply.github.com>
Derive preview sample JSON from the relay resourceIdPath on edit, walk error.cause in isAxiosNotFoundError for RSC-wrapped axios failures, and add contract tests for sample payload and 404 detection. Co-authored-by: Konstantinos Kopanidis <kkopanidis@users.noreply.github.com>
Extract preview error coercion with isNextNavigationError so debounced preview does not swallow NEXT_REDIRECT as a field error. Co-authored-by: Konstantinos Kopanidis <kkopanidis@users.noreply.github.com>
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.
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
Summary
Stacks on #327 (
feat/router-event-relays) and aligns the Event Relays Admin UI with the Event Relays intervention plan:auth: { token: accessToken }and re-subscribes insideconnectdocumentId+{ "id": "{{payload.documentId}}" }; CRUD bus example documents_idand/database/duplication warningPOST /router/event-relays/preview(404 → clear unavailable state); removed client-side template rendererPromise.allSettledwith compatibility empty state when/router/event-relaysis missingPATCH active); edit dialog omits ActivedocumentIdvs_idTest plan
pnpm test:event-relays/router/event-relaysagainst Router with event-relays API — create/edit, inline Active toggle, server preview/router/event-relays— compatibility empty state