Skip to content

[codex] Add read-only ClawSweeper triage dashboard - #79

Merged
steipete merged 8 commits into
openclaw:mainfrom
brokemac79:codex/triage-dashboard-prototype
May 18, 2026
Merged

steipete merged 8 commits into
openclaw:mainfrom
brokemac79:codex/triage-dashboard-prototype

Conversation

@brokemac79

Copy link
Copy Markdown
Contributor

Summary

Adds a read-only ClawSweeper issue triage dashboard at /triage, plus a JSON snapshot route at /api/triage.

The dashboard turns existing clawsweeper: advisory labels into maintainer-friendly views without writing to GitHub Projects, issues, labels, comments, close state, or repair state.

Related to #66.

What this does

  • Discovers target-repository labels with the clawsweeper: prefix, so the broad ClawSweeper view can pick up future advisory labels without code changes.
  • Adds focused views for ready candidates, queueable-but-blocked issues, issues with linked PRs, needs-info, needs-maintainer-review, product/security, and needs-live-repro.
  • Shows issue title, assignees, priority, linked PRs, labels, updated time, and comment count.
  • Enriches issues carrying clawsweeper:linked-pr-open with linked PR chips from GitHub timeline data.
  • Adds browser-local filtering, sorting, click-to-filter label/priority chips, wrapped issue titles, and resizable columns.
  • Adds docs for the dashboard route, data model, local development, and read-only boundaries.
  • Links the existing live dashboard to the new triage page, and the triage page back to the live dashboard.

Safety / boundaries

This is intentionally observability-only:

  • no GitHub Project writes
  • no label mutations
  • no issue comments
  • no issue close or merge actions
  • no repair dispatch

The dashboard reads GitHub Search and GraphQL data server-side, caches a short-lived snapshot, and renders local-only UI state in the browser.

Validation

  • pnpm exec oxfmt --check ./dashboard/worker.js ./README.md ./docs/triage-dashboard.md ./.gitignore
  • node --check ./dashboard/worker.js
  • pnpm run build:all
  • pnpm run dashboard:smoke
  • Full Linux-container validation matching CI shape: pnpm run check
  • Browser verification against local /triage for rendered rows, linked PR column, compact labels, wrapped titles, click filtering, and persisted resizable columns

Native Windows pnpm run check is not used as the final signal because several repair tests rely on Linux-style executable shims and LF-only Git temp repos. The same check passes in a Linux container, which matches this repo's GitHub Actions ubuntu-latest CI job.

@brokemac79

Copy link
Copy Markdown
Contributor Author

Follow-up update after local testing:

  • Expanded the triage snapshot window from 75 to a configurable default of 500 items per view, capped at 1,000 because of GitHub Search limits.
  • Changed the dashboard to fetch the broad ClawSweeper-labelled issue set once and derive the focused tabs locally, instead of firing a separate Search request for every tab. This reduces GitHub 403/rate-limit risk.
  • Added stale-cache fallback for temporary empty/error refreshes, so a rate-limited refresh can keep serving the last good snapshot.
  • Made the UI show the loaded row count and per-view max so local filtering limits are visible.
  • Fixed the table layout so saved/resized columns fit the page without the unwanted horizontal scrollbar.

Validation:

  • pnpm exec oxfmt --check ./dashboard/worker.js ./README.md ./docs/triage-dashboard.md ./.gitignore
  • node --check ./dashboard/worker.js
  • pnpm run build:all
  • pnpm run dashboard:smoke
  • Linux Docker pnpm run check

@brokemac79

brokemac79 commented May 17, 2026 •

Copy link
Copy Markdown
Contributor Author

New Openclaw Issue Triage Page with built in filters based on new labels

image

Manual filtering and click on labels to filter by that label. Linked PRs with hyperlinks

link in top left of main openclaw sweeper page added for the issue triage. And vice versa for the Issue triage page
image

note - set the issue limit to 500. noticed it can be slow on first return. We could adjust this. There is also the GH API limit of 1000 to consider..

Once we start clearing these issues , it will be more managable.

@brokemac79

Copy link
Copy Markdown
Contributor Author

A couple of notes on scope and follow-up:

This PR is intentionally limited to the read-only issue triage dashboard. It does not mutate issues, apply labels, assign maintainers, trigger workflows, or make any routing decisions. It only presents the existing ClawSweeper labels in a more filterable dashboard view.

One implementation note on GitHub API limits: the issue triage page is a read-only GitHub Search snapshot. It uses short-lived caching and stale fallback, so temporary GitHub API failures should show the last good snapshot where available rather than mutating or misrouting anything.

Longer term, if this becomes a heavily used public dashboard, a useful follow-up would be to persist snapshots into KV/state storage from a scheduled job, so the page mostly reads stored data instead of making live Search calls on page refresh.

I also have a similar read-only prototype locally for PR proof triage, using the same dashboard pattern.

That one groups PRs into views such as:

  • needs real behavior proof
  • no proof supplied yet
  • proof supplied but awaiting review
  • proof sufficient
  • mock-only proof
  • Telegram-visible proof

I have not added that to this PR because I wanted to keep this one focused on issue triage first. If this direction looks useful, I can open the PR proof triage page separately after we get feedback on this initial dashboard.

@brokemac79
brokemac79 force-pushed the codex/triage-dashboard-prototype branch from 26c9a53 to 99a6137 Compare May 18, 2026 08:32
@brokemac79
brokemac79 force-pushed the codex/triage-dashboard-prototype branch from 89b4be6 to 7a021b6 Compare May 18, 2026 08:45
@steipete
steipete merged commit 0581c18 into openclaw:main May 18, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants