Closed rileyhgrant closed 5 months ago
Hiya @josephinelee1234
I'm realizing now that it may be more useful for me to do some of the boilerplate stuff (routing, adding temporary dummy data, add a basic boilerplate react component) in a branch that you can check out, so that you can focus primarily on developing the React component.
Let's plan on discussing and forming a plan on how to go about this, and have you practice/review the Feature Branch workflow with the README.md
issue (#147).
As part of implementing the Dashboard per Sam's specifications and requirements, a visually accurate and functional Frontend component is neccessary.
This is as good a place as any to start.
The
frontend
directory holds all the frontend code, this is written with TypeScript, React, and ChakraUI, amongst other things. By using temporary, unchanging, data stored in a JSON file locally on the frontend, the Dashboard component can be developed mostly in isolation from the other required parts (API and Database changes)main
branch, e.g.git checkout -b jl/add-frontend-dashboard
git branch -v
frontend/src/components
create a new directory calledDashboardPage
. This will hold all the components and code used for theDashboard
page, in the same way thatUsersPage
, orVariantListPage
have their own directoryDashboardPage
directory, create a file calledDashboardPage.tsx
. This will store much of the code for the DashboardPage a. Consider referencingSystemStatusPage.tsx
or another such file in creating this initially"/dashboard"
) so that you can navigate to the page you're developing. a. Routes are created infrontend/src/App.tsx
, towards the bottom of the file.docker compose up
to start all services locallyhttp://localhost:3000/dashboard
- so that you can see how it lookstemporary_data.json
file to be used to populate data in theDashboard
componentDashboard
component.Okay, @josephinelee1234, I think this is an OK starting point, but at the end it may have some big 'draw the rest of the owl' (google it if you're curious) energy. Depending on how familiar you feel with this stack, it may be worth it to plan on having a pair programming session at some point when we both have time, I've found those can be very helpful!