Skip to content

feat: add UserSettingsTabProps interface for user account settings - #5

Merged
pikann merged 1 commit into
masterfrom
feature/add-user-setting-tab
Aug 18, 2026
Merged

feat: add UserSettingsTabProps interface for user account settings#5
pikann merged 1 commit into
masterfrom
feature/add-user-setting-tab

Conversation

@pikann

@pikann pikann commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a new user.settings.tab extension point: a tab a plugin can register on the current user's own Account/Profile settings page, for per-user preferences (as opposed to admin.page's instance-wide scope or project.settings.tab's per-project scope).

  • src/extension-points.ts: new UserSettingsTabProps extends BaseExtensionProps { userId: string } and "user.settings.tab" added to the extension point list/union. The api client injected here has no projectId (global scope, same as admin.page) — routes are expected to be scoped by the authenticated caller (e.g. /me/...-style plugin routes).
  • src/index.ts: export UserSettingsTabProps.

First consumer: paca-plugin-smtp's per-user "which events email me" preferences tab on the profile page.

Test plan

  • npm run typecheck clean
  • npm run build clean

@pikann
pikann merged commit 33cf3e7 into master Aug 18, 2026
1 check passed
@pikann
pikann deleted the feature/add-user-setting-tab branch August 18, 2026 10:00
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