Skip to content

eat: Shift to Input-Based Queue Tracking (Overlay Pattern)#13

Merged
6reenhorn merged 11 commits into
mainfrom
development
Apr 24, 2026
Merged

eat: Shift to Input-Based Queue Tracking (Overlay Pattern)#13
6reenhorn merged 11 commits into
mainfrom
development

Conversation

@6reenhorn
Copy link
Copy Markdown
Owner

Summary

This PR refactors the queue join process to align with the project's goal of being a "Remote Tracking Overlay." Instead of the backend auto-assigning numbers, users now provide the physical ticket number they received from the establishment.

Key Changes

  • Input-Based Join: Users now POST their existing queue_number to join.

Smart Validation

  • Prevents users from joining a queue that has already been served.
  • Prevents multiple active sessions from tracking the same ticket number at the same institution.

Reliability

  • Added QueueJoinViewTests covering success and failure (validation) scenarios.

Testing Performed

  • pytest queue_tracker/tests.py (19 passing)
  • Manual verification of "already served" and "duplicate tracking" error messages.

@dnjstr dnjstr self-requested a review April 22, 2026 21:01
dnjstr
dnjstr previously approved these changes Apr 22, 2026
@6reenhorn 6reenhorn merged commit 3a92021 into main Apr 24, 2026
2 checks passed
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