Skip to content

OBPIH-6108 Trigger validation on default preference type clearing (Fixes after QA)#4540

Merged
kchelstowski merged 3 commits intofeature/product-supplier-list-redesignfrom
OBPIH-6108-add-preference-type-section-with-inputs
Mar 11, 2024
Merged

OBPIH-6108 Trigger validation on default preference type clearing (Fixes after QA)#4540
kchelstowski merged 3 commits intofeature/product-supplier-list-redesignfrom
OBPIH-6108-add-preference-type-section-with-inputs

Conversation

@drodzewicz
Copy link
Collaborator

  • trigger validation on preferrence type select when clearing default preference type subsection
  • on edit page of product sources, assign undefined instead of null on validityStartDate, validityEndDate and bidName because API returns null and Zod parses null to some date value when using coerce.date()
  • fix padding on form inputs and prevent inputs from jumping when errors appear under inputs (I have added minHeight on error message to prevent this height change when error appears)

- prevent inputs from jumping when errors appear under the input
.optional(),
bidName: z
.string()
.nullable()
Copy link
Collaborator

Choose a reason for hiding this comment

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

this can be either changed to .nullish() or removed at all, because you made a fallback for ?? undefined

@kchelstowski kchelstowski merged commit 7f7b429 into feature/product-supplier-list-redesign Mar 11, 2024
@kchelstowski kchelstowski deleted the OBPIH-6108-add-preference-type-section-with-inputs branch March 11, 2024 14:03
awalkowiak pushed a commit that referenced this pull request Mar 12, 2024
…xes after QA) (#4540)

* OBPIH-6108 trigger validation on PreferenceType when clearing default preference type subsection

* OBPIH-6108 Fix input error message styling on a form
- prevent inputs from jumping when errors appear under the input

* OBPIH-6108 chnage optional and null to nullish
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