-
Notifications
You must be signed in to change notification settings - Fork 2
Description
If there is < 2 items in a step in the navigation from project to aspect to patterns, Mote should simplify the user's life by automatically redirecting to the next step which has >2 items.
To illustrate, assuming the following file tree:
.
└── mote
└── projects
└── my-project
├── website
We have only one project (my-project), and one aspect (website). Right now, when a user browses to myproject.com/mote they are greeted with a navigation that forces them to navigate manually through to the pattern library, despite there being only one possible path to navigate.
What I am proposing is that in the event of there being, for example, one 'project' and one 'aspect', that /mote automatically redirects to the pattern library - myproject.com/mote/project/my-project/website/.
If there is one project and two aspects, it would then redirect to the aspects view - myproject.com/mote/project/my-project/.
If there are two projects and one aspect each, it would allow the user to select the project and it would navigate directly to the pattern library, skipping the 'aspect' part.
Finally, if there is only one project, one aspect, and one category of pattern (e.g Atoms), it would redirect directly to Atoms.