Repository navigation
[3695 by Claude Opus 5.5] LLM Log: type chips, usage badge wrapping and truncated model names - #3709
Conversation
… in Chromium at widths from 900 to 1760 px confirmed the acceptance criteria. Unit tests, `tsc` and lint all pass.
- Type chips (`src/pages/llmLogsUtils.ts`): added one label table, `EXECUTION_TYPE_LABELS`, covering every execution type the server records. That includes `summary-selection`, `pr-review-context-scout`, `usage-tips-selection` and `agent-health-check`, so chips now read "PR review", "PR review context scout", "Title generation" and so on. It accepts both `pr_review` and `pr-review` spellings, and a type not in the table falls back to sentence case with acronyms in capitals. The same `formatType` feeds the type filter dropdown, so it gets the same labels.
- Usage badge (`src/components/ui/UsageBadge.tsx`): the `|` characters are gone. Each part is now a whole item that never breaks inside, and the separator is a thin border on its left. The edge of the badge hides that border on whichever part starts a line, so a separator can never sit at the start or end of a line. Badges that fit on one line look the same as before. This component is also used in task details (`RealTimeStats`), where it gets the same clean wrapping if it's ever squeezed.
- Column widths (`src/pages/LlmLogsTable.tsx`):
- Type column: widens from 1280 px, so the longest label ("Repository improvements") fits whole.
- Model column: widens from 1440 px, so "Antigravity Gemini 3.8 Flash" shows on one line. An even longer name wraps onto a second line rather than being cut.
- Below 1440 px, model names still truncate with the full name in the tooltip.
- The stacked layout below 1024 px is unchanged.
I kept the existing fixed-width table rather than switching to grid/flex as the issue suggested. Its widths now grow with the screen, which keeps the existing "table always fits its pane" behaviour. The trade-off is that the Work Ref column narrows to about 150 px at 1280 px (it was about 215 px). It still truncates with the full text in a tooltip.
New tests cover the label mapping (every server type, both spellings, the fallback) and the badge markup (`UsageBadge.test.tsx`: whole parts, border separators, no separator text). I also added a test that the column widths and model wrapping only apply from the right screen widths.
Screenshots at 900, 1280 and 1440 px are attached as previews.
|
/ultrafix goal=8 max=3 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 3) First action:
|
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR makes focused changes to execution-type labels, usage-badge wrapping, and responsive column widths. It is merge-ready within the reviewed scope, conditional on the five pending checks completing successfully. This review used the supplied code and context; no commands or tests were run. ✅ Consistent type labels — Chips and filter options share ✅ Preserved model display rules — Model text and tooltips continue using ✅ Focused implementation — The changes stay within the requested display improvements and include targeted formatter and markup tests. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Automate browser layout assertionsThe new tests in S2: 🟢 Tie coverage to execution typesThe “every server execution type” test duplicates the label table’s keys in a handwritten list. Where practical, derive coverage from the shared execution-type contract so future additions cannot silently escape this assertion. The supplied current types are covered, making this a maintenance improvement rather than a merge requirement. ScoreThe implementation is appropriately scoped, with no verified regression in the supplied diff. Targeted tests support the changes; current checks report no failures, with five still pending. Score: 8/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
AI Implementation Summary
Closes #3695
Branch:
3695/claude-opus-5-5-llm-log-type-chips-usage--20261118-1324-o3wCommits: ✅ Changes committed (5440f4f)
AI Processing Completed
Execution Details:
Summary:
All three LLM Log problems from #3695 are fixed. A real-browser check in Chromium at widths from 900 to 1760 px confirmed the acceptance criteria. Unit tests,
tscand lint all pass.src/pages/llmLogsUtils.ts): added one label table,EXECUTION_TYPE_LABELS, covering every execution type the server records. That includessummary-selection,pr-review-context-scout,usage-tips-selectionandagent-health-check, so chips now read "PR review", "PR review context scout", "Title generation" and so on. It accepts bothpr_reviewandpr-reviewspellings, and a type not in the table falls back to sentence case with acronyms in capitals. The sameformatTypefeeds the type filter dropdown, so it gets the same labels.src/components/ui/UsageBadge.tsx): the|characters are gone. Each part is now a whole item that never breaks inside, and the separator is a thin border on its left. The edge of the badge hides that border on whichever part starts a line, so a separator can never sit at the start or end of a line. Badges that fit on one line look the same as before. This component is also used in task details (RealTimeStats), where it gets the same clean wrapping if it's ever squeezed.src/pages/LlmLogsTable.tsx):I kept the existing fixed-width table rather than switching to grid/flex as the issue suggested. Its widths now grow with the screen, which keeps the existing "table always fits its pane" behaviour. The trade-off is that the Work Ref column narrows to about 150 px at 1280 px (it was about 215 px). It still truncates with the full text in a tooltip.
New tests cover the label mapping (every server type, both spellings, the fallback) and the badge markup (
UsageBadge.test.tsx: whole parts, border separators, no separator text). I also added a test that the column widths and model wrapping only apply from the right screen widths.Screenshots at 900, 1280 and 1440 px are attached as previews.
Review digest
Risk-tiered paths
propr-ui/src/components/ui/UsageBadge.tsx(+17/−7)propr-ui/src/pages/LlmLogsTable.tsx(+22/−11)propr-ui/src/pages/llmLogsUtils.ts(+30/−2)propr-ui/src/components/ui/UsageBadge.test.tsx(added, +41/−0)propr-ui/src/pages/LlmLogsTable.test.tsx(+52/−1)Diff size: 5 files changed, +162/−21 lines
View task for the run's logs and conversation.
This PR was created automatically by ProPR after processing issue #3695.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!
Visual preview
LLM Log at 1280 px
Type chips fit whole; the model column truncates long names (full name in the tooltip) below 1440 px.
Full-size original
LLM Log at 1440 px
Type chips read "PR review", "PR review context scout" etc. in full; model names such as "Antigravity Gemini 3.8 Flash" are fully visible; multi-metric usage badges wrap as whole parts with no separator at a line start or end.
Full-size original
LLM Log below 1024 px (stacked)
The stacked layout is unchanged apart from the new chip labels and border separators in the usage badge.
Full-size original