Repository navigation
ui : shared model display primitives - #29644
Conversation
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Several display bugs remain, and multiple advertised shared primitives are not integrated into any surface.
Review effort: Balanced
Findings: 7
Open (8)
Add consumers for the destructive confirmation dialog · New Include sidecars when determining whether badges render · New Integrate progress component into download surfaces · New Wire avatar component into discover surfaces · New Track avatar failures by organization · New Use capability component in the discover details header · New Preserve precision for model parameter counts · New Apply spacing to modality capability icons · New
What changed in this PR
Extracts reusable UI primitives for model metadata, capabilities, avatars, download progress, and destructive download actions.
Changes:
- Expands
ModelIdmetadata and capability rendering. - Adds shared discover/download components and confirmation types.
- Adjusts parameter formatting and action tooltip behavior.
| File | Description |
|---|---|
formatters.ts |
Changes billion-count formatting. |
model.enums.ts |
Adds confirmation actions. |
enums/index.ts |
Exports the new enum. |
ui.constants.ts |
Adds avatar inversion configuration. |
ModelsSelectorOption.svelte |
Passes explicit capability flags. |
ModelId.svelte |
Expands shared model display. |
ModelCapabilityIcons.svelte |
Adds capability icon cluster. |
models/index.ts |
Exports capability icons. |
ModelsDiscoverAvatar.svelte |
Adds organization avatars. |
DownloadProgressBar.svelte |
Adds download progress display. |
dialogs/index.ts |
Exports download confirmation. |
DialogConfirmDownload.svelte |
Adds destructive confirmation copy. |
ActionIcon.svelte |
Supports native-title tooltips. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
9731a96 to
001da5f
Compare
ServeurpersoCom
left a comment
There was a problem hiding this comment.
LGTM, these are primitives for the upcoming models manager and they don't change master's existing behavior
|
@ngxson please take a look and if all lgty let's merge this so that we can proceed with the further PRs basing on this |
ngxson
left a comment
There was a problem hiding this comment.
sorry I don't have time to test this yet, but I think it's OK to merge since it's front-end only, fixes can be pushed later if needed
001da5f to
72647bb
Compare
|
I re-ran six approvals to let @allozaur test a specific part of the GitHub interface. |
for crying out loud... |
|
Shall we try out the god power of @CISC ? |
|
We might have to rebase everything |
Extract ModelCapabilityIcons (canonical Tools/Reasoning/Vision/Video/Audio order) out of ModelId and reuse it there, add the shared DialogConfirmDownload for destructive download actions, the discover org avatar with dark-mode inversion and the thin download progress bar, and rework ModelId badges to take thinking/tool-use support directly. Assisted-by: pi:GLM-5.3-Flash
Assisted-by: pi:llama.cpp/DeepSeek-V4.1-Flash
Assisted-by: pi:llama.cpp/DeepSeek-V4.1-Flash
hasBadges now counts draft sidecar badges, so a sidecar-only model still renders. Billions keep one decimal for hub counts and stay bare for whole values. Avatar failures track the org instead of the instance, and the download progress bar no longer pulses while determinate. Assisted-by: pi:zai-org/GLM-5.3-Flash
72647bb to
a4151ed
Compare
|
Here is what I did (manually, I never give write access to my agents): |
My powers were tried and found wanting. 💀 |
* ui : shared model display primitives Extract ModelCapabilityIcons (canonical Tools/Reasoning/Vision/Video/Audio order) out of ModelId and reuse it there, add the shared DialogConfirmDownload for destructive download actions, the discover org avatar with dark-mode inversion and the thin download progress bar, and rework ModelId badges to take thinking/tool-use support directly. Assisted-by: pi:GLM-5.3-Flash * ui : remember hub avatars that failed to load Assisted-by: pi:llama.cpp/DeepSeek-V4.1-Flash * ui : render shared model row hints as native titles Assisted-by: pi:llama.cpp/DeepSeek-V4.1-Flash * ui : fix badge guard for draft sidecars, keep parameter precision hasBadges now counts draft sidecar badges, so a sidecar-only model still renders. Billions keep one decimal for hub counts and stay bare for whole values. Avatar failures track the org instead of the instance, and the download progress bar no longer pulses while determinate. Assisted-by: pi:zai-org/GLM-5.3-Flash (cherry picked from commit 4a096b8)




Overview
Extracts shared model display primitives:
ModelCapabilityIcons(canonical Tools, Reasoning, Vision, Video, Audio order) out ofModelId,DialogConfirmDownloadfor destructive download actions (one instance per surface, driven byDownloadConfirmAction), the discover org avatar with dark-mode inversion, and the thin download progress bar.ModelIdnow takes thinking/tool-use support directly.Requirements
pi:zai-org/GLM-5.3+llama-ui:unsloth/Qwen3.8-Flash-Next