Skip to content

feat(gallery): add a + menu with upload and create album - #13

Merged
mlapaglia merged 1 commit into
mainfrom
feat/010-album-creation
Oct 20, 2026
Merged

mlapaglia merged 1 commit into
mainfrom
feat/010-album-creation

Conversation

@mlapaglia

Copy link
Copy Markdown
Collaborator

Replaces the toolbar's Upload button with a + button, as in Lychee's web UI. It opens a dropdown with Upload photos, which works as before and keeps the upload badge, and Create album.

Create album asks for a title and sends POST Album with the current album as parent, or none on the album list, then opens the new album; the page it came from shows it when the user goes back. It is offered only where the server allows creating, which is edit rights on the parent, so never in smart, tag or person albums; the + shows only when it has something to offer. Empty or overlong titles keep the dialog open with a message, failures reopen it with the typed title and the reason, and a busy album lock (409) is retried up to five times like the web client.

Lychee returns the new album's ID as plain text rather than JSON (the controller returns a bare string); the first build only accepted JSON and reported an error for albums it had created. That is fixed and covered by a test.

UploadButton.vue is replaced by AddButton.vue and removed. 649 Vitest tests. The owner checked it on devices.

Spec impact: adds feature 010 spec, plan, tasks and open questions Q-010-01 to Q-010-03, notes the change in feature 005, and updates the knowledge map and roadmap.

🤖 Generated with Claude Code

The toolbar's Upload button becomes a + button with a dropdown offering Upload photos and Create album, as in the web UI. Create album asks for a title, creates the album at the top level or inside a regular album wherever the server allows it, and opens it. The plain-text ID Lychee returns is accepted and a busy album lock is retried.

Spec impact: adds feature 010 spec, plan, tasks and open questions Q-010-01 to Q-010-03, notes the change in feature 005, and updates the knowledge map and roadmap

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mlapaglia
mlapaglia merged commit eabbf9f into main Oct 20, 2026
4 checks passed
@mlapaglia
mlapaglia deleted the feat/010-album-creation branch October 20, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant