Skip to content

Add favorites#9

Open
vnaumenko wants to merge 1 commit intoBLGardner:mainfrom
vnaumenko:main
Open

Add favorites#9
vnaumenko wants to merge 1 commit intoBLGardner:mainfrom
vnaumenko:main

Conversation

@vnaumenko
Copy link

@vnaumenko vnaumenko commented Feb 13, 2026

🚀 feat: Implement "Favorites" functionality

This PR completes the implementation of the "Add to Favorites" feature.

📋 Key Changes

  • Toggle Logic: The Favorite button now functions as a toggle — adding the tool if it's missing, and removing it if it's already in the list.
  • UI/UX:
    • Added visual feedback (star icon and Favorited / Remove text) for favorited tools.
    • The Favorites section now automatically hides (hidden attribute) when empty and appears when the first item is added.
    • Removed the hard limit on the number of favorite tools allowed.
  • Styling: Added .active-fav class to visually highlight the active state of the favorite button.
  • Refactoring:
    • Optimized loadTools to check favorite state during rendering.
    • Minor layout fixes (flex container for tools, button spacing).

🔧 Technical Details

  • Data is persisted in localStorage under the key prism-favorites.
  • The lists (both the main tools list and the favorites section) update reactively upon adding or removing an item.

@vnaumenko
Copy link
Author

screencast.mp4

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.

1 participant