QasimWani / LeetHub

Automatically sync your leetcode solutions to your github account - top 5 trending GitHub repository
https://chrome.google.com/webstore/detail/leethub/aciombdipochlnkbpcbgdpjffcfdbggi
MIT License
3.9k stars 1.37k forks source link

New LeetCode UI #366

Open FNSYacoub opened 1 year ago

FNSYacoub commented 1 year ago

Since the 1st of October 2022, LeetCode has a new UI and submission process which is not compatible with how the plugin works, thus it stopped working. I think the plugin needs an urgent update to work with the new UI.

QasimWani commented 1 year ago

it seems to work fine now? Can someone else confirm this? I tested it with a new problem and an older problem I had already solved before.

B-soto commented 1 year ago

@QasimWani Looks like the bug is still present. Latest leethub code over the last 6 days is not being added to my git repo

QasimWani commented 1 year ago

hmm so leetcode update only seems to reflect on my new leetcode account. Talked to few folks and it seems like the UI update hasn't reflected across al leetcode users. Let's discuss this further in our discord (see #general channel)

arm210402 commented 1 year ago

Is the code updated or not for the new UI ?? @B-soto

QasimWani commented 1 year ago

no code has been pushed to LeetHub. leetcode UI hasn't been changed on my account for some reason. I don't think leetcode UI is universally applied?

kshitij-srivastav commented 1 year ago

I think the bug is still there for the new UI

dashingquark commented 1 year ago

I still have no code updating. old account(pre Oct 1st) , deleted and reinstalled repo

QasimWani commented 1 year ago

use the older leetcode UI. Click on your profile and click "revert to old version"

image

I won't have time maintaining the repo on a daily basis. But happy to look into PR's for this issue.

arm210402 commented 1 year ago

now using older version 👍

thegreekgoat98 commented 1 year ago

use the older leetcode UI. Click on your profile and click "revert to old version" image

I won't have time maintaining the repo on a daily basis. But happy to look into PR's for this issue.

Thanks this worked.

dragneel786 commented 1 year ago

Don't wanna sound pushy, but can you please figure out how to solve this issue, as a temporary fix reverting to older version is fine, but I really love the leetcode new UI and I really really love this extension. So please help here!!

andreidimaano commented 1 year ago

Hey Everyone, I inspected the LeetCode success page on the new UI. In the source code for this repo we have this:

const successTag = document.getElementsByClassName('success__3Ai7');

The new UI doesn't have this success class name but I found that the tag leading-6 seems to be unique and associated with Acceptance. i don't have time to code it but maybe someone can use this and test it out with the new UI? @QasimWani

Screen Shot 2022-10-13 at 5 38 57 PM
heykush commented 1 year ago

Hi @QasimWani @andreidimaano, I have tried a possible solution of yours to change the tag, but it didn't work out because leetcode has updated my tag in New UI. This need to review the whole file of the leetcode.js. Let me know if anyone will do it; I love to help with that.

ps: working fine with Old UI

aguynamedloren commented 1 year ago

Happy to help debug and investigate a fix here if I get the new UI, but for now, it looks like I'm still on the old UI.

For context, can someone with the new UI post a screenshot?

IshaanAnsari commented 1 year ago

@aguynamedloren LC

its-Aman commented 1 year ago

Hey @QasimWani , can you please let us know by when we can expect the fix for the new UI? I surely do not want to let go of this awesome feature off my list. I'm holding on to the old UI just because Leethub not supporting it. Lots of <3 and support.
Thanks.

dada878 commented 1 year ago

Hello, I'm trying to fix the extension for the new LeetCode UI, all will be done but I didn't think of any way to get the problem description, because the element always destroys when I switch to the submissions tab. Does anyone have an idea? thanks.

jaygala223 commented 1 year ago

Hi, I think the issue is still there with the new UI. Any update on the fix? Also, how can I help?

swapnilxi commented 1 year ago

no code has been pushed to LeetHub. leetcode UI hasn't been changed on my account for some reason. I don't think leetcode UI is universally applied?

I am still facing same issue because of the new UI

subhroacharjee commented 1 year ago

Still facing the same issue waiting for an update

raunak111 commented 1 year ago

I resolved it. Just change back to the Old UI in Leetcode, using the drop-down menu option, that comes after clicking your profile icon

Note: There are 2 sections where you can switch to the old UI. The submission screen and the coding area. Make sure both are back to OLD UI

subhroacharjee commented 1 year ago

That's just a patch for now, what if Leetcode removes the old version? need a better solution for this

Singhal97dhruv commented 1 year ago

I first time using this LEETHUB and for seeing the functionality i submitted extra submissions but none of them added in the leethub id or github. What is wrong with it?

LundPiyush commented 1 year ago

@QasimWani shifted to older version of UI. Although , not impressed with new version of leetcode but we should be able to find the solution for newer version as well. Leethub extension should also work in newer UI too.

LundPiyush commented 1 year ago

I first time using this LEETHUB and for seeing the functionality i submitted extra submissions but none of them added in the leethub id or github. What is wrong with it?

Try shifting to older version of leetcode

varun-s22 commented 1 year ago

Is this issue still open?, cause i think i can take this one

QasimWani commented 1 year ago

yes its very much an open issue and would need help figuring this out :D

On Sat, Dec 24, 2022 at 10:20 AM varun @.***> wrote:

Is this issue still open?, cause i think i can take this one

— Reply to this email directly, view it on GitHub https://github.com/QasimWani/LeetHub/issues/366#issuecomment-1364477923, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKN2GQRXP3PWXC7HWBTKXVTWO2P4JANCNFSM6AAAAAAQ4XLC2Y . You are receiving this because you were mentioned.Message ID: @.***>

varun-s22 commented 1 year ago

yes its very much an open issue and would need help figuring this out :D On Sat, Dec 24, 2022 at 10:20 AM varun @.> wrote: Is this issue still open?, cause i think i can take this one — Reply to this email directly, view it on GitHub <#366 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKN2GQRXP3PWXC7HWBTKXVTWO2P4JANCNFSM6AAAAAAQ4XLC2Y . You are receiving this because you were mentioned.Message ID: @.>

Ok I'll be submitting a PR by tomorrow, I think the basic functionality works, but there are few things I want to ask, to understand the code-base a bit better.

Ahmed-Shukri02 commented 1 year ago

Hi @QasimWani, I've just submitted a PR to the dev branch that should fix the issue of code not being submitted to GitHub from LC. #464 (comment)

There's still some more work to be done though, hence it being on the dev branch. Give it a test on your local machine and let me know if there are any issues

Asharalikhan4 commented 1 year ago

New leethub is still not pushing the answer to the github. please fix this. Using older UI leetcode right now.

varun-s22 commented 1 year ago

I have submitted a PR regarding this issue, Will get to it, when someone reviews it

SUSHANT12PRABHU commented 1 year ago

Yes same issue, lets wait!

Asharalikhan4 commented 1 year ago

Yes same issue, lets wait!

You can change leetcode UI till the issue get fixed.

jpsxlr8 commented 1 year ago

I think still the problem persists! Anyone got any updates regarding new UI ??

mrFahrenhiet commented 1 year ago

I think still the problem persists! Anyone got any updates regarding new UI ??

Yes I am facing this problem as well. There only seems to be one solution, i.e., to revert back to old version

Screenshot 2023-01-17 at 12 20 51 AM
codentacos commented 1 year ago

Also experiencing this issue. Any updates on a fix coming for this?(Besides reverting to old UI)

Ahmed-Shukri02 commented 1 year ago

Also experiencing this issue. Any updates on a fix coming for this?(Besides reverting to old UI)

I've made a pull request that should fix the issue. It should be in prod soon. Whilst you are waiting for the update, you can fork my repo and use it locally on your machine:

  1. Fork this repo and clone to your local machine
  2. Change to the patch_1 branch by typing git checkout patch_1 in your command line
  3. Go to chrome://extensions
  4. Enable Developer mode by toggling the switch on top right corner
  5. Click 'Load unpacked'
  6. Select the entire LeetHub folder
  7. Run "npm run setup" to install the developer dependencies
plgrazon commented 1 year ago

Also experiencing this issue. Any updates on a fix coming for this?(Besides reverting to old UI)

I've made a pull request that should fix the issue. It should be in prod soon. Whilst you are waiting for the update, you can fork my repo and use it locally on your machine:

  1. Fork this repo and clone to your local machine
  2. Change to the patch_1 branch by typing git checkout patch_1 in your command line
  3. Go to chrome://extensions
  4. Enable Developer mode by toggling the switch on top right corner
  5. Click 'Load unpacked'
  6. Select the entire LeetHub folder
  7. Run "npm run setup" to install the developer dependencies

Hi Ahmed,

Great work! I forked your repo but I'm getting the 422 issue when submitting. Is this a known bug?

mayankjain25 commented 1 year ago

Also experiencing this issue. Any updates on a fix coming for this?(Besides reverting to old UI)

I've made a pull request that should fix the issue. It should be in prod soon. Whilst you are waiting for the update, you can fork my repo and use it locally on your machine:

  1. Fork this repo and clone to your local machine
  2. Change to the patch_1 branch by typing git checkout patch_1 in your command line
  3. Go to chrome://extensions
  4. Enable Developer mode by toggling the switch on top right corner
  5. Click 'Load unpacked'
  6. Select the entire LeetHub folder
  7. Run "npm run setup" to install the developer dependencies

This still does not work. Have tried it in the new UI but the codes aren't getting pushed

nabilnaja commented 1 year ago

Also experiencing this issue. Any updates on a fix coming for this?(Besides reverting to old UI)

I've made a pull request that should fix the issue. It should be in prod soon. Whilst you are waiting for the update, you can fork my repo and use it locally on your machine:

  1. Fork this repo and clone to your local machine
  2. Change to the patch_1 branch by typing git checkout patch_1 in your command line
  3. Go to chrome://extensions
  4. Enable Developer mode by toggling the switch on top right corner
  5. Click 'Load unpacked'
  6. Select the entire LeetHub folder
  7. Run "npm run setup" to install the developer dependencies

Hi Ahmed,

Great work! I forked your repo but I'm getting the 422 issue when submitting. Is this a known bug?

I had the same problem when I was using an existing repo. It worked when I created a new one from leethub screen. Hope this helps you.

plgrazon commented 1 year ago

Also experiencing this issue. Any updates on a fix coming for this?(Besides reverting to old UI)

I've made a pull request that should fix the issue. It should be in prod soon. Whilst you are waiting for the update, you can fork my repo and use it locally on your machine:

  1. Fork this repo and clone to your local machine
  2. Change to the patch_1 branch by typing git checkout patch_1 in your command line
  3. Go to chrome://extensions
  4. Enable Developer mode by toggling the switch on top right corner
  5. Click 'Load unpacked'
  6. Select the entire LeetHub folder
  7. Run "npm run setup" to install the developer dependencies

Hi Ahmed,

Great work! I forked your repo but I'm getting the 422 issue when submitting. Is this a known bug?

I had the same problem when I was using an existing repo. It worked when I created a new one from leethub screen. Hope this helps you.

Yea. That's what I did as well, made a new repo then switched to the old one.

mayankjain25 commented 1 year ago

Also experiencing this issue. Any updates on a fix coming for this?(Besides reverting to old UI)

I've made a pull request that should fix the issue. It should be in prod soon. Whilst you are waiting for the update, you can fork my repo and use it locally on your machine:

  1. Fork this repo and clone to your local machine
  2. Change to the patch_1 branch by typing git checkout patch_1 in your command line
  3. Go to chrome://extensions
  4. Enable Developer mode by toggling the switch on top right corner
  5. Click 'Load unpacked'
  6. Select the entire LeetHub folder
  7. Run "npm run setup" to install the developer dependencies

Hi Ahmed, Great work! I forked your repo but I'm getting the 422 issue when submitting. Is this a known bug?

I had the same problem when I was using an existing repo. It worked when I created a new one from LeetHub screen. Hope this helps you.

Yea. That's what I did as well, made a new repo then switched to the old one.

Here's what I did: 1) Had an old repo that was linked to the original LeetHub extension. 2) I installed this new LeetHub-Test extension built by @Ahmed-Shukri02 3) I linked my previously exisiting repo to this extension 4) Tried submitting a code, but it was not pushed to GitHub (with the new LeetCode UI) 5) Created and linked a new repo with this extension 6) Tried submitting again, code still did not get pushed to the new repo 7) Linked my older repo again, but the code still was not pushed

I don't understand what is wrong here. Please check this out. (btw kudos to @Ahmed-Shukri02 for coming up with the fix)

Ahmed-Shukri02 commented 1 year ago

Hi Ahmed,

Great work! I forked your repo but I'm getting the 422 issue when submitting. Is this a known bug?

Hi @plgrazon, sorry for the late reply but yes this is a known issue that is found even on the old version of leethub for old leetcode UI #486. I don't really understand it and I might be wrong but I think it has something to do with trying to update a solution already in your repository from a device that isn't storing the commit's SHA in your chrome storage (for example if you completed Two Sum on one device and tried to commit it again to the same repo on another device or re-initializing leethub on the same device). It's quite annoying but a good quick fix suggested by @nabilnaja is to just make a new repo

This still does not work. Have tried it in the new UI but the codes aren't getting pushed

@mayankjain25 Right now you may be on the main branch which is quite outdated. Sorry for the confusion, I haven't made that super clear and I might merge the working version onto main to make it less confusing.

My current working version is on the patch_1 branch. For now you can access it by running git checkout patch_1 on the bash terminal you cloned the repo on.

jals413 commented 1 year ago

Can we get an update regarding the fix of this issue ?

nabilnaja commented 1 year ago

It doesn't push the solution anymore. it's since May 17.

@Ahmed-Shukri02 Do you have any idea why please?

Thank you.

varun-s22 commented 11 months ago

Turns out Leetcode got updated once again, and this time it resembles the previous original result page. I think now this can be integrated with the new UI :) Will work soon, if @Ahmed-Shukri02 or someone reviews on it

lokeshs333 commented 10 months ago

its not pushing the code to github please fix the issue

Sami-AlEsh commented 10 months ago

waiting for any update ...

varun-s22 commented 10 months ago

uhmm ok i'll have a look at this once again.. and if @QasimWani or someone could review it, then that would be nice else you can use my public fork for the same I'll take a look in a week or so ;)

ADITISHARMA-22 commented 9 months ago

yes its not pushing the code from leetcode to github .