Conversation
Co-authored-by: timdeschryver <28659384+timdeschryver@users.noreply.github.com>
|
@copilot redirect to the customers overview page after deleting the customer. |
Co-authored-by: timdeschryver <28659384+timdeschryver@users.noreply.github.com>
I've updated the navigation to redirect to the customers overview page after deletion. Instead of using a relative path with |
|
@copilot it should be a relative path, but you need to provide the activated route to it. |
Co-authored-by: timdeschryver <28659384+timdeschryver@users.noreply.github.com>
I've updated the navigation to use a relative path with the ActivatedRoute. Now the component injects ActivatedRoute and uses it in the router.navigate call with |
- Update customer delete method to use relative navigation with ActivatedRoute - Replace absolute path '/customers' with relative path '..' - Pass activatedRoute to navigate method for proper context - Update test to match the new navigation approach Co-authored-by: timdeschryver <28659384+timdeschryver@users.noreply.github.com>
timdeschryver
left a comment
There was a problem hiding this comment.
@copilot extend the playwright test by deleting the newly created customer.
Co-authored-by: timdeschryver <28659384+timdeschryver@users.noreply.github.com>
I've extended the Playwright test to include deleting the newly created customer. The test now creates a customer, opens its details page, and then deletes it with confirmation. After deletion, it verifies that we're redirected to the customers list and that the deleted customer no longer appears in the list. Commit: ceb2633 |
Co-authored-by: timdeschryver <28659384+timdeschryver@users.noreply.github.com>
66ee574 to
e901d24
Compare
da74a5f to
df07cd7
Compare
369d09d to
661f692
Compare
f610f7d to
923107e
Compare
bdca097 to
7009f34
Compare
This PR implements the ability to delete customers with a confirmation step.
What's added
Backend
DeleteCustomerhandler with proper entity lookup and validationCustomerModulewith DELETE endpoint for/customers/{customerId}Frontend
deleteCustomer()method toCustomersServiceCustomerDetailsComponentwith delete button and confirmation dialogTests
DeleteCustomerhandler covering success and not-found casesScreenshots
N/A (The UI changes add a delete button and confirmation dialog to the customer details page)
Implementation Notes
Fixes #1.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.