Skip to content

Add star feature to save important questions #357

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

KamathAnjali
Copy link

✨ Feature: Starred Questions on Leetcode Patterns Page

🔧 What’s Added

  • Star Toggle per Question

    • Each question now has a clickable star icon
    • Clicking the star toggles its active state with a glow animation
  • 📌 Persistence via Local Storage

    • Starred questions are saved to the browser’s local storage
    • Starred state persists across page reloads
  • 📋 “View Starred Questions” Button

    • Filters the list to only show starred problems
    • Useful for revisiting important or tricky questions
  • 🔔 Toast Notifications

    • Displays a brief message when a question is starred or unstarred
    • Enhances UX with immediate feedback

✅ Why This Is Useful

  • Helps users bookmark and track problems they want to revisit
  • Maintains context across sessions without needing login or backend storage

@KamathAnjali
Copy link
Author

Hi @seanprashad , I’ve submitted a PR for the star feature
Let me know if you’d like anything modified or improved.

Thanks!

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