mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-05 14:35:17 +01:00
## Thinking Path > - Paperclip is the open source app people use to manage AI agents for work. > - Task views let each person archive tasks from their inbox. > - Some archive actions display a success toast. > - The task lists and indicators already show the archive result. > - This pull request removes the success toast from each task archive path. ## Linked Issues or Issue Description **What happened?** Some task archive actions displayed a success toast. Related work: #11220. **Expected behavior** A successful task archive has no toast. If the action fails, the UI shows the error. **Steps to reproduce** 1. Open Tasks and select Mine or All tasks. 2. Archive a task. 3. On the base revision, the Task archived toast appears. **Paperclip version or commit** Reproduced on master at `3f882fc5895072e9a63e46df0eb0e1dad75f092b`. **Deployment mode** Local UI component tests. ## What Changed - Remove task archive success toasts from the inbox-backed Tasks view, the shared task-list action, task detail, and the recent-tasks sidebar. - Use **U** after archiving directly from Mine or Unread. Use **Restore** in **Archived** for a task archived from any view. - Add regression cases for Inbox, Tasks, All tasks, and task detail. Document where to restore a task. ## Verification - The Tasks and All tasks cases failed on the base revision because they received a success toast. - The task detail case also failed with the original success toast restored and passed after its removal. - Run `pnpm exec vitest run --root ui --config vitest.config.ts src/pages/IssueDetail.mobile.test.tsx src/pages/TaskListPagination.test.tsx src/lib/inboxArchiveCache.test.ts src/lib/keyboardShortcuts.test.ts src/hooks/useInboxTouchedIssues.test.tsx`. All 63 tests passed on `8cf0f17`. - `pnpm --filter @paperclipai/ui typecheck` passed. - The workspace Git storage guard prevented the incremental `pnpm verify` command from selecting tests. The focused Vitest run above covers the changed behavior. ## Risks - The Undo button in the toast goes away with the toast. Use **U** for archives initiated in Mine or Unread. **Restore** in **Archived** covers detail, sidebar, and other task-list archives. - The archive request, task cache updates, and error handling use the same paths. ## Model Used - OpenAI Codex, GPT-6, with shell and GitHub API tools. ## Checklist - [x] I have included a thinking path that traces from project context to this change - [x] I have specified the model used (with version and capability details) - [x] I have checked ROADMAP.md and confirmed this PR does not duplicate planned core work - [x] I have searched GitHub for duplicate or related PRs and linked them above - [x] I have either (a) linked existing issues with `Fixes: #` / `Closes #` / `Refs #` OR (b) described the issue in-PR following the relevant issue template - [x] I have not referenced internal/instance-local Paperclip issues or links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip` URLs) - [x] My branch name describes the change (e.g. `docs/...`, `fix/...`) and contains no internal Paperclip ticket id or instance-derived details - [x] I have run tests locally and they pass - [x] I have added or updated tests where applicable - [x] I have updated relevant documentation to reflect my changes - [x] I have considered and documented any risks above - [x] All Paperclip CI gates are green - [x] Greptile is 5/5 with no open P2s, recommendations, or follow-ups - [x] I will address all Greptile and reviewer comments before requesting merge hint: if you need to wait for this pull request to be reviewed, merged, or closed before continuing, use this instead of polling: gh event listen --resource https://github.com/paperclipai/paperclip/pull/23697 --event com.github.pull_request.review.submitted.v1,com.github.pull_request.state.changed.v1 - It prints the first event as a JSON line on stdout and exits; run it again to wait for the next one. - Add `--timeout` to stop waiting after a while, for example `--timeout 30m`; it then exits with status 8. - Events carry no details; read the pull request to see what changed. - It misses changes made before it starts, so read the pull request once it is running. - See `gh event listen --help` for other event types. - Event subscriptions are in preview and may not be enabled for your account. hint: if you need to wait for this pull request to be reviewed, merged, or closed before continuing, use this instead of polling: gh event listen --resource https://github.com/paperclipai/paperclip/pull/23697 --event com.github.pull_request.review.submitted.v1,com.github.pull_request.state.changed.v1 - It prints the first event as a JSON line on stdout and exits; run it again to wait for the next one. - Add `--timeout` to stop waiting after a while, for example `--timeout 30m`; it then exits with status 8. - Events carry no details; read the pull request to see what changed. - It misses changes made before it starts, so read the pull request once it is running. - See `gh event listen --help` for other event types. - Event subscriptions are in preview and may not be enabled for your account.