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
-4
View File
@@ -752,7 +752,6 @@ describe("loadEnv", () => {
"WORKSPACE_PATH",
"DEFAULT_THEME",
"DEFAULT_LOCALE",
"APP_NAME",
];
for (const key of keysToClean) {
delete process.env[key];
@@ -794,7 +793,6 @@ describe("loadEnv", () => {
expect(typeof env.WORKSPACE_PATH).toBe("string");
expect(["light", "dark"]).toContain(env.DEFAULT_THEME);
expect(typeof env.DEFAULT_LOCALE).toBe("string");
expect(typeof env.APP_NAME).toBe("string");
});
it("parses custom PORT as a number via coercion", async () => {
@@ -862,12 +860,10 @@ describe("loadEnv", () => {
});
it("accepts string values for string fields", async () => {
process.env.APP_NAME = "My Custom App";
process.env.DB_PATH = "/var/data/mydb.sqlite";
process.env.DEFAULT_LOCALE = "fr";
const { loadEnv } = await import("../../../apps/api/src/lib/env.js");
const env = loadEnv();
expect(env.APP_NAME).toBe("My Custom App");
expect(env.DB_PATH).toBe("/var/data/mydb.sqlite");
expect(env.DEFAULT_LOCALE).toBe("fr");
});