Show pending bounty proposals on detail pages#897
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR adds template rendering and test coverage for pending treasury proposals in bounty detail pages. The template now displays a conditional acceptance card listing payout proposals with treasury links and submitted work URLs, plus close proposal details with reference handling. Tests are updated to capture proposal IDs and assert the new sections appear with correct messaging and links. ChangesPending Treasury Proposals Display
Possibly related PRs
🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
sayuru-akash
left a comment
There was a problem hiding this comment.
Reviewed current head a73ac5e630083652d45ea8818f5c18ee14af6b02 as a non-author.
I approve this from the public bounty-detail page behavior angle.
Evidence checked:
- Inspected
app/templates/bounty_detail.htmlandtests/test_bounty_pages.py. - Verified the new section only renders when
pending_payout_proposalsorpending_close_proposalexists. - Verified pending payout rows link to the public treasury proposal route and use
safe_public_url()before rendering submitted-work links. - Verified pending close references also pass through
safe_public_url()before becoming links, otherwise render as code text. - Verified this stays on the human detail page surface and does not add admin-token, proposal execution, payout execution, ledger, wallet, or bounty lifecycle mutation paths.
- Checked live PR state before review: open, mergeable, hosted Quality/readiness/docs/image check successful, and no current-head human review found.
- Checked #643 comments for
pull/897,PR #897, and#897; no visible review-bounty claim found before this review.
Validation:
UV_CACHE_DIR=.uv-cache uv run pytest tests/test_bounty_pages.py tests/test_public_routes.py -q-> 24 passed, 1 existing Starlette/httpx warning.UV_CACHE_DIR=.uv-cache uv run ruff check tests/test_bounty_pages.py-> passed.UV_CACHE_DIR=.uv-cache uv run ruff format --check tests/test_bounty_pages.py-> 1 file already formatted.git diff --check origin/main...HEAD-> clean.git merge-tree --write-tree origin/main HEAD-> clean tree584f35e29a257d469a411b09898afd7de33e7cf8.
Note: I did not count an explicit Ruff invocation against the Jinja template, because Ruff does not parse .html templates; the rendered behavior is covered by the page tests above.
No private data, credentials, wallet material, payout execution, treasury mutation, ledger mutation, bridge, exchange, cash-out, MRWK price behavior, or issue mutation was used.
|
Bounty #838 current-head review for PR #897. Reviewed head Verdict: no blocker found. The pending proposal section renders only when GitHub state checked: |
Refs #845
Summary
Pending treasury proposalssection to public bounty detail pages when pending payout or close proposals affect effective capacity.Why
The detail page already shows effective capacity and a generic availability note, but contributors have to jump to JSON/API data to see which pending proposal is consuming capacity. This keeps the bounty lifecycle distinction visible on the human detail page: visible capacity before pending proposals vs. effective capacity after pending payout or close proposals.
Duplicate check
Patch apply checks were clean against active same-surface PR heads #896, #890, #884, #895, and #894.
Validation
uv run --extra dev python -m pytest tests/test_bounty_pages.py::test_bounties_page_shows_effective_capacity_after_pending_payout tests/test_bounty_pages.py::test_bounties_page_shows_effective_capacity_after_pending_close -q-> 2 passed, 1 existing Starlette/httpx warning.uv run --extra dev python -m pytest tests/test_bounty_pages.py tests/test_public_routes.py -q-> 24 passed, 1 existing Starlette/httpx warning.uv run --extra dev python -m pytest -q-> 790 passed, 1 existing Starlette/httpx warning.uv run --extra dev ruff check .-> passed.uv run --extra dev ruff format --check .-> 111 files already formatted.uv run --extra dev mypy app-> success across 42 source files.uv run --extra dev python scripts/docs_smoke.py-> docs smoke ok.git diff --check-> clean except the existing Windows LF-to-CRLF working-copy notice for the edited template.Scope
Public bounty detail page and page regression tests only. No bounty creation, proposal execution, payout execution, ledger mutation, wallet behavior, admin-token APIs, exchange, bridge, off-ramp, cash-out, MRWK price behavior, private data, credentials, or secrets changed.
Summary by CodeRabbit
New Features
Tests