Skip to content

Add UI for editing custom break messages#1760

Open
steveszat wants to merge 2 commits into
hovancik:trunkfrom
steveszat:custom-messages-ui
Open

Add UI for editing custom break messages#1760
steveszat wants to merge 2 commits into
hovancik:trunkfrom
steveszat:custom-messages-ui

Conversation

@steveszat
Copy link
Copy Markdown

@steveszat steveszat commented Mar 21, 2026

Description

This PR exposes existing custom break message settings in the Preferences UI.

Users can now:

  • Edit custom mini break messages inline
  • Edit custom long break messages inline
  • Enable or disable individual messages
  • Add new messages
  • Delete messages
  • Turn custom messages on or off from Preferences

This PR also reloads break ideas immediately when these settings change, so users do not need to restart Stretchly for updates to take effect.

Why

Stretchly already supports storing custom microbreakIdeas and breakIdeas in settings, but that capability is currently hidden behind manual config editing.

This change makes that built-in configurability accessible from the UI without changing the underlying feature model.

This is especially useful because break-message preferences are highly subjective. This PR lets users decide what messages are useful for them.

Implementation details

  • Added a new Custom Messages section to Preferences

  • Added inline editing for message text

  • Added an Enabled checkbox per message

  • Added Delete controls

  • Added Add new message support

  • Added a Use custom messages checkbox bound to useIdeasFromSettings

  • Reloaded break ideas at runtime when:

    • microbreakIdeas changes
    • breakIdeas changes
    • useIdeasFromSettings changes

Notes

  • This change is intentionally simple and additive
  • It reuses the existing settings/config store
  • It does not introduce new libraries or abstractions
  • Long break editing currently targets the description field

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist

  • I have read the CONTRIBUTING guidelines
  • I have performed a self-review of my own code
  • My code follows the style guidelines of this project (npm run lint)
  • I have tested my changes locally
  • I have added tests that prove my feature works
  • I have not changed package versions or package-lock.json unnecessarily

@hovancik
Copy link
Copy Markdown
Owner

Please follow instructions in https://github.com/hovancik/stretchly/blob/trunk/CONTRIBUTING.md, I want to talk about the functionality and UX before doing code changes.

@steveszat
Copy link
Copy Markdown
Author

Thanks for the reply. Sorry, I’m new to contributing to open source, and this is my first attempt, so I missed that I should have opened an issue and discussed the functionality/UX before putting together a PR.

I’ll go ahead and create an issue as the contributing guide suggests, and I’d be happy to discuss the functionality and UX there first if you’re open to it.

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