Repository navigation
Studio: reorder sidebar, rename Hub to Models - #7327
Conversation
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
@codex review |
There was a problem hiding this comment.
💡 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" |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
Fixed in ad67a79. The heading now follows isDataset like the subtitle already did: Datasets in dataset mode, Models otherwise.
| <NavItem | ||
| icon={DashboardCircleIcon} | ||
| label={t("shell.navigation.hub")} |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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.
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.
c5e7e29 to
ae8b5f5
Compare
|
@codex review |
There was a problem hiding this comment.
💡 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" |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
Fixed in ad67a79 (title now switches on isDataset, matching the subtitle).
| compare: "Compare", | ||
| search: "Search", | ||
| hub: "Hub", | ||
| hub: "Models", |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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.
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Bring the PR branch up to date with upstream main (unslothai#7327, unslothai#7308, unslothai#5988).
What this does
Sidebar label and order cleanups in Studio, on top of the search-in-header change from #7304:
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.