Skip to content

[3582 by Claude Opus 5.5] When searching for repositories, the default action should be to open the repository, not it's tasks (keep the tasks button too, but the user must explicitly choose to click it) - #3583

Merged
integry merged 2 commits into
mainfrom
3582/claude-opus-5-5-when-searching-for-reposi-20261116-1009-e3u
Nov 16, 2026

Conversation

@propr-dev

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

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3582

Branch: 3582/claude-opus-5-5-when-searching-for-reposi-20261116-1009-e3u
Commits: ✅ Changes committed (9010091)


AI Processing Completed

Execution Details:

Summary:
When you pick a repository in global search, it now opens that repository instead of its tasks. The tasks list is still there, behind its own Tasks button that you have to click.

What changed

  • Default action: pressing Enter, clicking the result or clicking the main button opens the Repositories page with that repository selected. The main button now says Open repository instead of Open tasks.
  • Tasks button: a separate Tasks button, shown only for repository results, opens /tasks?repository=<name> as before.
  • Branch selection: when the same repository is monitored on more than one branch, the Repositories page now selects the branch you highlighted in search, not just the first entry with that name. It falls back to the name alone if the branch doesn't match. The page already accepted a "select this repo" signal from the To-Do list's "View Todos" link; search now uses the same mechanism.

The changes are in globalSearchModel.ts, GlobalSearch.tsx, GlobalSearchResults.tsx and RepositoriesPage.tsx.

Tests

  • I added three unit tests to GlobalSearch.palette.test.tsx: Enter opens the repository with its branch, the Tasks button opens the task list, and plans and tasks don't get a Tasks button. All 37 tests in the search and Repositories page test files pass.
  • A new browser test, e2e/global-search-repository.pw.ts, checks the full flow in Chromium, including that the highlighted release branch entry is the one selected. Both of its tests pass.
  • Typecheck and lint show no problems in the changed files. Typecheck does fail in the desktop app and one plan studio test, which can't find the electron module in this container; none of those files were changed here.

In the preview pane, the GitHub button now wraps onto a second line, under Open repository and Tasks, because three buttons don't fit on one row (see the preview).

I captured two previews: the new repository actions in the search panel, and the Repositories page opened from search with the right branch selected.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (4 files)
    • propr-ui/src/components/GlobalSearch.tsx (+10/−2)
    • propr-ui/src/components/GlobalSearchResults.tsx (+15/−2)
    • propr-ui/src/components/globalSearchModel.ts (+19/−2)
    • propr-ui/src/pages/RepositoriesPage.tsx (+4/−3)
  • Low risk (2 files)
    • propr-ui/e2e/global-search-repository.pw.ts (added, +72/−0)
    • propr-ui/src/components/GlobalSearch.palette.test.tsx (+25/−2)

Validation evidence

  • No repository validation commands ran.

Diff size: 6 files changed, +145/−11 lines

Detailed Logs:

  • Conversation: 85 messages
  • Session: 9eadd652-31ec-4143-ab40-43e6576b79fc

Log files stored at:

  • conversation: /usr/src/app/logs/executions/issue-3582-2026-11-16T10-17-41-292Z-conversation.json
  • output: /usr/src/app/logs/executions/issue-3582-2026-11-16T10-17-41-292Z-output.txt
Latest Conversation Messages
ASSISTANT: [content unavailable]

ASSISTANT: When you pick a repository in global search, it now opens that repository instead of its tasks. The tasks list is still there, behind its own **Tasks** button that you have to click.

**What changed**...


This PR was created automatically by ProPR after processing issue #3582.


💡 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

Repository result actions

Repository result actions

A repository search result now offers "Open repository" as the default (Enter) action, with a separate explicit "Tasks" button and the GitHub link.

Full-size original

Repository opened from search

Repository opened from search

After pressing Enter on the highlighted integry/mcptest (release branch) result, the Repositories page opens with that exact branch entry selected.

Full-size original

…tory instead of its tasks. The tasks list is still there, behind its own Tasks button that you have to click.

What changed
- Default action: pressing Enter, clicking the result or clicking the main button opens the Repositories page with that repository selected. The main button now says Open repository instead of Open tasks.
- Tasks button: a separate Tasks button, shown only for repository results, opens `/tasks?repository=<name>` as before.
- Branch selection: when the same repository is monitored on more than one branch, the Repositories page now selects the branch you highlighted in search, not just the first entry with that name. It falls back to the name alone if the branch doesn't match. The page already accepted a "select this repo" signal from the To-Do list's "View Todos" link; search now uses the same mechanism.

The changes are in `globalSearchModel.ts`, `GlobalSearch.tsx`, `GlobalSearchResults.tsx` and `RepositoriesPage.tsx`.

Tests
- I added three unit tests to `GlobalSearch.palette.test.tsx`: Enter opens the repository with its branch, the Tasks button opens the task list, and plans and tasks don't get a Tasks button. All 37 tests in the search and Repositories page test files pass.
- A new browser test, `e2e/global-search-repository.pw.ts`, checks the full flow in Chromium, including that the highlighted `release` branch entry is the one selected. Both of its tests pass.
- Typecheck and lint show no problems in the changed files. Typecheck does fail in the desktop app and one plan studio test, which can't find the `electron` module in this container; none of those files were changed here.

In the preview pane, the GitHub button now wraps onto a second line, under Open repository and Tasks, because three buttons don't fit on one row (see the preview).

I captured two previews: the new repository actions in the search panel, and the Repositories page opened from search with the right branch selected.
@propr-dev propr-dev Bot changed the title 🔨 [3582 by Claude Opus 5.5] When searching for repositories, the default action should be to open the repository, not it's tasks (keep the tasks button too, but the user must explicitly choose to click it) ✅ [3582 by Claude Opus 5.5] When searching for repositories, the default action should be to open the repository, not it's tasks (keep the tasks button too, but the user must explicitly choose to click it) Nov 16, 2026
@integry

integry commented Nov 16, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev propr-dev Bot changed the title ✅ [3582 by Claude Opus 5.5] When searching for repositories, the default action should be to open the repository, not it's tasks (keep the tasks button too, but the user must explicitly choose to click it) 🔨 [3582 by Claude Opus 5.5] When searching for repositories, the default action should be to open the repository, not it's tasks (keep the tasks button too, but the user must explicitly choose to click it) Nov 16, 2026
@propr-dev

propr-dev Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR changes repository search results to open the Repositories page and adds an explicit Tasks action. It needs minor changes before merge to preserve that action on narrow screens and correctly select entries without an explicit branch.

✅ Consistent default action — Enter, result clicks, and the primary preview button share openItem, which now navigates with repository selection state.

✅ Targeted coverage — Added tests cover repository navigation, explicit task navigation, and selection between two named branches. Current checks report 18 passed, none failed or pending.

Merge blockers

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

F1: 🔴 Keep Tasks accessible on narrow screens

  • Category: requirement

  • Required behavior: Keep the repository Tasks button available as an explicitly chosen action.

  • Evidence: propr-ui/src/components/GlobalSearch.tsx:SearchPreview and propr-ui/src/components/GlobalSearchResults.tsx:SearchPreview

    1. Open repository search at a viewport below the md breakpoint.
    2. The preview container has hidden ... md:block, hiding the newly added Tasks button.
    3. Selecting the repository now opens /repositories; no repository-specific Tasks action remains available in the visible search interface.

    The footer's task search uses the search text, not the selected repository filter, so it does not replace this action. The new browser tests force a 1440px viewport and cannot catch the gap. Verification provenance: static trace of the supplied rendering and navigation paths.

  • Minimum fix: Expose an explicit Tasks action for the selected repository in the narrow-screen palette, using the existing task-navigation callback.

