Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Queue and notification actions #11

Open
3 of 7 tasks
marek-saji opened this issue Feb 5, 2019 · 0 comments
Open
3 of 7 tasks

Queue and notification actions #11

marek-saji opened this issue Feb 5, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request in progress Issue is being worked on
Milestone

Comments

@marek-saji
Copy link
Owner

marek-saji commented Feb 5, 2019

Blocks #4.

When server gets free status, push only to first subscribed client. Push to next one if status changed from and then back to free or after it’s free for some time.

  • On page load, check whether client is already subscribed and reflect that in UI (disable subscribe button)
  • 🐛 When status changes to error alert pops up on browsers with no push support

When queue is not empty and status changes to free:

  • Only client from top of the queue is notified. It states that one has 1min to get to the toilet
  • If status changes to occupied within 1 min, top client is removed and she gets a notification
  • If status does not change to occupied within 1 min, top client gets removed, gets a notification and next client gets notified
  • Notification for removed clients contains action to insert themselves at the beginning of the queue (easy to abuse, but not really our priority here)

  • /queue without web push subscription. Queueing should be possible even for non-JS users.
@marek-saji marek-saji added the enhancement New feature or request label Feb 5, 2019
@marek-saji marek-saji self-assigned this Feb 5, 2019
@marek-saji marek-saji added this to the Ready for prime time milestone Feb 26, 2019
@marek-saji marek-saji pinned this issue Feb 26, 2019
@marek-saji marek-saji mentioned this issue Feb 26, 2019
3 tasks
@marek-saji marek-saji added the in progress Issue is being worked on label Mar 3, 2019
@marek-saji marek-saji removed this from the Ready for prime time milestone Apr 2, 2019
@marek-saji marek-saji changed the title Queue Queue and notification actions Apr 12, 2019
@marek-saji marek-saji added this to the v1.2 milestone Oct 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request in progress Issue is being worked on
Projects
None yet
Development

No branches or pull requests

1 participant