Skip to content

Restore releases-tab when "Global Navigation Bar" is disabled - #6901

Merged
fregante merged 2 commits into
refined-github:mainfrom
134130:fix/releases-tab
Sep 12, 2023
Merged

fregante merged 2 commits into
refined-github:mainfrom
134130:fix/releases-tab

Conversation

@134130

@134130 134130 commented Sep 10, 2023

Copy link
Copy Markdown
Contributor

Description

Test URLs

Screenshot

  • Disabled
    image

  • Enabled
    image

Comment thread source/features/releases-tab.tsx Outdated

// Wait for the tab bar to be loaded
const repoNavigationBar = (await elementReady('.UnderlineNav-body'))!;
const repoNavigationBar = (await elementReady('ul.UnderlineNav-body'))!;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should reuse underlineNavDropdownUl if possible

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

But even then, why is this feature querying the same element twice (line 85)? It needs to be updated.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah I think this feature is too old and needs some enhancement too.
I'll work this PR again and reopen this PR.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Actually this was wrong, they're two different elements. I send a new PR for further adjustments

@134130
134130 marked this pull request as draft September 10, 2023 11:43
@fregante
fregante marked this pull request as ready for review September 12, 2023 07:06
@fregante fregante added the bug label Sep 12, 2023
@fregante
fregante merged commit 9b319fd into refined-github:main Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

releases-tab: not visible when GitHub's Feature preview - "Global Navigation Update" is disabled

3 participants