Skip to content

Enhance timer UI/logic, sleep handling, and container health checks#4

Merged
XHyperDEVX merged 1 commit into
mainfrom
cto/feature-ui-timer-enhancements-and-readme-update
May 3, 2026
Merged

Enhance timer UI/logic, sleep handling, and container health checks#4
XHyperDEVX merged 1 commit into
mainfrom
cto/feature-ui-timer-enhancements-and-readme-update

Conversation

@cto-new
Copy link
Copy Markdown

@cto-new cto-new Bot commented May 3, 2026

What was changed

  • Updated timer scheduling behavior for sleep mode:
    • Scheduled executions now check sleep mode at trigger time.
    • If sleep mode is active, the webhook is not fired, a log entry is recorded with Skipped: sleep mode active, and the timer continues to the next interval.
  • Increased retained per-entry execution history from 10 to 15 entries.
  • Added server time API endpoint (GET /api/time) and wired timezone handling (time.Local = TZ) so UI can display system time.
  • Added binary healthcheck command (/webhooktimer healthcheck) and Docker health checks:
    • Dockerfile now includes a HEALTHCHECK instruction.
    • docker-compose.yml now includes a matching healthcheck block.

UI updates

  • Reworked the State control to a toggle switch style (instead of checkbox appearance), including state toggles in the entries table.
  • Removed the extra visible enabled label next to state controls in the entries list.
  • Fixed random interval input layout so fields no longer overflow the form panel.
  • Added hour/minute/second duration inputs for:
    • Fixed interval
    • Random min
    • Random max
      (converted to total seconds for API payload compatibility)
  • Updated “Next run” countdown behavior:
    • Removed due... display.
    • Countdown refresh now runs every 0.5 seconds.
  • Updated UI polling behavior:
    • Entry refresh checks run every 0.5 seconds only while the tab is visible.
  • Added a live system time display (hh:mm:ss) with timezone label in the UI header.
  • Improved log display styling for skipped sleep-mode executions (warning style).

Documentation

  • Updated README.md content to reflect current functionality (JSON persistence, 0.5s live updates, 15 log entries, sleep skip behavior, health checks) while preserving the original structure/section layout.

Notes

  • Frontend behavior was validated in-browser with agent-browser against the running app.
  • Sleep mode skip behavior and healthcheck status were additionally validated via API and Docker Compose (healthy state observed).

Powered by CTO.new

@XHyperDEVX XHyperDEVX merged commit 94ee579 into main May 3, 2026
@XHyperDEVX XHyperDEVX deleted the cto/feature-ui-timer-enhancements-and-readme-update branch May 3, 2026 18:33
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