tscircuit / snippets

https://tscircuit.com
MIT License
8 stars 20 forks source link

Add support for unstarring a snippet #197

Open seveibar opened 1 day ago

seveibar commented 1 day ago

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 commented 1 day ago

/bounty $10

algora-pbc[bot] commented 1 day ago

💎 $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 bounty • Share on socials

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

/attempt #197

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

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

algora-pbc[bot] commented 1 day ago

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