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 -4
View File
@@ -19,9 +19,9 @@ import { getPermissions, hasPermission } from "../../../apps/api/src/permissions
describe("permissions", () => {
describe("getPermissions", () => {
it("returns all 15 permissions for admin", () => {
it("returns all 14 permissions for admin", () => {
const perms = getPermissions("admin");
expect(perms).toHaveLength(15);
expect(perms).toHaveLength(14);
expect(perms).toContain("tools:use");
expect(perms).toContain("files:own");
expect(perms).toContain("files:all");
@@ -33,7 +33,6 @@ describe("permissions", () => {
expect(perms).toContain("settings:write");
expect(perms).toContain("users:manage");
expect(perms).toContain("teams:manage");
expect(perms).toContain("branding:manage");
expect(perms).toContain("features:manage");
expect(perms).toContain("system:health");
expect(perms).toContain("audit:read");
@@ -58,7 +57,6 @@ describe("permissions", () => {
expect(perms).not.toContain("settings:write");
expect(perms).not.toContain("users:manage");
expect(perms).not.toContain("teams:manage");
expect(perms).not.toContain("branding:manage");
});
it("returns empty array for unknown role", () => {