Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save home page tiles to database #18163

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AdrienClairembault
Copy link
Contributor

@AdrienClairembault AdrienClairembault commented Oct 30, 2024

Checklist before requesting a review

  • I have performed a self-review of my code.
  • I have added tests that prove my fix is effective or that my feature works.

Description

Move the hardcoded tiles of the home page into the database.
Next step is allowing tiles to be added and removed from GLPI's UI.

While a tile is technically just a title + a description + an illustration + a link, there are 3 distinct types to ease configuration:

  • GlpiPageTile: harcoded link to a GLPI page.
  • ExternalPageTile: link to any page.
  • FormTile: link to a form.

Having these dedicated types will make it easier for user to configure their own tiles later as it abstract the 'link' away from the user in most cases (e.g. no need to know the URL of the service catalog page to add a "ServiceCatalog" tile).

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

Successfully merging this pull request may close these issues.

1 participant