fix(settings): Change default arrangement setting with the in-song menu#817
Open
jphinspace wants to merge 1 commit into
Open
fix(settings): Change default arrangement setting with the in-song menu#817jphinspace wants to merge 1 commit into
jphinspace wants to merge 1 commit into
Conversation
Signed-off-by: Joe <jphinspace@gmail.com>
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughManual arrangement switching now triggers an unawaited call to persist the selected arrangement as the default, swallowing any errors. A new Playwright regression test verifies that switching arrangement via the dropdown results in a settings POST with the correct default_arrangement and updates the pin UI state. ChangesAuto-persist arrangement default
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant AppJS as app.js
participant SettingsAPI as /api/settings
User->>AppJS: change `#arr-select` (dispatch change event)
AppJS->>AppJS: changeArrangement(index)
AppJS->>AppJS: pinCurrentArrangementDefault() (not awaited)
AppJS->>SettingsAPI: POST default_arrangement
SettingsAPI-->>AppJS: response (success or error)
AppJS->>AppJS: swallow error if any
AppJS->>User: update `#arr-default-pin` aria-pressed
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In-song arrangement (lead, rhythm, bass, etc) changes were not being persisted to subsequent songs. This might have been intended but IMO the normal default arrangement setting is harder to find than the in-song-menu one, and I'm not sure there's much value in having two totally independent settings. Most of the time I'm not switching instrument between every song.
Summary by CodeRabbit