feat(web): «Deshacer» after moving, reassigning or trashing a ticket
A toast offers to undo for seven seconds (or Ctrl/⌘ Z outside a field) by running the opposite command: the card back to its column or the ticket to its status (the workflow may refuse it), the previous assignee, or the ticket back from the trash. The undo itself only says «Deshecho». On the board, from the card's assignee; on the ticket page, status, assignee and trash, which no longer asks for confirmation. The toast is the app's own (UndoToastComponent): pi-snack-bar cannot tell its button from the timeout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -26,10 +26,19 @@ export const boardPageEvents = eventGroup({
|
||||
issueId: string;
|
||||
to: string;
|
||||
reason?: string | null;
|
||||
/** Where it was: «Deshacer» takes it back. */
|
||||
from?: string;
|
||||
/** It is the «Deshacer» of a move: no undo for it. */
|
||||
undoing?: boolean;
|
||||
}>(),
|
||||
issueCreateRequested: type<CreateIssueInput>(),
|
||||
/** From the card: priority, estimate or assignee (the live update repaints it). */
|
||||
issueEditRequested: type<{ issueId: string; change: CardChange }>(),
|
||||
issueEditRequested: type<{
|
||||
issueId: string;
|
||||
change: CardChange;
|
||||
/** It is the «Deshacer» of a change: no undo for it. */
|
||||
undoing?: boolean;
|
||||
}>(),
|
||||
/** Save the current filter under a name. */
|
||||
viewSaveRequested: type<{ name: string; shared: boolean }>(),
|
||||
viewDeleteRequested: type<{ id: string }>(),
|
||||
|
||||
Reference in New Issue
Block a user