Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX]: [PHOENIX] [BE] Set Maximum Character Limit Validation for Description Field in Add Product Modal #1440

Open
Olnuel opened this issue Aug 24, 2024 · 1 comment
Labels
triage This Ticket is yet to be verified as a valid ticket

Comments

@Olnuel
Copy link

Olnuel commented Aug 24, 2024

Description

Implement API validation for a maximum character limit for the "Description" field in the "Add Product" modal. This validation should ensure that any product description entered by the user does not exceed the specified character limit. If the limit is exceeded, an appropriate error message should be returned to the frontend.

Acceptance Criteria

  1. Ensure a maximum character limit of 170 characters for the "Description" field when adding or editing a product.
  2. If a user attempts to submit a description that exceeds the character limit, the backend should reject the request and return a validation error message.
  3. The error message returned should indicate that the description exceeds the maximum allowed length and specify the character limit.

Endpoint

POST /api/products

Links

| FIGMA LINK
https://www.figma.com/design/VEItfX6St5NSAqqNHImcxD/HNG-Boilerplate-Designs?node-id=3037-3128&t=VEj4y3G0vEn4g18k-4

https://www.figma.com/design/VEItfX6St5NSAqqNHImcxD/HNG-Boilerplate-Designs?node-id=2961-3058&t=VEj4y3G0vEn4g18k-4

https://www.loom.com/share/18105e39bed34346a4cce091e122b4a1?sid=21b17569-1f3b-476e-acac-6009a2331cde

https://www.loom.com/share/9d6413c63bde448f904cdf6df14d6075?sid=0470e741-1088-48fb-8d99-2bb8edc77064

Images

image

@Olnuel Olnuel added the triage This Ticket is yet to be verified as a valid ticket label Aug 24, 2024
@Olnuel Olnuel changed the title [FIX]: [PHOENIX] Set Maximum Character Limit Validation for Description Field in Add Product Modal [FIX]: [PHOENIX] [BE] Set Maximum Character Limit Validation for Description Field in Add Product Modal Aug 24, 2024
@Nainah23
Copy link

Working on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage This Ticket is yet to be verified as a valid ticket
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants