-
Notifications
You must be signed in to change notification settings - Fork 430
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
feat(releases): timezone selection updates filtering and dateTime display on release overview #7854
Conversation
… differs from locale
… differs from locale
…nity into corel-239-overview-timezone
…nity into corel-239-overview-timezone
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
No changes to documentation |
Component Testing Report Updated Nov 21, 2024 4:55 PM (UTC) ✅ All Tests Passed -- expand for details
|
⚡️ Editor Performance ReportUpdated Thu, 21 Nov 2024 16:58:05 GMT
Detailed information🏠 Reference resultThe performance result of
🧪 Experiment resultThe performance result of this branch
📚 Glossary
|
… differs from locale
…sanity into corel-239-overview-timezone-2
if (timeZone.abbreviation === localeTimeZoneAbbreviation) return '' | ||
|
||
return `(${timeZone.abbreviation})` |
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.
super small nit but you can always make this be
if (timeZone.abbreviation === localeTimeZoneAbbreviation) return '' | |
return `(${timeZone.abbreviation})` | |
return timeZone.abbreviation === localeTimeZoneAbbreviation ? '' : `(${timeZone.abbreviation})` |
right?
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.
So much nicer, thank you!
import useTimeZone, {getLocalTimeZone} from '../../useTimeZone' | ||
|
||
const mockTimeZone: NormalizedTimeZone = { | ||
abbreviation: 'SCT', // Sanity Central Time :) |
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.
ayyy 8)
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.
Super small nitpick but otherwise looks good!
Description
Above demonstrates that:
What to review
Note that
useTimeZone
and a few other helpers were introduced inScheduledPublishing
and still exist nested in that directory.As part of a quick follow PR (coming shortly), I'll move these parts that are now shared across content releases and scheduled publishing to a more generic place.
Testing
Updated tests for
ReleasesOverview
Added mocks for
useTimeZone
Notes for release
N/A