One static page that shows your open GitHub work (PRs and issues) across many repos.
It calls the GitHub GraphQL API straight from your browser with your own token:
no backend, no scheduler, no stored data outside your browser. A refresh is one
GraphQL request (two on first run, to learn your login and team slugs).
See PLAN.md for goals, classification rules and decisions.
ES modules do not load from file:// in most browsers, so serve the folder:
cd task-dashboard
python3 -m http.server 8000 # or: npx serve .Open http://localhost:8000/, paste a token when asked. Try ?demo=1 to see the page with
synthetic data and no token.
Hosting on GitHub Pages works too: the page holds no data or secret. It ships a
Content-Security-Policy that only allows scripts and styles from itself and network
access to api.github.com.
- Classic PAT (recommended): scopes
repoandread:org, then Configure SSO → Authorize for your organization.read:orgis needed to know your team slugs for team review requests. - Fine-grained PAT: read-only Pull requests, Issues, Metadata. May need org admin approval and can miss repos in cross-repo search; add them under Settings → Extra repos.
- The token lives only in this origin's
localStorage. Settings → "Forget token" (the token dialog) clears it and the cached data. Use a read-only token with an expiry.
PRs of yours that are waiting on individual reviewers (and have been quiet for N hours, default 24) get a Nudge @login button. It opens a dialog with an editable message (template in Settings) and a Send on Slack button that DMs the reviewer; Copy works without any Slack setup. A "nudged 3h ago" label stays on the row and the dialog warns before you nudge the same person again within 24 h. Team review requests get no button (a team cannot be DMed).
Setup (once):
- Create a Slack app at https://api.slack.com/apps (From scratch, your workspace). Under OAuth &
Permissions add the scopes
chat:writeandim:write, as Bot Token Scopes (message comes from the bot) or User Token Scopes (message comes from you), then Install to Workspace. Your Slack admin may need to approve it. - Copy the token (
xoxb-...for a bot,xoxp-...for a user) into Settings → Slack token. - Tell the page who is who: put
"github-login": "U0123ABCDEF"pairs inslack-users.json(Slack: profile → ⋯ → Copy member ID), or just type the ID in the Nudge dialog once; it is remembered in your browser. The file lives in this repo, so on a public repo it lists names and Slack IDs: keep it short or use the dialog instead.
Notes and limits:
- The Slack token is stored in this browser's
localStoragelike the GitHub token and is sent only toslack.com(the Content-Security-Policy allows nothing else). It can post messages, so keep the scopes to the two above, and remove it with Settings → typeremovein the Slack token field. - The page sends the token in the request body so the browser needs no preflight. If Slack or the browser still blocks the call, the dialog says so and copies the message instead.
- If the message comes from a bot, set "Your name in messages" in Settings so the reviewer knows who is asking (
{me}; defaults to your GitHub login). - Placeholders in the message:
{reviewer} {me} {repo} {number} {title} {url} {age} {base}. Titles are escaped, so a PR title cannot ping a channel.
Organizations searched for anything involving you, extra repos/orgs (e.g. PX4/PX4-Autopilot),
stale threshold (days), auto-refresh interval (minutes). Auto-refresh runs only while the tab is
visible and pauses after an auth or rate-limit error until you press Refresh.
- Sections (sticky jump bar with live counts): Waiting on you, Ready to merge, Needs finishing, Stale, Waiting on others, Issues, Dead branches, Unmerged work with no PR, and a collapsed "Watching" section for other people's PRs where you are only mentioned. Every item lands in exactly one section (first matching rule wins) and every row has a one-line reason.
- Rows: repo,
#PR title/ issue /⎇ branch, a status stripe (red = act now, amber = needs attention, green = ready, grey = waiting), pills (yours, base branch, CI, review state,needs your reply: @bob,no reviewer,conflicts,+adds / −dels, age) and a link that opens GitHub in a new tab. - Filters that combine, with counts that follow the current selection: search, repo, author, Show chips (All, Needs action, Mine, CI failing, No reviewer, Stale, Close or delete) and Type chips (PRs, Issues, Branches; pick several).
- Branch scan (on demand, because scanning is the slow part): open "Branch scan", pick a repo,
optionally a base branch (default branch if empty) and press the button. It looks at the 300 most
recently updated branches and skips branches with an open PR, the default and base branches, and
long-lived ones (
release/*,hotfix/*,develop,main,master,stable, or anything with a branch protection rule). A branch is dead when its PR was merged and nothing newer was pushed, when it has no commits ahead of the base, or when it has had no commits for N days (Settings, default 60, 0 = off). Other unmerged branches go under "Unmerged work, no PR". The scan picker chooses Anyone's branches (default, each row shows the last committer) or Only mine (tip commit authored by you; a commit whose email is not linked to your GitHub account is not recognised as yours). Switching the picker needs no new scan. Only the repo chosen in the picker is listed; earlier scans stay stored in your browser (also across refreshes) and reappear when you pick that repo again. "Clear scans" forgets them all. - Change notifications: after every refresh the page compares what you see now with what you saw
last (also across reloads) and shows a "What changed" panel for: new items waiting on you, newer
comments or pushes on items already waiting, your PRs becoming ready to merge, your CI turning red
and your PRs closing or merging. The tab title shows the "Waiting on you" count, e.g.
(3) Task Dashboard. Click an entry in the panel (or a desktop notification) to scroll to that row and highlight it; if a filter is hiding the row the filters are cleared first, and a PR that is no longer open links to GitHub instead. Turn on Browser notifications in Settings to also get desktop notifications. Limits: they only work while a tab with the page is open (it then refreshes in the background every N minutes) and are skipped while that tab is focused; they cannot fire when the page is closed. For that you would need a scheduled GitHub Action posting to Slack or email, which needs secrets and is not part of this page. - Light/dark theme, works at phone width, read-only (nothing is merged, closed or deleted).
Not covered: Actions failures, Dependabot and security alerts. Rules and deviations from the
original plan are in PLAN.md; the code is src/classify.js and src/filters.js.
index.html style.css
src/ config.js github.js queries.js classify.js filters.js changes.js nudge.js slack.js render.js store.js main.js
slack-users.json # GitHub login -> Slack member ID
scripts/probe.mjs # run the real query once, save + scrub the response, report empty fields
scripts/make-synthetic.mjs # regenerates test/fixtures/synthetic-response.json
test/ # node --test, no dependencies
npm test # or: node --test
export GITHUB_TOKEN=$(gh auth token)
node scripts/probe.mjs --org Auterion --repo PX4/PX4-AutopilotThe probe writes test/fixtures/probe-raw.json (real data, git-ignored) and
probe-scrubbed.json (pseudonymized, safe to commit and to build fixtures from).