From 58b4f13fb69fdd0310f9f0c6bf648719ca240b28 Mon Sep 17 00:00:00 2001 From: Thomas Kpenou Date: Fri, 19 Jun 2026 12:31:42 -0400 Subject: [PATCH] feat(main-app): pin favorite scripts Add a star toggle on each sidebar script to pin it as a favorite. Favorited scripts are listed in a dedicated "Favorites" section at the top of the sidebar for quick access. The selection is persisted to localStorage via a new scriptFavorites store. Co-Authored-By: Claude Opus 4.8 --- README.md | 7 ++ .../components/scripts/ScriptListItem.vue | 35 ++++++++ .../components/scripts/ScriptsList.vue | 38 +++++++++ .../src/main-app/stores/scriptFavorites.js | 56 +++++++++++++ .../unit/main-app/scripts/ScriptList_test.js | 50 ++++++++++++ .../main-app/stores/scriptFavorites_test.js | 79 +++++++++++++++++++ 6 files changed, 265 insertions(+) create mode 100644 web-src/src/main-app/stores/scriptFavorites.js create mode 100644 web-src/tests/unit/main-app/stores/scriptFavorites_test.js diff --git a/README.md b/README.md index ccad9737..e79e2f09 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,13 @@ ## What's new in this fork +### 2026-06-19 — Favorite scripts + +Scripts can be pinned as favorites for quick access. A star button on each script +in the sidebar toggles its favorite state, and favorited scripts appear in a +dedicated **Favorites** section at the top of the sidebar. The selection is +persisted to `localStorage`. + ### 2026-06-19 — Multi-tab workflow: status, notifications, shortcuts Builds on the in-app tabs to make working with several scripts at once smoother. diff --git a/web-src/src/main-app/components/scripts/ScriptListItem.vue b/web-src/src/main-app/components/scripts/ScriptListItem.vue index 70b965a9..8ce2bcb9 100644 --- a/web-src/src/main-app/components/scripts/ScriptListItem.vue +++ b/web-src/src/main-app/components/scripts/ScriptListItem.vue @@ -9,6 +9,13 @@ Failed to parse config file