Skip to content

refactor: bump up dependencies and improve calendar month navigation - #96

Merged
manakuro merged 11 commits into
mainfrom
refactor/20260723-bump-up-dependencies
Jul 24, 2026
Merged

refactor: bump up dependencies and improve calendar month navigation#96
manakuro merged 11 commits into
mainfrom
refactor/20260723-bump-up-dependencies

Conversation

@manakuro

Copy link
Copy Markdown
Owner

Summary

This PR updates project dependencies to their latest versions and refactors the calendar month navigation logic for improved clarity, performance, and maintainability.

Dependency Updates

  • Upgraded react-intersection-observer to 10.1.0 with React 19 compatibility
  • Updated React, React-DOM, and Next.js to latest versions to resolve compatibility issues

Calendar Navigation Improvements

  • Renamed scroll handlers for better clarity:
    • onVisibleWhenScrollUploadPastMonths
    • onVisibleWhenScrollDownloadFutureMonths
  • Introduced isMonthBoundaryRow helper function to identify rows containing the last day of a month, optimizing IntersectionObserver logic
  • Improved scroll detection in MonthObserver using prevTopRef for accurate direction tracking
  • Updated onNextMonth and onPrevMonth to accept a date parameter for precise month transitions
  • Added debug mode toggle for the month observer overlay to assist during development

Code Quality

  • Renamed isFirst to isFirstRenderingRef for improved variable naming clarity
  • Added comments to clarify the purpose of scroll handler functions

Related Issues

N/A

Testing

  • Verified calendar month navigation works correctly when scrolling up and down
  • Confirmed dependency updates don't break existing functionality
  • Tested debug overlay toggle functionality

manakuro added 10 commits July 23, 2026 11:08
Updated dependencies for React, React-DOM, and NextJS to their latest versions. This resolves compatibility issues across the project and ensures stability with updated packages.
Updated `onNextMonth` and `onPrevMonth` to accept a date parameter for precise control over month transitions. Improved scroll detection logic in `MonthObserver` for smoother navigation and added a debug overlay to assist during development.
Introduced a debug mode toggle using Jotai state management. This adds a switch to enable or disable the month observer overlay, enhancing development flexibility and debugging capabilities.
Refined the `MonthObserver` logic to track scrolling direction using a new `prevTopRef`. Improved conditions for triggering `onNextMonth` and `onPrevMonth` to ensure more accurate month navigation.
Replaced all occurrences of `isSecondRowOfMonth` with `isMonthBoundaryRow` for better clarity and alignment with its purpose. This makes the code easier to understand and improves maintainability.
Introduced the `isMonthBoundaryRow` function to identify rows containing the last day of a month. This helps optimize the IntersectionObserver logic by limiting observation to key rows, improving performance and ensuring accurate month label synchronization during scrolling.
Improved variable naming in `MonthObserver` to enhance code clarity and maintainability. This aligns with the project's established naming conventions and reduces ambiguity.
Updated `react-intersection-observer` to version 10.1.0 and adjusted peer dependencies for compatibility with React 19. Added the `initialInView` option in `MonthObserver` to improve rendering control. Updated related `pnpm-lock.yaml` entries to reflect these changes.
Renamed `onVisibleWhenScrollUp` to `loadPastMonths` and `onVisibleWhenScrollDown` to `loadFutureMonths`. Updated references in the calendar context and tasks calendar list to reflect the new names. Added comments to clarify the purpose of these functions, improving code readability and maintainability.
Replaced the deprecated `languages` key with the new `language_servers` key in `.serena/project.yml`. Enhanced configuration readability by reorganizing and updating documentation for ignored paths and language server options. This aligns with the latest `serena` configuration standards and improves maintainability.
@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
project-management-demo-frontend Ready Ready Preview, Comment Jul 24, 2026 4:53am

@manakuro manakuro self-assigned this Jul 24, 2026
@github-actions

Copy link
Copy Markdown

Visit the 📚 Storybook 📚 for this PR (updated for commit 523c2a7):
https://63894befbaf58840c037c246-rbjuqvsvwa.chromatic.com/

Build URL: https://www.chromatic.com/build?appId=63894befbaf58840c037c246&number=196
(:fire: updated at Fri Jul 24 13:42:06 JST 2026)

Added validation in `onNextMonth` and `onPrevMonth` to handle invalid date strings and prevent errors. Refined scroll detection logic in `MonthObserver` by removing unnecessary debug logs and optimizing conditions for triggering month transitions. Enhanced inline comments to improve code clarity and maintainability.
@github-actions

Copy link
Copy Markdown

Visit the 📚 Storybook 📚 for this PR (updated for commit d9a9c94):
https://63894befbaf58840c037c246-vuqbtuhgtd.chromatic.com/

Build URL: https://www.chromatic.com/build?appId=63894befbaf58840c037c246&number=197
(:fire: updated at Fri Jul 24 13:54:12 JST 2026)

@manakuro
manakuro merged commit dcd0c51 into main Jul 24, 2026
7 checks passed
@manakuro
manakuro deleted the refactor/20260723-bump-up-dependencies branch July 24, 2026 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant