feat: remove app name and logo customization feature

Users can no longer customize the app name or logo. The branding API
endpoints, permission, frontend UI, env vars (APP_NAME, MAX_LOGO_SIZE_KB),
and all related tests are removed. Includes a migration to clean up
branding data from existing databases.
This commit is contained in:
SnapOtter
2026-05-07 19:41:30 +08:00
parent 25a1dd7aba
commit 16af9c573a
29 changed files with 52 additions and 977 deletions
+14
View File
@@ -0,0 +1,14 @@
-- Remove branding:manage from built-in admin role permissions
UPDATE `roles`
SET `permissions` = REPLACE(`permissions`, '"branding:manage",', ''),
`updated_at` = unixepoch()
WHERE `id` = 'builtin-admin';
--> statement-breakpoint
-- Remove branding:manage from any custom roles that have it
UPDATE `roles`
SET `permissions` = REPLACE(REPLACE(`permissions`, ',"branding:manage"', ''), '"branding:manage",', ''),
`updated_at` = unixepoch()
WHERE `id` != 'builtin-admin' AND `permissions` LIKE '%branding:manage%';
--> statement-breakpoint
-- Clean up branding-related settings
DELETE FROM `settings` WHERE `key` IN ('customLogo', 'appName');
+7
View File
@@ -71,6 +71,13 @@
"when": 1776855591000,
"tag": "0009_analytics_consent",
"breakpoints": true
},
{
"idx": 10,
"version": "6",
"when": 1778300000000,
"tag": "0010_remove_branding",
"breakpoints": true
}
]
}