mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-01 20:23:36 +00:00
feat(ui): make React Query DevTools configurable (#642)
* feat(ui): make React Query DevTools configurable - Add showQueryDevtools setting to app store with persistence - Add toggle in Global Settings > Developer section - Move DevTools button from bottom-left to bottom-right (less intrusive) - Support VITE_HIDE_QUERY_DEVTOOLS env variable to disable - DevTools only available in development mode Users can now: 1. Toggle DevTools on/off via Settings > Developer 2. Set VITE_HIDE_QUERY_DEVTOOLS=true to hide permanently 3. DevTools are now positioned at bottom-right to avoid overlapping UI controls * chore: update package-lock.json * fix(ui): hide React Query DevTools toggle in production mode * refactor(ui): remove VITE_HIDE_QUERY_DEVTOOLS env variable The persisted toggle in Settings > Developer is sufficient for controlling DevTools visibility. No need for an additional env variable override. * fix(ui): persist showQueryDevtools setting across page refreshes - Add showQueryDevtools to GlobalSettings type - Add showQueryDevtools to hydrateStoreFromSettings function - Add default value in DEFAULT_GLOBAL_SETTINGS * fix: restore package-lock.json from base branch Removes git+ssh:// URL that was accidentally introduced --------- Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
committed by
GitHub
parent
7bee54717c
commit
c3e7e57968
@@ -713,6 +713,7 @@ export function hydrateStoreFromSettings(settings: GlobalSettings): void {
|
||||
muteDoneSound: settings.muteDoneSound ?? false,
|
||||
serverLogLevel: settings.serverLogLevel ?? 'info',
|
||||
enableRequestLogging: settings.enableRequestLogging ?? true,
|
||||
showQueryDevtools: settings.showQueryDevtools ?? true,
|
||||
enhancementModel: settings.enhancementModel ?? 'claude-sonnet',
|
||||
validationModel: settings.validationModel ?? 'claude-opus',
|
||||
phaseModels: settings.phaseModels ?? current.phaseModels,
|
||||
|
||||
Reference in New Issue
Block a user