refactor!: remove UserManagement and internalize media controls

This commit is contained in:
Gabriel20xx committed 2026-10-16 16:27:34 +00:00
1 parent 521603188d
commit 7fd2f14f91
12 files changed
+390 -598

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@gabriel20xx/web-ui": minor
---
`UserManagement` is removed from the package, along with its `UserListRequest`, `UserCreateRequest`, `UserUpdateRequest`, and `UserDeleteRequest` types and its `.sc-user-*` styles. The component was only used by AuthGuard, which now owns a copy in `features/users`. Applications that still render it should keep their own copy or build their own user table. `KnownRole`, `ManagedUser`, `UserCreateInput`, and `UserUpdateInput` remain exported.
-5
View File
@@ -1,5 +0,0 @@
---
"@gabriel20xx/web-ui": minor
---
`UserManagement` accepts an optional `roles` prop (`KnownRole[]`) in place of the `projects` prop it replaces: when present, each account gets a role picker (checkboxes in the add and edit rows, the role names in the read-only row), and `onCreate`/`onUpdate` receive a `roleIds: number[]` field. An account's projects now come from its roles, so per-account project checkboxes are gone. `ManagedUser` carries `roleIds` instead of `projects`. Only AuthGuard's own admin UI passes this prop today; every other consumer is unaffected.