F2: 🔴 Match repositories without explicit branches

  • Category: correctness

  • Required behavior: Opening a repository search result must select the repository entry the user chose, including its branch identity.

  • Evidence: propr-ui/src/components/globalSearchModel.ts:getItemState and propr-ui/src/pages/RepositoriesPage.tsx:47-49

    1. Configure two entries in this order: owner/repo with baseBranch: 'release', then owner/repo without baseBranch.
    2. Select the second entry in global search. getItemState omits selectBranch because its branch is absent.
    3. The destination skips branch matching and selects the first entry with that name, opening the release entry instead.

    The supplied repository parser preserves these as distinct entries through its name-plus-branch deduplication. The fallback therefore does not protect this case; it causes the incorrect selection. Existing tests cover two explicit branch names but not an implicit/default branch alongside an explicit one. Verification provenance: static trace of the supplied producer, state serialization, and destination matching.

  • Minimum fix: Represent default-branch identity explicitly in search navigation state and match it exactly, while retaining name-only fallback for legacy callers such as QuickAddTodo.

Suggestions

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

No suggestions.

Score

The implementation is focused and has useful coverage with passing current checks, but two reachable selection and accessibility gaps remain. Both can be corrected locally.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 34s
  • Tokens: 44,256 (43,454 in / 802 out)
  • Cost: $0.37

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 F2

🤖 Review by ProPR

@propr-dev propr-dev Bot changed the title 🔨 [3582 by Claude Opus 5.5] When searching for repositories, the default action should be to open the repository, not it's tasks (keep the tasks button too, but the user must explicitly choose to click it) ⚠️⑥ [3582 by Claude Opus 5.5] When searching for repositories, the default action should be to open the repository, not it's tasks (keep the tasks button too, but the user must explicitly choose to click it) Nov 16, 2026
@integry

integry commented Nov 16, 2026

Copy link
Copy Markdown
Owner

/fix

@propr-dev propr-dev Bot changed the title ⚠️⑥ [3582 by Claude Opus 5.5] When searching for repositories, the default action should be to open the repository, not it's tasks (keep the tasks button too, but the user must explicitly choose to click it) 🔨 [3582 by Claude Opus 5.5] When searching for repositories, the default action should be to open the repository, not it's tasks (keep the tasks button too, but the user must explicitly choose to click it) Nov 16, 2026
@propr-dev

propr-dev Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit c79207b

Addressed 1 AI review comment (IDs: 6915738421)

Addressed findings F1, F2

Summary of Changes

I fixed both selected findings, F1 and F2, and the unit and browser tests for them pass.

F1: Tasks button missing on narrow screens

  • Below the md breakpoint the preview pane, and its Tasks button, is hidden. The palette footer now shows a Tasks for → action whenever a repository is highlighted. It opens the same /tasks?repository=… route through the same callback as the Tasks button in the preview pane.
  • It isn't the default action: Enter still opens the repository. It doesn't show for plans or tasks, and it hides itself at md and wider, where the preview's Tasks button is visible.
  • It's a small NarrowRepositoryTasksAction component in GlobalSearchResults.tsx. I didn't write it inline in GlobalSearch.tsx because that pushed the component past the lint complexity limit, which allows no warnings.

F2: repositories without an explicit branch

  • getItemState now always sends a branch. If the entry has no explicit branch (missing or empty), it sends selectBranch: null, so the "no explicit branch" case is no longer dropped.
  • A new findSelectedRepository in globalSearchModel.ts handles the matching, and RepositoriesPage uses it. When a branch is given, including null, it must match exactly. If only a name is given, as QuickAddTodo's "View Todos" link does, it still picks the first entry with that name. It also falls back to the name if the branch no longer exists.
  • I found no other code that produces or reads this navigation state.

