Skip to content
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

Fix for new navigation #78

Closed
wants to merge 2 commits into from
Closed

Fix for new navigation #78

wants to merge 2 commits into from

Conversation

filiptronicek
Copy link
Member

@filiptronicek filiptronicek commented Apr 18, 2023

Description

This enables the extension to work in the new GitHub navigation public beta.

Related Issue(s)

Fixes WEB-116

People noticing on Slack:

How to test

Release Notes

Documentation

@kylos101
Copy link

@filiptronicek you want to link WEB-116 to fix/close?

@filiptronicek filiptronicek self-assigned this Apr 18, 2023
@filiptronicek filiptronicek added the bug Something isn't working label Apr 18, 2023
@filiptronicek
Copy link
Member Author

filiptronicek commented Apr 18, 2023

@filiptronicek you want to link WEB-116 to fix/close?

This is a neat lil' feature, nice

Comment on lines +18 to +28
function isNewNavigation(): boolean {
if (select.exists(".file-navigation")) {
return false;
}
const newNavigationFileHelperElement = 'button[data-hotkey="t,T"][hidden]';
if (select.exists(newNavigationFileHelperElement)) {
return true;
}

return false;
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the important bit, it's hacky, but works for now. For the transitioning phase it should work and we can adjust.

@svenefftinge
Copy link
Member

I fixed the underlying problem as part of this PR. So I believe this PR is no longer needed and can be closed. Let me know if missed anything (and sorry I saw it too late).

@filiptronicek filiptronicek deleted the ft/fix-new-nav-gh branch July 31, 2023 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants