feat: upgrade to Next 15 / React 19 and overhaul countdown reliability#9
Merged
Conversation
Framework & tooling: - Upgrade Next.js 14 → 15.5 and React 18 → 19 (async route params) - Replace unmaintained next-pwa with @serwist/next; migrate runtime caching 1:1 into app/sw.ts (static CacheFirst, locales SWR, pages/API NetworkFirst) - Switch to ESLint 9 flat config; drop legacy .eslintrc.json - Resolve all npm audit vulnerabilities (24 incl. 1 critical → 0) - Add Vitest unit tests and GitHub Actions CI (lint + test + build) Bug fixes: - Stop the 15-minute reminder from firing ~60 notifications; guard Notification API availability and permission before use - Fix overnight shifts (e.g. 22:00-06:00) breaking after midnight - Replace unreliable Date-string parsing with setHours() - Replace alert() dialogs with inline, accessible error messages Security: - Add locale allow-list validation in server i18n and manifest routes to prevent path traversal - Wrap manifest Referer parsing in try/catch PWA / caching: - Fix runtime cache rules previously hardcoded to an old domain - Drop cache-busting timestamp on locale fetches so translations work offline - Remove duplicate service-worker registration; untrack generated sw.js Features: - Add configurable "working days per month" for monthly salary, with translations for all 19 locales Chore: - Extract countdown/salary logic into lib/countdown.ts - Remove unused dependencies (rimraf, i18next-http-backend, etc.) - Drop viewport userScalable:false for accessibility Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Framework & tooling:
Bug fixes:
Security:
PWA / caching:
Features:
Chore: