Skip to content

feat: forced acknowledgment with typed confirmation - #8

Merged
princechrix merged 1 commit into
mainfrom
feature/forced-acknowledgment
May 1, 2026
Merged

feat: forced acknowledgment with typed confirmation#8
princechrix merged 1 commit into
mainfrom
feature/forced-acknowledgment

Conversation

@princechrix

Copy link
Copy Markdown
Owner

Summary

  • Overlay requires explicit acknowledgment: type DONE or click button
  • Cannot be dismissed for first 5 seconds
  • Anti-escape measures: blocks Escape, Alt+F4, Alt+Tab, periodic refocus

Changes

  • src/renderer/overlay.html — added type input field, button, dual-dismiss layout
  • src/renderer/overlayApp.js — typed confirmation logic, keyboard blocking, unlock timer
  • src/main/windowManager.js — periodic refocus interval to fight focus stealing

Testing

  • Overlay cannot be dismissed for 5 seconds
  • Typing DONE dismisses overlay
  • Clicking button dismisses overlay
  • Escape and Alt+F4 blocked
  • Overlay re-focuses when losing focus
  • ESLint passes

- Two dismiss methods: type DONE or click button
- 5-second mandatory delay before acknowledgment area appears
- Keyboard escape prevention (Escape, Alt+F4, Alt+Tab blocked in renderer)
- Periodic refocus interval ensures overlay stays on top
- Shake animation on incorrect input
@princechrix
princechrix merged commit 2a5be52 into main May 1, 2026
1 check passed
@princechrix
princechrix deleted the feature/forced-acknowledgment branch May 1, 2026 22:08
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