euanwm / OpenWeightlifting

Repository that is deployed for the OpenWeightlifting site
https://www.openweightlifting.org
BSD 3-Clause "New" or "Revised" License
31 stars 21 forks source link

Improve lift reporting functionality #317

Open euanwm opened 3 months ago

euanwm commented 3 months ago

Is your feature request related to a problem? Please describe. Lift reporting feature when left open will continue to post into the Discord channel. Also, it is possible for users to report a lift multiple times.

Describe the solution you'd like Some form of short lifespan cookie check for reporting lifts. A hash value of the reported lift that is checked and disables the lift report function for that specific lift or similar.

Describe alternatives you've considered Handling this through the backend would require a lot more effort and would involve the FE dealing with various response types.

euanwm commented 3 months ago

@rsbrowne / @mountclear - If either of you have time to do a little fix on this, i'd much appreciate it. I've added the report component to the lifter history page and even after the popup closes, it keep spamming the api.

https://www.openweightlifting.org/lifter?name=Euan%20Meston

I'll add you to the channel if you want to test it but it's visible on network calls.