Skip to content

feat: Add bulk archive and clean up task context menu#1622

Merged
charlesvien merged 4 commits intomainfrom
04-13-add_archive_prior_tasks_context_menu_action_clean_up_context_menu
Apr 13, 2026
Merged

feat: Add bulk archive and clean up task context menu#1622
charlesvien merged 4 commits intomainfrom
04-13-add_archive_prior_tasks_context_menu_action_clean_up_context_menu

Conversation

@charlesvien
Copy link
Copy Markdown
Member

@charlesvien charlesvien commented Apr 13, 2026

Problem

Archiving old tasks one at a time is tedious and the context menu had disorganized grouping with incorrect suspend visibility.

CleanShot 2026-04-13 at 11.00.59@2x.png

Changes

  1. Add "Archive prior tasks" context menu action that archives all tasks older than the clicked one
  2. Extract archiveTaskImperative for reuse outside React hooks
  3. Reorganize context menu: quick actions on top, workspace actions in middle, archive at bottom
  4. Fix Suspend showing for non-worktree tasks (was incorrectly using folderPath fallback)
  5. Toggle Suspend/Unsuspend label based on task state
  6. Remove Delete from context menu in favor of archiving

How did you test this?

Manually

@charlesvien charlesvien changed the title Add "Archive prior tasks" context menu action + clean up context menu feat: Apr 13, 2026
Copy link
Copy Markdown
Member Author

charlesvien commented Apr 13, 2026

@charlesvien charlesvien changed the title feat: feat: Add bulk archive and clean up task context menu Apr 13, 2026
@charlesvien charlesvien force-pushed the 04-13-add_archive_prior_tasks_context_menu_action_clean_up_context_menu branch from 5bb1813 to bf69125 Compare April 13, 2026 18:44
@charlesvien charlesvien force-pushed the fix/drag-drop-file-path branch from 8442452 to 6cf8dcf Compare April 13, 2026 18:44
@charlesvien charlesvien marked this pull request as ready for review April 13, 2026 18:54
@charlesvien charlesvien changed the base branch from fix/drag-drop-file-path to graphite-base/1622 April 13, 2026 19:41
@charlesvien charlesvien force-pushed the 04-13-add_archive_prior_tasks_context_menu_action_clean_up_context_menu branch from bf69125 to 85f4733 Compare April 13, 2026 19:48
@graphite-app graphite-app bot changed the base branch from graphite-base/1622 to main April 13, 2026 19:49
@charlesvien charlesvien force-pushed the 04-13-add_archive_prior_tasks_context_menu_action_clean_up_context_menu branch from 85f4733 to 46fb4fe Compare April 13, 2026 19:49
Copy link
Copy Markdown
Contributor

adboio commented Apr 13, 2026

nit, and not super related to this PR, but do we need "copy path" in that context menu?

also for "open in cursor" vs. "open in..." is cursor just a default we chose, or are we doing anything clever (here and in the open file button) with the user's last-used app?

@charlesvien charlesvien merged commit 4cf2dca into main Apr 13, 2026
16 checks passed
Copy link
Copy Markdown
Member Author

Merge activity

@charlesvien charlesvien deleted the 04-13-add_archive_prior_tasks_context_menu_action_clean_up_context_menu branch April 13, 2026 21:40
@charlesvien
Copy link
Copy Markdown
Member Author

nit, and not super related to this PR, but do we need "copy path" in that context menu?

also for "open in cursor" vs. "open in..." is cursor just a default we chose, or are we doing anything clever (here and in the open file button) with the user's last-used app?

Good points. I'll throw these into the onboarding PR, had auto-merge on for this one

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