From 07f0dd55bfd06a6026a937a255af7f3124141a54 Mon Sep 17 00:00:00 2001 From: hwoo <105327492+Hui-Hwoo@users.noreply.github.com> Date: Mon, 13 Jul 2026 12:24:17 -0400 Subject: [PATCH 1/6] feat: add data correction section to settings page Closes #2536 --- app/composables/useSettings.ts | 14 ++++++---- app/pages/settings.vue | 50 ++++++++++++++++++++++++++++++++++ i18n/locales/ar-EG.json | 7 +++-- i18n/locales/ar.json | 7 +++-- i18n/locales/az-AZ.json | 7 +++-- i18n/locales/bg-BG.json | 7 +++-- i18n/locales/bn-IN.json | 7 +++-- i18n/locales/cs-CZ.json | 7 +++-- i18n/locales/de-AT.json | 7 +++-- i18n/locales/de.json | 7 +++-- i18n/locales/en-GB.json | 4 ++- i18n/locales/en.json | 5 +++- i18n/locales/es-419.json | 4 ++- i18n/locales/es.json | 7 +++-- i18n/locales/fr-FR.json | 7 +++-- i18n/locales/hi-IN.json | 7 +++-- i18n/locales/hu-HU.json | 7 +++-- i18n/locales/id-ID.json | 7 +++-- i18n/locales/it-IT.json | 7 +++-- i18n/locales/ja-JP.json | 7 +++-- i18n/locales/kn-IN.json | 7 +++-- i18n/locales/mr-IN.json | 7 +++-- i18n/locales/nb-NO.json | 7 +++-- i18n/locales/ne-NP.json | 7 +++-- i18n/locales/nl.json | 7 +++-- i18n/locales/pl-PL.json | 7 +++-- i18n/locales/pt-BR.json | 7 +++-- i18n/locales/pt-PT.json | 7 +++-- i18n/locales/ro-RO.json | 7 +++-- i18n/locales/ru-RU.json | 7 +++-- i18n/locales/sr-Latn-RS.json | 7 +++-- i18n/locales/ta-IN.json | 7 +++-- i18n/locales/te-IN.json | 7 +++-- i18n/locales/tr-TR.json | 7 +++-- i18n/locales/uk-UA.json | 7 +++-- i18n/locales/vi-VN.json | 7 +++-- i18n/locales/zh-CN.json | 7 +++-- i18n/locales/zh-TW.json | 7 +++-- 38 files changed, 233 insertions(+), 75 deletions(-) diff --git a/app/composables/useSettings.ts b/app/composables/useSettings.ts index c1454355f3..32d3ea6601 100644 --- a/app/composables/useSettings.ts +++ b/app/composables/useSettings.ts @@ -59,6 +59,13 @@ export interface AppSettings { } } +export const DEFAULT_CHART_FILTER: AppSettings['chartFilter'] = { + averageWindow: 0, + smoothingTau: 0, + anomaliesFixed: true, + predictionPoints: 4, +} + const DEFAULT_SETTINGS: AppSettings = { relativeDates: false, includeTypesInInstall: true, @@ -79,12 +86,7 @@ const DEFAULT_SETTINGS: AppSettings = { sidebar: { collapsed: [], }, - chartFilter: { - averageWindow: 0, - smoothingTau: 0, - anomaliesFixed: true, - predictionPoints: 4, - }, + chartFilter: { ...DEFAULT_CHART_FILTER }, timelineChart: { isZeroBased: false, showZoom: false, diff --git a/app/pages/settings.vue b/app/pages/settings.vue index e79f778846..7054bc6036 100644 --- a/app/pages/settings.vue +++ b/app/pages/settings.vue @@ -1,5 +1,6 @@