Skip to content

[Epic] 0.9.3: web UI polish from the 0.9.2 release check - #3705

Merged
integry merged 7 commits into
mainfrom
3693-epic-0-9-4ga
Nov 18, 2026
Merged

integry merged 7 commits into
mainfrom
3693-epic-0-9-4ga

Conversation

@propr-dev

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

Copy link
Copy Markdown
Contributor

0.9.3: web UI polish from the 0.9.2 release check

This Epic PR aggregates all changes for the plan: 0.9.3: web UI polish from the 0.9.2 release check

Issues in this Epic

Auto-close

When this PR is merged, the following issues will be automatically closed:

Fixes #3693
Fixes #3694
Fixes #3695
Fixes #3696


Created automatically by ProPR

…3699)

* All four controls from the issue now take taps across at least 32×32 px on touch layouts, and nothing changes on desktop. Each one uses the invisible `::after` hit area (`touch-hit`) from #3670, except the expanded dashboard rows, which grow to 32 px on touch instead (explained below).

What changed (propr-ui only)
- Dashboard "earlier updates": the "N earlier updates" / "Hide…" toggle (20 px) now uses `touch-hit`. The expanded update rows (24 px) are a different case: they sit directly on top of each other, so an invisible box on each would overlap its neighbours. They become 32 px tall on touch layouts instead (`touch:min-h-8`), which is a small visible change on phones only.
- Repository "Select" rows: the button had `truncate`, which clips its own `::after` box. The button now gets `touch-hit`, and the name is truncated by an inner span instead.
- Segmented controls: I changed all three in the automation editor: Schedule (Off / Repeat), Event trigger and Autonomy. Each group had `overflow-hidden`, which also clipped the hit box. I removed it, and the first and last segments now round their own corners. The screenshot shows they look the same as before.
- Inbox Dismiss: the list's ✕ button gets `touch-hit`. From 640 px up it is 24 px, so at 844×390 it was too small.

Tests
- I extended `e2e/touch-hit-areas.pw.ts` with four tests: the automation segments, the repository Select rows, the dashboard toggle and rows, and the Inbox Dismiss button. Each runs at 390, 320 and 844 px, measures the box including the pseudo-element, hit-tests its edges, and checks there is no sideways scroll.
- I moved the Inbox API stub into `touch-hit-areas.fixture.ts`, together with a new `expectNoSideScroll` helper.
- Check against the old code: with the source changes reverted, every new check fails. The Inbox Dismiss check fails only at 844 px, which matches the issue.
- With the fix: that spec plus `dashboard-recent-updates`, `automations-schedule-repeat`, `inbox-dismissal`, `navigation-history` and `global-search-repository` all pass (57 tests). The related unit tests pass (489), and typecheck and zero-warning lint are clean.

Left alone: the "Done" button in the Inbox's open-item pane is 28 px, but that pane only appears on desktop widths, not at 844 px, so I didn't change it.

I've attached two phone-width (390 px) previews: the dashboard with earlier updates expanded, and the automation editor's segmented controls.

* feat(ai): I fixed the failing Validate Changes check. The test was out of date, not the code. The only edit is to the test file `propr-ui/e2e/dashboard-sections.pw.ts`.

I fixed the failing Validate Changes check. The test was out of date, not the code. The only edit is to the test file `propr-ui/e2e/dashboard-sections.pw.ts`.

**Cause:** this PR makes the expanded "earlier updates" rows on the dashboard 32 px tall on touch layouts, and phone widths count as touch layouts. An older check in the "dashboard cleanup … at 390px" test still required every row to be 28 px or shorter. That check passes on desktop but fails at 390 px.

**Fix:** the check now depends on the layout:
- **Desktop (1440 px):** rows must still be 28 px or shorter, as before.
- **Phone widths (under 640 px):** rows must be exactly 32 px, so the test now also confirms the new tap size is applied.

