Spurrya / Calfit

3 stars 1 forks source link

check second user's availability when first one accepts #23

Open bhaanu77 opened 8 years ago

bhaanu77 commented 8 years ago
  1. user-1 accepts the break reminder
  2. chrome extension sends REST API call sent to inform nodejs of the user-1 accepting the invite
  3. nodejs creates a calendar event for user-1 that he has takeb break
  4. nodejs checks whether user-2 has been busy / not taken break recently (e.g. in last two hours)
  5. nodejs send notification to user-2 saying "user-1 taking a break, working out together is always fun"
  6. user-2 accepts the break invite
  7. chrome extension sends REST API request to nodejs saying "user-2 accepted" invite "from user-1" (we might use HTTP header or a different api route to indicate that this is acceptance to join another user)
  8. calendar event showing that user-2 took break should be created
  9. user-1 should be sent notification that user-1 is happy to join him / her for break

Technically what we need: A. different API routes B. Different messages, buttons on chrome extension C. creating calendar events D. rich notifiction messages with interesting graphics

@Spurrya @kevinkid FYI who ever has time is welcome to start working on this.