Skip to content

Ateam Go: swipe a task to archive or delete it, and a + for a new task in the sidebar - #576

Merged
pallaoro merged 2 commits into
mainfrom
ateam-go-swipe-task-actions
Nov 18, 2026
Merged

pallaoro merged 2 commits into
mainfrom
ateam-go-swipe-task-actions

Conversation

@pallaoro

Copy link
Copy Markdown
Member

Why

Ateam Go had no way to archive or delete a task: only box cards swiped. And in a wide window (iPad, landscape) the sidebar had a + for projects and loops but none for tasks, so with a terminal, Mission or Loops open there was no way to start one.

What

Swipe a task (Home rows, the sidebar's rows, Board cards): slide left to uncover two actions, one row open at a time, closed when the list scrolls or the row is tapped.

  • Archive, or Restore on an archived task (Home's Archived filter). A box with no archive (before v18) says to update it.
  • Delete: confirmed first. Same call as the desktop (tasks.remove with deleteBranch): the agent stops, the worktree and branch go. When the box refuses because of uncommitted or unmerged work, a second confirmation offers Delete anyway.
  • VoiceOver gets the same actions on the row.
  • No swipe on the collapsed rail (icon rows), nor on a task whose box is asleep or offline.

The board follows removals. The phone never listened to taskRemoved, so a task deleted or archived anywhere stayed listed until the next full read. It now drops the row and card, and closes that task's terminal if it was open.

+ beside Tasks in the sidebar: opens the board, turns the composer's switch to Task and focuses it.

Notes

  • SwipeActions.tsx is a new shared row; the Boxes card keeps its own copy of the gesture (it also carries a tray), left untouched here.
  • The build number is not bumped, so merging this uploads nothing to TestFlight.

Checks

  • bun test src in apps/mobile: 164 pass (2 new in task-refusals.test.ts)
  • tsc --noEmit in apps/mobile: clean
  • biome check on the changed files: clean, except the import order in HomeScreen.tsx that main already has
  • Not run on a phone or simulator. The gesture, the layout of the uncovered buttons and the composer focus need a pass on a device.

…k in the sidebar

A task row on Home and a card on the Board slide left to uncover Archive
(Restore on an archived one) and Delete, one open at a time. Delete is the
desktop's: confirmed, the worktree and branch removed, and asked again when
the box refuses because work would be lost. The phone now drops a task when
its box says it was removed, from here or anywhere else.

The wide-window sidebar gets a + beside Tasks that opens the board and hands
the composer the keyboard, set to Task.
@pallaoro
pallaoro merged commit 47a2eac into main Nov 18, 2026
1 check 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.

1 participant