Skip to content

Rework presets#184

Merged
janikwitzig merged 1 commit intomainfrom
183-preset-rework
Jan 10, 2026
Merged

Rework presets#184
janikwitzig merged 1 commit intomainfrom
183-preset-rework

Conversation

@janikwitzig
Copy link
Collaborator

fix: mute preset now uses correct dropdown option
change: preset names are now expressions

Copy link
Contributor

Copilot AI left a comment

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 reworks the preset system with two key changes: fixing the mute preset to use the correct dropdown option for toggle behavior, and converting preset text from static strings with variable interpolation to JavaScript expressions for dynamic text display.

Changes:

  • Fixed mute preset action to use toggle option (-1) instead of fixed value (2)
  • Converted preset button text to JavaScript expressions with fallback logic
  • Added textExpression: true flag to enable expression evaluation

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

change: preset names are now expressions
@janikwitzig janikwitzig merged commit fa00fdd into main Jan 10, 2026
3 checks passed
@janikwitzig janikwitzig mentioned this pull request Jan 10, 2026
2 tasks
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