Rebuild-Black-Business / RBB-Website

Website to help connect black-owned businesses with consumers and resources
https://www.rebuildblackbusiness.com/
MIT License
119 stars 75 forks source link

Feature/individual business pages #320

Closed mbifulco closed 3 years ago

mbifulco commented 4 years ago

Describe your PR

This PR adds a URL for each individual business sourced from Airtable. As of right now, there's not much content on those pages (just some SEO stuff, and a title) - but the pages exist! Design implementation comes next.

I'm opening this PR to get some feedback (please read below!)

Fixes #268

Pages/Interfaces that will change

lots of new URLs!

Screenshots / video of changes

image

Steps to test

  1. let this branch build (it may take a mighty long time to build on netlify the first time)
  2. visit /business/1946d007-3c76-5c4d-ac23-10e47bf759a5

TODO

mbifulco commented 4 years ago

Update - I should have the design implemented for this by the end of the weekend. There'll be some loose ends that still need to be tied up, but we should be in a semi-releasable state soon!

mbifulco commented 4 years ago

A few notes on this work:

mbifulco commented 4 years ago

I'm about to push a big ol' stack of changes to this PR. It's taking shape nicely, but there's a bunch of data on the Profile page in Figma that we don't have yet. That stuff is stubbed out here:

image

😅 I'm putting this down for the day... it's been a long sunday!

mbifulco commented 4 years ago

To do:

shapirone commented 4 years ago

Looking good! A couple small design detail tweaks/feedback

mbifulco commented 3 years ago

Allllright - I just pushed a mess of additional changes which address some of the todo items above. I think I'm still missing a bit of metadata from the API that may be needed to complete the page. This includes links to facebook/instagram/twitter/linkedin for businesses (yelp is present currently, from what I can see). I'm also not sure what the share profile CTA button at the bottom of the page should do 🤔

mbifulco commented 3 years ago

Ah hey I also removed yarn.lock to fix #330

mbifulco commented 3 years ago

Shoot one more thing - I added react-query as a dependency to the project to handle API fetching / caching / etc for individual business pages. It works like a dream and allows us to have a custom hook to make things work. Because of that, you'll also see devtools for react-query when running the project locally (but not when it is built for production). That looks like this:

image

and can be opened by clicking the little icon that sticks to the lower-left corner of the browser window: image

mbifulco commented 3 years ago

This is now hooked up to a search endpoint for airtable Ids, so the data for each page should be fully connected - check it out on the deploy preview: https://deploy-preview-320--rebuild-black-business.netlify.app/business/ashes-the-cigar-lounge!-rec4mmetqTsWYEAsE

juanri0s commented 3 years ago

Desktop looks great, nice work!

Noticed a couple misalignments on the mobile preview, I also noticed that the category image takes a good amount of time to load, aren't they static assets? image

elchris commented 3 years ago

i'm still seeing bad calls to the API on:

https://deploy-preview-320--rebuild-black-business.netlify.app/business/large-clothing-reciKTUpIWBFki1gw

/api/v1/businesses/airtable/null

mbifulco commented 3 years ago

Good catch @elchris - making that change now.

elchris commented 3 years ago

Good catch @elchris - making that change now.

... it's still passing null to the endpoint instead of the airtable record id :(

mbifulco commented 3 years ago

We're bumping into some problems getting the site to talk to the new API route - @elchris is on the case 👍

mbifulco commented 3 years ago

Ok - we pushed an update to both this PR and the API (both staging and production). That should do the trick.