Repository navigation
Show harness and model as coloured chips in the session rail - #904
Conversation
The vendor chip palette mirrors the web UI; cursor and unknown vendors fall back to a neutral pair. The model chip appears wherever the daemon has resolved a model — Pi today and any explicitly chosen model; resolving it for other vendors' default launches is a separate change. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
PR Summary by QodoShow vendor and model chips in the session rail
AI Description
Diagram
High-Level Assessment
Files changed (7)
|
Code Review by Qodo
1.
|
Every externally-sourced chip label (vendor, model, machine badge) is width-capped and ellipsizes, so a long token cannot spill past the 310px rail. Drops the redundant chip-label comments. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The chips row is now a Grid whose meta column takes the remaining width and trims, so the row fits the 310px rail even when every chip is long. The two vendor-chip converters move to their own files (one type per file), and the restating/misleading comments are dropped. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
A WrapPanel wraps chips + meta to a second line instead of overflowing when a label is unusually long; each chip stays individually capped and trimmed. Corrects the chip converters' comments. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Closes #898 — AI-2716
Part of #899 — AI-2717 (model-chip UI; daemon model resolution follows separately)
What & why
The session rail rendered the harness/vendor and model as plain text. The web UI shows the vendor as a per-vendor coloured chip and the model as a single info-tint chip. This brings the rail to that treatment: the vendor palette mirrors the web values exactly, and cursor / any unknown vendor fall back to a neutral pair.
Where to look
VendorChipPaletteholds the vendor→colour map. The session-row template now carries a title line plus a chips line (vendor, model, machine badge, meta); a row with no title lets the chips line stand as its identity. Model chips show wherever a model is resolved — Pi today and any explicitly chosen model — so other vendors' default launches stay blank until the daemon resolution (AI-2717) lands.Verification
dotnet build src/Capacitor.App→ 0 warnings. Filtereddotnet runon the App test suite: VendorChipPaletteTests 3/3, RailSessionViewModelTests 13/13, MainWindowSmokeTests 11/11.