feat(router): add event relays administration page - #327
Open
JohnChantz wants to merge 2 commits into
Open
Conversation
Give operators CRUD and an in-page guide for mapping exact bus events to ReBAC-protected socket rooms, with a local template preview before save.
7 tasks
* fix(router): align event relays UI with relay contract
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.
* fix(router): match event relay preview API and follow-ups
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.
* fix(router): seed edit sample by resourceIdPath, unwrap 404
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.
* fix(router): rethrow session redirect from preview API
Extract preview error coercion with isNextNavigationError so debounced
preview does not swallow NEXT_REDIRECT as a field error.
---------
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? (check at least one)
Does this PR introduce a breaking change? (check one)
If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:
masterbranchfix #xxx, where "xxx" is the issue number)If adding a new feature, the PR's description includes:
Other information:
Summary
/router/event-relaysso operators can create, edit, disable, and delete mappings from exact bus events to ReBAC-protected socket rooms.Test plan
/router/event-relaysagainst a Router that includes the event-relays Admin APIactive), delete, and searchpnpm test:event-relays