-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: getting project by chatId and show load status in code engine #119
Conversation
Caution Review failedThe pull request is closed. WalkthroughThis pull request modifies backend and frontend code to enhance the management of projects and chats. On the backend, relationships between Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant R as ProjectsResolver
participant PS as ProjectService
participant CS as ChatService
participant DB as Database
U->>R: Request createProject(createProjectInput)
R->>PS: Invoke createProject(createProjectInput, userId)
PS->>CS: Create default chat
CS-->>PS: Return Chat object
PS->>DB: Save new Project
PS->>PS: Bind chat with project (bindProjectAndChat)
PS-->>R: Return Chat with linked project
R-->>U: Send Chat object response
sequenceDiagram
participant U as User
participant CSB as ChatSideBar
participant PM as ProjectModal
participant PC as ProjectContext
participant AC as ApolloClient
U->>CSB: Click "New Project" button
CSB->>CSB: setIsModalOpen(true)
CSB->>PM: Render ProjectModal
U->>PM: Enter project details and submit
PM->>PC: Call createNewProject(input)
PC->>AC: Execute CREATE_PROJECT mutation
AC-->>PC: Return Chat & project details
PC-->>PM: Update project state
PM-->>U: Display updated project information
Possibly related PRs
Suggested labels
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 ESLint
backend/src/chat/chat.service.tsOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the plugin "eslint-plugin-prettier". (The package "eslint-plugin-prettier" was not found when loaded as a Node module from the directory "/backend".) It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
The plugin "eslint-plugin-prettier" was referenced from the config file in "backend/.eslintrc.js". If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. backend/src/project/project-packages.model.tsOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the plugin "eslint-plugin-prettier". (The package "eslint-plugin-prettier" was not found when loaded as a Node module from the directory "/backend".) It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
The plugin "eslint-plugin-prettier" was referenced from the config file in "backend/.eslintrc.js". If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. backend/src/chat/chat.model.tsOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the plugin "eslint-plugin-prettier". (The package "eslint-plugin-prettier" was not found when loaded as a Node module from the directory "/backend".) It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
The plugin "eslint-plugin-prettier" was referenced from the config file in "backend/.eslintrc.js". If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team.
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (21)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otherwise LGTM
Summary by CodeRabbit