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

Add support for unstarring a snippet #197

Open
seveibar opened this issue Nov 13, 2024 · 5 comments · May be fixed by #202
Open

Add support for unstarring a snippet #197

seveibar opened this issue Nov 13, 2024 · 5 comments · May be fixed by #202

Comments

@seveibar
Copy link
Contributor

Sometimes we want to unstar things instead of starring them

Image

Note that the api is supposed to return snippet.is_starred to indicate that the current user starred the snippet

@seveibar
Copy link
Contributor Author

/bounty $10

Copy link

algora-pbc bot commented Nov 13, 2024

💎 $10 bounty • tscircuit

Steps to solve:

  1. Start working: Comment /attempt #197 with your implementation plan
  2. Submit work: Create a pull request including /claim #197 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to tscircuit/snippets!

Add a bountyShare on socials

Attempt Started (GMT+0) Solution
🟢 @RohittCodes Nov 13, 2024, 7:52:10 AM #202

@RohittCodes
Copy link
Contributor

RohittCodes commented Nov 13, 2024

/attempt #197

Algora profile Completed bounties Tech Active attempts Options
@RohittCodes 1 tscircuit bounty
JavaScript, TypeScript,
HTML & more
Cancel attempt

@RohittCodes
Copy link
Contributor

should i create another route for it? the initial one would be good enough to handle the add, and remove logic if it's not starred. like toggle the button to star and remove the star.

and it may not need much work on the frontend too. @seveibar

@RohittCodes RohittCodes linked a pull request Nov 13, 2024 that will close this issue
Copy link

algora-pbc bot commented Nov 13, 2024

💡 @RohittCodes submitted a pull request that claims the bounty. You can visit your bounty board to reward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants