Skip to content

Feature that regenerates the repo nav menu to make it extensible #9552

Closed

Description

@fregante

This is a solution to:

I suggest we go ahead and add a new "invisible" feature that simply replaces the native "UnderlineNav" with a custom implementation. We will be able to use this base to restore the features:

GitHub keeps all elements in the DOM, including those in the closed dropdown:

Image

This means we should be able to loop through them and generate the new menu. The only part missing are the icons, which we'd have to manually match and load internally.

We can ship this extensible-nav feature and see if there's any pushback/issues we didn't anticipate. In a later release we can work towards actually adding bugs-tab and the rest.

As a first version, the nav should just overflow and introduce horizontal scrolling. This works well on mobile (pan to scroll) and should appear rarely on desktop (larger viewports)

Activity

  1. added
    Please! ♥︎
    on May 21, 2026
  2. self-assigned this
    on May 21, 2026
  3. fregante commented on May 22, 2026

    @fregante
    MemberAuthor

    @SunsetTechuila feel free to open issues that you can use to jot notes or rubber-duck ideas, like I've done here:

    #8867 has 11 participants and 58+ people watching, not fair to use it for this purpose, see netiquette as well. I hope you agree here.

  4. SunsetTechuila commented on May 22, 2026

    @SunsetTechuila
    Contributor

    I'd rather distance myself from anything navbar-related. Nevertheless, some notes:

    1. The current implementation slows down navigation, especially compared to the native navbar with cached data. The difference will become more noticeable over time. One of the reasons and a possible workaround can be found in quick-review - Speed up "Files changed" page opening #9259. Another reason is that it doesn't seem to use Turbo.
    2. The native navbar can dynamically update the tabs when you disable/enable them. Of course, this is not an essential feature. I'm actually surprised that the GitHub devs thought of that.
    3. There is code to dynamically update counters. It's not used right now, but at some point, it will certainly start working. This is an important feature, IMO.
  5. annabowers960-dotcom commented on Jul 16, 2026

    @annabowers960-dotcom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Please! ♥︎acceptedenhancementunder discussion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions