Remove analytics and add more update headers

This commit is contained in:
Gregory Schier
2025-02-24 06:31:49 -08:00
parent af7782c93b
commit 05ac836265
62 changed files with 146 additions and 519 deletions

View File

@@ -96,7 +96,6 @@ export function SettingsAppearance() {
value={`${settings.interfaceFontSize}`}
options={fontSizeOptions}
onChange={(v) => updateSettings.mutate({ interfaceFontSize: parseInt(v) })}
event="ui-font-size"
/>
<Select
size="sm"
@@ -106,7 +105,6 @@ export function SettingsAppearance() {
value={`${settings.editorFontSize}`}
options={fontSizeOptions}
onChange={(v) => updateSettings.mutate({ editorFontSize: clamp(parseInt(v) || 14, 8, 30) })}
event="editor-font-size"
/>
<Select
size="sm"
@@ -116,13 +114,11 @@ export function SettingsAppearance() {
value={`${settings.editorKeymap}`}
options={keymaps}
onChange={(v) => updateSettings.mutate({ editorKeymap: v })}
event="editor-keymap"
/>
<Checkbox
checked={settings.editorSoftWrap}
title="Wrap Editor Lines"
onChange={(editorSoftWrap) => updateSettings.mutate({ editorSoftWrap })}
event="editor-wrap-lines"
/>
<Separator className="my-4" />
@@ -134,7 +130,6 @@ export function SettingsAppearance() {
size="sm"
value={settings.appearance}
onChange={(appearance) => updateSettings.mutate({ appearance })}
event="appearance"
options={[
{ label: 'Automatic', value: 'system' },
{ label: 'Light', value: 'light' },
@@ -152,7 +147,6 @@ export function SettingsAppearance() {
className="flex-1"
value={activeTheme.light.id}
options={lightThemes}
event="theme.light"
onChange={(themeLight) => updateSettings.mutate({ ...settings, themeLight })}
/>
)}
@@ -166,7 +160,6 @@ export function SettingsAppearance() {
size="sm"
value={activeTheme.dark.id}
options={darkThemes}
event="theme.dark"
onChange={(themeDark) => updateSettings.mutate({ ...settings, themeDark })}
/>
)}

View File

@@ -38,7 +38,6 @@ export function SettingsGeneral() {
size="sm"
value={settings.updateChannel}
onChange={(updateChannel) => updateSettings.mutate({ updateChannel })}
event="update-channel"
options={[
{ label: 'Stable (less frequent)', value: 'stable' },
{ label: 'Beta (more frequent)', value: 'beta' },
@@ -59,7 +58,6 @@ export function SettingsGeneral() {
labelPosition="left"
labelClassName="w-[14rem]"
size="sm"
event="workspace-switch-behavior"
value={
settings.openWorkspaceNewWindow === true
? 'new'
@@ -81,9 +79,9 @@ export function SettingsGeneral() {
<Checkbox
className="mt-3"
checked={settings.telemetry}
title="Send Usage Statistics"
event="usage-statistics"
checked={false}
title="Send Usage Statistics (all tracking was removed in 2025.1.2)"
disabled
onChange={(telemetry) => updateSettings.mutate({ telemetry })}
/>
@@ -115,7 +113,6 @@ export function SettingsGeneral() {
<Checkbox
checked={workspace.settingValidateCertificates}
title="Validate TLS Certificates"
event="validate-certs"
onChange={(settingValidateCertificates) =>
upsertWorkspace.mutate({ ...workspace, settingValidateCertificates })
}
@@ -124,7 +121,6 @@ export function SettingsGeneral() {
<Checkbox
checked={workspace.settingFollowRedirects}
title="Follow Redirects"
event="follow-redirects"
onChange={(settingFollowRedirects) =>
upsertWorkspace.mutate({
...workspace,

View File

@@ -81,7 +81,6 @@ export function SettingsLicense() {
color="secondary"
size="sm"
onClick={toggleActivateFormVisible}
event="license.another"
>
Activate Another License
</Button>
@@ -90,7 +89,6 @@ export function SettingsLicense() {
size="sm"
onClick={() => openUrl('https://yaak.app/dashboard')}
rightSlot={<Icon icon="external_link" />}
event="license.support"
>
Direct Support
</Button>
@@ -101,7 +99,6 @@ export function SettingsLicense() {
color="primary"
size="sm"
onClick={toggleActivateFormVisible}
event="license.activate"
>
Activate
</Button>
@@ -110,7 +107,6 @@ export function SettingsLicense() {
size="sm"
onClick={() => openUrl('https://yaak.app/pricing?ref=app.yaak.desktop')}
rightSlot={<Icon icon="external_link" />}
event="license.purchase"
>
Purchase
</Button>
@@ -140,7 +136,6 @@ export function SettingsLicense() {
color="primary"
size="sm"
isLoading={activate.isPending}
event="license.submit"
>
Submit
</Button>

View File

@@ -66,7 +66,6 @@ export function SettingsPlugins() {
type="submit"
color="primary"
className="ml-auto"
event="plugin.add"
>
Add Plugin
</Button>
@@ -76,14 +75,12 @@ export function SettingsPlugins() {
icon="refresh"
title="Reload plugins"
spin={refreshPlugins.isPending}
event="plugin.reload"
onClick={() => refreshPlugins.mutate()}
/>
<IconButton
size="sm"
icon="help"
title="View documentation"
event="plugin.docs"
onClick={() => openUrl('https://feedback.yaak.app/help/articles/6911763-quick-start')}
/>
</HStack>
@@ -107,7 +104,6 @@ function PluginInfo({ plugin }: { plugin: Plugin }) {
size="sm"
icon="trash"
title="Uninstall plugin"
event="plugin.delete"
onClick={() => deletePlugin.mutate()}
/>
</td>

View File

@@ -19,7 +19,6 @@ export function SettingsProxy() {
hideLabel
size="sm"
value={settings.proxy?.type ?? 'automatic'}
event="proxy"
onChange={(v) => {
if (v === 'automatic') {
updateSettings.mutate({ proxy: undefined });