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

Bugfix: Empty Favorites navigation triggers missed icon mapping, breaks modal #136

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

0aveRyan
Copy link
Member

@0aveRyan 0aveRyan commented Dec 6, 2024

Proposed changes

In #127 changing of Icons, I didn't address the NoResults view for favorites which is referencing icon maps that no longer exist.

Currently clicking the Favorites navigation item with Favorites stored works just fine. Clicking Favorites with no favorites triggers the <NoResults /> component and the missing icons cause the modal to crash.

  1. This corrects the icon mappings for the two categories there.
  2. This removes the CSS class previously needed for WordPress icons that isn't required for Lucide to inherit the proper colors.

Production

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update
  • Refactoring / housekeeping (changes to files not directly related to functionality)

Development

  • Tests
  • Dependency update
  • Environment update / refactoring
  • Documentation Update

Video

favorites-bug.mp4

Checklist

  • I have read the CONTRIBUTING doc
  • I have viewed my change in a web-browser
  • Linting and tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

@0aveRyan 0aveRyan requested a review from wpalani December 6, 2024 23:26
@wpalani wpalani merged commit 1dfe207 into main Dec 10, 2024
@wpalani wpalani deleted the fix/empty-favorites-breaking-render branch December 10, 2024 03:26
@wpalani wpalani mentioned this pull request Dec 10, 2024
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants