Skip to content

Misc: tab context menu, auth fix, branch deletion timeline, optimistic mutation fix#69

Merged
stylessh merged 1 commit intomainfrom
stylessh/misc-changes-3
Apr 11, 2026
Merged

Misc: tab context menu, auth fix, branch deletion timeline, optimistic mutation fix#69
stylessh merged 1 commit intomainfrom
stylessh/misc-changes-3

Conversation

@stylessh
Copy link
Copy Markdown
Owner

Summary

  • Tab context menu: right-click tabs to close, close others, or close tabs to the right (single shared ContextMenu instance). Also adds horizontal wheel-scroll on the tab bar.
  • Auth fix: all write operations (labels, reviewers, reviews, branch updates, etc.) now use the user's token instead of the app installation token, so GitHub correctly attributes actions to the user.
  • Optimistic mutation fix: skip immediate query invalidation when optimistic updates are applied, preventing the flash where items disappear and reappear when the refetch returns stale data before GitHub propagates the write.
  • Branch deletion in timeline: head_ref_deleted and head_ref_restored events now appear in the activity feed sorted by date. Merge event is also sorted into the timeline instead of hardcoded at the bottom. Delete branch CTA persists across refresh via server-derived headRefDeleted field. Cache busting and webhook delete event handling added.
  • Context menu font size: 13px for consistency.

Test plan

  • Right-click a tab to verify context menu appears with close/close others/close right options
  • Add a label or reviewer and confirm it stays visible without flashing
  • Verify label/reviewer additions show your username (not bot) on GitHub
  • Merge a PR, delete the branch, refresh — verify delete CTA is gone and timeline shows deletion event in correct order
  • Scroll vertically over the tab bar to confirm horizontal scrolling works

…etion, user auth for writes

- Add right-click context menu on tabs (close, close others, close right) with single shared instance
- Add horizontal wheel scroll on tab bar
- Fix optimistic mutation flash by skipping immediate invalidation when optimistic updates are applied
- Switch all write operations to use user token instead of app installation token
- Add branch deletion/restoration to PR activity timeline, sorted by date
- Move merge event into sorted timeline instead of hardcoded at bottom
- Track headRefDeleted in page data so delete CTA persists across refresh
- Bust pull detail caches after branch deletion
- Handle webhook delete events for revalidation
- Use 13px font size for context menu items
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
diffkit 7b5aeb6 Commit Preview URL

Branch Preview URL
Apr 11 2026, 05:37 PM

@stylessh stylessh merged commit 627f8a4 into main Apr 11, 2026
4 checks passed
stylessh added a commit that referenced this pull request Apr 18, 2026
…etion, user auth for writes (#69)

- Add right-click context menu on tabs (close, close others, close right) with single shared instance
- Add horizontal wheel scroll on tab bar
- Fix optimistic mutation flash by skipping immediate invalidation when optimistic updates are applied
- Switch all write operations to use user token instead of app installation token
- Add branch deletion/restoration to PR activity timeline, sorted by date
- Move merge event into sorted timeline instead of hardcoded at bottom
- Track headRefDeleted in page data so delete CTA persists across refresh
- Bust pull detail caches after branch deletion
- Handle webhook delete events for revalidation
- Use 13px font size for context menu items
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.

1 participant