-
Notifications
You must be signed in to change notification settings - Fork 78
Closed
Labels
NextJsStellar WaveIssues in the Stellar wave programIssues in the Stellar wave programfrontendgood first issueGood for newcomersGood for newcomers
Description
Description
Create an administrative interface for managing users, roles, and permissions with a visual permission matrix and team organization.
Requirements
User Management:
- User list table (Name, Email, Role, Department, Status, Last Active)
- Add/Invite user form (sends invitation email)
- Edit user details and role assignment
- Activate/Deactivate user accounts
- Reset user password (sends reset email)
- View user activity log
- Assign users to departments/teams
Role Management:
- Predefined roles: Super Admin, Admin, Manager, User, Viewer
- Create custom roles
- Visual permission matrix showing all permissions
- Permission categories: Assets (View, Create, Edit, Delete), Departments (Manage), Reports (Generate, Schedule), Users (Manage), Settings (Configure)
- Clone existing role to create new one
- Archive unused roles
Permission Matrix:
- Grid layout showing roles (columns) vs permissions (rows)
- Checkbox for each role-permission combination
- Color-coded cells (green = granted, red = denied)
- Bulk permission updates
- Permission inheritance visualization
Team Organization:
- Create teams/groups
- Assign users to teams
- Set team leaders
- Team-based asset access control
- Team activity dashboard
Technical Specifications
- Use React Table for user list
- Implement role-based access control (RBAC) context
- Add permission checks throughout the app
- Use react-hook-form for user forms
- Implement email validation and duplicate checks
- Add user search and filtering
- Show permission conflicts or inheritance issues
- Implement audit logging for all user/role changes
Acceptance Criteria
- Admins can create, edit, and deactivate users
- Role creation and editing works correctly
- Permission matrix updates correctly
- Users receive invitation emails
- Permission changes take effect immediately
- Cannot delete role that's assigned to users
- User activity logs are accurate
- Interface prevents accidental permission removal for critical roles
API Endpoints
GET /api/users- List usersPOST /api/users- Create user (send invitation)PUT /api/users/:id- Update userDELETE /api/users/:id- Deactivate userGET /api/roles- List rolesPOST /api/roles- Create rolePUT /api/roles/:id- Update roleGET /api/permissions- List all permissions
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
NextJsStellar WaveIssues in the Stellar wave programIssues in the Stellar wave programfrontendgood first issueGood for newcomersGood for newcomers