heylinda / heylinda-app

The open source and free meditation app alternative for everyone. Built with React Native and Expo.
https://heylinda.netlify.app
GNU Affero General Public License v3.0
672 stars 164 forks source link

Added Notifications with repeating Schedules Solves #55 #57

Open SalikSayyed opened 3 years ago

SalikSayyed commented 3 years ago

Description

Build

fix #55

Ticket Link

Closes #55

How has this been tested?

Pixel 2 API 29 - Simulator

Screenshots

image image

image

image

image

image

image

Checklist

watadarkstar commented 3 years ago

Nice work @SalikSayyed! I will review the code soon. In terms of the UI, what about placing the weekday / time part inside a modal that pops up instead of placing it inside the list? You can use react-native-paper's Dialog component for the modal and put it in its own component like NotificationDialog :) This will make things easier to move around in the future.

https://callstack.github.io/react-native-paper/dialog.html

SalikSayyed commented 3 years ago

I made few changes and added dialog box this time.

SalikSayyed commented 3 years ago

@watadarkstar plz review this. I have put the notification permission on homescreen. I think now its complete.

watadarkstar commented 3 years ago

The toast library is giving me this issue, do I have to run pod install? In any case, let's stick with the libraries we already have installed and use https://callstack.github.io/react-native-paper/snackbar.html.

simulator_screenshot_5D3DFD63-BFD1-48BD-8285-3E975A13C986

watadarkstar commented 3 years ago

Nice work @SalikSayyed, I left a few more comments and then this should be good!

SalikSayyed commented 3 years ago

The toast library is giving me this issue, do I have to run pod install? In any case, let's stick with the libraries we already have installed and use https://callstack.github.io/react-native-paper/snackbar.html.

simulator_screenshot_5D3DFD63-BFD1-48BD-8285-3E975A13C986

Changed to SnackBar. no new package needed

SalikSayyed commented 3 years ago

Hello, @watadarkstar will u please review this ?

watadarkstar commented 3 years ago

@SalikSayyed Sure reviewing it now :) Thank you for reminding me!

The UI is a bit odd. The pick time and notify buttons don't feel right. What I recommend:

This would make the UI look more clean 🥇

simulator_screenshot_3348E94E-C5DC-4D3C-BE3A-EA569C8A47EA

watadarkstar commented 3 years ago

When I click "Pick time" the UI changes to this (which has a lot of white space and looks wonky):

simulator_screenshot_36C491D6-E588-4A0B-89DF-2642014ECD75

We don't need the "At 19:14" here as we already show the time below. Let's just always show the time selector and default it to 8 AM:

simulator_screenshot_DBFC2B0F-041B-45BA-BCA9-75AC8926BB05

watadarkstar commented 3 years ago

@SalikSayyed Aside from the UI, the code looks good and clean! I look forward to seeing the updated UI when you have a chance to tweak it :)

watadarkstar commented 3 years ago

@SalikSayyed Please also resolve the conflicts with master :)

watadarkstar commented 3 years ago

Hey @SalikSayyed can you give me write access to your fork so I can modify stuff if needed?

SalikSayyed commented 3 years ago

image image image @watadarkstar check this I updated with few addition, decreased the size entirely and Auto Cancel of dialog when set, no cancel wehn not set since it is dismissable I dont think cancel is needed. As for TimePicker updated it for IOS, for android when clicking on the Timing displayed opens UI to put timing. Please verify for IOS as well..

SalikSayyed commented 3 years ago

Hey @SalikSayyed can you give me write access to your fork so I can modify stuff if needed?

Yes,That would be great. I added u as collaborator sent invite. Or should I do something else for write access?? @watadarkstar

watadarkstar commented 3 years ago

@SalikSayyed Its looking better! Nice work. I will jump in and tweak stuff and then get this merged in once I tweak the UI a bit :)