code-for-nashville / glean-tennessee-web

This project was created during Nashville's Civic Day of Hacking to allow farmers and other food providers to notify the Society of St. Andrew of food donations available for harvest and pick up.
https://glean-tennessee.firebaseapp.com/
8 stars 10 forks source link

updating jquery version to reflect improvements #27

Closed Rian501 closed 6 years ago

Rian501 commented 6 years ago

Because the React migration is taking some time, and it would be good to get a working testable prototype for farmers to try out, I'm filling in some missing details in the jQuery version of the app. On this PR: The glean request button hides until a person is logged in or registered. (#19, #21) and once they do log in, the register and log in links disappear from the nav (#15).

Log out functionality works and is now linked to the nav buttons. (#8, #21, #15).

Also, I've added the checkbox for is_organic as per #13. (More additions needed)

To Test:

  1. Fetch the branch and pull it down.
  2. Check the links available before signing in, and confirm what is available after signing in (or signing up).
  3. Ensure that when logged in, the log out and glean submission buttons are available.
  4. Click log out and ensure the log in and register buttons are now available and that the glean submit and log out buttons are gone. (#8, #15, #21)
  5. register a new account and check the console log to see that there is an object reflecting the is_organic boolean. (If you checked the box, it should say true, if not, false)
Shu52 commented 6 years ago

This a tag <a href="/">Glean Tennessee</a> is on both registration form page and gleaning request page, and it doesn't seem to serve a purpose

Rian501 commented 6 years ago

I have also taken out that h1 tag <a href="/">Glean Tennessee</a> because I think it looks better on mobile without that anyway!

Thanks.