Skip to content

feat(genre-tree): admin Pop/Core side toggle - #426

Merged
Andreas-Garcia merged 1 commit into
developfrom
feature/genre-side-toggle
Oct 30, 2026
Merged

Andreas-Garcia merged 1 commit into
developfrom
feature/genre-side-toggle

Conversation

@Andreas-Garcia

Copy link
Copy Markdown
Member

Summary

  • CriteriaUpdateSchema accepts side (core | pop).
  • GenreActionBand gets an admin Make pop / Make core item (side, onToggleSide, toggleSideDisabledReason). Buttons can now carry a title tooltip.
  • GenreTreeView shows the toggle only on a root's direct child when not readOnly, and calls useUpdateGenre().mutate({ uuid, data: { side } }). When the root already has another pop child, Make pop is disabled and its tooltip names that child.

Depends on BehindTheMusicTree/grow-the-music-tree-api#356, which adds side to the genre PUT.

Test plan

  • pnpm lint && pnpm build && pnpm test
  • New tests: band label/click/disabled; view visibility (root child only, hidden for roots, grandchildren and readOnly), disabled reason, mutate payload

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Andreas-Garcia
Andreas-Garcia merged commit 8e4d110 into develop Oct 30, 2026
2 checks passed
@Andreas-Garcia
Andreas-Garcia deleted the feature/genre-side-toggle branch October 30, 2026 22:53
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