arunbhardwaj / LeetHub-2.0

Automatically sync your leetcode solutions to your github account - with some updates to keep it working
https://chrome.google.com/webstore/detail/leethub-v2/mhanfgfagplhgemhjfeolkkdidbakocm
MIT License
242 stars 18 forks source link

Feature Request: Manually sync specific submission #71

Closed StokerBR closed 1 month ago

StokerBR commented 2 months ago

Is your feature request related to a problem? Please describe. Yes, sometimes the extension doesn't automatically sync when the code is submitted and approved.

Describe the solution you'd like I'd like for us to be able to manually sync the currently opened submission, by clicking a button [that was injected] on the submission page or on the extension popup when on a submission page for example.

Additional context It would be useful if, for example, I wanted to sync an older submission of a problem (made before installing the LeetHub extension), or that was made on another computer where I don't have the extension, or simply because it didn't sync automatically. All the information needed (stats, code, language) is on the submission page, and the description is also still there (just its tab that is hidden with display none).

Example of a possible sync button on submission page image

arunbhardwaj commented 1 month ago

@StokerBR I loved the look of the button so much that I had to implement this feature. Thank you for your effort on the design and mockup. I've implemented this in PR #81 as a beta feature. Please let me know how it works for you!

StokerBR commented 1 month ago

I just tested it and it works perfectly, exactly as I wanted! Thanks for implementing this feature and for all the work on the extension.