**Verification:**
- The failing test passes at both 1440 and 390 px.
- All 19 tests in `dashboard-sections.pw.ts` and `dashboard-recent-updates.pw.ts` pass.
- Zero-warning lint is clean on the edited file.

I didn't capture new previews because this follow-up doesn't change anything users see.

PR: #3699
Comment by: @propr-dev[bot] (ID: 6976080057)
Model: Claude Opus 5.5

---------

Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
@propr-dev

propr-dev Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor Author

Epic progress: 0.9.3: web UI polish from the 0.9.2 release check

4 of 4 issues merged ✅

Merged child PRs: #3699, #3706, #3709, #3711

✅ This epic PR has been merged into main.


This comment is updated automatically by ProPR as child PRs open, change and merge.

@propr-dev propr-dev Bot added the AI label Nov 18, 2026
@propr-dev propr-dev Bot changed the title ◔ 1/4 [Epic] 0.9.3: web UI polish from the 0.9.2 release check ⚠️ 1/4 [Epic] 0.9.3: web UI polish from the 0.9.2 release check Nov 18, 2026
… running right now as "In recovery" (#3706)

No API change was needed. The follow-up handoff list already includes a `liveness` field, and the server only checks it for follow-ups in the `active` state. So the screen can tell the two cases apart:

- `active`, agent running: shows Running, links to the task, and the reason reads "Its agent is working on this request." The next step stays "Wait for its agent to finish."
- `active`, any other liveness (agent stopped or gone, or liveness couldn't be checked): stays In recovery, as before.
- Held and released follow-ups keep their existing labels.

Changes:
- `propr-ui/src/pages/SettingsPage/heldFollowupText.ts`: new `isRunningFollowup` and `followupStateLabel`, and the running case added to `reasonLabel`.
- `propr-ui/src/pages/SettingsPage/MaintenanceSection.tsx`: each row's state comes from `followupStateLabel`, and Running is a link to `/tasks/<taskId>`.
- `propr-ui/src/pages/SettingsPage/MaintenanceSection.running.test.tsx` (new): unit tests for the mapping (running versus stopped, gone or unknown, and held or released), plus a render test with one running row and one recovering row. These are in a separate file because adding them to `MaintenanceSection.test.tsx` broke the 400-line lint limit.

I captured desktop and mobile previews of the Maintenance list using a temporary Playwright spec, which I deleted afterwards.

Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
@propr-dev propr-dev Bot changed the title ⚠️ 1/4 [Epic] 0.9.3: web UI polish from the 0.9.2 release check ◑ 2/4 [Epic] 0.9.3: web UI polish from the 0.9.2 release check Nov 18, 2026
@propr-dev propr-dev Bot changed the title ◑ 2/4 [Epic] 0.9.3: web UI polish from the 0.9.2 release check ⚠️ 2/4 [Epic] 0.9.3: web UI polish from the 0.9.2 release check Nov 18, 2026
…nd truncated model names (#3709)

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

Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
@propr-dev propr-dev Bot changed the title ⚠️ 2/4 [Epic] 0.9.3: web UI polish from the 0.9.2 release check ◕ 3/4 [Epic] 0.9.3: web UI polish from the 0.9.2 release check Nov 18, 2026
@propr-dev propr-dev Bot changed the title ◕ 3/4 [Epic] 0.9.3: web UI polish from the 0.9.2 release check ⚠️ 3/4 [Epic] 0.9.3: web UI polish from the 0.9.2 release check Nov 18, 2026
…uns apart, and aligned rows (#3711)

Preview (`packages/shared/src/automationReportPreview.ts`): the API still builds `reportPreview` with the same field name, using this rule:
- It skips headings, both the title every run repeats and any section headings.
- It returns the first sentence of the first paragraph, joining a paragraph that wraps over several lines.
- If the body starts with a list or quote, it returns the first item.
- If the report is only headings, it falls back to the title. It returns nothing for an empty report.
- A full stop inside a word, as in `v0.9.2` or `example.com`, doesn't end the sentence. An abbreviation like "e.g." followed by a space does, so the preview stops there.
- Markdown stripping, the 160-character cut and the existing protections against malformed input are unchanged.

I updated the text that describes the field to match: the API route comment, the MCP `list_automation_runs` description, the UI and CLI type comments, and `docs/docs/features/agents.md`.

Row alignment (`propr-ui/src/components/Agents/AgentRunHistory.tsx`): the column layout is now defined once for the whole list. The header, the list and each row reuse it (CSS subgrid) instead of each row sizing its own columns. So the Started column is as wide as the widest date in the list, and every column lines up whether a row says "Sep 28, 2026" or "5h ago". Because each row's side padding now counts toward the first column, I raised that column's minimum width from 5.5rem to 6.5rem; the space for the date itself is unchanged. The stacked two-line layout on phones still works.

Tests:
- Preview unit tests: added cases for heading only, heading plus paragraph (including a wrapped paragraph and section headings), list first, and empty. The existing expectations that took the title now expect body text. 10/10 pass.
- API route test: updated to expect the body's first list item; it passes.
- New Playwright test in `propr-ui/e2e/automation-runs-mobile.pw.ts`: mixes "5h ago", "Sep 28, 2026" and "3m ago" rows and checks that every column starts at the same position in each row and in the header. It fails on the absolute-date row with the old component and passes with the new one. I also changed one existing report in that file to have a body paragraph, so its tests still check a long preview. All 6 tests in the file pass.
- Run-list component tests (6/6) and propr-ui lint and typecheck are clean. ESLint has no config for `packages/shared`, so the preview code there wasn't linted.

I captured preview screenshots of the desktop list with mixed date formats, the regular desktop list and the 390px phone layout.

Co-authored-by: propr-dev[bot] <1316198+propr-dev[bot]@users.noreply.github.com>
@propr-dev propr-dev Bot changed the title ⚠️ 3/4 [Epic] 0.9.3: web UI polish from the 0.9.2 release check ◕ 4/4 [Epic] 0.9.3: web UI polish from the 0.9.2 release check Nov 18, 2026
@propr-dev

propr-dev Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

✅ Epic ready for final merge: 0.9.3: web UI polish from the 0.9.2 release check

4 of 4 issues merged

All 4 issues have been merged into this epic branch. This epic PR is ready for final review and merge.


Posted automatically by ProPR

@integry
integry marked this pull request as ready for review November 18, 2026 14:48

integry commented Nov 18, 2026

Copy link
Copy Markdown
Owner

/ultrafix goal=8 max=3

@propr-dev propr-dev Bot added the ultrafix label Nov 18, 2026
@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

CI failed: CodeQL

Please investigate and fix this CI failure.

Failure evidence

packages/shared/src/automationReportPreview.ts:103 — Polynomial regular expression used on uncontrolled data
This regular expression that depends on library input may run slow on strings with many repetitions of '!'.

packages/shared/src/automationReportPreview.ts:135 — Polynomial regular expression used on uncontrolled data
This regular expression that depends on library input may run slow on strings with many repetitions of '!'.

@propr-dev

propr-dev Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 1332848

Processed 2 comments:

  • Comment 1 by @github-advanced-security[bot] (ID: 4615956323✓)
  • Comment 2 by @github-advanced-security[bot] (ID: 4615956187✓)

Summary of Changes

I fixed both CodeQL alerts (code-scanning #248 and #249) about a slow regular expression in packages/shared/src/automationReportPreview.ts. The preview test file passes (11 of 11) and the shared package typechecks.

The problem: the "end of first sentence" pattern /[.!?]+["')\]]*(?=\s)/u was used in two places. On a long run of ! (or ./?) with no space after it, it restarts the match at every character in the run, so the time grows with the square of the run's length.

The fix: I replaced the regex with a small sentenceEnd(text) function that reads the text once, from left to right. When it finds ., ! or ?, it skips past the whole run of punctuation and any closing quotes or brackets. It returns that position if a space follows; otherwise it carries on from the end of the run instead of going back. Starting partway through such a run can't give a different answer, so the result is the same as before. Both places that used the regex now call this function.

Tests: I added a timing test to packages/shared/test/automationReportPreview.test.ts. It feeds in 100,000 ! with no space after them and two similar long runs, and expects each to finish in under 500 ms. It also checks that the cut still lands in the same place: Done!!!, Shipped v0.9.2 ("final"). (no cut inside v0.9.2), and Wait?!).

ESLint has no configuration for packages/shared, so it skipped both files and they weren't linted. There's no visible change, so I made no preview images.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (1 file)
    • packages/shared/src/automationReportPreview.ts (+26/−6)
  • Low risk (1 file)
    • packages/shared/test/automationReportPreview.test.ts (+12/−0)

Diff size: 2 files changed, +38/−6 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @github-advanced-security[bot]
  • Time: 3m 45s
  • Tokens: 283,548 (280,667 in / 2,881 out)
  • Cost: $0.29

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment IDs: 4615956323✓, 4615956187✓

…out a slow regular expression in `packages/shared/src/automationReportPreview.ts`. The preview test file passes (11 of 11) and the shared package typechecks.

I fixed both CodeQL alerts (code-scanning #248 and #249) about a slow regular expression in `packages/shared/src/automationReportPreview.ts`. The preview test file passes (11 of 11) and the shared package typechecks.

**The problem:** the "end of first sentence" pattern `/[.!?]+["')\]]*(?=\s)/u` was used in two places. On a long run of `!` (or `.`/`?`) with no space after it, it restarts the match at every character in the run, so the time grows with the square of the run's length.

**The fix:** I replaced the regex with a small `sentenceEnd(text)` function that reads the text once, from left to right. When it finds `.`, `!` or `?`, it skips past the whole run of punctuation and any closing quotes or brackets. It returns that position if a space follows; otherwise it carries on from the end of the run instead of going back. Starting partway through such a run can't give a different answer, so the result is the same as before. Both places that used the regex now call this function.

**Tests:** I added a timing test to `packages/shared/test/automationReportPreview.test.ts`. It feeds in 100,000 `!` with no space after them and two similar long runs, and expects each to finish in under 500 ms. It also checks that the cut still lands in the same place: `Done!!!`, `Shipped v0.9.2 ("final").` (no cut inside `v0.9.2`), and `Wait?!)`.

ESLint has no configuration for `packages/shared`, so it skipped both files and they weren't linted. There's no visible change, so I made no preview images.

PR: #3705
Comment by: @github-advanced-security[bot] (ID: 4615956323)
Comment by: @github-advanced-security[bot] (ID: 4615956187)
Model: Claude Opus 5.5
@propr-dev

propr-dev Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor Author

ℹ️ Analyzed the follow-up request by @propr-dev[bot]

Analysis Summary

I made no changes, because the branch already contains the fix. CodeQL failed on commit ddbe90ec9. The commit after it, 13328486a, fixes both alerts (#248 and #249). CodeQL hasn't been run on that newer commit yet, so the check will only clear when it runs there.

What CodeQL flagged: at packages/shared/src/automationReportPreview.ts lines 103 and 135, the code used the regex /[.!?]+["')\]]*(?=\s)/u to find where the first sentence ends. On a long run of ! with no space after it, its running time grows with the square of the run's length.

What 13328486a changed: the regex is gone. Both places now call a small sentenceEnd() function that reads the text once from start to end, skips each run of punctuation and closing quotes or brackets in one go, and never goes back. No other regex left in the file can blow up the same way.

What I checked on the current branch:

  • The preview test file passes, 11 of 11, including the timing test that commit added.
  • The shared package typechecks with tsc --noEmit.
  • I fed the function five crafted inputs of about 200,000 characters each: long runs of !, ![ repeated, mixed .?)", and a heading followed by !. repeated. Each finished in 24–60 ms.

There's no visible change, so I made no preview images.

No code changes were necessary based on the current state of the branch.


🤖 Analysis Details

  • Model: Claude Opus 5.5 (medium)
  • Time: 4m 18s
  • Tokens: 378,698 (376,945 in / 1,753 out)
  • Cost: $0.29

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 6982205689✓

@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 addresses touch targets, maintenance status labels, LLM log readability, and automation run previews with focused changes and relevant tests. It needs a localized preview-extraction fix before merge.

✅ Existing liveness reused — Maintenance correctly derives “Running” from active handoffs with liveness: 'running', using the existing API field and linking to the task.

✅ Shared column tracks — Run history uses a common grid with subgrids, backed by a browser test comparing header and row positions across mixed date formats.

✅ Touch coverage expanded — Tests cover the requested controls and horizontal overflow at 320, 390, and 844 px.

This review uses the supplied diff and context; no commands were run. The issue excerpts for #3695 and #3696 end early, so unseen requirements were not assessed. Current checks report no failures, with two pending.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F1: 🔴 Recognize Setext report headings

  • Category: requirement

  • Required behavior: Issue Automation run list: a preview that tells runs apart, and aligned rows #3696 requires the preview to show the first sentence of the report body after its heading, falling back to the title only when there is no body.

  • Evidence: packages/shared/src/automationReportPreview.ts, HEADING and automationReportPreview

    1. An automation produces a valid Markdown report: Weekly audit\n---\n\nThree packages are outdated. Upgrade soon.
    2. HEADING recognizes only headings beginning with #, so Weekly audit is appended to paragraph as body text.
    3. The underline encounters the structural-line boundary and ends extraction before the actual body. Even if the underline were not classified as structural, the following blank line ends extraction before the body.
    4. The preview therefore contains the repeated title rather than “Three packages are outdated.” Runs using this heading format remain indistinguishable by preview.

    static trace: The changed parser processes lines sequentially without recognizing Setext heading pairs. Reports are free-form Markdown according to the supplied documentation; no restriction excludes this input. Added heading tests use only ATX (#) headings and do not cover this sequence.

  • Minimum fix: Recognize Setext heading text and its underline before collecting body text, retain the heading as the no-body fallback, and add tests for both underline forms with and without a body.

Suggestions

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

S1: 🟢 Exercise LLM layout in-browser

The new LLM table and badge tests verify class names and markup rather than rendered wrapping or clipping. A browser test at 1280 and 1440 px using the longest type label, a long model name, and several usage metrics would provide stronger regression coverage. This is optional: the requested unit tests are present, and static review does not establish a layout defect.

Score

The implementation is focused and well covered in several important paths, but a valid Markdown heading format still defeats the central preview requirement. The remaining correction is localized; current checks have no reported failures.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 45s
  • Tokens: 59,286 (58,166 in / 1,120 out)
  • Cost: $0.53

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 F1 S1

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 090dd6a

Addressed 1 AI review comment (IDs: 6982997010)

Addressed finding F1

Summary of Changes

I fixed F1: run previews now skip Setext headings, so the report from the finding previews as "Three packages are outdated." instead of repeating "Weekly audit". The preview test file passes (12 of 12) and the shared package typechecks. I also ran the new test against the previous parser: it fails there with Weekly audit, and the other 11 tests still pass.

The fix (packages/shared/src/automationReportPreview.ts): before the existing parser reads the lines, a new step normalizeSetextHeadings rewrites each Setext heading as a single # … heading line and drops its underline. The underline can be === or ---. After that, the parser handles these headings exactly like # headings:

  • They are skipped when looking for the body.
  • A heading that wraps over several lines before its underline counts as one heading.
  • If the report has no body, the first heading is used as the preview, as before.

A --- line is still treated as a rule rather than a heading underline when it comes:

  • after a blank line,
  • after a heading or a fence,
  • after a list item (the plain lines that follow an item belong to the item),
  • inside a fenced code block.

That keeps the existing behaviour for \n---\n and table dividers.

The new test (packages/shared/test/automationReportPreview.test.ts) covers:

  • both underline forms, with and without a body.
  • a heading wrapped over two lines followed by a ------- section heading before a list.
  • a title that contains a full stop.
  • the three cases above where --- is not an underline.

Same defect elsewhere: automationReportPreview is the only place that builds the preview. The API route in packages/api/routes/automationDefinitionRoutes.ts calls it, and the UI only displays the reportPreview field, so there was nothing else to fix.

The repo's ESLint config doesn't cover packages/shared, so neither file was linted. I didn't capture a visual preview because only the extracted preview text changes; the run list layout is the same.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (1 file)
    • packages/shared/src/automationReportPreview.ts (+49/−4)
  • Low risk (1 file)
    • packages/shared/test/automationReportPreview.test.ts (+25/−0)

Diff size: 2 files changed, +74/−4 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 4m 6s
  • Tokens: 356,719 (350,701 in / 6,018 out)
  • Cost: $0.40

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

…eport from the finding previews as "Three packages are outdated." instead of repeating "Weekly audit". The preview test file passes (12 of 12) and the shared package typechecks. I also ran the new test against the previous parser: it fails there with `Weekly audit`, and the other 11 tests still pass.

I fixed F1: run previews now skip Setext headings, so the report from the finding previews as "Three packages are outdated." instead of repeating "Weekly audit". The preview test file passes (12 of 12) and the shared package typechecks. I also ran the new test against the previous parser: it fails there with `Weekly audit`, and the other 11 tests still pass.

**The fix** (`packages/shared/src/automationReportPreview.ts`): before the existing parser reads the lines, a new step `normalizeSetextHeadings` rewrites each Setext heading as a single `# …` heading line and drops its underline. The underline can be `===` or `---`. After that, the parser handles these headings exactly like `#` headings:
- They are skipped when looking for the body.
- A heading that wraps over several lines before its underline counts as one heading.
- If the report has no body, the first heading is used as the preview, as before.

A `---` line is still treated as a rule rather than a heading underline when it comes:
- after a blank line,
- after a heading or a fence,
- after a list item (the plain lines that follow an item belong to the item),
- inside a fenced code block.

That keeps the existing behaviour for `\n---\n` and table dividers.

**The new test** (`packages/shared/test/automationReportPreview.test.ts`) covers:
- both underline forms, with and without a body.
- a heading wrapped over two lines followed by a `-------` section heading before a list.
- a title that contains a full stop.
- the three cases above where `---` is not an underline.

**Same defect elsewhere:** `automationReportPreview` is the only place that builds the preview. The API route in `packages/api/routes/automationDefinitionRoutes.ts` calls it, and the UI only displays the `reportPreview` field, so there was nothing else to fix.

The repo's ESLint config doesn't cover `packages/shared`, so neither file was linted. I didn't capture a visual preview because only the extracted preview text changes; the run list layout is the same.

PR: #3705
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
@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 addresses all four UI issues with focused changes and useful regression coverage, but needs a small correction to report previews before merge.

✅ Running follow-ups — Uses existing server-provided liveness evidence and links running agents to their tasks.

✅ Touch targets — Reuses the shared hit-area utility, removes clipping where necessary, and adds checks at all three requested widths.

✅ Shared report contract — Updates preview documentation consistently across API, CLI, MCP, and UI.

This review is a static assessment of the supplied code; no commands were run. Some issue implementation notes are truncated, but their visible acceptance criteria support the assessment. Current checks show 37 passed, none failed, and one pending.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F2: 🔴 Preserve list-item continuation lines

  • Category: correctness

  • Required behavior: Issue Automation run list: a preview that tells runs apart, and aligned rows #3696 requires the first sentence of the report body, with Markdown stripped; a list-first report must retain the content needed to complete that sentence.

  • Evidence: packages/shared/src/automationReportPreview.ts, automationReportPreview — the unconditional if (ITEM.test(line)) break stops at the first physical line of a list item.

    1. A report contains # Weekly audit\n\n- Dependency scanning found\n three vulnerable packages. Upgrade them.
    2. The helper skips the heading and adds Dependency scanning found to the paragraph.
    3. Because that line starts a list item, it immediately stops, discarding the continuation containing the actual finding.
    4. The run list displays Dependency scanning found instead of Dependency scanning found three vulnerable packages. Reports with different continuation content therefore receive the same incomplete preview.

    static trace: This follows directly from the new list-item early exit. The added tests cover single-line items, and the continuation example explicitly expects only the first physical line, so they do not prevent this failure.

  • Minimum fix: Accumulate continuation lines of the first list item until its first sentence ends or the next block/item starts. Add a regression asserting the complete preview for a wrapped list item.

Suggestions

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

S2: 🟢 Verify badge wrapping in-browser

The new badge unit test checks classes and absence of separator characters, but cannot verify that borders disappear at wrapped line starts. A browser assertion at constrained widths would strengthen confidence in this CSS technique. This is optional because the requested markup tests are present and no rendering defect is established.

Score

The implementation is focused and well covered, with no reported check failures. One localized preview-extraction defect remains in the requested behavior.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 45s
  • Tokens: 60,005 (58,935 in / 1,070 out)
  • Cost: $0.53

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 F2 S2

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit e844847

Addressed 1 AI review comment (IDs: 6983706527)

Addressed finding F2

Summary of Changes

I fixed F2: a list item that wraps onto more lines now previews its whole first sentence. The finding's example, - Dependency scanning found\n three vulnerable packages. Upgrade them., now previews as "Dependency scanning found three vulnerable packages." instead of "Dependency scanning found".

The preview test file passes (13 of 13) and the shared package typechecks. Run against the previous parser, the new regression fails with Dependency scanning found, so it catches this bug.

What changed in packages/shared/src/automationReportPreview.ts

  • I removed the early stop after the first line of a list item or quote.
  • A new endsBlock check decides where a block ends. A list item, like a plain paragraph, now keeps reading wrapped lines, indented or not, until its first sentence ends. It stops at a blank line, fence, rule or heading, or where the next list item or quote begins.
  • Same defect in quotes: a quote wrapped over several > … lines was cut at its first line in the same way. Further > lines now continue the quote. A blank > line, or the next item of a quoted list (> - …), still ends it.
  • A plain paragraph still stops before a list or quote that follows it.

Tests in packages/shared/test/automationReportPreview.test.ts

  • New regression test covering:
    • the finding's indented wrap.
    • an unindented wrap in a numbered list that stops before item 2.
    • a quote wrapped over > lines and then an unmarked line.
    • a blank quote line and a quoted list item ending the block.
    • a paragraph not running on into a quote.
  • One existing test expected only the first line of a wrapped item: - lodash is outdated\nsince Monday\n---. It now expects lodash is outdated since Monday. That test checks that --- after a list item is a rule, not a heading underline, and it still does.

The API's reportPreview and the e2e fixture both use this shared helper, so no other files needed changing. I made no preview images, because the only change is which text appears in the preview line.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (1 file)
    • packages/shared/src/automationReportPreview.ts (+26/−6)
  • Low risk (1 file)
    • packages/shared/test/automationReportPreview.test.ts (+24/−1)

Diff size: 2 files changed, +50/−7 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 3m 57s
  • Tokens: 311,223 (305,769 in / 5,454 out)
  • Cost: $0.38

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR

…iews its whole first sentence. The finding's example, `- Dependency scanning found\n three vulnerable packages. Upgrade them.`, now previews as "Dependency scanning found three vulnerable packages." instead of "Dependency scanning found".

I fixed F2: a list item that wraps onto more lines now previews its whole first sentence. The finding's example, `- Dependency scanning found\n  three vulnerable packages. Upgrade them.`, now previews as "Dependency scanning found three vulnerable packages." instead of "Dependency scanning found".

The preview test file passes (13 of 13) and the shared package typechecks. Run against the previous parser, the new regression fails with `Dependency scanning found`, so it catches this bug.

**What changed in `packages/shared/src/automationReportPreview.ts`**
- I removed the early stop after the first line of a list item or quote.
- A new `endsBlock` check decides where a block ends. A list item, like a plain paragraph, now keeps reading wrapped lines, indented or not, until its first sentence ends. It stops at a blank line, fence, rule or heading, or where the next list item or quote begins.
- **Same defect in quotes:** a quote wrapped over several `> …` lines was cut at its first line in the same way. Further `>` lines now continue the quote. A blank `>` line, or the next item of a quoted list (`> - …`), still ends it.
- A plain paragraph still stops before a list or quote that follows it.

**Tests in `packages/shared/test/automationReportPreview.test.ts`**
- New regression test covering:
  - the finding's indented wrap.
  - an unindented wrap in a numbered list that stops before item 2.
  - a quote wrapped over `>` lines and then an unmarked line.
  - a blank quote line and a quoted list item ending the block.
  - a paragraph not running on into a quote.
- One existing test expected only the first line of a wrapped item: `- lodash is outdated\nsince Monday\n---`. It now expects `lodash is outdated since Monday`. That test checks that `---` after a list item is a rule, not a heading underline, and it still does.

The API's `reportPreview` and the e2e fixture both use this shared helper, so no other files needed changing. I made no preview images, because the only change is which text appears in the preview line.

PR: #3705
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
@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 addresses all four issues with focused UI changes, shared preview extraction, and regression coverage. No merge blockers were verified in the supplied diff. Merge readiness is conditional on the four pending checks completing; no current checks have failed.

✅ Running-state mapping — Maintenance uses the existing API liveness evidence to distinguish running agents from recovery and links directly to the task.

✅ Shared report previews — Preview extraction changes at the shared producer, preserves reportPreview, and includes tests for headings, paragraphs, lists, empty reports, and bounded output.

✅ Touch coverage — The added browser tests cover the requested controls and horizontal overflow at 320, 390, and 844 pixels.

This was a static review; no commands were run. The supplied issue descriptions for #3695 and #3696 contain truncation notices, so requirement assessment is limited to their visible text.

Merge blockers

No merge blockers.

Suggestions

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

S3: 🟢 Verify rendered LLM table geometry

The added LlmLogsTable.test.tsx and UsageBadge.test.tsx assertions verify CSS classes and markup, but cannot establish actual clipping or wrapping behavior. A browser regression covering long type labels at 1280 pixels, model names at 1440 pixels, and wrapped usage parts would strengthen confidence. This is optional: the supplied code does not demonstrate a rendering defect, and the requested unit coverage is present.

Score

The implementation follows the visible requirements and includes substantial targeted coverage. Static inspection found no actionable regression; rendered LLM-table behavior remains less directly verified, and four checks are pending.

Score: 9/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 50s
  • Tokens: 60,096 (59,395 in / 701 out)
  • Cost: $0.50

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 S3

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Nov 18, 2026
@propr-dev propr-dev Bot changed the title ◕ 4/4 [Epic] 0.9.3: web UI polish from the 0.9.2 release check ✅ 4/4 [Epic] 0.9.3: web UI polish from the 0.9.2 release check Nov 18, 2026
@integry
integry merged commit 6d99e2e into main Nov 18, 2026
53 checks passed
@integry
integry deleted the 3693-epic-0-9-4ga branch November 18, 2026 17:27
@propr-dev propr-dev Bot changed the title ✅ 4/4 [Epic] 0.9.3: web UI polish from the 0.9.2 release check [Epic] 0.9.3: web UI polish from the 0.9.2 release check Nov 18, 2026
@propr-dev

propr-dev Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

✅ Epic merged: 0.9.3: web UI polish from the 0.9.2 release check

Epic PR #3705 has been merged into main.

4 of 4 issues merged into main through this epic PR.

All planned epic work is now merged.

Posted automatically by ProPR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

2 participants