diff --git a/apps/web/src/app/activity/page.tsx b/apps/web/src/app/activity/page.tsx index c742a05..23b704c 100644 --- a/apps/web/src/app/activity/page.tsx +++ b/apps/web/src/app/activity/page.tsx @@ -109,51 +109,55 @@ interface PageProps { searchParams: Promise<{ filter?: string }>; } -interface ActionShelfProps { +interface ShelfButtonProps { runId: string; isArchived: boolean; } /** - * The right-side reveal shelf for swipeable activity rows. - * - * Two stacked buttons — Archive (or Restore, when the row is already - * archived) and Delete. Each is its own form submit so the row stays - * a server component; the page revalidates after the action lands. + * Left-shelf (revealed by swiping the row RIGHT). Hard-delete button. + * iOS-Mail-style: destructive action lives on the leading edge. */ -function ActionShelf({ runId, isArchived }: ActionShelfProps) { +function DeleteShelfButton({ runId }: ShelfButtonProps) { return ( -
- Swipe a row left for {showingArchived ? "Restore" : "Archive"} / Delete. + Swipe left to Delete, or right to {showingArchived ? "Restore" : "Archive"}.
{/* Mobile: swipeable cards */} @@ -278,12 +282,12 @@ export default async function ActivityPage({ searchParams }: PageProps) { return (- {reminder.accountLabel} - {reminder.groupNames && ` · ${reminder.groupNames}`} -
-+ Swipe a row left to Delete, or right to{" "} + {status === "paused" ? "Restart" : "Pause"}. +
-+ {reminder.accountLabel} + {reminder.groupNames && ` · ${reminder.groupNames}`} +