chingu-voyages / v8-geckos-team-07

Habit-Tracker | Voyage-8 | https://chingu.io/
https://habit-tracker-gecko.herokuapp.com/
4 stars 4 forks source link

Check in #91

Closed pjconnolly12 closed 5 years ago

pjconnolly12 commented 5 years ago

Updated the Check In form with the following features: Validation Removed Hardcoding Submission Message Close Button

Also added a button on the dashboard to open the check-in (this may be changed in the future to a more creative button, ex. a plus sign)

image

image

image

pjconnolly12 commented 5 years ago

UPDATE I also added some logic so the users get the correct options on the dashboard.

If the user has a habit then they will not see the "Create New Habit" button, they will only see the "Check In" button and vice versa, if they are new and do not have a habit then the new entry form will open (this was already built in) but if the user clicks exit without creating the habit, they will only see the "Create New Habit" button, and not the "Check In" button.

pjconnolly12 commented 5 years ago

I'm going to wait to merge, I found an error upon testing, working through it now. if I can't figure out before bed I'll just merge and then resolve the error in a new PR.

pjconnolly12 commented 5 years ago

FINAL UPDATE Through some testing I realized that when a new user cretaed a new habit the data wasn't pulled through so the dashboard couldn't render. I was able to solve this by passing the data from the habit they create directly to the dashboard.