Skip to content

[2473 by Claude Opus 5] Goal list UI improvements - #2474

Merged
integry merged 4 commits into
mainfrom
2473/claude-opus-5-goal-list-ui-improvements-20260923-1021-dyp
Sep 23, 2026
Merged

integry merged 4 commits into
mainfrom
2473/claude-opus-5-goal-list-ui-improvements-20260923-1021-dyp

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #2473

Branch: 2473/claude-opus-5-goal-list-ui-improvements-20260923-1021-dyp
Commits: ✅ Changes committed (2a32615)


AI Processing Completed

Execution Details:

  • Issue: Goal list UI improvements #2473
  • Repository: integry/propr
  • Status: Success
  • Execution Time: 13m 45s
  • Tokens used: 5.52M tokens [5.48M input + 40.33K output]
  • API cost: $4.45
  • Timestamp: Sep 23, 2026, 10:35 AM UTC
  • LLM Model: Claude Opus 5
  • Subscription usage: Session +3%, Weekly +1%

Summary:
Implementation complete. Here's what I changed for issue #2473:

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.

Detailed Logs:

  • Conversation: 30 messages
  • Session: 577c5717-f0e6-4a47-bfd3-03720aa8294f

Log files stored at:

  • conversation: /tmp/claude-logs/issue-2473-2026-09-23T10-35-45-337Z-conversation.json
  • output: /tmp/claude-logs/issue-2473-2026-09-23T10-35-45-337Z-output.txt
Latest Conversation Messages
ASSISTANT: [content unavailable]

ASSISTANT: Implementation complete. Here's what I changed for issue #2473:

**`propr-ui/src/pages/GoalsPage.tsx`**

1. **Success is quiet** — `GoalState` now renders `Completed` as `bg-slate-100 text-slate-600` ...


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

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

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.

`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.
@integry

integry commented Sep 23, 2026

Copy link
Copy Markdown
Owner

1. The "Skeleton Loader" Anti-Pattern (Repository Column)

Look at the integry/propr blocks in the REPOSITORY column.

  • The Flaw: You wrapped the repository names in light gray boxes with an arbitrary fixed width that extends far past the text. They look like disabled input fields or broken skeleton loaders waiting for data.
  • The Fix: Technical entities must use the established Monospace Code Chip specification.
    • Remove the fixed width (w-full or whatever is stretching it).
    • Apply: inline-flex font-mono text-[12px] bg-slate-100 border border-slate-200 text-slate-800 rounded-sm px-1.5 py-0.5.
    • The background must tightly hug the text.

5. Inconsistent Status Badge Geometry

Look down the STATUS column.

  • The Flaw:
    • Running is a blue pill (no icon).
    • Completed is a gray pill (with a check circle icon).
    • Failed is a red pill (no icon).
    • Paused is an amber pill (no icon).
  • The Fix: Status badges must share the exact same geometric logic. If one has an icon, they all need an icon. Use your established bracket pattern or strict pills: [ ⟳ Running ], [ ● Completed ], [ ▲ Failed ], [ ⏸ Paused ].

To show repository names, use a common component that can be reused across the UI, this should include the repository icon

image

@propr-dev

propr-dev Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit eea98de

Summary of Changes

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.

Visual preview

Goal queue columns

Goal queue columns

Repository 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 1440px

Goal queue at 1440px

Full 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 430px

Goal queue at 430px

Stacked 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

  • Model: Claude Opus 5 (high)
  • Requested By: @integry
  • Time: 8m 45s
  • Tokens: 2,240,749 (2,220,016 in / 20,733 out)
  • Cost: $2.03

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 Implement fixes for issues found by /review /fix or /fix address the null check issue
/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: 5793471674✓

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
@integry

integry commented Sep 23, 2026

Copy link
Copy Markdown
Owner

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)

  • The Flaw: By allowing the Running and Cancelling rows to wrap 3 lines of text (Status + Task + Step Count) and the Output column to wrap 2 lines, you have ruptured the vertical rhythm. Your row heights vary wildly.
  • The Reality: A 6-column data table is inherently hostile to narrow screens. Wrapping text inside a cell does not solve horizontal overflow; it just makes the table look broken and chaotic on all screen sizes.
  • The Proper Fix: Desktop tables must maintain strict, uniform row heights (e.g., h-16).
    • If the screen is narrow, you do not wrap text. You apply truncate to the text cells, or you hide secondary columns entirely (e.g., hidden lg:table-cell on TOKENS and ACTIVE TIME), or you place the entire table in a horizontally scrolling container (overflow-x-auto).
    • Never destroy your primary desktop layout to accommodate a viewport constraint. Truncate the sub-status to one line.

5. Status Sub-text Contrast Failure

  • The Flaw: Look at the blue sub-status text under Running (Implement responsive...). The specific shade of blue/slate you chose is too low-contrast against the white background. It looks washed out, or like a disabled hyperlink.
  • The Fix: If it is a secondary process running underneath the primary status, use your standard neutral secondary text (text-slate-500 or text-slate-600). Do not inject weak tints of blue.
    Your justification for both the mock data and the fallback icons exposes a fundamental misunderstanding of how to engineer resilient, high-density interfaces.

2. The Fallback Logo Anti-Pattern

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

  • The Flaw: In a typical engineering environment, the vast majority of internal repositories will not have custom branding or detected logos. Therefore, your "fallback" becomes the dominant visual element. You are guaranteeing that the column turns into a wall of 50 repeating GitHub icons.
  • The Reality: High-density developer tools (like GitHub's own repository lists, Linear, or VS Code) do not blast repeating branded logos in dense tables. It creates massive cognitive noise.
  • The Fix:
    • If a repository has a distinct, fetched logo, render it.
    • If it does not have one, do not render a fallback icon. Let the monospace slug (acme/web) stand alone. The column header already provides the context. In data-dense environments, omitting the icon is vastly superior to repeating a default one.

@propr-dev

propr-dev Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 52f785d

Summary of Changes

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.

Visual preview

Goal queue at 1440px

Goal queue at 1440px

Six 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 1120px

Goal queue at 1120px

The 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

  • Model: Claude Opus 5 (high)
  • Requested By: @integry
  • Time: 13m 4s
  • Tokens: 3,370,013 (3,332,989 in / 37,024 out)
  • Cost: $3.18

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 Implement fixes for issues found by /review /fix or /fix address the null check issue
/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: 5793729031✓

… 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
@integry

integry commented Sep 23, 2026

Copy link
Copy Markdown
Owner

Goals list should have the same search/filter functionality as tasks and plans (filter by status and search by keywords):

image image

@propr-dev

propr-dev Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 26f3d92

Summary of Changes

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.

Visual preview

Goals toolbar with search and status filter

Goals toolbar with search and status filter

The 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 search

Goals narrowed by keyword search

Typing "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 status

Goals filtered by status

Selecting 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

  • Model: Claude Opus 5 (high)
  • Requested By: @integry
  • Time: 11m 21s
  • Tokens: 2,850,131 (2,823,080 in / 27,051 out)
  • Cost: $2.57
  • Subscription usage: Session +4%

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 Implement fixes for issues found by /review /fix or /fix address the null check issue
/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: 5794242648✓

… 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
@integry
integry merged commit 57d0101 into main Sep 23, 2026
37 checks passed
@integry
integry deleted the 2473/claude-opus-5-goal-list-ui-improvements-20260923-1021-dyp branch September 23, 2026 12:38
propr-dev Bot pushed a commit that referenced this pull request Sep 23, 2026
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
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.

Goal list UI improvements

1 participant