Repository navigation
[Epic] 0.9.3: web UI polish from the 0.9.2 release check - #3705
Conversation
…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>
… 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>
…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>
…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>
✅ Epic ready for final merge: 0.9.3: web UI polish from the 0.9.2 release check4 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 |
|
/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: |
|
CI failed: CodeQL Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit 1332848 Processed 2 comments:
Summary of ChangesI fixed both CodeQL alerts (code-scanning #248 and #249) about a slow regular expression in The problem: the "end of first sentence" pattern The fix: I replaced the regex with a small Tests: I added a timing test to ESLint has no configuration for Review digestRisk-tiered paths
Diff size: 2 files changed, +38/−6 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…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
|
ℹ️ Analyzed the follow-up request by @propr-dev[bot] Analysis SummaryI made no changes, because the branch already contains the fix. CodeQL failed on commit What CodeQL flagged: at What What I checked on the current branch:
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
💡 ProPR Slash Commands
🤖 Generated by ProPR |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe 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 ✅ 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 blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Recognize Setext report headings
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Exercise LLM layout in-browserThe 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. ScoreThe 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
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 090dd6a
Summary of ChangesI 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 The fix (
A
That keeps the existing behaviour for The new test (
Same defect elsewhere: The repo's ESLint config doesn't cover Review digestRisk-tiered paths
Diff size: 2 files changed, +74/−4 lines 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 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
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe 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 blockersEvery finding below was introduced by this PR and must be resolved before merging. F2: 🔴 Preserve list-item continuation lines
SuggestionsThese are optional follow-ups and are not sent to S2: 🟢 Verify badge wrapping in-browserThe 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. ScoreThe 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
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit e844847
Summary of ChangesI fixed F2: a list item that wraps onto more lines now previews its whole first sentence. The finding's example, The preview test file passes (13 of 13) and the shared package typechecks. Run against the previous parser, the new regression fails with What changed in
Tests in
The API's Review digestRisk-tiered paths
Diff size: 2 files changed, +50/−7 lines 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 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
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe 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 ✅ 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 blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S3: 🟢 Verify rendered LLM table geometryThe added ScoreThe 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
Copy and edit to choose records from this review: 🤖 Review by ProPR |
✅ Epic merged: 0.9.3: web UI polish from the 0.9.2 release checkEpic 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 |
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