Repository navigation
[928 by Claude Opus] Refactor Repositories page to use Studio App Shell layout and Add Repository Modal - #930
Conversation
I have implemented the solution for GitHub issue #928 which required refactoring the Repositories page to use the Studio App Shell layout and Add Repository Modal pattern. Changes Made: 1. Created `AddRepositoryModal.tsx` (`propr-ui/src/components/AddRepositoryModal.tsx`) - New centered modal overlay component that extracts the form functionality from `AddRepositoryForm.tsx` - Follows the existing modal pattern from `AgentConfigModal.tsx` - Features: - Semi-transparent backdrop with click-to-close functionality - Modal header with title and close button - Form fields: Repository selector (with datalist), Alias, Base Branch selector - Modal footer with Cancel and Add Repository buttons - Disabled Add button when no repository is selected 2. Refactored `RepositoriesPage.tsx` (`propr-ui/src/pages/RepositoriesPage.tsx`) - Applied the App Shell architecture matching the `SettingsPage` pattern: - Anchored Header (`h-16`): Contains page title "Repositories" and "+ Add Repository" button - Flexible Canvas: Scrollable main content area with repository list - Anchored Footer: Auto-save status indicator matching SettingsPage, plus repository count - Added `isModalOpen` state to manage modal visibility - Added `handleOpenModal()` and `handleCloseModal()` functions - Modified `handleAddRepo()` to close the modal after successful addition - Updated empty state with a button that opens the modal - Removed inline form in favor of modal-based workflow - Updated loading and error states to use App Shell layout The implementation follows existing UI patterns in the codebase and maintains all the original functionality while providing a cleaner, more consistent user experience aligned with the ProPR Studio UI guidelines.
|
make a dummy change (comment) to retrigger CI |
|
✅ Applied the requested follow-up changes in commit 4821d05 Summary of ChangesDone. I've added a simple comment 🤖 Implementation Details
Undo Changes • View Task Execution Processing comment ID: 4017136073✓ |
…top of `propr-ui/src/components/AddRepositoryModal.tsx` to trigger CI to run again. Done. I've added a simple comment `// CI retrigger` at the top of `propr-ui/src/components/AddRepositoryModal.tsx` to trigger CI to run again. PR: #930 Comment by: @integry (ID: 4017136073) Model: claude-opus-4-5-20251101
Accepted main's refactored version using extracted components (RepositoriesLoadingState, RepositoriesErrorState, EmptyRepositoryState, SaveStatusIndicator) instead of inline JSX. Co-Authored-By: Claude Opus 4.6 <[email protected]>
❌ Checks FailedLinting or Build errors were detected. View Logs |
|
✅ Applied the requested follow-up changes in commit 6e2164c Summary of ChangesThe fix is complete. I added a "+ Add Repository" button to the header that calls the
The button is styled consistently with typical action buttons and is placed in the header alongside the save status indicator. Key changes:
🤖 Implementation Details
Undo Changes • View Task Execution Processing comment ID: 4030748180✓ |
… the header that calls the `handleOpenModal` function. This: The fix is complete. I added a "+ Add Repository" button to the header that calls the `handleOpenModal` function. This: 1. Fixes the ESLint error `'handleOpenModal' is assigned a value but never used` 2. Fulfills the original issue requirement #928 which specified: "Refactor `RepositoriesPage.tsx` to have an anchored header (`h-16`) containing the page title and an '+ Add Repository' button" The button is styled consistently with typical action buttons and is placed in the header alongside the save status indicator. Key changes: 1. Fixes the ESLint error `'handleOpenModal' is assigned a value but never used` 2. Fulfills the original issue requirement #928 which specified: "Refactor `RepositoriesPage.tsx` to have an anchored header (`h-16`) containing the page title and an '+ Add Repository' button" PR: #930 Comment by: @github-actions[bot] (ID: 4030748180) Model: claude-opus-4-5-20251101
|
Previously applied merge seems to have lost some of the initial implementation, namely the app shell structure for the repositories screen. |
|
✅ Applied the requested follow-up changes in commit 9492f74 Summary of ChangesThe changes are complete. The RepositoriesPage now has the proper App Shell structure that matches the SettingsPage pattern: Changes made:
Key changes:
🤖 Implementation Details
Undo Changes • View Task Execution Processing comment ID: 4030802153✓ |
…proper App Shell structure that matches the SettingsPage pattern: The changes are complete. The RepositoriesPage now has the proper App Shell structure that matches the SettingsPage pattern: **Changes made:** 1. **Anchored Header (`h-16`)**: Added a fixed-height header with `flex-shrink-0 h-16` containing: - Page title "Repositories" (changed from "Manage Monitored Repositories") - "+ Add Repository" button in the header 2. **Flexible Canvas**: The main content area now uses `flex-1 min-h-0 overflow-y-auto` to allow proper scrolling within the available space 3. **Anchored Footer**: Added a footer matching the SettingsPage pattern with `flex-shrink-0 border-t bg-gray-50` containing the auto-save status indicator, replacing the separate `SaveStatusIndicator` component 4. **App Shell Container**: Wrapped everything in `<div className="flex flex-col h-full bg-white">` to enable the proper flexbox layout 5. **Refactored content rendering**: Extracted content rendering into a `renderContent()` function to keep the loading, error, and normal states within the app shell structure Key changes: **Changes made:** 1. **Anchored Header (`h-16`)**: Added a fixed-height header with `flex-shrink-0 h-16` containing: - Page title "Repositories" (changed from "Manage Monitored Repositories") - "+ Add Repository" button in the header 2. **Flexible Canvas**: The main content area now uses `flex-1 min-h-0 overflow-y-auto` to allow proper scrolling within the available space 3. **Anchored Footer**: Added a footer matching the SettingsPage pattern with `flex-shrink-0 border-t bg-gray-50` containing the auto-save status indicator, replacing the separate `SaveStatusIndicator` component 4. **App Shell Container**: Wrapped everything in `<div className="flex flex-col h-full bg-white">` to enable the proper flexbox layout 5. **Refactored content rendering**: Extracted content rendering into a `renderContent()` function to keep the loading, error, and normal states within the app shell structure PR: #930 Comment by: @integry (ID: 4030802153) Model: claude-opus-4-5-20251101
🚀 Preview Environment DeployedYour PR preview environment is now available: UI: https://pr-930.gitfix.dev This comment is automatically updated on each deployment. |
… up with the right state and merged count, without needing sub-PRs to close first. The tests below pass; I didn't run the full CI suite. I fixed F4: an epic with more than 10 open sub-PRs now ends up with the right state and merged count, without needing sub-PRs to close first. The tests below pass; I didn't run the full CI suite. **What was wrong:** every update read the same first 10 sub-PRs and threw the results away, so the ones past 10 were never read. The epic stayed "undetermined" forever, and that path wrote nothing, not even a changed merged count. **What changed** - **Statuses are kept between updates** (new `pullRequestStatusEpicChildReads.ts`). Each sub-PR status ProPR reads is kept, tied to that sub-PR's head commit and GitHub's last-updated time. - A kept status is used only while both still match, and for at most 10 minutes. - A sub-PR's own status update rewrites its body, which changes its updated time and also triggers an epic update, so an out-of-date kept status is never reused after that. - Each update reads first the sub-PRs with no current status, then those read longest ago, up to 10. Epics with 10 or fewer sub-PRs still have all of them read every time. - To support this, the sub-PR list now also records each open sub-PR's head commit and updated time (`epicMergeProgress.ts`). - **Follow-up updates are scheduled.** If sub-PRs are still unread and the state can't be determined, ProPR schedules another update 5 seconds later. That stops after 20 in a row; reaching it means sub-PRs keep changing faster than they're read, and each change triggers an epic update anyway. - **The count updates while the state is unknown.** The state already shown stays (no new state is claimed), but the count is updated: - in the status block's first line (`🔨 1 of 14 issues merged`), along with its "updated" time. - in the title slot, keeping its emoji and going through the usual title rules: the `prTitleStatus` setting, a slot someone removed is not put back, and the delay before showing⚠️ . The kept statuses live in memory, so after a restart the first updates read the sub-PRs again. One window remains by design: if a sub-PR's status changes but its own update hasn't written the change to GitHub yet, the epic can briefly use the older status. That sub-PR's update then triggers an epic update, which reads it again. **Tests** (`pullRequestStatusEpicSync.test.ts`) - The finding's scenario: 12 open sub-PRs, all work finished. The first update keeps `🔨` with the count updated (`1/14`). The next one reads the two left over and switches to⚠️ "#911 waits to be merged". After a sub-PR merges with more than 10 still open, the count moves to `2/14` and the state stays⚠️ . - A sub-PR that changes after its status was kept is read again (#930 starts working → `🔨 … #930`). - With only one signal sent, the scheduled follow-up alone settles the state. - I changed the existing unread-sub-PR test: it now expects the state to stay and the count to update (`1 of 13`), not "nothing written". - Turning off each part on its own (the kept-status check, the follow-up, using kept statuses) makes the matching new tests fail. - These suites all pass: `pullRequestStatus*`, `epic*` (core) and the root `epicMergeProgress*`. Core typecheck is clean and core `src` lint shows zero warnings. I updated the read-limit wording in `docs/docs/features/pr-status.md`. Nothing visible in the app changed, so there's no preview. PR: #3540 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
…w schedules a follow-up update to read them, even when it finds the epic working. The new regression test passes, and it fails when I put the old source back. I've fixed F7. An epic update that leaves sub-PRs unread now schedules a follow-up update to read them, even when it finds the epic working. The new regression test passes, and it fails when I put the old source back. **What changed** - **The bug:** only the undetermined-state path in `undeterminedEpicUpdate` scheduled the follow-up read. When a sub-PR among the first ten was working, a plan issue was running or the next issue was queued, the epic went down the ordinary path. Nothing else changes while it keeps working, so the sub-PRs past the ten-read limit never had their status shown in the progress comment. - **The fix:** a new helper, `withEpicChildReadContinuation` in `pullRequestStatusEpicSync.ts`, decides when the update runs again. `syncUnderBodyLock` (`pullRequestStatusSync.ts:305`) now uses it for every outcome. Whenever the epic facts ask for more reads, the update runs again after the follow-up delay, or sooner if the title is already due to update earlier. Closed pull requests (no status) schedule nothing. - **Cleanup:** I removed the old scheduling from `undeterminedEpicUpdate`, along with the input field it no longer needs. The undetermined path now gets the same scheduling as every other outcome. The existing 20-in-a-row cap on follow-up reads still applies. **Regression test** I added one test to `pullRequestStatusEpicSync.test.ts`, "a working epic that left sub-PRs unread schedules the update that reads them into the progress comment". It sets up 12 open sub-PRs: #911 is working and read first, and #930 is ready to merge but past the ten-read limit. After one request and no further signal, the follow-up update reads #930 and the progress comment shows `#930 (PR 930) - ready to merge`, while the epic stays `🔨`. On the old source this test fails. **Checks run** - These suites pass: `pullRequestStatusEpicSync` (23), `pullRequestStatusEpic` (20), `pullRequestStatusSync` (70), `pullRequestStatusTitle` (14), `pullRequestStatus` (33), `pullRequestStatusReconcileRuns` (8) and `epicPRCreationStatus` (2). That last one needs `--experimental-test-module-mocks`. - Core typecheck is clean, and lint on `src/services/pullRequestStatus/` reports zero warnings, including the 400-line and complexity limits. - I didn't run the full CI suite. - This change has no visible UI, so there is no preview. **Separate discovery, not changed:** MCP status reads also go through the same sub-PR reading code, so each one counts toward the 20-in-a-row cap on follow-up reads. Frequent MCP reads of a large epic could use up that budget early. Those reads also store what they read, so later updates still converge. I haven't checked whether this matters in practice. PR: #3540 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
AI Implementation Summary
Closes #928
Branch:
928/claude-opus-4-5-20251101-refactor-repositories-pag-20260306-1141-ypnCommits: ✅ Changes committed (28fa577)
AI Processing Completed
Execution Details:
Summary:
Summary
I have implemented the solution for GitHub issue #928 which required refactoring the Repositories page to use the Studio App Shell layout and Add Repository Modal pattern.
Changes Made:
1. Created
AddRepositoryModal.tsx(propr-ui/src/components/AddRepositoryModal.tsx)AddRepositoryForm.tsxAgentConfigModal.tsx2. Refactored
RepositoriesPage.tsx(propr-ui/src/pages/RepositoriesPage.tsx)SettingsPagepattern:h-16): Contains page title "Repositories" and "+ Add Repository" buttonisModalOpenstate to manage modal visibilityhandleOpenModal()andhandleCloseModal()functionshandleAddRepo()to close the modal after successful additionThe implementation follows existing UI patterns in the codebase and maintains all the original functionality while providing a cleaner, more consistent user experience aligned with the ProPR Studio UI guidelines.
Detailed Logs:
82ba6f29-0e4e-413a-addd-344869ed3258Log files stored at:
/tmp/claude-logs/issue-928-2026-03-06T11-45-03-854Z-conversation.json/tmp/claude-logs/issue-928-2026-03-06T11-45-03-854Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #928.
💡 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!