Repository navigation
Conversation
`propr-ui/src/pages/GoalsPage.tsx` 1. Success is quiet — `GoalState` now renders `Completed` as `bg-slate-100 text-slate-600` with a checkmark instead of mint green; blue/amber/red stay reserved for running, paused and failed states. The badge also tightened to `px-2 py-0.5`. 2. Typographic bloat — titles dropped from `text-lg` bold two-line clamps to `text-sm font-semibold truncate`; descriptions truncate to a single `text-xs text-slate-500` line; preview thumbnails shrank from 64–80px tiles to inline `h-6 w-6` squares grouped beside the title, so rows keep a fixed vertical rhythm. 3. Data mapping — the "Current activity" column is gone. Activity is now live progress only: it renders under the status badge for unsettled goals and is blank once a goal settles, so `completed` never appears twice. The agent moved out of the status column into the goal cell as `[provider icon] Claude Opus 5` (the agent alias stays as screen-reader text and in the hover title, so the icon isn't the only carrier of that information). 4. Icon soup → real columns — usage split into right-aligned `TOKENS`, `ACTIVE TIME` and `OUTPUT` columns with no icons. Token counts are abbreviated (`101,280,735` → `101M`, `1.7M`, `96K`) with the exact figure on hover; thresholds round up so a count never reads `1000K`. Output shows `1 PR` / `0 issues` with open counts on hover, or `—` when there's nothing yet. Repository is a mono chip per the design guidelines. 5. Header — "Goals" plus subtitle on the top left, `+ New goal` on the top right, and directly below a unified `bg-slate-50` filter bar holding the "Work queue" label, the `11 of 11` count and the repo dropdown. The heading remains for the section's accessible name, restyled as a metadata label. Grid is `40 / 15 / 15 / 10 / 10 / 10` at `xl`, collapsing to the existing two-column labelled layout below that. `propr-ui/src/components/PreviewMedia.tsx` — added a `size="micro"` variant (24px squares, no caption) and let `className` override compact sizing; default callers (Tasks, Inbox) are unchanged. Verification: full UI unit suite passes (1220 tests, including updated goal-list assertions and new tests for compact token formatting and quiet completed rows); `tsc --noEmit` and eslint are clean; both Playwright goal regressions pass, confirming no horizontal overflow at 1024px or 1280px. I updated the e2e header assertion to a `data-testid` since the "Status / runtime" label no longer exists. Desktop (1440px) and mobile (430px) screenshots of the new queue were captured as preview evidence.
|
✅ Applied the requested follow-up changes in commit eea98de Summary of ChangesBoth follow-up items are implemented. New shared component —
Tests — new Verification — full UI unit suite passes (157 files, 1224 tests); Visual previewGoal queue columnsRepository names as hugging monospace code chips with the repository icon, and status badges that all share one icon-plus-label pill geometry (Running, Completed, Failed, Paused, Cancelling). Original unavailable: managed storage is unavailable or the upload has expired. Goal queue at 1440pxFull goal list page at desktop width showing the updated repository chips and status badges in context. Original unavailable: managed storage is unavailable or the upload has expired. Goal queue at 430pxStacked mobile layout where the repository chip still hugs its text under the labelled Repository cell. Original unavailable: managed storage is unavailable or the upload has expired. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Both follow-up items are implemented. **New shared component — `propr-ui/src/components/ui/RepositoryChip.tsx`** A single reusable chip for repository identities: the repository icon (`RepositoryIcon`, which renders a configured repo icon when one exists and falls back to the GitHub mark) plus `owner/name` in the established Monospace Code Chip spec — `inline-flex … font-mono text-[12px] bg-slate-100 border border-slate-200 text-slate-800 rounded-sm px-1.5 py-0.5`. It is `inline-flex` with `max-w-full`, so the background hugs the text instead of stretching the column; overlong names truncate inside the chip and stay readable via the tooltip. **`propr-ui/src/pages/GoalsPage.tsx`** 1. *Repository column* — the old `block truncate` `<code>` (the full-width gray box that read as a skeleton loader) is replaced by `<RepositoryChip>`. The same chip now also replaces the plain-text `owner/repo · alias` in the goal detail header, so the two goal surfaces share one treatment. 2. *Status badge geometry* — `GoalState` now resolves state through a single `goalStateBadges` map, so every badge is the same pill (`inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-xs`) with exactly one leading icon: Running `⟳` (spinning, blue), Cancelling `⟳` (amber), Paused `⏸` (amber), Completed `✓` (slate — success stays quiet), Failed `⚠` (red), Cancelled `⊘` (red). Unknown states fall back to a dot icon rather than dropping the icon. The detail-header "Completed" treatment already carried its icon and is unchanged. **Tests** — new `RepositoryChip.test.tsx` (chip classes, no `block`/`w-full`, icon present, custom icon URL) and two new `GoalsPage` cases: one asserting all six status badges share the pill classes and each contains an icon, one asserting the list renders the hugging repo chip with its icon. **Verification** — full UI unit suite passes (157 files, 1224 tests); `tsc --noEmit` and eslint clean; the two Playwright goal regressions still pass, confirming no horizontal overflow at 1024px or 1280px. Desktop (1440px), column-level, and mobile (430px) captures of the updated queue were taken as preview evidence. PR: #2474 Comment by: @integry (ID: 5793471674) Model: claude-opus-5
|
Your defense of stacking data to avoid "issues on narrow screens" reveals a fundamental misunderstanding of responsive data table architecture. You are actively breaking the layout on desktop to supposedly fix a problem on mobile/narrow screens. That is an amateur engineering compromise. Here is the critical breakdown of why your logic fails, and the new visual violations you have introduced: 1. The "Narrow Screen" Fallacy (Row Height Rupture)
5. Status Sub-text Contrast Failure
2. The Fallback Logo Anti-PatternYour logic that "the GitHub logo is the default when the actual logo is not detected" is a classic consumer-app mindset applied incorrectly to a developer tool.
|
|
✅ Applied the requested follow-up changes in commit 52f785d Summary of ChangesAll three items are implemented, with the desktop table now measuring a strict 64px on every row. 1. Row height rupture —
2. Status sub-text contrast 3. Fallback logo anti-pattern — Tests: unit coverage for uniform row height, the single neutral sub-status line, the model-beside-objective line, and the absent fallback mark (including Preview evidence captured at 1440px and 1120px. Visual previewGoal queue at 1440pxSix mixed-state rows on the full desktop table: every row is exactly 64px tall, the sub-status is one neutral slate line (task + step count), and repository chips carry no repeated GitHub fallback mark. Original unavailable: managed storage is unavailable or the upload has expired. Goal queue at 1120pxThe narrow desktop keeps the table instead of stacking: TOKENS and ACTIVE TIME drop out, the remaining columns truncate, and rows stay 64px tall. Original unavailable: managed storage is unavailable or the upload has expired. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
… measuring a strict 64px on every row. All three items are implemented, with the desktop table now measuring a strict 64px on every row. **1. Row height rupture — `propr-ui/src/pages/GoalsPage.tsx`** - Every desktop row is `lg:h-16` with `lg:py-0`, so a `Running` row and a settled row measure identically. Verified in the browser: 64, 64, 64, 64, 64, 64 across running / cancelling / completed / failed / paused rows at both 1440px and 1120px. - The status cell is now at most two lines: badge, then **one** truncated sub-status line that carries the running task and its step count together (`Implement responsiv… · 2/3 steps`, exact count on hover). The separate step-count line and its `ListTodo` icon are gone. - The goal cell dropped from three lines to two: title, then one truncated line holding the model beside the objective. Two lines everywhere is what makes `h-16` hold without clipping. - Narrow desktops keep the table instead of unfolding into cards, which is the fix you prescribed: the table now starts at `lg` (1024px) and `TOKENS` / `ACTIVE TIME` are hidden until `xl`. Below `lg` (tablet/phone) the stacked layout remains. Status was widened to 20% (taking from Goal) so the running task gets real characters instead of `Im…`. **2. Status sub-text contrast** The blue tint is gone. The activity icon is `text-slate-400` and the sub-status text is `text-slate-500` — the standard neutral secondary, same weight as the rest of the row's secondary text. **3. Fallback logo anti-pattern — `RepositoryIcon.tsx` / `RepositoryChip.tsx`** `RepositoryIcon` takes `fallback="github" | "none"`. `RepositoryChip` passes `none`, so a repository with a fetched logo renders it and one without renders no mark at all — the monospace slug stands alone. A logo that 404s also collapses to nothing rather than to the GitHub mark. The picker and repository list keep the existing GitHub default; only the dense chip opts out. **Tests:** unit coverage for uniform row height, the single neutral sub-status line, the model-beside-objective line, and the absent fallback mark (including `RepositoryIcon`'s broken-image path). The browser regression now asserts the 1024px table keeps its header with the two secondary columns hidden and both rows at 64px, with a completed goal beside a running one in the fixture. Full UI suite: 1226 passed; Playwright goals suite: 2 passed; typecheck and lint clean. Preview evidence captured at 1440px and 1120px. PR: #2474 Comment by: @integry (ID: 5793729031) Model: claude-opus-5
|
✅ Applied the requested follow-up changes in commit 26f3d92 Summary of ChangesThe goals list now has the same search and status filtering as tasks and plans.
Verification: typecheck and lint clean, the full UI unit suite passes (1229 tests, including 39 in the goals suite), and the goals browser regressions still hold the 64px uniform row height and the 1024px width bound. Previews were captured at 1280px against the stubbed goals API showing the new toolbar, a status-filtered queue, and a keyword-searched queue. Visual previewGoals toolbar with search and status filterThe goal work queue at 1280px with the new keyword search box and status dropdown beside the existing repository filter. Original unavailable: managed storage is unavailable or the upload has expired. Goals narrowed by keyword searchTyping "billing" matches goal titles, objectives and repositories, leaving 2 of 5 rows with a clear-search control in the input. Original unavailable: managed storage is unavailable or the upload has expired. Goals filtered by statusSelecting Paused narrows the queue to the paused goal and the count reads 1 of 5. Original unavailable: managed storage is unavailable or the upload has expired. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
… as tasks and plans. The goals list now has the same search and status filtering as tasks and plans. **`propr-ui/src/pages/GoalsPage.tsx`** - **Keyword search** — a search box (magnifier icon, `Search goals...` placeholder, inline clear button) sits in the work-queue toolbar, matching the Tasks and Plans inputs. Typing debounces 400ms through the same `useDebouncedCallback` hook those pages use, then writes `?search=` to the URL so a filtered queue is shareable. Every keyword must land somewhere in the goal's title, objective or repository, so extra words narrow rather than widen the result. - **Status filter** — a dropdown beside the existing `Filter` icon offers All Statuses / Running / Paused / Completed / Failed / Cancelled and stores the choice in `?status=`. The transient `cancelling` state folds in under Cancelled so a goal being stopped stays with the cancelled work it is becoming. The badge state and the filter now read from one shared `goalLifecycleState` helper, so the dropdown can never disagree with the badge. - **Repository filter** keeps its existing behaviour and URL param; all three filters compose, and the `X of Y` count reflects the combined result. - **Empty queue** — the reset message names whichever filter emptied it (`No goals match “billing api”`, `No failed goals`, `No goals in acme/api`) and `Show all goals` now clears search, status and repository together instead of only the repository. **`propr-ui/src/pages/GoalsPage.test.tsx`** — three tests: status filtering with cancelling folded into cancelled and URL round-trip, multi-keyword search narrowing the queue plus the clear-search control, and the search-specific empty state resetting every filter. Verification: typecheck and lint clean, the full UI unit suite passes (1229 tests, including 39 in the goals suite), and the goals browser regressions still hold the 64px uniform row height and the 1024px width bound. Previews were captured at 1280px against the stubbed goals API showing the new toolbar, a status-filtered queue, and a keyword-searched queue. PR: #2474 Comment by: @integry (ID: 5794242648) Model: claude-opus-5
CI is green-able again. Here's what was wrong.
## Root cause
`GoalsPage.test.tsx:660` asserted the URL synchronously right after the search debounce fired:
```js
await waitFor(() => expect(screen.queryByText(goal.title)).not.toBeInTheDocument());
expect(screen.getByTestId('location-search')).toHaveTextContent('search=billing+api');
```
`commitSearch` (`GoalsPage.tsx:692`) does two things in one call: `setDebouncedSearch(value)` (a plain state update, which re-filters the list) and `updateFilterParams(...)` → `setSearchParams` (a React Router navigation, which React Router applies inside a transition). Because the debounce fires from a `setTimeout` that isn't wrapped in `act`, the plain update commits first and the transition lands a render later. `waitFor` unblocked on the filtered list, and the location probe was still empty at that instant.
I confirmed the ordering with an instrumented copy of the test: immediately after the list filtered, the probe read `""`; 100 ms later it read `"?search=billing+api"`. So the app behaves correctly — the assertion was racing the transition.
This is not caused by the preview-cache work on this branch; `GoalsPage.tsx` and `GoalsPage.test.tsx` are unchanged against the merge base. The race arrived with the goals search/filter feature (PR #2474) and reproduces 100% of the time on this machine, which is why shard 4 caught it.
## Fix
One assertion in `propr-ui/src/pages/GoalsPage.test.tsx` now waits for the navigation, matching the convention already used for the same probe in `PlanStudioPage.notificationIntent.test.tsx:55`:
```js
// The debounce commits the filter and the URL together, but React Router applies the
// navigation in a transition, so the probe catches up a render after the filtered list.
await waitFor(() => expect(screen.getByTestId('location-search')).toHaveTextContent('search=billing+api'));
```
The later `not.toHaveTextContent('search=')` assertion in the same test is driven by a `fireEvent.click`, whose `act` wrapper flushes the transition before the assertion runs, so it doesn't have this hazard.
## Verification
- `GoalsPage.test.tsx`: 40/40 pass (failed before the change).
- Full `propr-ui` suite: 159 files, 1264 tests pass.
- `tsc --noEmit` and `eslint` clean.
No preview files: the change is test-only and produces no visually perceptible difference.
PR: #2502
Comment by: @propr-dev[bot] (ID: 5800047297)
Model: claude-opus-5











AI Implementation Summary
Closes #2473
Branch:
2473/claude-opus-5-goal-list-ui-improvements-20260923-1021-dypCommits: ✅ Changes committed (2a32615)
AI Processing Completed
Execution Details:
Summary:
Implementation complete. Here's what I changed for issue #2473:
propr-ui/src/pages/GoalsPage.tsxSuccess is quiet —
GoalStatenow rendersCompletedasbg-slate-100 text-slate-600with a checkmark instead of mint green; blue/amber/red stay reserved for running, paused and failed states. The badge also tightened topx-2 py-0.5.Typographic bloat — titles dropped from
text-lgbold two-line clamps totext-sm font-semibold truncate; descriptions truncate to a singletext-xs text-slate-500line; preview thumbnails shrank from 64–80px tiles to inlineh-6 w-6squares grouped beside the title, so rows keep a fixed vertical rhythm.Data mapping — the "Current activity" column is gone. Activity is now live progress only: it renders under the status badge for unsettled goals and is blank once a goal settles, so
completednever appears twice. The agent moved out of the status column into the goal cell as[provider icon] Claude Opus 5(the agent alias stays as screen-reader text and in the hover title, so the icon isn't the only carrier of that information).Icon soup → real columns — usage split into right-aligned
TOKENS,ACTIVE TIMEandOUTPUTcolumns with no icons. Token counts are abbreviated (101,280,735→101M,1.7M,96K) with the exact figure on hover; thresholds round up so a count never reads1000K. Output shows1 PR/0 issueswith open counts on hover, or—when there's nothing yet. Repository is a mono chip per the design guidelines.Header — "Goals" plus subtitle on the top left,
+ New goalon the top right, and directly below a unifiedbg-slate-50filter bar holding the "Work queue" label, the11 of 11count and the repo dropdown. The heading remains for the section's accessible name, restyled as a metadata label.Grid is
40 / 15 / 15 / 10 / 10 / 10atxl, collapsing to the existing two-column labelled layout below that.propr-ui/src/components/PreviewMedia.tsx— added asize="micro"variant (24px squares, no caption) and letclassNameoverride compact sizing; default callers (Tasks, Inbox) are unchanged.Verification: full UI unit suite passes (1220 tests, including updated goal-list assertions and new tests for compact token formatting and quiet completed rows);
tsc --noEmitand eslint are clean; both Playwright goal regressions pass, confirming no horizontal overflow at 1024px or 1280px. I updated the e2e header assertion to adata-testidsince the "Status / runtime" label no longer exists. Desktop (1440px) and mobile (430px) screenshots of the new queue were captured as preview evidence.Detailed Logs:
577c5717-f0e6-4a47-bfd3-03720aa8294fLog files stored at:
/tmp/claude-logs/issue-2473-2026-09-23T10-35-45-337Z-conversation.json/tmp/claude-logs/issue-2473-2026-09-23T10-35-45-337Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #2473.
💡 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
Goal work queue — desktop
Eleven goals in the flattened table: quiet gray Completed badges, one-line title and description, agent icon plus model under the goal, mono repository chip, and right-aligned Tokens (101M), Active time and Output columns under a consolidated Goals header and filter bar.
Original unavailable: managed storage is unavailable or the upload has expired.
Goal work queue — mobile
The same row data at 430px wide, stacking into labelled Repository/Status/Tokens/Active time/Output cells beneath the truncated goal title.
Original unavailable: managed storage is unavailable or the upload has expired.