Skip to content

Conversation

@okerekechinweotito
Copy link
Contributor

@okerekechinweotito okerekechinweotito commented Oct 6, 2023

Fixes: T348192

Proposed Changes

  • Validates if generated identifier is less than 50 characters and alphanumeric
  • Prompts user to enter a new identifier if validation fails

Files Created/Updated

  • components/ChangeIdentifier.js - Extract the component used in handling duplicate identifier into a new component called ChangeIdentifier to enable efficient reuse
  • components/Books.js - add a conditional that checks if the initial generated identifier is Alphanumeric and not more than 50 characters. If it fails the validation , reuse the new ChangeIdentifier component and prompt the user to enter a new identifier that meets the requirements.

Current Look

Screenshot (27)

Checklist

  • Coding Conventions are followed.
  • Comments are used for Documenting the Code.
  • Correct File Names are mentioned.

@okerekechinweotito
Copy link
Contributor Author

@Parthiv-M Good-day
Please does this meet the criteria for T348192

@Parthiv-M
Copy link
Collaborator

Works fine for me

Copy link
Owner

@coderwassananmol coderwassananmol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants