Skip to content

Conversation

@LIlGG
Copy link
Member

@LIlGG LIlGG commented Dec 17, 2025

What type of PR is this?

/kind feature

What this PR does / why we need it:

从已归档的 remix v2 升级到 react router v7 版本。

Does this PR introduce a user-facing change?

从已归档的 remix v2 升级到 react router v7 版本。

@f2c-ci-robot f2c-ci-robot bot added kind/feature Categorizes issue or PR as related to a new feature. release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Dec 17, 2025
Migrated API route files from dynamic Remix v2 file system routing to a flat, explicit structure compatible with React Router v7. Removed all dynamic route handler files and replaced them with direct route modules under organized folders (e.g., api/chat, api/1panel, etc.). Updated route configuration in routes.ts to use the new structure and prefix helpers. Refactored all API handler modules to include authentication checks directly and removed indirection via action/loader wrappers. Updated imports and fixed references throughout the codebase to match the new file locations. Also updated Netlify deploy action endpoint and improved error handling in 1panel store.
Refactored several route handler functions to remove unnecessary exports and align with new conventions. Updated Chat component to receive loaderData via props and adjusted usage in chat route. Removed unused 'data' utility from routes. Minor UI component cleanup and fixed transition utility in uno.config.ts.
Deleted the AuthErrorToast component and its lazy loader from the codebase. Upgraded all @react-router/* and react-router dependencies from version 7.10.1 to 7.11.0 in package.json and pnpm-lock.yaml.
Replaces manual type definitions for route loader data with types from generated Route types, improving type safety and maintainability. Updates useRouteLoaderData calls and adjusts route registration to use explicit route IDs, aligning with new type usage.
@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Dec 31, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign johnniang for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature Categorizes issue or PR as related to a new feature. release-note Denotes a PR that will be considered when it comes time to generate release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant