Skip to content

Conversation

@prateekshourya29
Copy link
Member

Description

  • Introduced React Router for improved routing capabilities.
  • Refactored multiple components to align with the new routing structure.
  • Added new assets and configuration files for enhanced functionality.
  • Updated ESLint and TypeScript configurations for better type handling.
  • Removed deprecated files and streamlined the project structure.
  • Enhanced Dockerfile and Nginx configuration for optimized deployment.

Type of Change

  • Feature (non-breaking change which adds functionality)

lifeiscontent and others added 11 commits October 9, 2025 15:15
…e unnecessary optimizeDeps configuration in vite.config
Merge branch 'preview' of github.com:makeplane/plane into feat/admin-react-router-migration
- Removed unused dependencies from `apps/admin/package.json`.
- Added and updated dependencies in `packages/propel`, `packages/services`, and `packages/ui` to ensure consistency and compatibility.
- Cleaned up `pnpm-lock.yaml` to reflect the changes in dependencies.
- Introduced React Router for improved routing capabilities.
- Refactored multiple components to align with the new routing structure.
- Added new assets and configuration files for enhanced functionality.
- Updated ESLint and TypeScript configurations for better type handling.
- Removed deprecated files and streamlined the project structure.
- Enhanced Dockerfile and Nginx configuration for optimized deployment.
@prateekshourya29 prateekshourya29 marked this pull request as draft October 14, 2025 13:37
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 14, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat-sites-vite-migration

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

}

export function notFound(): never {
throw new Error("Not found");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@prateekshourya29 did you check that this works as expected? I would of expected you to throw a Response instead.

};

// TODO: Convert into SSR in order to generate metadata
export async function generateMetadata({ params }: Props) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@prateekshourya29 should convert to meta function the args are exported via the react-router types that are generated. You can look at my other PR for details.

const { anchor } = params;
const IssuesPage = observer(() => {
// params
const params = useParams<{ anchor: string }>();
Copy link
Collaborator

@lifeiscontent lifeiscontent Oct 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

params already come from the Route.ComponentProps and its type safe too so you don't need this

"use client";

import type { FC, FormEvent } from "react";
import type { FormEvent } from "react";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you're getting rid of FC might as well get rid of FormEvent too.

@lifeiscontent lifeiscontent force-pushed the feat/admin-react-router-migration branch 3 times, most recently from 5e336af to 0eda662 Compare October 18, 2025 10:29
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.

2 participants