[ADR required] Add breadcrumbs technology
Closed this issue · 1 comments
In some of our projects we use breadcrumbs on front end. Figure out if it's modular enough and try to add it to this template.
Initially breadcrumbs were designed to work assuming that user always navigates from root view. Now we know that this mentality was obviously flawed. What when user had bookmarked a subpage? When that subpage is refreshed, we have to ::breadcrumbs/set
a collection with a display name and a url for each breadcrumb.
Let's assume that my url is deterministic enough for the app to be able to extract ids of the entities we are interested in. So that if my url is /#/channel/111/topic/222
then I know that I'll have two breadcrumbs:
- channel breadcrumb where, to get its title, I need to know what's the name of the channel entity of id 111.
- topic breadcrumb where, to get its title, I need to know what's the name of the topic entity of id 222.
This scenario is already very situational so it's not a good fit probably. But I want to emphasize one problem more with it:
Technically I could simply dispatch ::get-channels
and, once the result is in, find the one that has id 111. But what if I have pagination? I might simply not find it then.