Skip to content

feat: nudge engine timer system - #5

Merged
princechrix merged 1 commit into
mainfrom
feature/nudge-engine
May 1, 2026
Merged

feat: nudge engine timer system#5
princechrix merged 1 commit into
mainfrom
feature/nudge-engine

Conversation

@princechrix

Copy link
Copy Markdown
Owner

Summary

  • Timer-based nudge engine that fires at user-defined intervals
  • Full IPC integration: renderer controls the engine via preload bridge

Changes

  • src/main/nudgeEngine.js — interval timer with start/stop/status
  • src/main/main.js — engine IPC handlers, sends nudge events to renderer
  • src/main/preload.js — engine API + onNudge event listener
  • src/renderer/app.js — wires start/stop to real engine, syncs active state on init

Testing

  • Starting a session fires nudge callback at correct interval
  • Stopping clears the timer
  • Only one session runs at a time
  • ESLint passes

- NudgeEngine module: start/stop timer, fire callback on interval
- IPC handlers for engine start, stop, and status queries
- Preload bridge exposes engine API and nudge event listener
- Renderer wires start/stop buttons to real engine
- Active session state restored on app init
@princechrix
princechrix merged commit 964d5be into main May 1, 2026
1 check passed
@princechrix
princechrix deleted the feature/nudge-engine branch May 1, 2026 22:01
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