glpi-project / glpi

GLPI is a Free Asset and IT Management Software package, Data center management, ITIL Service Desk, licenses tracking and software auditing.
https://glpi-project.org
GNU General Public License v3.0
4.34k stars 1.3k forks source link

Service catalog: add categories #18338

Closed AdrienClairembault closed 13 hours ago

AdrienClairembault commented 1 week ago

Checklist before requesting a review

Description

Add categories to the service catalog. The service catalog will display on its first page the items without categories + the root categories + the items inside the root categories.

If there are sub categories inside the root categories, they are also displayed but without their content (thus we display only 2 levels on the service catalog at a time).

Right now we only use categories and form in the tree but we are very likely to display other data later on (like FAQ articles) so I've made the design generic using the standard leaf/composite pattern. This increased the size of these changes as it required a bit more interface/provider to set up the code but hopefully it should make it simple to add new item types to the tree later on.

Breadcrumbs will be added later (so if you enter a category you can't back out currently).

Screenshots :

image