feat(frontend): add an app-wide font size preference

This commit is contained in:
Chris Scott committed 2026-12-01 18:25:03 -05:00
1 parent 55f5864675
commit f0fc5e6ed7
9 files changed
+99 -5

No files matched your search

+1
View File
@@ -102,6 +102,7 @@ export const AssistantSTTPatchSchema = z.object({
export const AssistantSettingsPatchSchema = UserPreferencesSchema.pick({
theme: true,
colorTheme: true,
fontSize: true,
mode: true,
defaultModel: true,
walkthroughModel: true,
+6
View File
@@ -199,6 +199,10 @@ export const DEFAULT_SESSION_DEFAULTS = {
permissionMode: 'ask',
} satisfies SessionDefaults;
export const FontSizeSchema = z.enum(['small', 'medium', 'large', 'xlarge']);
export type FontSize = z.infer<typeof FontSizeSchema>;
export const DevicePairingPreferencesSchema = z.object({
allowPrivateNetworkHttp: z.boolean().optional(),
});
@@ -208,6 +212,7 @@ export type DevicePairingPreferences = z.infer<typeof DevicePairingPreferencesSc
export const UserPreferencesSchema = z.object({
theme: z.enum(["dark", "light", "system"]),
colorTheme: ColorThemeIdSchema.optional(),
fontSize: FontSizeSchema.optional(),
mode: z.enum(["plan", "build"]),
defaultModel: z.string().optional(),
walkthroughModel: z.string().optional(),
@@ -269,6 +274,7 @@ export const DEFAULT_STT_CONFIG: STTConfig = {
export const DEFAULT_USER_PREFERENCES = {
theme: "dark" as const,
colorTheme: MANAGER_COLOR_THEME_ID,
fontSize: 'medium' as const,
mode: "build" as const,
activityWindowMinutes: DEFAULT_ACTIVITY_WINDOW_MINUTES,
autoScroll: true,