Repository navigation
Studio: one set of sort and filter icons, shorter chat cards, toolbar tooltips - #15958
Conversation
…jects, Grid and List tooltips
|
Codex Review: Didn't find any major issues. Hooray! 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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…orter rows and smaller titles
|
Codex Review: Didn't find any major issues. Delightful! 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". |
…at cards with a smaller kind icon
|
Codex Review: Didn't find any major issues. Nice work! 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". |
…rojects view uses the Projects page list
|
@codex review |
|
@codex security review |
There was a problem hiding this comment.
💡 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() !== ""} /> |
There was a problem hiding this comment.
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 👍 / 👎.
| {ordered ? ( | ||
| <span className="shrink-0 sm:w-40">Updated</span> |
There was a problem hiding this comment.
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 👍 / 👎.
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. 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". |
…#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.
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.
FilterMailIconFilterIconsort(MIT), drawn as strokes and scaled 1.2x inlib/sort-icon.tsArrowDownIcon/ArrowUpIconFilterMailIconinstead ofFilterHorizontalIcon.SortIcon: the Chats and Library toolbar Sort buttons (LucideArrowDownUpIconbefore), the sidebar "Sort chats by" submenu, both Hub models sort dropdowns and the model picker sort (HugeiconsArrowUpDownIconbefore).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
darkbutton 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
projectsPagenamespace 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-closedicon (from core-free-icons 4.4, copied intolib/project-icon.tssince 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:
Tooltips on Filter, Sort, Grid, List and Library settings:
Sort and filter icons in Settings > Data > Archived chats, the sidebar "Sort chats by" menu and the Hub sort dropdown:
Projects page, collapsed and expanded, and the Create project dialog:
Verification
npm run typecheck,npm run i18n:check,npm run i18n:check:strict,npm test(14388 pass, 0 fail) andnpm run buildpass. Biome reports nothing new on the changed files.mainand branch frontend builds over the same projects and chats: every surface in the screenshots above, plus the project chat row hover.Not tested here