From 75cb0c81389d22a5cea61093cc13bf437e762134 Mon Sep 17 00:00:00 2001 From: Benjamin Hardy Date: Thu, 22 Oct 2026 10:03:35 +0200 Subject: [PATCH] Added + button next to playlists in sidebar --- CLAUDE.md | 5 +++-- frontend/src/components/Sidebar.tsx | 18 +++++++++++++++++- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index dc3ae13..a5f5b55 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1107,8 +1107,9 @@ Two independent apps that talk over HTTP: picker used to be a one-way door with `forcePicker` never set, so changing library meant restarting; switching confirms first when there are unsaved edits, since the adapter holds them in a native model that opening another - library replaces — plus the playlist tree. **Creating is right-click - only**: a folder's menu offers New Playlist / New Folder inside it, empty + library replaces — plus the playlist tree. **Creating is right-click, + or the Playlists header's +** (the top-level menu under the button; with + no folders, straight to a new playlist): a folder's menu offers New Playlist / New Folder inside it, empty space below the rows creates at the top level, and the new node is named in place (Esc or an empty name creates nothing). Rename/Delete are on the same menu and the row's hover buttons, which share one set of actions. diff --git a/frontend/src/components/Sidebar.tsx b/frontend/src/components/Sidebar.tsx index 1b1cd10..ffbbd7b 100644 --- a/frontend/src/components/Sidebar.tsx +++ b/frontend/src/components/Sidebar.tsx @@ -774,10 +774,26 @@ export function Sidebar({ -
+
Playlists + {/* The same choices as right-clicking below the rows: straight to a + new playlist where there is nothing else to create, else the + menu, opened under the button. */} + {canCreate && ( + + )}
{/* Right-click here (below the rows) creates at the top level; rows