t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Feature]: Allow immediate Cmd+Z undo after accidentally archiving a project

Open imjenseits opened this issue 7 months ago • 1 comments

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I am describing a concrete UX problem, not just a vague idea.

Area

apps/web, apps/desktop

Problem or use case

It is currently easy to accidentally archive a project from the sidebar context menu, but there does not appear to be any immediate undo path using Cmd+Z / Ctrl+Z right after the action.

There is an explicit archive/unarchive model for projects, but when the archive action was accidental, the expected recovery path is often a quick keyboard undo rather than hunting for the archived project section and manually unarchiving it.

This creates unnecessary friction for what should be a low-cost, reversible mistake.

Proposed solution

Support an immediate undo flow for project archiving:

  • after archiving a project, allow Cmd+Z on macOS and Ctrl+Z on Windows/Linux to restore it
  • scope that undo narrowly to the most recent archive action
  • ideally also expose a toast-level Undo affordance so the recovery path is visible even if the keyboard shortcut is not discovered

Expected behavior

If I accidentally archive a project and immediately press Cmd+Z, the project should be restored to the active list without needing to manually find and unarchive it.

Actual behavior

The project can be archived, but there is no obvious immediate keyboard undo path for that action.

Why this matters

  • archive is conceptually reversible, so immediate undo matches user expectations
  • accidental archive is a small mistake that should have a one-step recovery path
  • this is especially important in a keyboard-driven desktop workflow where Cmd+Z is the default mental model for undoing the last UI action

Smallest useful scope

The smallest useful version would be:

  • support Cmd+Z / Ctrl+Z immediately after project archive
  • restore only the last archived project
  • expire the undo window after a short interval or once another conflicting action occurs

Alternatives considered

Manual unarchive works, but it is slower and harder to discover in the accidental-action case.

Related context

  • project archiving request: #350
  • thread archiving request: #993
  • archived-only project follow-up bug: #1880

Contribution

  • [ ] I would be open to helping implement this.

imjenseits avatar Apr 18 '26 10:04 imjenseits

A global Cmd+Z archive undo would need cross-focus history semantics and risks intercepting normal editor undo. With no demonstrated demand, we are not adding a transient project-archive undo layer.

This was closed as part of a large repo-wide maintenance sweep. If you think it's still relevant, please reopen.

juliusmarminge avatar Jun 20 '26 00:06 juliusmarminge