[FEATURE] Needing to restart gateway and designer after changing/adding icon libraries

I just discovered that you need to restart both the Gateway and every Designer when you’re importing new icon libraries. I’m onto my 6th restart so far… it’s getting a bit old testing a new icon library and making incremental changes…

In 8.1 you didn’t need to restart the gateway. You didn’t always have to restart the designer either, but it was always a bit hit and miss.

Can the project file scan please be made to work with icon library updates? and the Update Project button in the DEsigner be made to import these changes?

(I also found that the icon library I imported is called “icons” when it’s imported, regardless of my svg library name)

1 Like

and how i can import a new icons library? :sweat_smile:

Check this topic

I’ve tried it and it is not working. no matter what i try. it never worked.
the best i can get is adding the icon library to the drop list. but icons never get displayed. but the path is working. and i keep getting error in the log

There’s something wrong with the relevant files. Could you please share the files you’re using? Not snippets - attach the actual files, please.

No, but you can use the config scan and it will pick up icons just fine.

The name of the icon library is derived from the resource name, which will be the name of the folder containing the resource files. In other words, the icon library name will be custom here, not whateverYouWant.svg:

I'm aware of two issues:

  1. The preview of the icon library you get in the designer will never update after the designer has started. This was just laziness on our part, and means you do have to do a full designer restart for the preview to update.
  2. There appears to be some internal caching of the active 'page' you're looking at in the designer. I was able to bust this cache just by shift + right clicking the view and selecting 'Refresh Browser'. Make sure you've saved any pending changes to the view before you do this:

All that said - this "worked" for me, with the following steps:

  1. Make a change to the icon library SVG file on disk.
  2. Hit the scan endpoint for gateway config.
  3. Refresh the active Perspective view in the designer (or just close and reopen it).
  4. Manually enter the icon I just added.

I'm not going to blow smoke and pretend this is great UX, but it's also not as catastrophic as having to restart both the gateway and the designer with every change.

remixYes sure. these are the files attached.

remix

resource.json (185 Bytes)

config.json (36 Bytes)

remix.zip (1.6 MB)