Repository navigation
Restore releases-tab when "Global Navigation Bar" is disabled - #6901
Merged
Merged
Conversation
fregante
reviewed
Sep 10, 2023
|
|
||
| // Wait for the tab bar to be loaded | ||
| const repoNavigationBar = (await elementReady('.UnderlineNav-body'))!; | ||
| const repoNavigationBar = (await elementReady('ul.UnderlineNav-body'))!; |
Member
There was a problem hiding this comment.
We should reuse underlineNavDropdownUl if possible
Member
There was a problem hiding this comment.
But even then, why is this feature querying the same element twice (line 85)? It needs to be updated.
Contributor
Author
There was a problem hiding this comment.
Yeah I think this feature is too old and needs some enhancement too.
I'll work this PR again and reopen this PR.
Member
There was a problem hiding this comment.
Hmm I'm not seeing any glaring issues with this feature, I would not rewrite it. If your latest changes work well already, let's just drop line 85
Member
There was a problem hiding this comment.
Actually this was wrong, they're two different elements. I send a new PR for further adjustments
134130
marked this pull request as draft
September 10, 2023 11:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
releases-tab: not visible when GitHub's Feature preview - "Global Navigation Update" is disabled #6899releases-tabis not working when GitHub's Feature preview:Global Navigation Updateis disabled..UnderlineNav-bodycount is 3 when disabled. More specifying withul.UnderlineNav-bodyselectorTest URLs
Screenshot
Disabled

Enabled
