rowlandcoping / hopes-and-dreams

0 stars 2 forks source link

Create sign-up page #1

Open rowlandcoping opened 9 months ago

rowlandcoping commented 9 months ago

The project needs a multi-stage sign-in process.

TASKS:

rowlandcoping commented 9 months ago

Created these issues and task lists, and identified the ones I have already completed.

NB to date I have already completed the following tasks.:

rowlandcoping commented 9 months ago

Added the image handling process, but need to include code to delete files from Cloudinary when they are updated.

I'd update and add after looking into this I worked out how to do it near instantaneously.

rowlandcoping commented 9 months ago

In view of the unwieldyness of IDs for MongoDB and the desire to have clean and readable urls, I built the code to create a user slug on sign-in. This code can easily be applied to dreams as well once I get on to them.

Note: I have actually reverted to using IDs relating to session data for users, because if the user edited their name the slug changes and the session became invalid. the same holds true for the e-mail address. Since the _id is the only immutable object, I've stuck with that regardless of any minor difficulties it poses! I think the slug generation approach will be more appropriate for data not passed by session, so dreams or related modules can use this slug functionality in the url just for a better user experience. There is actually zero reason to pass user data via GET in a url since my user identification is all based on session data, however there is little point in removing the functionlaity now it's been created!

rowlandcoping commented 8 months ago

Further to testing and feedback from my mentor, the signup page has been condensed into a single screen with predefined base categories, with the top ten appearing in a clickable grid.

This can then be extended to the dream creation process and the user and dream edit process.