Skip to content
This repository was archived by the owner on Nov 16, 2026. It is now read-only.

Confirm before close and delete - #32

Merged
WillCraig merged 1 commit into
mainfrom
feature/delete-confirm
Oct 22, 2026
Merged

WillCraig merged 1 commit into
mainfrom
feature/delete-confirm

Conversation

@WillCraig

@WillCraig WillCraig commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

What changed:

  • Close customer (admin) now asks Close Amina Khan (CUS-1001)? before it calls the API. Confetti still fires only after a confirmed close succeeds.
  • Delete on the interaction timeline and on the interaction detail page asks Delete "<summary>" for <customer>? first. The timeline uses the customer name when it has it.
  • Cancel does nothing: no API call, no navigation. It uses the browser's window.confirm. No data-testids changed.
  • The Selenium e2e now accepts the confirm when it cleans up its note, and checks the prompt text.

Why: one click deleted things with no way back from the UI.

How tested:

  • ng test: 59 of 59 pass, with new cases for confirm and cancel on all three buttons.
  • ng build passes.
  • npm run e2e against ng serve on 4302 and a backend on 8091: 1 of 1 pass.

@WillCraig
WillCraig merged commit c551eb5 into main Oct 22, 2026
8 checks passed
@WillCraig
WillCraig deleted the feature/delete-confirm branch October 22, 2026 13:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant