From fca704f7ff022d2d7019ff8b39c713da7899e67a Mon Sep 17 00:00:00 2001 From: rays Date: Sun, 11 Oct 2026 20:52:22 +0000 Subject: [PATCH] Add a feed no longer asks for a folder (#201) A feed's settings stopped showing its folder in 0.10.3; the dialog that adds one still asked for it. The API keeps its folder for scripts. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 4 ++++ tests/ui/app.spec.js | 2 ++ web/src/dialogs.ts | 3 +-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a0d80a0..908a80e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Add a feed no longer asks for a folder; a feed's folder is its title (#201). + ## [0.12.0] - 2026-10-11 ### Added diff --git a/tests/ui/app.spec.js b/tests/ui/app.spec.js index 7efcd6c..8c30434 100644 --- a/tests/ui/app.spec.js +++ b/tests/ui/app.spec.js @@ -948,6 +948,8 @@ test('the Directory lists what everyone here reads, the most subscribed first, b await piper.locator('#addFeed').click(); await expect(piper.locator('#nurl')).toBeVisible(); await expect(piper.locator('#modalCard .tile, #modalCard .rank')).toHaveCount(0); + // Nor a folder: a feed's folder is its title (#201). + await expect(piper.locator('#nfolder')).toHaveCount(0); await piper.locator('#modalCard button[title="Cancel"]').click(); const row = async () => diff --git a/web/src/dialogs.ts b/web/src/dialogs.ts index 7955f1d..98741f4 100644 --- a/web/src/dialogs.ts +++ b/web/src/dialogs.ts @@ -15,7 +15,6 @@ $('#addFeed').onclick=()=>{ openModal(`

Add a feed

A Patreon token on its own adds every show from that creator.
-
Only items matching a keyword are downloaded.
@@ -27,7 +26,7 @@ $('#addFeed').onclick=()=>{ $('#nsave').disabled=true; $('#nsave').title='Adding…'; try{ const r=await api('/api/feeds',{method:'POST',body:JSON.stringify({ - url, folder:$('#nfolder').value.trim()||null, allow_explicit:$('#nexp').checked, + url, allow_explicit:$('#nexp').checked, keywords:$('#nkw').value.split(',').map(s=>s.trim()).filter(Boolean)})}); closeModal(); toast(r.existing?`Already subscribed as ${r.id}`:`Added ${r.id}`); await loadFeeds(true); selectFeed(r.id);