From e5378ae6c50069c014c25809feeb85db50de6a90 Mon Sep 17 00:00:00 2001 From: brysonbw Date: Fri, 19 Dec 2025 08:09:05 -0700 Subject: [PATCH 1/2] fix(settings form): revert exercises to checkboxes for multi-select --- src/app.js | 115 +++++++++++++++++++++++------------------------------ 1 file changed, 50 insertions(+), 65 deletions(-) diff --git a/src/app.js b/src/app.js index abcb687..27dcdcc 100644 --- a/src/app.js +++ b/src/app.js @@ -133,6 +133,17 @@ export class App extends LitElement { } } + get #activeCategoryExercises() { + return EXERCISES_BY_CATEGORY_MAP.get(this._activeCategoryTab) ?? []; + } + + get #selectedCategoryExercises() { + return ( + this._settingsFormValues.exercisesByCategory[this._activeCategoryTab] ?? + [] + ); + } + render() { return html`${!this._isPageNotFound ? html`` @@ -279,7 +290,6 @@ export class App extends LitElement { showMotivationalQuote, enableNotifications, showExercises, - exercisesByCategory, exerciseReps, exerciseSets, pomodoroMinutes, @@ -288,14 +298,6 @@ export class App extends LitElement { audioSound, audioVolume, } = this._settingsFormValues; - const activeCategoryExercises = - EXERCISES_BY_CATEGORY_MAP.get( - /** @type {import("index.d.js").ExerciseCategory} */ ( - this._activeCategoryTab - ) - ) ?? []; - const selectedCategoryExercises = - exercisesByCategory[this._activeCategoryTab] ?? []; return html`