feat: Mobile improvements and Add selective file staging and improve branch switching

This commit is contained in:
gsxdsm
2026-02-17 15:20:28 -08:00
parent de021f96bf
commit 7fcf3c1e1f
42 changed files with 2706 additions and 256 deletions

View File

@@ -6,6 +6,7 @@ import { getHttpApiClient } from '@/lib/http-api-client';
import { createLogger } from '@automaker/utils/logger';
// Note: setItem/getItem moved to ./utils/theme-utils.ts
import { UI_SANS_FONT_OPTIONS, UI_MONO_FONT_OPTIONS } from '@/config/ui-font-options';
import { loadFont } from '@/styles/font-imports';
import type {
FeatureImagePath,
FeatureTextFilePath,
@@ -663,12 +664,14 @@ export const useAppStore = create<AppState & AppActions>()((set, get) => ({
},
setPreviewTheme: (theme) => set({ previewTheme: theme }),
// Font actions
// Font actions - triggers lazy font loading for on-demand fonts
setFontSans: (fontFamily) => {
if (fontFamily) loadFont(fontFamily);
set({ fontFamilySans: fontFamily });
saveFontSansToStorage(fontFamily);
},
setFontMono: (fontFamily) => {
if (fontFamily) loadFont(fontFamily);
set({ fontFamilyMono: fontFamily });
saveFontMonoToStorage(fontFamily);
},