Skip to content

Sync active timers with server, add context filtering, and improve timer formatting#11

Merged
Fingolfin7 merged 2 commits intomasterfrom
codex/improve-responsiveness-of-timers-page
Apr 13, 2026
Merged

Sync active timers with server, add context filtering, and improve timer formatting#11
Fingolfin7 merged 2 commits intomasterfrom
codex/improve-responsiveness-of-timers-page

Conversation

@Fingolfin7
Copy link
Copy Markdown
Owner

Motivation

  • Ensure the client-side active timers list stays in sync with server state so timers started/stopped outside the UI are reflected quickly.
  • Apply the same context-based filtering to active-session listing as is used for other session queries.
  • Provide clearer, human-readable duration strings that include days/hours/minutes/seconds and limit DOM updates to active timer cards only.

Description

  • Apply filter_by_active_context to the list_active_sessions API endpoint so GET /api/list_active_sessions/ respects the context query parameter.
  • Restrict DOM updates in dynamic_timers.js to active timer cards via a focused selector and replace the naive formatter with formatTime that outputs days/hours/minutes/seconds.
  • Add getLocalTimerIds and syncActiveTimers in dynamic_timers.js which poll GET /api/list_active_sessions/ and conditionally call window.location.reload() only when the local timer set differs from the server, with awareness of partial lists via data-partial-list and data-max-visible.
  • Add `data-partial-list=

Codex Task

@Fingolfin7 Fingolfin7 merged commit 562caaf into master Apr 13, 2026
3 checks passed
@Fingolfin7 Fingolfin7 deleted the codex/improve-responsiveness-of-timers-page branch April 13, 2026 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant