Skip to content

Add start-time gating with timezone-aware queue display#1

Merged
lightumcc merged 3 commits intomasterfrom
copilot/add-start-time-configuration
Jan 30, 2026
Merged

Add start-time gating with timezone-aware queue display#1
lightumcc merged 3 commits intomasterfrom
copilot/add-start-time-configuration

Conversation

Copy link

Copilot AI commented Jan 30, 2026

The queue must hold users until a configured start moment, respecting timezone, and surface that schedule in the waiting page.

  • Config & validation

    • Added startTime (RFC3339) and startTimeZone (IANA TZ) with parsing/validation and timezone-normalized comparisons.
    • Documented interaction: RFC3339 offset respected, then converted to provided zone.
  • Request handling

    • Gate traffic before start time using the configured zone; bypass once reached.
    • Queue page data now includes start time, seconds-until-start, and reach flag.
  • UI templates

    • Custom and fallback queue pages render the start time and a live countdown (immediate first tick).
  • Tests

    • Added coverage for invalid start time/zone, blocking before start, and allowing after start.

Example configuration:

- traefik.http.middlewares.qm.plugin.queuemanager.startTime=2026-02-01T10:00:00Z
- traefik.http.middlewares.qm.plugin.queuemanager.startTimeZone=Europe/Paris

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 30, 2026 20:01
Co-authored-by: lightumcc <60721270+lightumcc@users.noreply.github.com>
Co-authored-by: lightumcc <60721270+lightumcc@users.noreply.github.com>
Copilot AI changed the title [WIP] Add configuration for start time and timezone Add start-time gating with timezone-aware queue display Jan 30, 2026
@lightumcc lightumcc marked this pull request as ready for review January 30, 2026 21:00
@lightumcc lightumcc merged commit 6846833 into master Jan 30, 2026
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.

2 participants