feat: manage system appearance defaults

This commit is contained in:
2026-08-20 07:03:28 +02:00
parent 89ba59fcea
commit 50c952565b
8 changed files with 88 additions and 7 deletions
+6 -1
View File
@@ -1,4 +1,4 @@
import type { ApiSettings, DeltaDeletedItem, NavigationPreferences, PrivacyRetentionPolicy } from "@govoplan/core-webui";
import type { ApiSettings, DeltaDeletedItem, NavigationPreferences, PrivacyRetentionPolicy, UserUiPalette } from "@govoplan/core-webui";
import { apiDownload, apiFetch, apiPath, apiQuery } from "@govoplan/core-webui";
export { fetchAdminOverview, fetchPermissionCatalog, fetchTenants } from "@govoplan/core-webui";
export type {
@@ -34,6 +34,8 @@ export type SystemSettingsItem = {
enabled_language_codes: string[];
settings: Record<string, unknown>;
navigation: NavigationPreferences | null;
appearance_palette: UserUiPalette;
appearance_palette_locked: boolean;
};
export type SystemSettingsDeltaSections = Partial<{
@@ -44,6 +46,7 @@ export type SystemSettingsDeltaSections = Partial<{
maintenance_mode: SystemSettingsItem["maintenance_mode"];
settings: SystemSettingsItem["settings"];
navigation: SystemSettingsItem["navigation"];
appearance: Pick<SystemSettingsItem, "appearance_palette" | "appearance_palette_locked">;
}>;
export type SystemSettingsUpdatePayload = {
@@ -56,6 +59,8 @@ export type SystemSettingsUpdatePayload = {
available_languages?: LanguagePackage[] | null;
enabled_language_codes?: string[] | null;
navigation?: NavigationPreferences | null;
appearance_palette?: UserUiPalette;
appearance_palette_locked?: boolean;
change_request_id?: string | null;
};