Skip to content

fix(staff): stop the Act as confirm reading like a delete - #420

Merged
nourshoreibah merged 2 commits into
mainfrom
fix/staff-act-as-dialog
Oct 17, 2026
Merged

nourshoreibah merged 2 commits into
mainfrom
fix/staff-act-as-dialog

Conversation

@nourshoreibah

Copy link
Copy Markdown
Collaborator

The staff console's Act as confirm reused ConfirmDeleteDialog, which hard-codes delete wording, so it showed:

Act as this user with full access?
Delete Nour Shoreibah (shoreibah.n@northeastern.edu)?
…This cannot be undone.

Now reads: Switch into Name (email) for one hour? plus the existing consequences line. No "cannot be undone", and the button shows Switching… while pending.

  • ConfirmDeleteDialog: optional prompt, irreversible (default true), pendingLabel (default Deleting…). Delete callers unchanged.
  • staff/page.tsx: passes act-as wording.
  • Test asserts delete wording absent.

Verified: jest StaffConsolePage ConfirmDeleteDialog 9/9 pass, tsc --noEmit clean.

🤖 Generated with Claude Code

nourshoreibah and others added 2 commits October 17, 2026 07:44
The staff console reuses ConfirmDeleteDialog, which hard-coded
"Delete {itemName}?", "This cannot be undone." and "Deleting…".
Add optional prompt, irreversible and pendingLabel props and pass
switch-in wording from the staff page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nourshoreibah nourshoreibah added the no-review The PR review bot won't run label Oct 17, 2026
@nourshoreibah
nourshoreibah marked this pull request as ready for review October 17, 2026 11:47
@nourshoreibah
nourshoreibah merged commit 0d25ec9 into main Oct 17, 2026
19 checks passed
@nourshoreibah
nourshoreibah deleted the fix/staff-act-as-dialog branch October 17, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-review The PR review bot won't run

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant