[BUG]: governance page shows "No dead issues" before the audit has run
Maintainer thường phản hồi trong vòng 1 ngày
@SYED-IRTEZA-HUSSAIN-RIZVI đang làm issue này rồi.
Từ ngày 12/11/2026.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 83/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, react
- Lĩnh vực
- frontend
Hướng nghiên cứu
Bắt đầu trong src/pages/GovernancePage.jsx và đọc cách hasAudit được suy ra và sử dụng gần nút kiểm tra và gợi ý về tỷ lệ xử lý. Sau đó, kiểm tra trạng thái trống của các tab Dead Issues và Zombie PRs, hiện đang coi danh sách kết quả trống là trạng thái tốt. Hoàn thành khi các tab hiển thị lời nhắc trung lập trước khi kiểm tra và giữ nguyên trạng thái thành công màu xanh sau khi kiểm tra không tìm thấy kết quả.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Bug Description
On the Governance page, the Dead Issues and Zombie PRs tabs show a green "all good" empty state ("No dead issues found - This org actively maintains its open items.") before the audit has been run.
At that point no issue data has been fetched yet, so the page has nothing to judge the org by. The green message looks like a real health result, but it isn't one. After clicking Run Audit, the same org (for example, AOSSIE-Org) shows ~80 dead issues.
A user who opens the page and doesn't click Run Audit comes away thinking the org is healthy.
Steps to Reproduce
- Explore an org, for example
AOSSIE-Org. - Open the Governance page.
- Look at the Dead Issues tab: it shows a green 0 and "No dead issues found / This org actively maintains its open items."
- Switch to the Zombie PRs tab: it shows "No zombie PRs found / This org reviews and closes contributions actively."
- Click Run Audit.
- The same tabs now show the real numbers (~80 dead issues for
AOSSIE-Org).
Logs and Screenshots
https://github.com/user-attachments/assets/743993c0-313f-45c1-a624-78c8ae4393bb
Expected behavior
Before the audit has run, the Dead Issues and Zombie PRs tabs should say that no data is available yet and ask the user to run the audit. They should not show a success message.
Actual behavior
The page shows a green success state and 0 counts, as if the audit had run and found nothing.
Root cause
src/pages/GovernancePage.jsx already tracks whether audit data exists:
// GovernancePage.jsx:119
const hasAudit = Object.keys(issuesData || {}).length > 0
The tab empty states don't check hasAudit. They only check whether the result list is empty, and before the audit the list is always empty:
// GovernancePage.jsx:426-428
{tab === 'dead' && (
scopedDead.length === 0 ? (
<EmptyOk msg="No dead issues found" sub="This org actively maintains its open items." />
) : ...
)}
// GovernancePage.jsx:445-447
{tab === 'zombie' && (
scopedZombie.length === 0 ? (
<EmptyOk msg="No zombie PRs found" sub="This org reviews and closes contributions actively." />
) : ...
)}
The page does use hasAudit in other places, for the "Run Audit / Re-run Audit" button label (:288) and the resolution-rate hint (:364). The tab content is the part that was missed.
Suggested fix
Add a "not audited yet" branch before the "empty = healthy" branch in both tabs:
{tab === 'dead' && (
!hasAudit ? (
<EmptyState msg="Audit not run yet" sub="Click Run Audit to scan this org for dead issues." />
) : scopedDead.length === 0 ? (
<EmptyOk msg="No dead issues found" sub="This org actively maintains its open items." />
) : ...
)}
{tab === 'zombie' && (
!hasAudit ? (
<EmptyState msg="Audit not run yet" sub="Click Run Audit to scan this org for zombie PRs." />
) : scopedZombie.length === 0 ? (
<EmptyOk msg="No zombie PRs found" sub="This org reviews and closes contributions actively." />
) : ...
)}
EmptyState can be a neutral variant of EmptyOk, with a muted color and no green check, so it doesn't look like a passing result.
Optional, same root cause: before the audit, the Dead Issues / Zombie PRs stat boxes and the tab badges show 0 in green, and Stale Issues Ratio shows 0.00%. Showing — when !hasAudit would keep these consistent with the tabs.
Files affected
src/pages/GovernancePage.jsx
Environment Details
No response
Impact
High - Major feature is broken
Code of Conduct
- I have joined the Discord server and will post updates there
- I have searched existing issues to avoid duplicates
- Ngôn ngữ chính
- JavaScript
- Star
- 53
- Fork
- 182
- Merge trung bình
- 18 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của AOSSIE-Org/OrgExplorer
-
[BUG]: PAT popup input lacks label association and visibility button lacks an accessible nameCó thể đã có người làm @prasanm1423 đã nhận 3 ngày trước. Đang mởbug enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
AOSSIE-Org/OrgExplorer#466 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[FEATURE]: Set dynamic document.title based on active page routeCó thể đã có người làm @23241a6749 đã nhận 1 ngày trước. Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
AOSSIE-Org/OrgExplorer#462 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: SocialShareButton logs unconditional console.warn when script is not loadedCó thể đã có người làm @vivekrajputofficial29-afk đã nhận 1 ngày trước. Đang mởbug enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 89/100
AOSSIE-Org/OrgExplorer#461 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: User-controlled org/repo names are interpolated into API URLs unencodedCó thể đã có người làm @AbhishekKumar-cse đã nhận 10 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
AOSSIE-Org/OrgExplorer#449 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: `fetchWithCache` crashes with `SyntaxError: Unexpected end of JSON input` when encountering empty repositories (HTTP 204 No Content)Có thể đã có người làm @Devnil434 đã nhận 22 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
AOSSIE-Org/OrgExplorer#433 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của AOSSIE-Org/OrgExplorer
Issue tương tự
-
enhancement frontend good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 2 ngày
-
marketing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[bug]: Maximizing the Windows dashboard covers the taskbarCó thể đã có người làm @xiufengsun đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
xiufengsun/TokenTracker#1152 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
parity: scripting.net's net-http row fails on macOS with errno 61 where the BDS golden has 111Đang mởBug Tests
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
JSPrismarine/JSPrismarine#3384 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
cat:test dx effort:xs sev:low
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 82/100
LucasSantana-Dev/Lucky#3251 ·
Maintainer thường phản hồi trong vòng 1 ngày