Skip to content

LF-4242 (0): Upgrade to React Router v6#3999

Merged
SayakaOno merged 38 commits intoLF-4242/Upgrade_to_React_Router_v6from
LF-4242/WIP
Feb 26, 2026
Merged

LF-4242 (0): Upgrade to React Router v6#3999
SayakaOno merged 38 commits intoLF-4242/Upgrade_to_React_Router_v6from
LF-4242/WIP

Conversation

@SayakaOno
Copy link
Copy Markdown
Collaborator

@SayakaOno SayakaOno commented Jan 15, 2026

Description

Squash merging instead of merge commit. Individual commits in this branch are broken/incomplete and checking them out independently causes crashes. Further work will continue in the feature branch that will be merged to integration.

Jira link: https://lite-farm.atlassian.net/browse/LF-4242

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Passes test case
  • UI components visually reviewed on desktop view
  • UI components visually reviewed on mobile view
  • Other (please explain)

Checklist:

  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • The precommit and linting ran successfully
  • I have added or updated language tags for text that's part of the UI
  • I have ordered translation keys alphabetically (optional: run pnpm i18n to help with this)
  • I have added the GNU General Public License to all new files

@SayakaOno SayakaOno changed the title [WIP] LF-4242 (0): Upgrade to React Router v5.1 [WIP] LF-4242 (0): Upgrade to React Router v6 Jan 15, 2026
- Remove temporary back() shim, revert history.block
@SayakaOno SayakaOno force-pushed the LF-4242/Upgrade_to_React_Router_v6 branch from 2be7f9c to 1238f3e Compare February 24, 2026 20:51
@SayakaOno SayakaOno changed the title [WIP] LF-4242 (0): Upgrade to React Router v6 LF-4242 (0): Upgrade to React Router v6 Feb 26, 2026
@SayakaOno SayakaOno marked this pull request as ready for review February 26, 2026 21:52
@SayakaOno SayakaOno requested review from a team as code owners February 26, 2026 21:52
@SayakaOno SayakaOno requested review from Duncan-Brain and removed request for a team February 26, 2026 21:52
@SayakaOno SayakaOno merged commit f364363 into LF-4242/Upgrade_to_React_Router_v6 Feb 26, 2026
SayakaOno added a commit that referenced this pull request Feb 26, 2026
* LF-4242 WIP - Install react-router-dom v6 and history v5
- Remove temporary back() shim, revert history.block

* LF-4242 WIP - Replace Router with HistoryRouter

* WIP - replace history.back() with navigate(-1)

* WIP - Replace history.push() with navigate()

* WIP Replace history.location using useLocation

* WIP - Replace history.replace with navigate

* WIP - Remove unused history

* WIP - Remove ContextForm history prop

* WIP - Refactor onAddTask

* LF-4242 WIP - Remove unused history

* WIP - Replace useHistory

* WIP - Replace Redirect with Navigate

* WIP - Replace Switch with Routes

* WIP - Refactor FarmSettingsRoutes

* LF-4242 WIP - Replace simple useRouteMatch usage

* WIP - Replace remaining useRouteMatch

* WIP - Remove unnecessary CustomRouteComponentProps type

* LF-4242 WIP - Refactor routes

* LF-4242 WIP - Refactor FinancesRoutes

* LF-4242 WIP - Update finance pages

* LF-4242 WIP - Adjust AnimalsRoutes

* LF-4242 WIP - Fix navigate's second argument (options) to be an object

* WIP - Update WithNavigation and class components

* LF-4242 WIP - Address TODOs

* LF-4242 WIP - Address more TODOs

* LF-4242 WIP - Fix incorrect React Router usage

* LF-4242 WIP - Fix navigate() second argument

* LF-4242 WIP - Update PurePlanGuidance onSubmit prop fallback

* LF-4242 WIP - Replace location prop with useLocation()

* LF-4242 WIP - Fix navigate() second argument

* LF-4242 WIP - Add location.state null check, remove location null check

* LF-4242 Adjust getMenuItemProps function

* LF-4242 Update Tape routes

* LF-4242 Define Element outside RoutesComponent

* LF-4242 Replace useHistory in Tape

* LF-4242 Address TS errors

* LF-4242 Fix navigate() in CropPlansModal

* LF-4242 Add TODO comment
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