InvenTree icon indicating copy to clipboard operation
InvenTree copied to clipboard

[FR] PUI & Category / Location / ... icons

Open wolflu05 opened this issue 1 year ago • 0 comments

Please verify that this feature request has NOT been suggested before.

  • [X] I checked and didn't find a similar feature request

Problem statement

PUI doesn't show any defined icons, neither on e.g. stock location edit icon field nor the icon on the details pages, breadcrumbs, ...

Suggested solution

Because we are now using tabler icons in PUI, the old fontawesome icons are not that easily integratabtle. In this FR I would start to suggest, that we should build our own, per instance, icon library into inventree where:

  1. all icons can be get via a single url in json format
  2. maybe the server can generate a custom sprite image with all icons available on a single picture where the icon position is sent in the json endpoint referenced in point 1
  3. per default we should make the tabler icons available? But maybe add the font awesome icons as opt-in function?
  4. admins can upload custom icons (not all icons users want are available on the tabler/FA icons package)
  5. clients can the use this information to provide consistent icons across systems (PUI, App, reports, ...) with no differences between icon package dependency versions

Of course we would need some migration from front awesome icons to the new icon system, but that is TBD.

Currently icons are integrated in:

  • location icon
  • location type icon
  • category icon But that could be later extended, if we build this generic, and maybe add an icon field type to the PUI form framework.

Describe alternatives you've considered

Just add the font awesome icons to PUI too, but I think that's not a very clean solution, and users also are not able to define custom icons. Because that's also a big point for me, not all icons are available in the font awesome icons package.

Examples of other systems

No response

Do you want to develop this?

  • [ ] I want to develop this.

wolflu05 avatar May 15 '24 21:05 wolflu05