question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Documentation for adding icons to a backstage app

See original GitHub issue

Feature Suggestion

I’d like some documentation on adding icons to a Backstage app! Happy to help with this 😃.

The current links documentation reads:

NOTE: The icon field value is meant to be a semantic key that will map to a specific icon that may be provided by an icon library (e.g. material-ui icons). These keys should be a sequence of [a-z0-9A-Z], possibly separated by one of [-_.]. Backstage may support some basic icons out of the box, but the Backstage integrator will ultimately be left to provide the appropriate icon component mappings. A generic fallback icon would be provided if a mapping cannot be resolved.

As far as I can tell, however, how to set this up is not documented:

screenshot of a search for icon on backstage.io with no relevant results

This has been asked several times in the Backstage discord. (examples: 1, 2)

Possible Implementation

  • Add documentation somewhere about the icons field in createApp
  • Link to that documentation from the links note (or just place those docs inline)
  • bonus 1 provide some docs on creating custom icons! rather than just mapping in material-ui
  • bonus 2 provide an example or helper function to ingest all material ui icons into the icon mapping. currently i can’t figure out a better way to do it than manually mapping in every material-ui icon (as in, importing every single icon and then adding it to the object with a key being its name - maybe in lower, camel, or snake case.) given this library is included by default in a backstage app i think it makes sense to allow for easy inclusion of all of its icons

Context

One thing to note here is that in the example entity there is a link with the icon dashboard. Given “Backstage may support some basic icons out of the box, but the Backstage integrator…” it’s easy to assume that dashboard is a “basic icon out of the box”, even though it’s not included and falls back to the fallback icon.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
zhammercommented, Sep 16, 2022

yep i think so!

1reaction
awanlincommented, Jul 18, 2022

I’ve submitted PR #12696 to work towards filling this gap in the documentation

Read more comments on GitHub >

github_iconTop Results From Across the Web

Customize the look-and-feel of your App - Backstage.io
Documentation on Customizing look and feel of the App. ... Icons. So far you've seen how to create your own theme and add...
Read more >
Backstage Rootly Plugin - Roadie.io
See Rootly data and incidents directly inside Backstage.
Read more >
@backstage/plugin-catalog - npm
Start using @backstage/plugin-catalog in your project by running `npm i ... TypeScript icon, indicating that this package has built-in type ...
Read more >
Editing Your Profile on iOS - Backstage + StarNow Help Center
You can edit your profile directly on our app for iOS. ... C. Tap the chain-link icon to copy the URL to your...
Read more >
Start Backstage with the File tab - Microsoft Support
Learn how to navigate and use the backstage view when you start a Microsoft ... Hover your cursor over the file name and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found