frankcollins3 / fill_container

codecamp team project updated with new icon screen menu + puppeteer icon search, GraphQL, redux, relational psql !mongo, and accuweatherAPI
1 stars 0 forks source link

adding rain to a given calendar day data. [6:00am] #244

Closed frankcollins3 closed 1 year ago

frankcollins3 commented 1 year ago

attempting to do: link weatherAPI to a given day so that any precipitation creates UI changes on the calendar to signify that precipitation.

Screen Shot 2023-06-28 at 6 28 56 AM

Screen Shot 2023-06-28 at 6 29 53 AM

no errors yet just fork in the road.

proposed approach: 0: new prisma data column and migrate ( really dont want to do this )

1: table.data.weekday: [mondayR || tuesdayR]

2: table.data.status: { "status", "status", "status", "status" , "rain" }

// forgot about the status array is .split(), because the string is set up wrong but it's not counting against us it's overcome.

👍 number 2 sounds more sensible {"check,check,check,check,check"} but its one string.

frankcollins3 commented 1 year ago

willing to admit one can tone this down a bit. Checking for rain will only work when SELECTED_DAY === today.

[8:34am]