Repository navigation
Add Thanksgiving, Black Friday and Cyber Monday as no-deploy days - #1535
Open
santiagosony wants to merge 1 commit into
Open
santiagosony wants to merge 1 commit into
santiagosony wants to merge 1 commit into
Conversation
Black Friday was only blocked because it is a Friday, and showed the generic Friday messages. Thanksgiving and Cyber Monday were treated as regular days, so deploys were allowed in the morning. - Time: add isThanksgiving (4th Thursday of November), isBlackFriday (the day after) and isCyberMonday (the Monday after, Nov 26 - Dec 2), and include them in isHolidays. - dayHelper and the widget pick dedicated reasons for each date. - Add thanksgiving, black_friday and cyber_monday reasons to every locale, since the client translator has no English fallback. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016VQLW2Aptjjvno4ZUZprSr
|
@claude is attempting to deploy a commit to the Alexis' projects Team on Vercel. A member of the Team first needs to authorize it. |
Owner
Coverage report
Test suite run success201 tests passing in 13 suites. Report generated by 🧪jest coverage report action from 33588a0 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Black Friday was only blocked because it falls on a Friday, so it showed the generic Friday messages. Thanksgiving and Cyber Monday were treated as regular days, so deploys were allowed in the morning.
This PR makes all three no-deploy days, each with its own messages:
black_fridayreasonsChanges
helpers/time.ts: addisThanksgiving(),isBlackFriday()andisCyberMonday(), and include them inisHolidays(). Cyber Monday can fall in December (e.g. Dec 2, 2024), which is handled.helpers/constants.ts(dayHelper) andcomponent/widget.tsx(getReasonKey): pick the new reason keys.locales/*.json: addthanksgiving,black_fridayandcyber_mondayreasons to all 9 locales. All locales need them because the client-sidet()has no English fallback and would render the raw key.docs/adding-languages.md: add the new keys to the template.Tests
tests/shopping-holidays.test.ts: dates from 2023 to 2029, including edge cases (a November with five Thursdays, Cyber Monday in December),shouldIDeploy,dayHelper, and a check that every locale has the new keys.tests/rendering.test.tsx.npx jest: 201 passed (was 154).eslintandtsc --noEmitare clean.Translations to review
The en, es, es-AR and pt messages were written with care. The cs, sl, el, bg and zh-HK messages have not been reviewed by native speakers, so a check from someone who speaks those languages would be welcome.
🤖 Generated with Claude Code