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
273 stars 35 forks source link

Feature Request: Persistent Stats #88

Closed arunbhardwaj closed 3 months ago

arunbhardwaj commented 3 months ago

This PR implements a requested feature (#44, #48, etc.) to maintain the LeetHub stats across different installations of LeetHub for a user. It stores the user's local stats in their specified GitHub repo and retrieves these stats once the user has authenticated and linked the repo. As such, user stats are tied to the repo linked during setup. Linking a different repo will clear your local stats, and pull in any stats from the new repo. To start a fresh session with zero stats, please do one of the following:

  1. Click the "Reset all stats" in the extension popup panel, which will delete the local and GitHub-stored stats Screenshot 2024-06-25 122739

  2. Elect to create a new repo instead of linking an existing one

Notes: