Pin the UI locale to the language setting and add theme + language selectors with a dark palette
This commit is contained in:
1 parent
b30b9a3bc1
commit
d404e1e72a
18 files changed
+176
-11
No files matched your search
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* App-level UI preferences on the single app_state row. Theme drives the
|
||||
* renderer palette; language pins Chromium's UI locale (form-control strings
|
||||
* were following the OS locale and leaking Chinese into the English UI, so
|
||||
* the default is English rather than system).
|
||||
*/
|
||||
export const uiPreferencesSchema = `
|
||||
alter table app_state add column theme text not null default 'system';
|
||||
alter table app_state add column language text not null default 'en';
|
||||
`;
|
||||
@@ -46,6 +46,7 @@ import { mentionWakeStateSchema } from "./migrations/044-mention-wake-state";
|
||||
import { connectorGrantsSchema } from "./migrations/045-connector-grants";
|
||||
import { composioKeyPurgeSchema } from "./migrations/046-composio-key-purge";
|
||||
import { authConfigPurgeSchema } from "./migrations/047-auth-config-purge";
|
||||
import { uiPreferencesSchema } from "./migrations/048-ui-preferences";
|
||||
|
||||
interface Migration {
|
||||
version: number;
|
||||
@@ -101,6 +102,7 @@ const MIGRATIONS: Migration[] = [
|
||||
{ version: 45, name: "connector_grants", sql: connectorGrantsSchema },
|
||||
{ version: 46, name: "composio_key_purge", sql: composioKeyPurgeSchema },
|
||||
{ version: 47, name: "auth_config_purge", sql: authConfigPurgeSchema },
|
||||
{ version: 48, name: "ui_preferences", sql: uiPreferencesSchema },
|
||||
];
|
||||
|
||||
const SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1].version;
|
||||
|
||||
Reference in new issue
Block a user