Tests

  • Unit tests: I added tests for:

    • turning a missing or empty branch into null
    • picking the no-branch entry when a release entry with the same name comes first
    • exact matching on a named branch
    • the name-only fallbacks

    Three tests in GlobalSearch.palette.test.tsx check the footer action: it sits outside the preview, is hidden at md and up, opens the repository's tasks, and doesn't appear for non-repository results. Two of the new unit tests fail when I put the old getItemState back, so they do catch the bug. All 43 tests in these files pass.

  • Browser tests: The Playwright file now includes a third integry/mcptest entry with no branch, and has two new tests:

    • Choosing that entry selects it rather than the release entry.
    • At 390px, with search opened from the mobile menu, the preview pane is hidden, the footer Tasks action is fully on screen, and tapping it opens the repository's tasks.

    All 4 browser tests pass.

  • Lint is clean on the changed files, and typecheck shows no new errors.

I captured one preview: the 390px search palette with the new footer Tasks action.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (4 files)
    • propr-ui/src/components/GlobalSearch.tsx (+2/−1)
    • propr-ui/src/components/GlobalSearchResults.tsx (+19/−0)
    • propr-ui/src/components/globalSearchModel.ts (+21/−3)
    • propr-ui/src/pages/RepositoriesPage.tsx (+3/−3)
  • Low risk (3 files)
    • propr-ui/e2e/global-search-repository.pw.ts (+39/−3)
    • propr-ui/src/components/GlobalSearch.palette.test.tsx (+16/−0)
    • propr-ui/src/components/globalSearchModel.test.ts (+31/−1)

Validation evidence

  • No repository validation commands ran.

Diff size: 7 files changed, +131/−11 lines

Visual preview

Narrow-screen repository Tasks action

Narrow-screen repository Tasks action

Global search at 390px (preview pane hidden): the highlighted repository's explicit "Tasks for mcptest →" action in the palette footer

Full-size original


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @integry
  • Time: 9m 36s
  • Tokens: 1,836,139 (1,823,395 in / 12,744 out)
  • Cost: $0.94

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 ID: 6915767062✓

… browser tests for them pass.

I fixed both selected findings, F1 and F2, and the unit and browser tests for them pass.

**F1: Tasks button missing on narrow screens**
- Below the `md` breakpoint the preview pane, and its Tasks button, is hidden. The palette footer now shows a **Tasks for <repo> →** action whenever a repository is highlighted. It opens the same `/tasks?repository=…` route through the same callback as the Tasks button in the preview pane.
- It isn't the default action: Enter still opens the repository. It doesn't show for plans or tasks, and it hides itself at `md` and wider, where the preview's Tasks button is visible.
- It's a small `NarrowRepositoryTasksAction` component in `GlobalSearchResults.tsx`. I didn't write it inline in `GlobalSearch.tsx` because that pushed the component past the lint complexity limit, which allows no warnings.

**F2: repositories without an explicit branch**
- `getItemState` now always sends a branch. If the entry has no explicit branch (missing or empty), it sends `selectBranch: null`, so the "no explicit branch" case is no longer dropped.
- A new `findSelectedRepository` in `globalSearchModel.ts` handles the matching, and `RepositoriesPage` uses it. When a branch is given, including `null`, it must match exactly. If only a name is given, as QuickAddTodo's "View Todos" link does, it still picks the first entry with that name. It also falls back to the name if the branch no longer exists.
- I found no other code that produces or reads this navigation state.

**Tests**
- **Unit tests:** I added tests for:
  - turning a missing or empty branch into `null`
  - picking the no-branch entry when a `release` entry with the same name comes first
  - exact matching on a named branch
  - the name-only fallbacks

  Three tests in `GlobalSearch.palette.test.tsx` check the footer action: it sits outside the preview, is hidden at `md` and up, opens the repository's tasks, and doesn't appear for non-repository results. Two of the new unit tests fail when I put the old `getItemState` back, so they do catch the bug. All 43 tests in these files pass.
- **Browser tests:** The Playwright file now includes a third `integry/mcptest` entry with no branch, and has two new tests:
  - Choosing that entry selects it rather than the `release` entry.
  - At 390px, with search opened from the mobile menu, the preview pane is hidden, the footer Tasks action is fully on screen, and tapping it opens the repository's tasks.

  All 4 browser tests pass.
- Lint is clean on the changed files, and typecheck shows no new errors.

I captured one preview: the 390px search palette with the new footer Tasks action.

PR: #3583
Comment by: @integry (ID: 6915767062)
Model: Claude Opus 5.5
@propr-dev propr-dev Bot changed the title 🔨 [3582 by Claude Opus 5.5] When searching for repositories, the default action should be to open the repository, not it's tasks (keep the tasks button too, but the user must explicitly choose to click it) ⚠️⑥ [3582 by Claude Opus 5.5] When searching for repositories, the default action should be to open the repository, not it's tasks (keep the tasks button too, but the user must explicitly choose to click it) Nov 16, 2026
@integry

integry commented Nov 16, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev propr-dev Bot changed the title ⚠️⑥ [3582 by Claude Opus 5.5] When searching for repositories, the default action should be to open the repository, not it's tasks (keep the tasks button too, but the user must explicitly choose to click it) 🔨 [3582 by Claude Opus 5.5] When searching for repositories, the default action should be to open the repository, not it's tasks (keep the tasks button too, but the user must explicitly choose to click it) Nov 16, 2026
@propr-dev

propr-dev Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

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

Overall Evaluation

The PR meets the objective: repository results open the selected repository by default, while Tasks remains an explicit secondary action. The implementation is focused and merge-ready within scope, conditional on the remaining test shard completing successfully.

✅ Consistent default navigation — Enter, result clicks, and the primary preview button share openItem, which passes repository selection state to /repositories.

✅ Branch-aware selection — Navigation distinguishes explicit branches from the implicit default entry and preserves compatibility with existing name-only navigation.

✅ Explicit Tasks access — Dedicated desktop and narrow-screen actions retain the repository task filter, with unit and browser tests covering the changed behavior.

This review used the supplied code and context only; no commands or tests were run. The supplied checks report no failures and one pending shard.

Merge blockers

No merge blockers.

Suggestions

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

S1: 🟢 Clarify branch fallback documentation

In propr-ui/src/components/globalSearchModel.ts, the selection comments say branches “must match exactly,” but findSelectedRepository deliberately falls back to the first same-name entry when the branch is missing, and a test confirms that behavior. Documenting this fallback would make the contract clearer. This is optional documentation cleanup; the ordinary branch-selection paths correctly preserve the selected entry.

Score

The change fulfills the requested behavior with focused implementation and relevant regression coverage. No merge-blocking defect was verified; final readiness remains conditional on the pending check.

Score: 9/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 24s
  • Tokens: 47,988 (47,573 in / 415 out)
  • Cost: $0.39

View Task


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

Copy and edit to choose records from this review:

/fix S1

🤖 Review by ProPR

@propr-dev propr-dev Bot changed the title 🔨 [3582 by Claude Opus 5.5] When searching for repositories, the default action should be to open the repository, not it's tasks (keep the tasks button too, but the user must explicitly choose to click it) ✅⑨ [3582 by Claude Opus 5.5] When searching for repositories, the default action should be to open the repository, not it's tasks (keep the tasks button too, but the user must explicitly choose to click it) Nov 16, 2026
@integry
integry merged commit af69fb5 into main Nov 16, 2026
42 checks passed
@integry
integry deleted the 3582/claude-opus-5-5-when-searching-for-reposi-20261116-1009-e3u branch November 16, 2026 12:46
@propr-dev propr-dev Bot changed the title ✅⑨ [3582 by Claude Opus 5.5] When searching for repositories, the default action should be to open the repository, not it's tasks (keep the tasks button too, but the user must explicitly choose to click it) [3582 by Claude Opus 5.5] When searching for repositories, the default action should be to open the repository, not it's tasks (keep the tasks button too, but the user must explicitly choose to click it) Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

1 participant