-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inject button/modal in new issue/PR experience structure #218
base: master
Are you sure you want to change the base?
Inject button/modal in new issue/PR experience structure #218
Conversation
Makes the extension also work in the new (currently in Beta) issue/PR experience that users can opt into at the moment.
Note that I was not able to properly test this - whenever I try to just run this locally from directory, I get extension errors due to the |
I'll add a Testing section to the README. But the module errors should not prevent the extension from being used. I tested last week and those errors were present. I think Chrome extensions don't like ES6 notation but I'm using that in order to run some Jest tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll wait to merge until I can verify the new DOM structure...somehow
debdeb4
to
d716fad
Compare
Original selector was stupidly incorrect. Also, as we're now inserting *after*, need to reverse the order in which we insert these, otherwise the modal will come before the button
d716fad
to
dd2de65
Compare
just in case GH decide to use same/similar classname
After some tweaking (i did end up having the wrong selector), managed to get this working for the most part for local testing. The last outstanding issue I'm seeing is that the dropdown doesn't automatically close / the page doesn't reload after I choose an option in the modal...and I'm not sure where to look for the cause just yet. this may be down to the fact that the new issue experience uses React, while the previous one was Rails, so ... might not do an actual page reload/refresh of parts when things change? kamino-new-issue-experience.mp4 |
@patrickhlauke let me see if I can get in contact with someone at Github to enroll in the beta. I can help troubleshoot. But can you check the network traffic after you choose a repo? It should be making github api calls, maybe one of them is failing or timing out? Although it does appear that it worked after a refresh |
Makes the extension also work in the new (currently in Beta) issue/PR experience that users can opt into at the moment.