Skip to content

Studio: reorder sidebar, rename Hub to Models - #7327

Merged
shimmyshimmer merged 3 commits into
mainfrom
studio-sidebar-hub-above-projects
Jul 22, 2026
Merged

shimmyshimmer merged 3 commits into
mainfrom
studio-sidebar-hub-above-projects

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Jul 22, 2026 •

Copy link
Copy Markdown
Member

What this does

Sidebar label and order cleanups in Studio, on top of the search-in-header change from #7304:

  • Put the Models row (formerly Hub) directly under New chat, ahead of Projects.
  • Rename the Hub nav row and its page heading to Models. "Hub" alone was vague; Models says what the page is for. Localized across all locales.
  • Use sentence case "New chat" for the English label.

Scope and risk

Frontend only. This touches the sidebar order and i18n labels, and nothing in the training, inference, or backend paths, so no compute path is affected.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: 9530454127

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@shimmyshimmer shimmyshimmer changed the title Studio: put Hub above Projects in the sidebar Studio: reorder sidebar, rename Hub to Models Jul 22, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 08a8a120f5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<header className="font-heading flex flex-col gap-3 sm:flex-row sm:flex-wrap sm:items-center sm:justify-between">
<PageHeading
title="Hub"
title="Models"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Show the Datasets title in dataset mode

When the user switches the Hub resource toggle to Datasets (which sets kind=datasets and passes isDataset={true} into this component), the header still renders Models while the subtitle, search placeholder, and catalog are all showing datasets. This makes /hub?kind=datasets visibly mislabeled; use the existing isDataset prop here to render Datasets (or keep a generic localized title) for that mode.

Useful? React with 👍 / 👎.

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.

Fixed in ad67a79. The heading now follows isDataset like the subtitle already did: Datasets in dataset mode, Models otherwise.

Comment on lines +1206 to +1208
<NavItem
icon={DashboardCircleIcon}
label={t("shell.navigation.hub")}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Move Models above Search to match requested order

This new Models item is inserted in the scrollable group below the fixed header group that still renders Search, so the visible order remains New chat → Search → Models → Projects rather than putting Models directly under New chat. If the intended cleanup is the advertised New chat → Models ordering, this nav item needs to live in the first menu before the Search row, otherwise users will not see the requested sidebar order.

Useful? React with 👍 / 👎.

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 Search row is hidden in the expanded sidebar on web and mac (className is showSidebarBrand ? 'hidden group-data-[collapsible=icon]:block' : undefined from #7304), so the visible order there is New chat then Models then Projects, which is the intent. Search only sits between them in the collapsed icon rail and on win/linux custom titlebars, where the header search button is not present. Leaving the grouping as is so the swap stays scoped to Hub and Projects.

@shimmyshimmer shimmyshimmer changed the title Studio: reorder sidebar, rename Hub to Models Studio: sidebar search in header, Models rename, reorder Jul 22, 2026
Swap the two nav rows so Hub sits directly under New Chat, ahead of
Projects. Order only, no behavior change.
Rename the Hub nav row and its page heading to Models (localized in all
locales). Use sentence case 'New chat' in the English label.
@shimmyshimmer
shimmyshimmer force-pushed the studio-sidebar-hub-above-projects branch from c5e7e29 to ae8b5f5 Compare July 22, 2026 12:13
@shimmyshimmer shimmyshimmer changed the title Studio: sidebar search in header, Models rename, reorder Studio: reorder sidebar, rename Hub to Models Jul 22, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ae8b5f5780

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<header className="font-heading flex flex-col gap-3 sm:flex-row sm:flex-wrap sm:items-center sm:justify-between">
<PageHeading
title="Hub"
title="Models"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Show a dataset title in dataset mode

When users switch the catalog to datasets (/hub?kind=datasets), hub-page.tsx passes isDataset={isDatasetMode} into this header, and the subtitle already switches to dataset copy, but the title is now hard-coded to Models. This leaves the datasets catalog headed “Models”, so the page label is wrong for an exposed mode; derive the title from isDataset along with the subtitle.

Useful? React with 👍 / 👎.

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.

Fixed in ad67a79 (title now switches on isDataset, matching the subtitle).

compare: "Compare",
search: "Search",
hub: "Hub",
hub: "Models",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P3 Badge Update conflict guidance after the tab rename

When a model download hits the transport-conflict branch, chat-page.tsx still shows toasts saying “Resume this download from the Hub” and “Open the Hub tab to resume or restart it” (lines 2271-2274 and 2392-2395). After this navigation label changes to “Models”, there is no visible Hub tab in the sidebar, so users in that recovery path get stale directions; update those user-facing conflict strings as part of the rename.

Useful? React with 👍 / 👎.

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.

Good catch, fixed in ad67a79. The two download-conflict toasts now say 'Resume this download from Models' and 'Open the Models tab', so the recovery hint matches the renamed tab.

<header className="font-heading flex flex-col gap-3 sm:flex-row sm:flex-wrap sm:items-center sm:justify-between">
<PageHeading
title="Hub"
title="Models"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P3 Badge Localize the renamed page heading

In non-English locales the sidebar label now comes from the localized shell.navigation.hub strings (for example German shows “Modelle”), but the page header remains hard-coded to English Models. This makes the renamed nav destination inconsistent as soon as a translated shell is selected; pass/use the localized label for the header instead of embedding the English text here.

Useful? React with 👍 / 👎.

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.

Leaving the heading in English on purpose. Page headings elsewhere are hardcoded English too (for example the Export page renders a literal 'Export Model' h1) while only the sidebar nav is localized, so an English 'Models'/'Datasets' heading matches the existing pattern.

Show 'Datasets' as the catalog heading in dataset mode, not 'Models'.
Update the download-conflict toasts to point at the Models tab.
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: ad67a7957d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@shimmyshimmer
shimmyshimmer merged commit fdf2df4 into main Jul 22, 2026
38 of 41 checks passed
@shimmyshimmer
shimmyshimmer deleted the studio-sidebar-hub-above-projects branch July 22, 2026 13:34
Souravrajvi0 added a commit to Souravrajvi0/unsloth that referenced this pull request Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant