Skip to content

Instantly share code, notes, and snippets.

@jaitjacob
Created July 17, 2025 17:47
Show Gist options
  • Select an option

  • Save jaitjacob/e440c4a0087b58d6dc2c884905c5b7fe to your computer and use it in GitHub Desktop.

Select an option

Save jaitjacob/e440c4a0087b58d6dc2c884905c5b7fe to your computer and use it in GitHub Desktop.
  1. add a plant: ZZ plant

  2. go to ZZ plant detail page => add reminders => set title & future time: utc timestamp 19JUL17:30:00 (seen: false by default, status: pending by default) => sent to backend as unix timestamp

  3. GET /plant/reminders 1. get all reminders timestamp < currentUTCtimestamp 2. set status to 'expired' 3. get all reminders timestamp reminders.seen == false 4. show return value from 3 on frontend route: api/user/reminders 5. user sees a reminder in this case WATER ZZ in {remainingTime} : Mark as Done 6. if user MAD, set seen as true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment