Skip to content

feat(ui): add FLAT button to reset block EQ bands to default - #107

Open
Shayshez wants to merge 1 commit into
tone-3000:mainfrom
Shayshez:feature/flat-eq-reset-button
Open

Shayshez wants to merge 1 commit into
tone-3000:mainfrom
Shayshez:feature/flat-eq-reset-button

Conversation

@Shayshez

@Shayshez Shayshez commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a FLAT button to the block EQ view (next to the sliders/graph segmented toggle) that resets all 6 bands to their default/flat state.

  • Wired directly to the existing native resetBlockEq function - a single call, one undo step - not a per-band loop (which would land as six separate undo steps).
  • The native resetBlockEq backend and its full action-layer plumbing (useChainActions.ts, useChainState.ts, Plugin.tsx) already shipped previously and are unrelated to this PR - this adds only the missing UI button, wired to what's already there.

Test plan

  • npm run lint / npm run build - clean
  • npx prettier --check on the changed file - clean
  • Manual verification in the Standalone app built from this branch: nudged a band off default, pressed FLAT, then Ctrl+Z once - EQ returned correctly to the pre-reset nudged value in a single undo step

🤖 Generated with Claude Code

Wires a FLAT button into the EQ view's segmented toggle row, next to
the sliders/graph switch. Resets all bands to flat in a single native
call (resetBlockEq) rather than looping per-band updates, so it lands
as one undo step instead of six.

The native resetBlockEq function and its full action-layer plumbing
(useChainActions/useChainState/Plugin.tsx) already shipped separately;
this is only the missing UI button, wired to what's already there.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0153YRkpUTsAdrZdgtbbsnLW
@Shayshez Shayshez mentioned this pull request Sep 10, 2026
1 task

This branch has not been deployed

No deployments
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