feat(admin): extend housekeeping permissions page with groups, presets, audit, test, import/export, rank overview and dependency tracking
Local Build and Deploy / deploy (push) Successful in 1m14s

- Add group_name, depends_on and updated_by columns to website_housekeeping_permissions
- Add migration 0016 for new columns
- Rewrite housekeeping page with 7 tabs: Overview, Manage, Import/Export, Rank overview, Presets, Test, Audit log
- Add permission groups/categories with filtering
- Add bulk JSON import/export
- Add rank overview grouped by permission category
- Add permission presets for Moderator (rank 5), Admin (rank 7), Super Admin (rank 8)
- Add audit logging for all permission changes via AdminAuditLog
- Add test mode to check permissions by rank
- Add dependency tracking with warnings for missing dependencies
- Add overview dashboard with statistics
- Add Dutch and English translations for all new features
This commit is contained in:
openhands committed 2026-07-17 19:02:23 +02:00
1 parent 49d204e85c
commit 98d4b715df
7 files changed
+1636 -220

No files matched your search

@@ -0,0 +1,6 @@
ALTER TABLE `website_housekeeping_permissions`
ADD COLUMN `group_name` VARCHAR(100) DEFAULT NULL AFTER `description`,
ADD COLUMN `depends_on` VARCHAR(255) DEFAULT NULL AFTER `group_name`,
ADD COLUMN `updated_by` INT DEFAULT NULL AFTER `updated_at`;
-- Migration tracking (no model change needed for audit log usage)
+3
View File
@@ -1623,6 +1623,9 @@ model WebsiteHousekeepingPermissions {
permission String @unique @db.VarChar(255)
minRank Int @map("min_rank")
description String? @db.VarChar(255)
groupName String? @map("group_name") @db.VarChar(100)
dependsOn String? @map("depends_on") @db.VarChar(255)
updatedBy Int? @map("updated_by")
createdAt DateTime? @map("created_at") @db.Timestamp(0)
updatedAt DateTime? @map("updated_at") @db.Timestamp(0)