Skip to content

feat(router): add event relays administration page - #327

Open
JohnChantz wants to merge 2 commits into
ui-rewritefrom
feat/router-event-relays
Open

feat(router): add event relays administration page#327
JohnChantz wants to merge 2 commits into
ui-rewritefrom
feat/router-event-relays

Conversation

@JohnChantz

Copy link
Copy Markdown
Collaborator

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

  • It's submitted to the master branch
  • When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx, where "xxx" is the issue number)

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:

Summary

Test plan

  • Open /router/event-relays against a Router that includes the event-relays Admin API
  • Empty state → New relay → local preview → create
  • Edit, disable (active), delete, and search
  • Confirm the sockets-off warning when Router sockets are disabled
  • Confirm in-page docs open by default when the list is empty
  • pnpm test:event-relays

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.
* 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.

---------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants