Skip to content

Conversation

@jkachel
Copy link
Contributor

@jkachel jkachel commented Jul 26, 2024

What are the relevant tickets?

n/a

Description (What does it do?)

The topic icons are hard-coded in the RootTopicIcon component. Those topics have changed, though - in #1275 we've changed the name of some root topics and added others, so this fixes the map in RootTopicIcon so that it matches the new setup.

How can this be tested?

Load the homepage. You should see icons in the Browse by Topic section and they should match the root icons listed in the topics.yaml file (or in the database).

This really requires a refactor to use the topics that are specified in the API - this is a quick fix so the topics code can be released sooner.
@jkachel jkachel added Needs Review An open Pull Request that is ready for review product:mit-open Issues related to the MIT Open product labels Jul 26, 2024
@jkachel jkachel merged commit 5ac00f7 into main Jul 26, 2024
@jkachel jkachel deleted the jkachel/remap-topic-icons branch July 26, 2024 17:51
This was referenced Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review An open Pull Request that is ready for review product:mit-open Issues related to the MIT Open product

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants