Skip to content

[900 by Claude Opus] Enhance Repositories Page empty state design - #911

Merged
propr-dev[bot] merged 1 commit into
892-epic-create-usesystemreadiness-xcnfrom
900/claude-opus-4-5-20251101-enhance-repositories-page-20260303-1235-azt
Mar 3, 2026
Merged

propr-dev[bot] merged 1 commit into
892-epic-create-usesystemreadiness-xcnfrom
900/claude-opus-4-5-20251101-enhance-repositories-page-20260303-1235-azt

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #900

Branch: 900/claude-opus-4-5-20251101-enhance-repositories-page-20260303-1235-azt
Commits: ✅ Changes committed (d793890)


AI Processing Completed

Execution Details:

  • Issue: Enhance Repositories Page empty state design #900
  • Repository: integry/gitfix
  • Status: Success
  • Execution Time: 1m 10s
  • Tokens used: 581.48K tokens [581.02K input + 463 output]
  • API cost: $0.53
  • Timestamp: Mar 3, 2026, 12:37 PM UTC
  • LLM Model: Claude Opus 4.5

Summary:
The implementation is complete. Let me provide a summary:

Implementation Summary

I've successfully enhanced the empty state design in RepositoriesPage.tsx (lines 364-405) when repos.length === 0. The changes include:

Visual Enhancements:

  1. Gradient background - Changed from flat bg-gray-50 to bg-gradient-to-b from-gray-50 to-white for a more polished look
  2. Enhanced icon container - Added a larger (20x20) circular container with bg-primary-50 background
  3. Improved icon - Larger icon (10x10) with text-primary-500 color and an additional download arrow path to suggest the action of adding
  4. Better shadow and rounded corners - Added shadow-sm and rounded-lg
  5. Increased padding - Changed from py-12 px-4 to py-16 px-6

Content Improvements:

  1. Welcoming headline - Changed from "No repositories configured" to "Welcome! Add Your First Repository"
  2. Descriptive text - Added contextual explanation: "Repositories are the foundation of ProPR. Add a repository to enable AI-powered code reviews, automated planning, and intelligent monitoring for your projects."
  3. Feature highlights - Added three checkmark items showing key benefits:
    • AI Code Reviews
    • Smart Planning
    • Codebase Indexing
  4. Clear call-to-action - Added guidance text: "Use the form above to select a repository from your GitHub account."

Acceptance Criteria Met:

  • An appealing empty state is shown instead of generic text
  • The state helps onboard the user contextually by explaining why adding a repository is the crucial next step

The implementation follows the existing codebase patterns seen in NewPlanForm.tsx and AgentsListSection.tsx for consistency.

Detailed Logs:

  • Conversation: 31 messages
  • Session: 362ef958-8d89-4f81-a64f-45f9b7177c69

Log files stored at:

  • conversation: /tmp/claude-logs/issue-900-2026-03-03T12-37-06-763Z-conversation.json
  • output: /tmp/claude-logs/issue-900-2026-03-03T12-37-06-763Z-output.txt
Latest Conversation Messages
ASSISTANT: [content unavailable]

ASSISTANT: The implementation is complete. Let me provide a summary:

## Implementation Summary

I've successfully enhanced the empty state design in `RepositoriesPage.tsx` (lines 364-405) when `repos.length ===...


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


💡 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!

Implementation Summary

I've successfully enhanced the empty state design in `RepositoriesPage.tsx` (lines 364-405) when `repos.length === 0`. The changes include:

Visual Enhancements:
1. Gradient background - Changed from flat `bg-gray-50` to `bg-gradient-to-b from-gray-50 to-white` for a more polished look
2. Enhanced icon container - Added a larger (20x20) circular container with `bg-primary-50` background
3. Improved icon - Larger icon (10x10) with `text-primary-500` color and an additional download arrow path to suggest the action of adding
4. Better shadow and rounded corners - Added `shadow-sm` and `rounded-lg`
5. Increased padding - Changed from `py-12 px-4` to `py-16 px-6`

Content Improvements:
1. Welcoming headline - Changed from "No repositories configured" to "Welcome! Add Your First Repository"
2. Descriptive text - Added contextual explanation: "Repositories are the foundation of ProPR. Add a repository to enable AI-powered code reviews, automated planning, and intelligent monitoring for your projects."
3. Feature highlights - Added three checkmark items showing key benefits:
   - AI Code Reviews
   - Smart Planning
   - Codebase Indexing
4. Clear call-to-action - Added guidance text: "Use the form above to select a repository from your GitHub account."

Acceptance Criteria Met:
- An appealing empty state is shown instead of generic text
- The state helps onboard the user contextually by explaining why adding a repository is the crucial next step

The implementation follows the existing codebase patterns seen in `NewPlanForm.tsx` and `AgentsListSection.tsx` for consistency.
@propr-dev

propr-dev Bot commented Mar 3, 2026

Copy link
Copy Markdown
Contributor Author

🚀 Preview Environment Deployed

Your PR preview environment is now available:

UI: https://pr-911.gitfix.dev


This comment is automatically updated on each deployment.

@propr-dev
propr-dev Bot merged commit b951c5e into 892-epic-create-usesystemreadiness-xcn Mar 3, 2026
1 check passed
@propr-dev
propr-dev Bot deleted the 900/claude-opus-4-5-20251101-enhance-repositories-page-20260303-1235-azt branch March 3, 2026 12:39
propr-dev Bot pushed a commit that referenced this pull request Nov 14, 2026
… 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
propr-dev Bot pushed a commit that referenced this pull request Nov 14, 2026
…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
propr-dev Bot pushed a commit that referenced this pull request Nov 14, 2026
…vious code and pass now. The three epic status suites pass (49 tests), core typecheck is clean, and the two changed source files lint with zero warnings. I didn't run the full CI suite.

I fixed F8 and F9. The new regression tests fail on the previous code and pass now. The three epic status suites pass (49 tests), core typecheck is clean, and the two changed source files lint with zero warnings. I didn't run the full CI suite.

**F8: an epic whose queue isn't ready no longer shows queued work**
- `nextIssueQueued` in `pullRequestStatusEpicFacts.ts` now also requires `queue.ready`, the same check `startEpicQueueHead` and `advanceEpicQueue` make. The check comes before the sequential/parallel split, so it covers:
  - a pending head.
  - a merged head with an issue still to start.
  - the parallel branch.
- Such an epic now shows `⚠️ … nothing in progress` instead of `🔨 … #N starts next`.
- I checked what happens when the queue becomes ready. Setup and recovery call `startEpicQueueHead` right away. When the head starts, its status change triggers an epic update, so the `⚠️` doesn't linger.
- Two new tests in `pullRequestStatusEpicSync.test.ts` cover an unready queue with nothing running, one sequential and one parallel. Each checks the epic goes back to `🔨 … starts next` once the queue is ready.

**F9: large stable epics are now read to the end**
- The limit of 20 continuations used to count every pass. Now an update reads 10 sub-PRs and counts as progress when it reads one that hadn't been read since the epic was last fully read. The count is kept in `pullRequestStatusEpicChildReads.ts`.
- Only updates that read nothing new count toward the limit, which is now `MAX_STALLED_EPIC_CHILD_READ_PASSES` (20 in a row). These happen when sub-PRs keep changing as fast as they are read. Any progress resets the count, and so does an update that leaves nothing unread.
- Sub-PRs not yet read are always read first, so a stable epic of any size keeps scheduling updates until all are read.
- New tests:
  - **211 sub-PRs, end to end:** the epic was published as working, and the scheduled updates alone must reach `⚠️ 1 of 213 issues merged · #911 … waits to be merged`. The old code stopped one sub-PR short.
  - **Unit tests (new file `pullRequestStatusEpicChildReads.test.ts`):**
    - 211 and 1000 stable sub-PRs are each read in `ceil(N/10)` updates.
    - Sub-PRs that change every time they are read stop the updates after 2 progressing updates plus 20 stalled ones.
    - A newly opened sub-PR resets the stall count.
  - **Mutation check:** I removed the limit on purpose, and two of the unit tests failed.

I also added one clause each about the readiness check and the continuation rule to the epic section of `docs/docs/features/pr-status.md`. There's no visual change, so I made no preview.

**Separate finding, not fixed:** with 10 reads per update, statuses kept for 10 minutes, and updates at least 5 seconds apart, roughly 1,000 open sub-PRs or more can't all be held at once. Statuses expire as fast as they're read, so the stall limit ends the updates and the epic keeps its published state. The list check allows up to 1,000 pull requests into an epic branch, so this sits at the extreme end of what's accepted. Fixing it would need a larger per-update read budget or a longer retention time, which is a design choice outside F9.

PR: #3540
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant