jandony / react-workout

Collaborative react workout project
3 stars 0 forks source link

Routing the App (let's keep building on this) #11

Open jandony opened 4 years ago

jandony commented 4 years ago

Muscle Group Cards (on Exercise Finder tab):

  1. Route each card to it's own "results page" of workouts that fall under each category (add route in arrays)
  2. Find a way to categorize each exercise (maybe create another array for just categories and filter?)

Your Workouts

  1. By clicking a Workout (playlist), you will see the individual list of exercises. Each workout should be it's own route
AvatarGreggles commented 4 years ago

@jandony So, for the first part, for Muscle Group Cards, do you envision say, a user clicks, the Neck Card, that it will replace the excercise finder with a list of the Neck related excercies and the URL would be like http://xxxxx.com/neck-workouts

AvatarGreggles commented 4 years ago

I also think we can condense the exercise finder route into a sidebar component which allows the user to easily navigate the exercises even when the results are shown? If you need me to draw up a sketch of what I mean let me know :)

jandony commented 4 years ago

Yup! That's the only way I know how to route, but it doesn't seem very dynamic though huh?

AvatarGreggles commented 4 years ago

@jandony See my comment above, this way would make it more dynamic I feel.

jandony commented 4 years ago

Ohhh I see. Would we replace the current muscle group cards with a sidebar? Or would we have both?

AvatarGreggles commented 4 years ago

If we have a fixed sidebar that is present on all pages (its the main focus of the app is to navigate the exercises) then we can allow for the user to search and add exercises whenever they want.

AvatarGreggles commented 4 years ago

The cards can be condensed down into more like a nested listed that expanded out with exercises instead of updating the route and navigating to different pages and away from the current context.

AvatarGreggles commented 4 years ago

I could whip up the component anyway AND keep the current exercise finder so we can compare and use both if we want to.

jandony commented 4 years ago

Sounds good to me! :) Let's try it!