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

Replace our icon library @mdi/angular-material with the Google Font - Material Symbol #1663

Open
alecarn opened this issue Apr 2, 2024 · 1 comment · Fixed by #1664
Open
Assignees

Comments

@alecarn
Copy link
Collaborator

alecarn commented Apr 2, 2024

Proposition:

Remplacer notre gestionnaire d'icônes @mdi/angular-material par le système de Google Font - Material Symbol.

Différence de tailles des icones

  • @mdi/angular-material représente 795KB de transféré et 3mb en taille de ressource
  • Google Font - Material Symbol représente 399B et 631B en taille de ressource

Objectif

L'objectif est de réduire l'empreinte de la librairie en améliorant la taille de ressource téléchargé. En adoptant cette proposition on aurait un gain majeur de 399B versus 795000B de téléchargement

Analyse

Nous allons devoir remplacer tous les icones de l'application. On compte environ 60 fichiers avec des icones qui devrait être assez facile a rempalcer et à trouver les correspondances. Si aucune correspondance, on pourrait intégrer le SVG directement au niveau de la composante.

Questionnements :

  1. Est-ce qu'on gère des icones dans des configurations/BD?
  2. Pensez-vous qu'on pourrait rencontrer d'autres défis?
@alecarn alecarn self-assigned this Apr 2, 2024
@alecarn alecarn changed the title Replace our icon manager @mdi/angular-material with the icon system of Google Font - Material Symbol Replace our icon library @mdi/angular-material with the icon system of Google Font - Material Symbol Apr 2, 2024
@alecarn alecarn changed the title Replace our icon library @mdi/angular-material with the icon system of Google Font - Material Symbol Replace our icon library @mdi/angular-material with the Google Font - Material Symbol Apr 2, 2024
@mbarbeau
Copy link
Member

mbarbeau commented Apr 2, 2024

Il est possible de changer l'icone de l'outil dans la configuration / BD. Mais à première vue, c'est peu utilisé.
iCherche / terrApi retourne aussi une icone basée sur le type d'entité retourné.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment