implement /setup and /admin

This commit is contained in:
2026-01-23 02:52:53 +01:00
parent e4e5a1c294
commit a9c70a7883
21 changed files with 1124 additions and 13 deletions
+34
View File
@@ -0,0 +1,34 @@
# Admin Dashboard
The admin dashboard provides tools for managing users, invitations, and viewing system statistics.
## Creating the First Admin User
Visit /setup
## Accessing the Admin Dashboard
1. **Note:** Authentication system is not yet implemented. You'll need to set `session[:user_id]` manually in the console or implement the authentication controllers first.
2. Once authenticated, navigate to `/admin` to access the dashboard.
## Admin Features
### Dashboard (`/admin`)
- View system statistics (users, entries, suggestions)
- Language completion percentages
- Recent activity (new users, new entries)
- Pending invitations count
### User Management (`/admin/users`)
- List all users with filtering
- Edit user details and roles
- Delete users (except yourself)
- View user status (active/invited)
### Invitations (`/admin/invitations`)
- Send new invitations
- View pending invitations (not yet accepted)
- Cancel pending invitations
- View recently accepted invitations
- Invitations expire after 14 days