Thanks to visit codestin.com
Credit goes to github.com

Skip to content

extend-repo-tabs - New feature - #9902

Merged
fregante merged 21 commits into
mainfrom
clean-repo-tabs
Aug 3, 2026
Merged

extend-repo-tabs - New feature#9902
fregante merged 21 commits into
mainfrom
clean-repo-tabs

Conversation

@fregante

@fregante fregante commented Jul 30, 2026

Copy link
Copy Markdown
Member

Note: this feature most likely won't receive support for org/user pages like the old one did. If extensible-nav ever supports those pages, it would likely have a dedicated extend-USER-tabs feature.

Test URLs

Screenshot

Screenshot 1 Screenshot Image Image

@fregante fregante changed the title clean-repo-tabs - Restore feature WIP extended-repo-tabs - New feature Aug 1, 2026
repository(owner: $owner, name: $name) {
projects {
totalCount
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

}
}
.demoted:nth-child(1 of .demoted) {
margin-left: 16px;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Adds some spacing so they look detached

Comment thread source/features/extended-repo-tabs.tsx Outdated
if (count > 0) {
overrideTab('wiki', {counter: writable(count)});
} else {
overrideTab('wiki', {demoted: true});

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Has wiki

Image

No wiki

https://github.com/babel/babel-sublime-snippets/wiki

Image

If selected, still demoted but labelled:

Image

}

function init(): void {
overrideTab('pull-requests', {label: 'Pulls'});

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Hopefully this isn't controversial. It does help reduce the length of the nav

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

FWIW I was a bit confused by this label 😅

if this is only about the length then how about using "PRs" instead?

Comment thread source/features/extended-repo-tabs.tsx Outdated
if (projects > 0) {
overrideTab('projects', {counter: writable(projects)});
} else {
overrideTab('projects', {demoted: true});

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No projects

https://github.com/babel/flavortown

Image

Has projects

Image

@fregante
fregante marked this pull request as ready for review August 1, 2026 07:10
@fregante fregante changed the title extended-repo-tabs - New feature extend-repo-tabs - New feature Aug 1, 2026
@fregante
fregante requested a review from Copilot August 1, 2026 07:10
{
"id": "extend-repo-tabs",
"description": "Collapses repository tabs if rarely used (Insights, Security) or when empty (Projects, Wiki, Actions). It also adds counters to Projects and Wiki.",
"screenshot": "https://github.com/user-attachments/assets/e7fa93ff-fc01-410d-b4da-f1fb96a85326"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The name is no longer "clean" because it does a number of things. It's also possible that we'll add more tabs to the nav, like more-dropdown-links used to do, depending on how this whole thing is received.

{#if tab.tooltip}
<Tooltip id="{id}-tooltip" htmlFor={id} label={tab.tooltip} />
{#if tooltip}
<Tooltip

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Side note: tooltips might have issues. Sometimes they're not showing up :(

This comment was marked as low quality.

@fregante
fregante requested review from kidonng, kovsu and yakov116 August 1, 2026 07:22
@fregante
fregante enabled auto-merge (squash) August 3, 2026 19:15
@fregante
fregante merged commit c10f1d1 into main Aug 3, 2026
13 checks passed
@fregante
fregante deleted the clean-repo-tabs branch August 3, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Restore clean-repo-tabs

3 participants