Skip to content

feat: configurable nudge lock duration per session - #11

Merged
princechrix merged 1 commit into
mainfrom
feat/nudge-duration-setting
May 1, 2026
Merged

feat: configurable nudge lock duration per session#11
princechrix merged 1 commit into
mainfrom
feat/nudge-duration-setting

Conversation

@princechrix

Copy link
Copy Markdown
Owner

Summary

  • Separates session interval from nudge lock duration as two distinct fields
  • Session interval (minutes) — how often the nudge fires
  • Nudge lock duration (seconds) — how long the overlay stays locked before dismiss is available

Changes

  • src/main/sessionManager.js — stores nudgeDuration field in session data
  • src/renderer/index.html — new form field with hint text
  • src/renderer/styles.css.field__hint style
  • src/renderer/app.js — wires new field for create/edit/display
  • src/main/windowManager.js — passes nudgeDuration to overlay
  • src/renderer/overlayApp.js — uses dynamic duration instead of hardcoded 5s

Testing

  • New field visible in create/edit form
  • Duration saved and loaded correctly
  • Overlay countdown uses per-session duration
  • Backwards compatible with sessions that lack the field (defaults to 5s)
  • ESLint passes

- New 'nudge lock duration' field (seconds) separate from session interval
- Session interval = how often you get nudged
- Nudge duration = how long the overlay stays locked before dismiss
- Passed through storage, IPC, overlay data, and rendered dynamically
@princechrix
princechrix merged commit 8809d49 into main May 1, 2026
1 check passed
@princechrix
princechrix deleted the feat/nudge-duration-setting branch May 1, 2026 22:28
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