Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Implement Routing #2

Open
zverev opened this issue Dec 1, 2016 · 4 comments
Open

Implement Routing #2

zverev opened this issue Dec 1, 2016 · 4 comments
Labels

Comments

@zverev
Copy link
Contributor

zverev commented Dec 1, 2016

Suggested routes:

  • /:categoryId - map without sidebar showing current category items
  • /:categoryId/items - opened sidebar with a list of category items
  • /:categoryId/imtes/:itemId - detailed item info (also displayed in sidebar; accordeon-style)

When user clicks item on the map, he gets /:categoryId/imtes/:itemId
When user switches a tab in the sidebar, he gets /:categoryId/items
When user closes sidebar, he gets /:categoryId

@oleksmarkh
Copy link
Contributor

Do we want to handle multiple generic categories? If so, could you please mention some examples. If not, perhaps, it could make sense to maintain more explicit routes, such as <some_category>/items/:id, implying an :id being particularly attached to items. This is rather UX suggestion, in fact.

@zverev
Copy link
Contributor Author

zverev commented Dec 1, 2016

You mean, could multiple categories be selected at one time?
It is a good question. Lets simplify our job and consider answer to be no 🙂
At least, previous version of crisismap didn't support this feature.

@oleksmarkh
Copy link
Contributor

I'm fine with "no" for now. @Godnik, what do you think?

@oleksmarkh
Copy link
Contributor

oleksmarkh commented Dec 8, 2016

Definitions themselves are described/discussed on Crisismap/crisismap-backend#1.

I assume, this task is rather about setting up the router, wiring it with simplistic data fetching module (to be introduced in #7).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants