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
+2 -2
View File
@@ -1452,7 +1452,7 @@ describe("Settings", () => {
method: "PUT",
url: "/api/v1/settings",
headers: { authorization: `Bearer ${adminToken}` },
payload: { app_name: "<script>alert('xss')</script>" },
payload: { test_setting: "<script>alert('xss')</script>" },
});
expect(res.statusCode).toBe(400);
const body = JSON.parse(res.body);
@@ -1500,7 +1500,7 @@ describe("Settings", () => {
method: "PUT",
url: "/api/v1/settings",
headers: { authorization: `Bearer ${adminToken}` },
payload: { app_name: "My App (v2.0) - Production" },
payload: { test_setting: "My App (v2.0) - Production" },
});
expect(res.statusCode).toBe(200);
const body = JSON.parse(res.body);