Skip to content

feat(tasks): wire Files and Checks tabs on the PR drawer - #83

Merged
gsvprharsha merged 2 commits into
mainfrom
feat/tasks-pr-files-checks
Aug 23, 2026
Merged

feat(tasks): wire Files and Checks tabs on the PR drawer#83
gsvprharsha merged 2 commits into
mainfrom
feat/tasks-pr-files-checks

Conversation

@gsvprharsha

@gsvprharsha gsvprharsha commented Aug 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Files pane: GET /repos/{repo}/pulls/{n}/files paginated → filename, add/del counts, status chip.
  • Checks pane: GET /pulls/{n} for head.sha, then paginated GET /commits/{sha}/check-runs → name, conclusion (or status), duration.
  • Both go through the existing 60s task cache and lazy-load on first tab open, so opening a PR row costs no extra requests until you click into Files or Checks.

Also folds in three window-capability permissions (unmaximize, is-maximized, set-fullscreen) needed by the custom titlebar's maximize/fullscreen path — the existing allow-maximize alone can't restore a maximized window.

Closes #51

Test plan

  • Open a PR row in Tasks, click Files — list renders with +add / −del counts; empty PR shows "No files changed."
  • Click Checks — runs render with conclusion + duration; PR with no checks shows "No checks reported."
  • Switch tabs back and forth — no re-fetch (in-memory cache).
  • Refresh from the header — cache invalidates, next open re-fetches.
  • Issue row (not a PR) still shows only Description / Comments / Activity.
  • Titlebar maximize toggle restores from maximized state.

gsvprharsha and others added 2 commits August 23, 2026 12:55
Files pane calls /repos/{repo}/pulls/{n}/files paginated; Checks pane
resolves head.sha via /pulls/{n} then /commits/{sha}/check-runs.
Both go through the existing 60s task cache and lazy-load on first
tab open, so opening a PR row costs no extra requests until you
click Files or Checks.

Closes #51

Co-authored-by: Tempest <tempestai.dev@gmail.com>
Adds the capability permissions the custom titlebar needs for the
maximize toggle and fullscreen path; the existing allow-maximize alone
cannot restore a maximized window.

Co-authored-by: Tempest <tempestai.dev@gmail.com>
@vercel

vercel Bot commented Aug 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tempest Ready Ready Preview Aug 23, 2026 7:28am

Request Review

@gsvprharsha gsvprharsha left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works

@gsvprharsha
gsvprharsha merged commit 4912102 into main Aug 23, 2026
6 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.

[Feature]: Tasks — Files and Checks tabs on PR drawer are stubs

1 participant