Skip to content

[3695 by Claude Opus 5.5] LLM Log: type chips, usage badge wrapping and truncated model names - #3709

Merged
integry merged 1 commit into
3693-epic-0-9-4gafrom
3695/claude-opus-5-5-llm-log-type-chips-usage--20261118-1324-o3w
Nov 18, 2026
Merged

integry merged 1 commit into
3693-epic-0-9-4gafrom
3695/claude-opus-5-5-llm-log-type-chips-usage--20261118-1324-o3w

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3695

Branch: 3695/claude-opus-5-5-llm-log-type-chips-usage--20261118-1324-o3w
Commits: ✅ 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, 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.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (3 files)
    • 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)
  • Low risk (2 files)
    • 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

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

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)

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

… 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.
@propr-dev

propr-dev Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

/ultrafix goal=8 max=3
Triggered automatically by the requested execution settings.

@propr-dev

propr-dev Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 8/10, max cycles: 3)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@propr-dev

propr-dev Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The 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 formatType, while filter values retain their original API keys.

✅ Preserved model display rules — Model text and tooltips continue using formatModelName, including the new wide-screen wrapping behavior.

✅ Focused implementation — The changes stay within the requested display improvements and include targeted formatter and markup tests.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Automate browser layout assertions

The new tests in UsageBadge.test.tsx and LlmLogsTable.test.tsx assert CSS classes rather than rendered geometry. A browser regression test around 1280 and 1440 px could verify chip visibility, model wrapping, and separator clipping. This would complement the reported manual browser checks; it is optional because no layout defect is established by the supplied code.

S2: 🟢 Tie coverage to execution types

The “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.

Score

The 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

  • Model: GPT-6 Astra
  • Time: 26s
  • Tokens: 36,110 (35,657 in / 453 out)
  • Cost: $0.25

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S1 S2

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Nov 18, 2026
@propr-dev propr-dev Bot changed the title 🔨 [3695 by Claude Opus 5.5] LLM Log: type chips, usage badge wrapping and truncated model names ✅❽ [3695 by Claude Opus 5.5] LLM Log: type chips, usage badge wrapping and truncated model names Nov 18, 2026
@integry
integry merged commit c3ef714 into 3693-epic-0-9-4ga Nov 18, 2026
67 checks passed
@propr-dev propr-dev Bot changed the title ✅❽ [3695 by Claude Opus 5.5] LLM Log: type chips, usage badge wrapping and truncated model names [3695 by Claude Opus 5.5] LLM Log: type chips, usage badge wrapping and truncated model names Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant