feat(admin): streamline group management
This commit is contained in:
@@ -3,7 +3,7 @@ type: User Story
|
||||
title: Manage users as an administrator
|
||||
description: Authorized operators search users and maintain their names, linked accounts, primaries, and Discord nicknames.
|
||||
tags: [admin, users, minecraft, discord]
|
||||
timestamp: 2026-08-02T14:12:43Z
|
||||
timestamp: 2026-08-02T15:03:59Z
|
||||
story_id: US-013
|
||||
status: verified
|
||||
---
|
||||
@@ -28,6 +28,10 @@ As an administrator, I want to manage a user's identity and Minecraft accounts,
|
||||
- [x] Selecting a group immediately applies the assignment; selecting `everyone` removes the explicit assignment.
|
||||
- [x] Group changes preserve the active user search and show accessible success or error feedback.
|
||||
- [x] Registry assignment changes revalidate administrator authorization, user existence, and group existence, and audit the previous and new effective groups.
|
||||
- [x] User rows and group-assignment controls are reusable between the Users registry and group-member details.
|
||||
- [x] Group details show only the group's effective members with identity, Discord, primary-account, account-count, status, and group columns.
|
||||
- [x] Changing a user's group requires modal confirmation and choosing `everyone` removes the explicit assignment.
|
||||
- [x] Moving a member to another group removes that user from the current effective-member list after confirmation.
|
||||
|
||||
# Implementation
|
||||
|
||||
@@ -35,6 +39,7 @@ As an administrator, I want to manage a user's identity and Minecraft accounts,
|
||||
- [`apps/web/src/app/admin/(console)/users/[userId]/page.tsx`](../apps/web/src/app/admin/%28console%29/users/%5BuserId%5D/page.tsx)
|
||||
- [`apps/web/src/app/admin/(console)/users/actions.ts`](../apps/web/src/app/admin/%28console%29/users/actions.ts)
|
||||
- [`apps/web/src/components/user-group-select.tsx`](../apps/web/src/components/user-group-select.tsx)
|
||||
- [`apps/web/src/components/admin-user-table.tsx`](../apps/web/src/components/admin-user-table.tsx)
|
||||
|
||||
# Validation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user