feat: manage system appearance defaults
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user