-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add time to publication date and remove deprecated date fields #4856
Conversation
馃 Changeset detectedLatest commit: fa14a55 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Do we still need to fill the old date fields ( |
@mirekm No, Saleor syncs old fields with new fields 馃檪 |
31fef83
to
3b3559b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tests should follow AAA format
<RadioGroup.Item id={`isPublished-true`} value="true"> | ||
<Box display="flex" __alignItems="baseline" gap={2}> | ||
<Text>{messages.visibleLabel}</Text> | ||
{isPublished && publishedAt && Date.parse(publishedAt) < dateNow && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this condition is a little difficult to read, i'd extract it but it's a nitpick really - up to you
{isAvailableForPurchase && | ||
availableForPurchaseAt && | ||
Date.parse(availableForPurchaseAt) < dateNow && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
* wip: replace deprecated fields * `availableForPurchaseAt` * visibility card + cleanup * cleanup * check if input is valid * add helper text * fix 'hidden' 2nd label * qa fixes * Add tests and cleanup code * fix type * cr fixes
availableForPurchase
->availableForPurchaseAt
publicationDate
->publishedAt
Date
->DateTime
What type of PR is this?
Related Issues or Documents
Usage Instructions, Screenshots, Recordings
Have you written tests?
[Optional] Description