Conversation
- Added `src/data/transferredHolidays.json` to store transferred holidays, keeping them distinct from regular holidays.
- Moved January 9, 2026 from `holidays.json` to `transferredHolidays.json` with the appropriate name.
- Updated `scripts/generate-static-api.js` to process transferred holidays, returning them in the `/api/calendar/{year}/holidays` API and outputting them correctly in the day info, and adding support for the `.ics` calendar file with a unique UID format (`T`).
- Updated `src/helpers/countWorkingDays.ts` and `src/helpers/isWorkingDay.ts` to ensure transferred holidays are properly treated as non-working days in all calculations.
- Updated the Swagger specification in `public/swagger.json` to reflect the new `transferredHolidays` array.
- Updated the `holidaysLoader.ts` util to process and expose the newly added data.
Co-authored-by: iposho <40692570+iposho@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 90514d7c00
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| }); | ||
|
|
||
| // Добавляем перенесенные выходные | ||
| transferredHolidays.forEach((transferredHoliday) => { |
There was a problem hiding this comment.
De-duplicate transferred days before writing ICS events
The new transferred-holiday block appends an extra VEVENT for each transferred date, but generateIcs is still called with getHolidays(y), which already contains transferred days marked with isHoliday: false (for example, 2026-01-09 in src/data/holidays.json). This produces two all-day events for the same date in the generated .ics file, so calendar clients will show duplicates; filter out isHoliday === false from the base holidays list or dedupe by date before allEvents.push(...).
Useful? React with 👍 / 👎.
No description provided.