Open ndswimming92 opened 10 months ago
Users can click an "Edit" button on a note card, which takes them to an edit page.
On the edit page, users can modify the Note Title, Note Body, and Note Category.
After making changes, the user clicks the "Add" button.
The app sends a PUT request to the server with the updated note data, including the note's unique ID.
The server updates the corresponding note in the database.
The app receives a success response and updates the note's information on the home page.
const updateMember = (payload) => new Promise((resolve, reject) => { fetch(`${endpoint}/member/${payload.firebaseKey}.json`, { method: 'PATCH', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify(payload), }) .then((response) => response.json()) .then((data) => resolve(data)) .catch(reject); });
User Story - what the user should see and experience
Users can click an "Edit" button on a note card, which takes them to an edit page.
On the edit page, users can modify the Note Title, Note Body, and Note Category.
After making changes, the user clicks the "Add" button.
Acceptance Criteria - illustrates the scope of the individual ticket
The app sends a PUT request to the server with the updated note data, including the note's unique ID.
The server updates the corresponding note in the database.
The app receives a success response and updates the note's information on the home page.
Example -
Dependencies -
Dev Notes - dev work that needs to be completed for this ticket