ohlunlacassi / hotel-tishjama

Capstone Project
https://hotel-tishjama.vercel.app
3 stars 0 forks source link

US5 - Edit a Service (SPD) #6

Open shrocket opened 1 year ago

shrocket commented 1 year ago

Value proposition

As a hotel service manager I want to edit a service In order to keep existing services up to date

Description

Image

Acceptance criteria

Tasks

Changing the folder tree/file structure

File URL What it does
SPD/index.js /SPD/ Displays all services with add actions
SPD/[id].js /SPD/:id Displays each service with details, edit and delete button
SPD/services/create.js /SPD/services/create Displays the create service form
SPD/services/[id]/edit.js /SPD/services/:id/edit Displays the edit service form

Create an "Edit" button

Minor Refactoring

AnnaD91 commented 1 year ago

Looks all fantastic 🚀 Everything you've mentioned in the Acceptance criteria works perfectly fine. Just one little detail: After editing a trip and clicking on 'save', the user is directed to the service details page rather than on the service list page 😊

shrocket commented 1 year ago

Thank you! It looks like there's a bit of a discrepancy between the wireframe (back to the details page) and the acceptance criteria (back to the list). We changed the code this morning to match the wireframe, but forgot to double-check the acceptance criteria. We prefer the wireframe variant! :)