feat: Add opt-out setting for anonymous usage reporting (#743)
* refactor: align VS Code update checks with web runtime parity - VS Code now uses file-based installId (shared with web server) - Accepts platform/arch from webview for consistent behavior - Usage data collection now matches web implementation * feat: Add opt-out setting for anonymous usage reporting in Appearance - Add privacy control in Appearance settings to opt-out of anonymous usage reports - Usage data includes only app version, platform, and runtime - no personal data or code collected - Setting persists across all runtimes and controls the reportUsage parameter in update checks
This commit is contained in:
committed by
GitHub
parent
53c2a0d919
commit
64b55025e1
@@ -558,10 +558,8 @@ interface UIStore {
|
||||
stickyUserHeader: boolean;
|
||||
showMobileSessionStatusBar: boolean;
|
||||
isMobileSessionStatusBarCollapsed: boolean;
|
||||
viewPagerPage: 'left' | 'center' | 'right';
|
||||
|
||||
isExpandedInput: boolean;
|
||||
|
||||
reportUsage: boolean;
|
||||
shortcutOverrides: Record<string, ShortcutCombo>;
|
||||
|
||||
setTheme: (theme: 'light' | 'dark' | 'system') => void;
|
||||
@@ -669,11 +667,13 @@ interface UIStore {
|
||||
setStickyUserHeader: (value: boolean) => void;
|
||||
setShowMobileSessionStatusBar: (value: boolean) => void;
|
||||
setIsMobileSessionStatusBarCollapsed: (value: boolean) => void;
|
||||
viewPagerPage: 'left' | 'center' | 'right';
|
||||
setViewPagerPage: (page: 'left' | 'center' | 'right') => void;
|
||||
toggleExpandedInput: () => void;
|
||||
setExpandedInput: (value: boolean) => void;
|
||||
openMultiRunLauncher: () => void;
|
||||
openMultiRunLauncherWithPrompt: (prompt: string) => void;
|
||||
setReportUsage: (value: boolean) => void;
|
||||
setShortcutOverride: (actionId: string, combo: ShortcutCombo) => void;
|
||||
clearShortcutOverride: (actionId: string) => void;
|
||||
resetAllShortcutOverrides: () => void;
|
||||
@@ -782,6 +782,7 @@ export const useUIStore = create<UIStore>()(
|
||||
showMobileSessionStatusBar: true,
|
||||
isMobileSessionStatusBarCollapsed: false,
|
||||
isExpandedInput: false,
|
||||
reportUsage: true,
|
||||
shortcutOverrides: {},
|
||||
|
||||
setTheme: (theme) => {
|
||||
@@ -1690,6 +1691,9 @@ export const useUIStore = create<UIStore>()(
|
||||
setIsMobileSessionStatusBarCollapsed: (value) => {
|
||||
set({ isMobileSessionStatusBarCollapsed: value });
|
||||
},
|
||||
setReportUsage: (value) => {
|
||||
set({ reportUsage: value });
|
||||
},
|
||||
viewPagerPage: 'center',
|
||||
setViewPagerPage: (page: 'left' | 'center' | 'right') => {
|
||||
set({ viewPagerPage: page });
|
||||
|
||||
Reference in New Issue
Block a user