hngprojects / hng_boilerplate_php_laravel_web

Apache License 2.0
146 stars 58 forks source link

[BUG FIXES] : (PHP) Ensure Success Response is Returned After Waitlist Form Submission #864 #542

Open abdielbytes opened 2 months ago

abdielbytes commented 2 months ago

Description

The backend should return a success response after processing the waitlist form submission, which triggers the frontend to display a confirmation message to the user.

Acceptance Criteria

• The backend returns a clear success response once the user's details are processed and stored. • The response should include a message or signal that the frontend can use to trigger the display of a success message. • The success response should include all necessary headers and status codes to indicate a successful operation.

Purpose

• To provide immediate feedback to the user that their submission has been successfully processed. • To ensure that the frontend can trigger the appropriate success message based on the backend response.

Requirem#ents

• Update the backend API to ensure it returns a structured success response upon processing the form submission. • Ensure that the success response contains a message or flag that the frontend can use to trigger a success message. • Include necessary error handling to capture and log any issues that prevent the success response from being sent. • Test the backend flow to ensure the success response is consistent and correctly triggers the frontend success message.

Expected Outcome

The backend either fails to return a success response or the response is not structured in a way that triggers the success message on the front

Video

https://drive.google.com/file/d/1WIu2SCRFXWjtLKdtUC_8qLHdO8FglNyC/view?usp=

Reference

https://github.com/hngprojects/hng_boilerplate_nestjs/issues/864