Skip to content

Studio: one set of sort and filter icons, shorter chat cards, toolbar tooltips - #15958

Merged
shimmyshimmer merged 13 commits into
mainfrom
studio-sort-filter-icons
Oct 30, 2026
Merged

shimmyshimmer merged 13 commits into
mainfrom
studio-sort-filter-icons

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Tidies the Library and project surfaces: one set of sort and filter icons across Studio, shorter chat cards, tooltips on the Library toolbar buttons, and project folder icons that show whether a project is open.

What changed

  • Sort and filter icons: Studio now uses five icons for these controls, down from six glyphs across two icon libraries, and sort no longer mixes two arrow glyphs.

    Role Icon
    Filter Hugeicons FilterMailIcon
    Filter (empty state) Hugeicons FilterIcon
    Sort Mono Icons sort (MIT), drawn as strokes and scaled 1.2x in lib/sort-icon.ts
    Sort direction Lucide ArrowDownIcon / ArrowUpIcon
    • Settings > Data > Archived chats: the "All chats" filter and sort button uses FilterMailIcon instead of FilterHorizontalIcon.
    • Every sort control uses the one SortIcon: the Chats and Library toolbar Sort buttons (Lucide ArrowDownUpIcon before), the sidebar "Sort chats by" submenu, both Hub models sort dropdowns and the model picker sort (Hugeicons ArrowUpDownIcon before).
    • The Height field on Images and Video keeps ArrowUpDownIcon, since it is a dimension, not a sort control.
  • Library > Chats grid: cards keep the file card layout (icon, title, project and date) and five per row, with three changes: the kind icon (chat, project, section) shows on its own at 18 px instead of in a grey tile, corners drop from 24 px to 20 px, rows are only as tall as the fullest card instead of square, and titles are a half step smaller (12.5 px) and use the full card width (the corner menu overlays them on hover) so more of them fits.

  • Chats date groups: "Today", "Yesterday" and the other group headings are 12 px and muted with a rule underneath and more space between groups, so they read as labels rather than rows; list rows are tighter (40 px minimum instead of 52); card times are 10.5 px with slightly less bottom padding. In list view, the Last modified header shows its date-field chevron while either the label or its sort arrow is hovered.

  • Rename dialogs: the confirm button in every rename dialog (Library name dialog, sidebar and Projects page chat rename, section name) uses the standard dark button instead of grey.

  • Folder icons: every folder glyph comes from Hugeicons core-free-icons 4.4 (copied into lib/folder-icons.ts, since the installed package is 4.1): projects use the plain folder, Library folders use folder-closed, and the open folder keeps 4.1's open flap under the 4.4 tab. FolderOpenIcon stays on 4.1. The Library folder card icon is 30 px so it matches its old size.

  • Library > Chats > Projects shows the Projects page's project list (expandable rows, pin, edit, menus) under the Library's own toolbar, which keeps search, sort and New; the Updated column header still turns the order around. The Library's separate project grid and list are removed. Since the Library now shows it, the Projects page is translated: its labels, menus, dialogs and toasts come from a new projectsPage namespace in all 14 locales, and its dates follow the Studio language ("vor 3 Tagen", "6 日前") instead of the browser's.

  • Generate on Images, Video and Audio uses the accent colour and is larger (44 px tall).

  • Toolbar tooltips: Filter, Sort, Grid, List and Library settings in the Library toolbars show a tooltip on hover. Grid and List use new short strings in all 14 locales; their accessible names stay "Grid view" and "List view".

  • Project icons: every project shows the Hugeicons folder-closed icon (from core-free-icons 4.4, copied into lib/project-icon.ts since the installed 4.1 lacks it), and the open folder only while it is expanded or opened. This covers the Library (cards, favourite tiles, a chat's project line, the Projects tab, filters, Move to), the sidebar, the Projects page, the Create and Edit project dialogs, the project switcher, the composer Projects menu, chat search, the command palette and Settings > Data.

  • Projects page chat rows: the chat icon is gone, titles line up with the project name, and the hover pill starts further left.

No backend changes.

Screenshots

BEFORE is main, AFTER is this branch, on the same Studio and data.

Library > Chats, All and Projects views:

Chats grid before and after

Projects grid before and after

Chats view before and after

Tooltips on Filter, Sort, Grid, List and Library settings:

Toolbar tooltips before and after

Sort and filter icons in Settings > Data > Archived chats, the sidebar "Sort chats by" menu and the Hub sort dropdown:

Sort and filter icons before and after

Projects page, collapsed and expanded, and the Create project dialog:

Projects page before and after

Expanded project before and after

Create project before and after

Verification

  • npm run typecheck, npm run i18n:check, npm run i18n:check:strict, npm test (14388 pass, 0 fail) and npm run build pass. Biome reports nothing new on the changed files.
  • Checked in a local Studio by swapping the main and branch frontend builds over the same projects and chats: every surface in the screenshots above, plus the project chat row hover.
  • Cross-platform staging (macOS / Windows / Linux, Playwright): [staging CI] unslothai/unsloth#15958 shimmyshimmer/unsloth-staging-4#1863

Not tested here

  • Dark mode, and the model picker sort trigger (it only shows once the picker lists Hub models).

shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 29, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 29, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 29, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 29, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 29, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 29, 2026
shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 29, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 45adc80820

ℹ️ 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".

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T03:02:53.075284Z 2f0847b Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 29, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 29, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 29, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 29, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 29, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 29, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 29, 2026
@shimmyshimmer shimmyshimmer changed the title Studio: one set of sort and filter icons, wider chat cards, toolbar tooltips Studio: one set of sort and filter icons, compact chat cards, toolbar tooltips Oct 29, 2026
shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 29, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 29, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 29, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 83a4c49fdb

ℹ️ 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: one set of sort and filter icons, compact chat cards, toolbar tooltips Studio: one set of sort and filter icons, shorter chat cards, toolbar tooltips Oct 29, 2026
shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 29, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 29, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 29, 2026
shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 29, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 465225fa97

ℹ️ 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 pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 30, 2026
shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 30, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 30, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 30, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex security 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: 1af03d3da1

ℹ️ 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".

? renderAll()
: section === "projects"
? renderProjects()
? <ProjectsPage embedded ordered={visibleProjects} searching={query.trim() !== ""} />

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 Wire the embedded clear-search action to the Library query

In Library → Chats → Projects, entering a query with no matches now displays the embedded page's “Clear search” button, but that button only calls ProjectsPage's local setQuery(""). The displayed projects are controlled by the Library's visibleProjects prop, so clicking it leaves both the toolbar query and the empty results unchanged. Pass a callback that clears the Library query, or omit this action when search is externally controlled.

Useful? React with 👍 / 👎.

Comment on lines +736 to +737
{ordered ? (
<span className="shrink-0 sm:w-40">Updated</span>

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 Preserve the Library's selected project date field

When the Library Projects toolbar is set to “Date created,” it still updates prefs.dateField and sorts projects by creation time, but the embedded list now always labels its date column “Updated” and renders projectActivityAt(project). Previously, ProjectRow displayed projectTime(project, stats, actions.dateField), so users could see the creation dates corresponding to that sort. Pass the selected date field through to the embedded list and use it for both the header and row timestamps.

Useful? React with 👍 / 👎.

shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 30, 2026
chatgpt-codex-connector[bot]

This comment was marked as resolved.

shimmyshimmer pushed a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 30, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 30, 2026
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 2f0847b9cf

ℹ️ 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 4ff89b1 into main Oct 30, 2026
0 of 45 checks passed
@shimmyshimmer
shimmyshimmer deleted the studio-sort-filter-icons branch October 30, 2026 03:13
danielhanchen added a commit that referenced this pull request Oct 30, 2026
…#16082)

`Frontend unit tests` is red on main. All four cases in
`studio/frontend/tests/hub-gguf-card-unified-budget.test.ts` fail (seen
on #16077's run):

```
not ok - the Hub GGUF card recommends a quant inside the Mac's Metal load budget
  error: 'no stub for import "@/lib/folder-icons" in .../src/features/hub/catalog/gguf-download-card.tsx'
```

#15958 moved the card's folder glyph to `@/lib/folder-icons` and added
that stub to the other `loadWithStubs` tests. This test, from #15848 and
merged the same day, was not in that sweep. The card is correct; the
test's stub map was one module behind. This adds `"@/lib/folder-icons":
anyExport` next to the other icon stubs.

## Verification

- `node --test tests/hub-gguf-card-unified-budget.test.ts`: 4 failed on
main, 4 passed here.
- The full frontend suite on main fails only these four.
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