Skip to content

feat(events): show who performed an administrative action - #237

Merged
Bccorb merged 1 commit into
mainfrom
feat/show-auth-event-actor
Aug 29, 2026
Merged

feat(events): show who performed an administrative action#237
Bccorb merged 1 commit into
mainfrom
feat/show-auth-event-actor

Conversation

@Bccorb

@Bccorb Bccorb commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Client half of fells-code/seamless-auth-api#159. Pairs with fells-code/seamless-auth-api#188.

Why

The API now records the acting administrator in actor_user_id, separately from the subject of the action in user_id. Without surfacing it the column is recorded but invisible, which the issue notes would leave the fix delivering no operational value.

An administrative event names two people. Rendering only the subject reads as though they revoked their own sessions and deleted their own passkeys, which is exactly the misreading the API change set out to fix.

What

  • The User column shows the target with the administrator beneath it, each linking to their own detail page
  • Administrative events are labelled "Administrative action" rather than "User-linked event"
  • @seamless-auth/types bumped to 0.10.0

Verification

71 files, 409 tests, 2 new: an administrative event rendering both parties and the administrative label, and an ordinary user event staying unattributed. typecheck, lint, format:check clean.

Merge order

Safe to merge before or after the API change. actor_user_id is optional in the shared schema, so an event without one renders exactly as it does today.

The API records the acting administrator separately from the subject of an
action. An administrative event names two people, and rendering only the subject
reads as though they did it to themselves, which is the thing the API change set
out to fix.

The User column now shows the target with the administrator beneath it, each
linking to their own detail page, and administrative events are labelled as such
rather than as ordinary user-linked events.

Refs fells-code/seamless-auth-api#159
@Bccorb
Bccorb merged commit 586111b into main Aug 29, 2026
2 checks passed
@Bccorb
Bccorb deleted the feat/show-auth-event-actor branch August 29, 2026 02:43
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.

1 participant