d2-05-confirm-delete-page
Installation
SKILL.md
Day 2 · Step 5 — Confirm-delete page
up-app/src/app/pages/<entity>-confirm-delete/<entity>-confirm-delete.component.ts:
- Reads
idfrom the route, optionally loads the record viagetById(id)to show what's being deleted. - Confirm button →
<entity>Service.delete(id), on successrouter.navigate(['/<entity>']). - Cancel button →
router.navigate(['/<entity>'])without calling delete.
A modal/dialog triggered directly from the search page's Delete button (instead of a routed page) is an equally valid implementation — either satisfies the requirement, pick whichever pattern the user already has.
Redeploy from the project root:
docker compose up -d --build
Drill complete. Verify: search page loads real up-api data → Add → fill form → Save → row appears → Edit → change → Save → row updated → Delete → confirm → Confirm → row gone.