Skip to content

refactor(ui): delete the dashboard GitHub tab; gh-dash replaces it #1883

Closed

Description

@dan-petty

Friction

The dashboard GitHub tab does not load, and gh-dash now does the same job. The tab asks GitHub for a field that does not exist (statusCheckRollup.pageInfo), so every refresh shows an error banner. It polls GitHub every 60 seconds whenever the dashboard runs, even when another tab is on screen. Open items #805 and #814 would add more GitHub code and more polling to the same tab. The TUI shipped 9 pull requests and at least 15 written-up defects in 45 days (count from the earlier topic report, not repeated here), and this tab is the newest part.

Evidence

  • pr_queue.py:60-62 and 132-134 ask for statusCheckRollup { pageInfo }. Reproduced on 2026-10-22: GitHubOperationError: Field 'pageInfo' doesn't exist on type 'StatusCheckRollup'.
  • ui/dashboard.py:241-246: set_interval(github_interval, self._refresh_github), with DEFAULT_DASHBOARD_GITHUB_REFRESH_SECONDS = 60 (config/defaults.py:941). With the pageInfo blocks removed, a dry run of the queue costs 2 points at 50 rows, which is 120 GraphQL points per hour (the reviewer's dry run; not repeated). Whether GitHub charges for a rejected query: not verified.
  • The commit that added the tab: 7f61846a, 21 files, 1,932 lines added and 38 deleted, 706 test lines added.
  • Every user of pr_queue.py is in ui/data_providers.py and ui/widgets.py (grep of src and tests).

Proposed remedy

Delete the tab and everything that only it uses. Do this after "feat(tools): pin gh-dash and ship .gh-dash.yml for the oldest-first PR queue and issue triage" merges.

Source:

  • src/devops_cli/github/pr_queue.py (503 lines, whole file).
  • ui/widgets.py: GitHubPanel (lines 672-998, 327 lines), its __all__ entry and its imports. LogPane stays (pods use it).
  • ui/projections.py: github_banner, github_rows, github_identities, github_check_rows, github_check_identities (53 lines), their entries in the registries (lines 79, 670, 679, 688), __all__, and the GitHubSummary import.
  • ui/data_providers.py: GitHubSummary (12 lines), _read_github_quota (28), fetch_github_status (18), and the imports of pr_queue and sort_prs_oldest_first.
  • ui/dashboard.py: _refresh_github, github_interval, _last_github_refresh_epoch, the GitHub branch of action_refresh_data, the _PANELS entry, the GitHub help text and the imports.
  • ui/refresh.py:23,32,51: the GitHub domain and its provider entry.
  • commands/dashboard.py:33: "fetch_github_status" in the lazy export list.
  • config/constants.py:3550-3600: CONST_DASHBOARD_DOMAIN_GITHUB, its place in CONST_DASHBOARD_DOMAINS, CONST_DASHBOARD_DOMAIN_LABELS and CONST_DASHBOARD_TAB_FOCUS (tab-github).
  • config/defaults.py:941-946: the DEFAULT_DASHBOARD_GITHUB_* constants.
  • lang/en/help.py:1671: change --tab help to (1=k8s, 2=docker, 3=telemetry, 4=ai, 5=valkey).

Stays, because other commands use it: github/check_verdict.py, github/run_view.py, sort_prs_oldest_first in github/pr_monitor.py, github/pr_threads.py, and telemetry/service_status.py:fetch_github_status (a different function, used by status_cmd, roadmap/run.py and commands/gh.py).

Tests: delete tests/test_github_dashboard.py (639 lines, 28 tests). Edit tests/test_ui_dashboard.py (the fake GitHub fetcher at lines 59-63 and the tab-github test at line 510) and tests/test_ui_reactive.py (lines 86, 203-228, 1287, 1304 and 1334). About 120 to 150 lines go from these two files. Count the exact set when you write the change.

Docs: run devops docs generate --sync-readme to refresh docs/commands/dashboard.md:21, docs/commands/tui.md:21 and docs/CLI_REFERENCE.md:9548,9573. Update or delete docs/agent/tasks/task-685-dashboard-github-tab.md, because it describes deleted behavior. Add changelog.d/<issue>.md under ### Removed. In the docs/DEVCONTAINER_USAGE.md paragraph from the first change, say that gh-dash replaces the GitHub tab.

Capability lost, and what covers it: the quota banner (devops gh rate-limit), the failing-log key v (devops gh runs view --log-failed), and the queue (the gh-dash Queue tab).

If this change cannot land in the same release as the first, apply the 6-line fix (delete the two pageInfo blocks) and add a test that checks the query text against GitHub's schema. A person then files "fix(github): PR queue GraphQL asks for StatusCheckRollup.pageInfo".

What it deletes

About 955 source lines and 760 to 790 test lines, about 1,700 lines in total, and the only timer-driven GitHub poll of the dashboard.

Tests

No new test. The existing dashboard tests (tests/test_ui_dashboard.py, tests/test_ui_reactive.py) must pass with five domains. devops docs check must pass after the regeneration.

Person-run steps

Re-scope or close #805 (release board view in the GitHub tab) and #814 (GitHub API counters for the dashboard) as superseded. Only a person runs the mutating roadmap commands while the roadmap Service is suspended. Agents use --plan only. #685 is already closed.

Cost (written)

The change deletes code, so it has no upkeep. It needs about half a day and about 30k to 50k tokens (estimate), most of it for the many small edits.

Dependencies

  • feat(tools): pin gh-dash and ship .gh-dash.yml for the oldest-first PR queue and issue triage

Acceptance criteria

Size: M.


Second part (folded in by the intake duplicate check on 2026-10-22): delete the dashboard AI Review panel; this part closes the issue

Friction

The dashboard AI Review panel shows the findings of one review session in a table with a detail pane. It is read-only. It has no key for a verdict, and devops review verify is the only way to record one. devops review findings --details shows the same data. So the panel is a second viewer that a person must keep in step with the command, and tuicr (see the pull request "feat(tools): pin tuicr ...") is the open tool for reading findings next to a diff.

I could not measure how often a person uses the panel. Owner question: confirm that you do not use it.

Evidence

  • ReviewPanel is ui/widgets.py:510-671 (162 lines). Its projections in ui/projections.py are ai_banner (19 lines), ai_rows (11), ai_identities (7), finding_detail (17), review_session_rows (16), review_session_keys (5) and finding_records (9): 84 lines.
  • devops dashboard --summary still needs the review provider. commands/dashboard.py:142-143 calls fetch_review_status() for its "AI Review Findings" panel. So fetch_review_status and ReviewSummary in ui/data_providers.py stay. Whether list_review_sessions, ReviewSessionInfo and _get_latest_review_session_dir are used by the panel only: not verified. Check at implementation.
  • Tests: 56 tests in tests/test_ui_dashboard.py and tests/test_ui_reactive.py mention the panel, findings or review sessions, in about 805 lines. This is an upper bound, because a name match includes tests of other things.
  • The earlier design said 421 source lines. That figure included the provider code that --summary keeps, so about 250 to 300 source lines is the real range.

Proposed remedy

Delete ReviewPanel, the seven projections above, the ai entries of the registries, the ai domain in ui/refresh.py and config/constants.py (CONST_DASHBOARD_DOMAIN_AI, the tab focus entry), and the tests of the panel. Keep what --summary uses. The --tab help in lang/en/help.py:1671 changes to (1=k8s, 2=docker, 3=telemetry, 4=valkey) after the GitHub tab is gone, and the four generated docs that quote it are regenerated with devops docs generate --sync-readme. Update or delete the task files that describe the pane: docs/agent/tasks/task-684-reactive-multi-workspace-textual-tui-architecture-master-det.md and docs/agent/tasks/task-834-detail-pane-scrolls-at-once.md. Add changelog.d/<issue>.md under ### Removed.

What it deletes

About 250 to 300 source lines and up to about 800 test lines.

Tests

No new test. The remaining dashboard tests must pass with four domains, and devops dashboard --summary must still show the AI Review Findings panel.

Person-run steps

Confirm that you do not use the panel. If you do, close this issue.

Cost (written)

This change deletes code, so it has no upkeep. It needs about half a day and about 30k to 50k tokens (estimate). The cost of keeping the panel is a second viewer to maintain for data that devops review findings --details shows.

Dependencies

  • refactor(ui): delete the dashboard GitHub tab; gh-dash replaces it (both changes edit widgets.py, projections.py, data_providers.py, dashboard.py and constants.py; merge that one first)

Acceptance criteria

  • devops dashboard shows four domain tabs and the Logs tab.
  • devops dashboard --summary still shows the AI Review Findings panel.
  • uv run devops ci passes, including devops docs check.

Size: M.

Proposed design

Problem statement

The dashboard GitHub tab is broken because it asks for a non-existent GraphQL field (statusCheckRollup.pageInfo) which causes errors on every refresh. Additionally, the tab polls GitHub every 60 seconds regardless of whether the user is viewing it, wasting resources and potentially incurring costs. The tab also duplicates functionality that is now covered by gh-dash.

Acceptance criteria

  • Criterion 1: The dashboard shows only five domain tabs (Kubernetes, Docker, Telemetry, AI Review, Valkey) and the Logs tab after the change
    Verification: Run devops dashboard and verify that only the five domains plus Logs are displayed, with --tab 5 corresponding to Valkey
  • Criterion 2: A grep of src/devops_cli/ui/ for 'github' finds only text that is not about the removed tab
    Verification: Execute grep -r 'github' src/devops_cli/ui/ and confirm no references to GitHub tab functionality remain except for unrelated usages
  • Criterion 3: All existing dashboard tests pass with five domains
    Verification: Run uv run devops ci including the test suite for UI dashboard components, ensuring all tests pass
  • Criterion 4: Documentation is updated to reflect the removal of the GitHub tab
    Verification: Run devops docs generate --sync-readme and verify that documentation files like docs/commands/dashboard.md, docs/commands/tui.md, and docs/CLI_REFERENCE.md are updated, and check that task-685-dashboard-github-tab.md is deleted or updated

Key questions

  • What specific files contain the GitHub tab functionality that needs to be removed?: The GitHub tab functionality is located in several files including src/devops_cli/github/pr_queue.py, ui/widgets.py (GitHubPanel), ui/projections.py, ui/data_providers.py, ui/dashboard.py, commands/dashboard.py, config/constants.py, and config/defaults.py. Tests are in tests/test_github_dashboard.py, tests/test_ui_dashboard.py, and tests/test_ui_reactive.py. [sources: src/devops_cli/github/pr_queue.py]
  • Which files will be deleted as part of this change?: Files to delete include tests/test_github_dashboard.py (639 lines, 28 tests), and various components in src/devops_cli/ui/ and config/ directories that are specific to the GitHub tab functionality. [sources: tests/test_github_dashboard.py]
  • Should a fix be applied before merging this change?: Yes, if this change cannot land in the same release as the dependency feat(tools): pin gh-dash and ship .gh-dash.yml for the oldest-first PR queue and issue triage, then apply the 6-line fix (delete the two pageInfo blocks) and add a test that checks the query text against GitHub's schema. (proposed)

Fit

Fits in one pull request.

Suspected block

feat(tools): pin gh-dash and ship .gh-dash.yml for the oldest-first PR queue and issue triage

Dependencies

#1884

Activity

  1. added
    type/refactor
    source/agent
    on Oct 22, 2026
  2. dan-petty commented on Oct 22, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.

    • Type: type/refactor. The candidate proposes to delete the dashboard GitHub tab and related code, which is a refactor of the UI.
    • Priority: P1-High. The tab does not load, polls GitHub continuously, and causes errors; it's a high-priority issue to fix or remove.
    • Value: High. Users rely on a working dashboard, and this tab is broken, reducing the value of the devops dashboard tool.
    • Effort: Medium. The change involves removing several files and updating tests, but does not introduce new functionality.
  3. added this to the v0.2.39 milestone on Oct 22, 2026
  4. added
    status/in-progress
    on Oct 22, 2026
  5. dan-petty commented on Oct 22, 2026

    @dan-petty
    OwnerAuthor

    What changed

    #1908, merged into release/v0.2.39 as 54a3fa8.

    Cause
    The AI Review tab of devops dashboard was a second viewer for data that devops review findings --details already shows. It was read-only. It had no key for a verdict. The owner decided on 2026-10-22 to delete it. After the GitHub tab left in the first part of this item, the dashboard still carried the panel, seven projections, the ai domain, a block of finding-detail constants and provider code that only the panel read.

    Change
    This change deletes ReviewPanel, its seven projections, the ai dashboard domain and its constants. It deletes the provider code that only the panel read, the tests of the panel and the i line of the help screen. refresh_domain and refresh_all lose their fetchers argument, because only the deleted _fetchers_for passed it. The dashboard now has four domain tabs and the Logs tab, and --tab 4 opens Valkey Cache. devops dashboard --summary still shows the AI Review Findings panel, so fetch_review_status and ReviewSummary stay. devops review findings, --session <name> and --details cover the lost features. No devops review command lists sessions, so the session list of the panel is lost. The owner accepted this when the owner decided to delete the panel. The task file and the changelog fragment say the same.

    Existing tool considered
    This change builds nothing. It deletes code. The open tools for the same job are devops review findings for findings, gh-dash (#1882) for the pull request queue and tuicr (#1884) for f…

    25 file(s) changed.

    How it was verified

    Check runs at f6ae606:

    • Prune PR DevContainer Images: pass
    • Audit Defect PR Hardening: skipping
    • zizmor: pass
    • devops-cli: pass
    • bandit: pass
    • CodeQL: pass
    • Analyze (actions): pass
    • Analyze (python): pass
    • Rule Pack Tests: pass
    • Changed-Test Independence: pass
    • Fail-to-Pass Self-Check: pass
    • Tests & Coverage: pass
    • Fail-to-Pass Check: pass
    • Static Analysis: pass
    • Service Image: skipping
    • Dependency Freshness: skipping
    • DevContainer Image: skipping

    Acceptance Criteria of docs/agent/tasks/task-1883-delete-dashboard-github-tab.md:

  6. added a commit that references this issue on Oct 23, 2026
  7. removed
    status/in-progress
    on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    source/agenttype/refactor

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions