From 41a17eba6deb9a97cccab7b691e3849491e0e14e Mon Sep 17 00:00:00 2001 From: mace Date: Sat, 12 Sep 2026 19:42:08 +0200 Subject: [PATCH] Move Add Feed button from hamburger menu to admin area MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Add RSS modal is now opened from a button directly above the feed list in AdminFeeds.vue instead of the hamburger menu, so feed creation lives alongside the rest of feed management. AppNav.vue no longer renders it. AddUrl.vue emits an `added` event on a successful save; AdminFeeds.vue listens for it and reloads its feed list, so a newly added feed shows up immediately without leaving the admin page. Also fixes a bug this move surfaced: the modal's "Close" button had no `type`, so inside the form it defaulted to type="submit" — clicking Close on a filled-in form silently created the feed. --- vue/src/components/AdminFeeds.vue | 29 +++++ vue/src/components/AppNav.vue | 17 +-- .../components/__tests__/AdminFeeds.spec.js | 112 ++++++++++++++++++ vue/src/components/__tests__/AppNav.spec.js | 13 +- vue/src/components/__tests__/RssFeeds.spec.js | 3 +- vue/src/components/modal/AddUrl.vue | 6 +- .../components/modal/__tests__/AddUrl.spec.js | 13 ++ 7 files changed, 161 insertions(+), 32 deletions(-) create mode 100644 vue/src/components/__tests__/AdminFeeds.spec.js diff --git a/vue/src/components/AdminFeeds.vue b/vue/src/components/AdminFeeds.vue index 3bc698b..156e7b8 100644 --- a/vue/src/components/AdminFeeds.vue +++ b/vue/src/components/AdminFeeds.vue @@ -1,7 +1,9 @@