Repository navigation
Studio: search chats, projects, files and models from tabs in chat search - #12564
Conversation
…arch Chat search gains tabs (All, Chats, Projects, Files, Models), switched by click or by the left and right arrows at either end of the query. An empty All tab shows Recents across kinds and a few actions; typing groups matches by kind. Models lists every complete download the Hub knows of plus the Library's fine-tunes. The Library store loads on first open. Raises the startup budget: main already measured over it, and the tabs and their strings add 7.5 KB raw / 2.5 KB transfer.
|
@codex review |
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. |
|
|
# Conflicts: # studio/frontend/scripts/check-bundle-budget.ts
- Actions follow the live query, so Enter never runs one the input no longer matches. - Enter on a focused tab only switches tabs; cmdk's root no longer runs the highlighted row. - A kept selection is cleared with the highlight pin and must still be on screen, so the highlight never lands on a row that left. - Files, Projects and Models show Loading until their source has loaded, instead of a false empty state. - Chats rank and age by last activity, as the sidebar does, and Recents sorts across every row. - Adds the shell.search strings to every locale.
|
@codex review |
Action availability is live, so an action that turns unavailable while the dialog is open could stay the controlled selection after its row unmounted, leaving nothing highlighted. The dialog now gates the action list, firstKey and shownKeys on availability, and ActionItem only renders.
|
@codex review |
- Enter on a stale auto-highlight (the deferred list not yet caught up) runs what the caught-up list will show first, instead of nothing. - The compact list height counts projects, Library items, downloads and actions, not only chats, so a populated dialog never resizes while filtering. - Model rows are searchable by the format label they show, so checkpoint rows match "Safetensors". - Library models are labelled by how they were made (LoRA, GGUF export, ...), as the Library does, instead of all as fine-tuned.
|
@codex review |
|
@codex security review |
|
@codex review |
This comment was marked as resolved.
This comment was marked as resolved.
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! 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". |
#12562 (make carried rows a faintly frosted, darker copy) landed after this branch was cut and restyles the shared ghost rule that #12499 introduced: it relies on --row-ghost-surface and .model-picker-row-ghost, and edits model-picker-pinned-drag-preview.test.ts, all of which the #12499 revert removes. Keeping it without #12499 leaves .sidebar-row-ghost reading an unset variable, so the conflict is resolved by dropping #12562's two hunks as well. It should be re-opened together with #12499. #12563, #12564 and #12597 are kept.
…arch (unslothai#12564) * Studio: search chats, projects, files and models from tabs in chat search Chat search gains tabs (All, Chats, Projects, Files, Models), switched by click or by the left and right arrows at either end of the query. An empty All tab shows Recents across kinds and a few actions; typing groups matches by kind. Models lists every complete download the Hub knows of plus the Library's fine-tunes. The Library store loads on first open. Raises the startup budget: main already measured over it, and the tabs and their strings add 7.5 KB raw / 2.5 KB transfer. * Studio: chat search review fixes and translations - Actions follow the live query, so Enter never runs one the input no longer matches. - Enter on a focused tab only switches tabs; cmdk's root no longer runs the highlighted row. - A kept selection is cleared with the highlight pin and must still be on screen, so the highlight never lands on a row that left. - Files, Projects and Models show Loading until their source has loaded, instead of a false empty state. - Chats rank and age by last activity, as the sidebar does, and Recents sorts across every row. - Adds the shell.search strings to every locale. * Studio: keep unavailable search actions out of the selection keys Action availability is live, so an action that turns unavailable while the dialog is open could stay the controlled selection after its row unmounted, leaving nothing highlighted. The dialog now gates the action list, firstKey and shownKeys on availability, and ActionItem only renders. * Studio: chat search Enter, compact height and model label fixes - Enter on a stale auto-highlight (the deferred list not yet caught up) runs what the caught-up list will show first, instead of nothing. - The compact list height counts projects, Library items, downloads and actions, not only chats, so a populated dialog never resizes while filtering. - Model rows are searchable by the format label they show, so checkpoint rows match "Safetensors". - Library models are labelled by how they were made (LoRA, GGUF export, ...), as the Library does, instead of all as fine-tuned. * Studio: rank search projects by newest chat, index shown chat labels * Studio: search project ages from all threads, hide infra models, skip IME arrows
Summary
Chat search now has tabs for what you want to look through: All, Chats, Projects, Files and Models. An empty All tab shows your most recent items across every kind plus a few actions, and typing groups matches by kind.
Changes
Esc, Change type←→, Open↵.updatedAt ?? createdAt, the latest of a compare pair), as the sidebar does.useHubInventory, which is already on the startup path through the model picker.fileKind,KIND_ICONS,isModelItemand theLibraryItemtype are now exported from the Library index.shell.search, translated in every locale, so the strict parity check passes.Testing
tsc -bis clean,npm testpasses (9995 tests), andnpm run i18n:check:strictpasses.tests/chat-search-tabs.test.tscovers tab order, arrow stepping, token matching, Recents (including kinds not listed newest first), the Library store loading on use, and the keyboard, loading and recency fixes.