Skip to content

feat(v3): one-click "Not split" library filter + piano stem pill - #1010

Merged
topkoa merged 1 commit into
mainfrom
feat/library-unsplit-filter
Jul 19, 2026
Merged

feat(v3): one-click "Not split" library filter + piano stem pill#1010
topkoa merged 1 commit into
mainfrom
feat/library-unsplit-filter

Conversation

@topkoa

@topkoa topkoa commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

From a user question — "can I filter for songs with no stems or no lyrics?" No-lyrics already exists in the Filters drawer; not-split was possible but took five taps and was quietly wrong.

  • "Not split" shortcut in the stems section: one tap sets stems_lacks to every instrument stem — the same lacks-ALL query Stem Splitter's own missing-stems view runs. Toggles off if already active; any manual pill change simply replaces the state (the shortcut is just a preset, not a mode).
  • piano joins the pill row. The drawer offered five of the canonical six stems, so a piano-only song lacked all five listed and wrongly matched a hand-built "lacks everything" filter. Backend already allows piano (_ALLOWED_STEM_IDS), so this is UI-only.

No backend changes; existing stems_lacks semantics (NOT EXISTS … IN (…) = lacks all listed) do the work. Existing v3 songs tests pass (7/7). Uses only utility classes already present in the drawer, so no Tailwind rebuild.

Verified on screen by the maintainer — drawer styling and toggle behaviour confirmed.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Added a one-tap “Not split” shortcut to the stems section of the v3 Library Filters drawer.
    • Added a piano stem filter pill.
  • Bug Fixes

    • Corrected one-tap stem selection behavior.
    • Fixed piano-only matching so results accurately reflect the selected filter.

@coderabbitai

coderabbitai Bot commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@topkoa, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 54 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: c02ead9a-0cd9-4697-a5ff-f2f0a81bfde5

📥 Commits

Reviewing files that changed from the base of the PR and between 4cb173b and 7960af1.

📒 Files selected for processing (2)
  • CHANGELOG.md
  • static/v3/songs.js
📝 Walkthrough

Walkthrough

The v3 Songs library is substantially rebuilt while preserving its major views and actions. Filter state and tuning behavior are simplified, stem filtering adds piano and “Not split,” and rendering, virtualization, drawers, polling, and lifecycle wiring are updated.

Changes

Songs library

Layer / File(s) Summary
Filter and tuning contracts
static/v3/songs.js, CHANGELOG.md
Filter state and query construction adopt the revised tuning model; the filter drawer adds the “Not split” shortcut and piano stem pill, with corresponding documentation.
Song rendering and actions
static/v3/songs.js
Card badges, tuning chips, metadata refresh indicators, overflow actions, charts, removal flows, and batch actions are updated.
Virtualized library navigation
static/v3/songs.js
Grid recycling, visible-page fetching, scroll and resize handling, and A–Z navigation are refreshed.
Details and screen lifecycle
static/v3/songs.js
Song details, artist tidy-up, folder-plugin orchestration, provider loading, scan and metadata polling, navigation, and exported interface wiring are updated.

Estimated code review effort: 5 (Critical) | ~90 minutes

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant FilterDrawer
  participant SongsState
  participant SongsGrid
  User->>FilterDrawer: select stem or tuning filter
  FilterDrawer->>SongsState: update filter state
  SongsState->>SongsGrid: rebuild library query
  SongsGrid->>SongsGrid: fetch visible pages
  SongsGrid-->>User: render matching song cards
Loading

Possibly related PRs

Suggested reviewers: chrisbewithyou

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is detailed, but it does not follow the required template sections and omits the Checklist and feedpak surface structure. Rewrite it using the repository template: add a What section, the required feedpak surface statement or remove that section, and complete the checklist.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly summarizes the main user-facing change: a one-click Not split filter and the piano stem pill.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/library-unsplit-filter

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Finding un-split songs took five taps (cycle each stem pill to its
"lacks" state) — and was quietly wrong even then: the drawer offered
five of the canonical six stems, so a piano-only song lacked all five
listed and matched a hand-built "not split" filter despite being split.

The stems section gains a "Not split" toggle that sets stem_lacks to
every instrument stem in one tap (the same lacks-ALL query Stem
Splitter's missing-stems view runs, backend semantics unchanged), and
piano joins the pill row (already in the backend's allowed set).

(Rebuilt on current main after #1003/#810/#92e78be rewrote the drawer
region — the original branch conflicted whole-file.)

Signed-off-by: topkoa <topkoa@gmail.com>
@topkoa
topkoa force-pushed the feat/library-unsplit-filter branch from 4cb173b to 7960af1 Compare July 19, 2026 06:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the v3 Library Filters drawer to make “songs with no instrument stems” discoverable and correct, addressing a previously cumbersome (and subtly incorrect) “not split” workflow.

Changes:

  • Added a one-tap “Not split” shortcut in the Stems filter section that presets stems_lacks to “lacks all stems” and toggles off when already active.
  • Added a piano stem pill to the stems filter row so piano-only songs no longer incorrectly match a hand-built “lacks everything” filter.
  • Documented the new v3 filter behavior in the changelog.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
CHANGELOG.md Adds release notes describing the new “Not split” shortcut and piano stem pill behavior.
static/v3/songs.js Updates the v3 filter drawer UI: includes piano in the stem pill list and adds the “Not split” preset/toggle that sets stem_lacks to all stem IDs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@topkoa
topkoa merged commit 39d1a8c into main Jul 19, 2026
6 checks passed
@topkoa
topkoa deleted the feat/library-unsplit-filter branch July 19, 2026 06:13
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.

2 participants