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

Add description modification #316

Merged
merged 9 commits into from
Jan 10, 2024
Merged

Conversation

YenguiSeddik
Copy link
Contributor

No description provided.

@AAJELLAL AAJELLAL self-requested a review December 22, 2023 14:02
Copy link
Contributor

@AAJELLAL AAJELLAL left a comment

Choose a reason for hiding this comment

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

When I set whitespace as value a snackError is shown with the this message :
403 Forbidden

}

const schema = yup.object().shape({
[DESCRIPTION]: yup.string().nullable(),
Copy link
Contributor

Choose a reason for hiding this comment

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

The description field should not allow blank space and "" as values don't you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Description is optionnal, so i think it should be allowed

onClose();
};

const onSubmit = (data: { description: string }) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be better if you use useCallback.

@YenguiSeddik YenguiSeddik requested a review from AAJELLAL January 4, 2024 08:28
Copy link
Contributor

@souissimai souissimai left a comment

Choose a reason for hiding this comment

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

Maybe you should truncating tooltips when the description text is too long. Please check this with PO, otherwise test ok and code ok

@souissimai souissimai self-requested a review January 9, 2024 13:43
@YenguiSeddik YenguiSeddik merged commit 6fb904e into main Jan 10, 2024
2 checks passed
@YenguiSeddik YenguiSeddik deleted the add_description_modification branch January 10, 2024 08:59
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