Shift3 / boilerplate-client-react

The Bitwise standard starting point for new React web projects.
7 stars 10 forks source link

Adds homepages for each role #698

Closed joshwingreene closed 1 year ago

joshwingreene commented 1 year ago

Changes

  1. Added a HomeRoutes component that will render each homepage depending on the user's role. It is route guarded by the RequireAuth component.
  2. Added relevant translations for each homepage
  3. Added a Home nav button. This will cause the user to navigate to the "/" route path, which is handled by the HomeRoutes component.
  4. Changed the icon of the Directory nav button
  5. Clicking on the BW icon will now direct the user to the "/" route path

Purpose

Testing Steps

  1. Pull in the changes to your local copy of this branch and run it alongside the dj_starter_demo repo.
  2. Navigate to the home page and change the current language to Spanish
  3. Create either an editor or a user and navigate to the home page

Screenshots

admin-homepage

user-home-page

editor-home-page

joshwingreene commented 1 year ago

Each role in the system should have their own Homepage