PrimeAcademy / biscayne-syllabus

1 stars 4 forks source link

Needing Conceptual Assistance - Month/Year checking and providing Alerts #23

Closed kristinhuot closed 2 weeks ago

kristinhuot commented 2 weeks ago

Description

Your Real Name Kristin

What do you want to happen? I am working on the MyData page. I am needing to render alerts, only if a user is missing inputs and only from since the user signed up.

image

What is actually happening?

I am struggling with the conceptual breakdown and getting confused as I break it down. So far, I've been able to add a field to the database that logs the date when a user creates an account. We have a GET route that should show all of a user's input entries (not currently working correctly, bug 1). From there, my thought was to use a date library (date-fns) to help with some of the complexity around calculating the date range.

In essence, my thought is to calculate the dates between when a user signs up and today's date. Then compare that to the data we have in the database and show an alert only if the data is missing. However, this is proven to be super complicated.

We'd also like to add a second alert that verifies if a user has completed a recommendation or not but I haven't been able to even get to that. I'm on day 2 of working on this so needing to unblock once and for all!

Screenshots / Code Snippets

image

image

What did you try? Who did you ask?

I've tried working this out with Lisa, Tristan, and Marcos. I've tried referencing guide documents, google, AI.

What branch is your code on? Did you git push?

Yes and it is on feature-my_data_page

When was the last time you took a break? Just now

matthew-black commented 2 weeks ago

I reckon this 👆 idea will make it a bit more straightforward.

What we'll need to be able to do:

matthew-black commented 2 weeks ago

Pew pew!