Overview
The list of trackers displayed in the sidebar correspond to "is promoted" flag (in tracker admin). It's the same list than what is displayed in "+ new" button.
We don't modify the behaviour of "+ New" button at this stage because the impacts are quite large and it will be covered in dedicated work.
Sidebar can no longer be collapsed
As the Sidebar growth it's less and less usable collapsed. It's especially visible with promoted trackers (and later promoted kanban) as, when collapsed, we need to have a visual differentiation of each element. When it's only services, it's easy to have one icon per service but for trackers, we would have the same icon again and again => the sidebar is no longer usable collapsed.
In consequence, the sidebar can no longer be collapsed.
In order to manage the transition, there is feature flag to re-activate the feature in case of major blocker. It's a platform wide toggle, off by default.
Implementation steps
Add a feature flag to activate/desactivate the list of promoted trackers in the sidebar: all, nothing or project per project.
- Promoted trackers are listed under "Trackers" in the alphanumerical order and cannot be re-ordered (yet).
- Promoted trackers have a small "+" that allows to create a new item:
- On click, it loads on Artifact View for artifact creation.
- In the future it would be interesting to propose the artifact creation modal on top of tracker report view.
- Generate a new version of the sidebar component, release it and integrate in MediaWiki
- Be careful not to break parameter of the composant (backward compatibility for those who might stay with a previous version of it)
+ Behaviour
We don't replicate the "+ New" behaviour (like adding new stuff in milestone backlog on Taskboard) in the "+" implementation because we strive for a more predictable UI (and it's likely that this kind of magic is unknown to 99% of users). We prefer to have a strategy to implement the missing features in a consistent manner (like having a dedicated "Add to board" button on taskboard with artifact modal) rather than with magic.