mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-31 06:42:03 +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
@@ -863,6 +863,10 @@ export interface GlobalSettings {
|
||||
/** Enable HTTP request logging (Morgan). Default: true */
|
||||
enableRequestLogging?: boolean;
|
||||
|
||||
// Developer Tools
|
||||
/** Show React Query DevTools panel (only in development mode). Default: true */
|
||||
showQueryDevtools?: boolean;
|
||||
|
||||
// AI Commit Message Generation
|
||||
/** Enable AI-generated commit messages when opening commit dialog (default: true) */
|
||||
enableAiCommitMessages: boolean;
|
||||
@@ -1286,6 +1290,7 @@ export const DEFAULT_GLOBAL_SETTINGS: GlobalSettings = {
|
||||
muteDoneSound: false,
|
||||
serverLogLevel: 'info',
|
||||
enableRequestLogging: true,
|
||||
showQueryDevtools: true,
|
||||
enableAiCommitMessages: true,
|
||||
phaseModels: DEFAULT_PHASE_MODELS,
|
||||
enhancementModel: 'sonnet', // Legacy alias still supported
|
||||
|
||||
Reference in New Issue
Block a user