This PR encompasses the Landing page UI (not yet fine-tuned) along with routing to appropriate pages from home.
Related Issues
user and targetArticle state unused (will be needed in future) see comments lines15 & 16 App.tsx
Refactor ArticleCard.tsxto have handling func -> set the state of targetArticle in App.tsx to be passed as props to Article.tsx
line 46 ArticleCard.tsx -> see comment -> change routing endpoint once data is being consumed
App.tsx lines 27, 32, 37, 52, 54 -> change routes oncer data is being consumed -> see line 53 for example
MuiDrawer.tsx lines 29, 32 -> change routes oncer data is being consumed
MuiDrawer.tsx line 36 -> reference comment -> will need to build out a "Favorites page"
In future iterations the Landing OutlineCards should link to the sign in page if user is not signed in -> with the exception of the education service card
Sign in page needs button to link to create account
When account is created, and POST is successful, route the user to the Dashboard page
Landing view - Basic routing
Description
This PR encompasses the Landing page UI (not yet fine-tuned) along with routing to appropriate pages from home.
Related Issues
15 & 16 App.tsx
ArticleCard.tsx
to have handling func -> set the state oftargetArticle
inApp.tsx
to be passed as props toArticle.tsx
46 ArticleCard.tsx
-> see comment -> change routing endpoint once data is being consumedApp.tsx lines 27, 32, 37, 52, 54
-> change routes oncer data is being consumed -> see line 53 for exampleMuiDrawer.tsx lines 29, 32
-> change routes oncer data is being consumedMuiDrawer.tsx line 36
-> reference comment -> will need to build out a "Favorites page"Screenshots (if applicable)
https://github.com/Ringworm-Relief/rr-frontend/assets/144856487/bd1385f4-02c9-490c-b463-249f74b68772
Changes Made
Add structural UI to Landing page
Add create account page and form - using mock data RN to test fake post (console.log)
Add basic routing -> not building out components, adding h2 to ensure the page is correct
Add Drawer to home page with additional menu options, including sign in, dashboard, etc.
Testing
Internet is being wack, my attempts to install Cypress were unsuccessful (No really..)
Cypress will need to be installed by others, and testing done for this branch on a new one
Checklist-
[x] The code follows the project's coding standards.
[ ]Unit tests have been added or updated to cover the changes.
[x] Documentation has been updated to reflect the changes (if applicable).
[x] The code compiles without errors
[ ] The changes have been tested locally and pass all relevant tests.
[ ] All new and existing tests pass.
[x] The pull request has been reviewed by at least one other contributor.
Reviewer Instructions
Please, pretty please, read the entirety of this document.
Deployment Notes
No deploy at this time
Additional Information
Please review files changed in details, this PR is not exhaustive