Skip to content

Commit

Permalink
fix(frontend): fix cannot redirect into chat/project page after creat…
Browse files Browse the repository at this point in the history
…e project from home page (#151)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
  - Enhanced file recognition to support .tsx files as TypeScript React.
- Introduced new iframe controls, allowing users to refresh content and
adjust zoom levels.
- Updated the code editor’s default language for a more accurate editing
experience.
- Revised project navigation to use query parameters for improved
clarity.

- **Bug Fixes**
- Improved Docker container management with enhanced logging, error
handling, and retry mechanisms.

- **Refactor**
- Simplified chat and sidebar structures by removing unnecessary context
providers.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
NarwhalChen authored Mar 5, 2025
1 parent f9cbbc9 commit 20301ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function ProjectProvider({ children }: { children: ReactNode }) {
// Navigate to chat page after project creation
if (data?.createProject?.id) {
toast.success('Project created successfully!');
router.push(`/chat/${data.createProject.id}`);
router.push(`/chat?id=${data.createProject.id}`);
}
},
onError: (error) => {
Expand Down

0 comments on commit 20301ed

Please sign in to comment.