ckak912 / CodeBuddy_LLM

CodeBuddy: A learning management system for programmers with integrated LLM support
https://codebuddy.byu.edu
MIT License
1 stars 1 forks source link

Add Code Review and Feedback functionality + UI #10

Closed ckak912 closed 1 year ago

ckak912 commented 1 year ago

The code snippet implements modals and feedback functionality in the CodeBuddy_LLM project. It defines two modals: code_review_modal and feedback_modal. The openModal() function displays the code review modal, while closeModal() closes it. The openFeedbackModal() function opens the feedback modal with appropriate feedback, and closeFeedbackModal() closes it. The viewHint() function appends dummy code to the editor and closes the feedback modal. The goBack() function closes the feedback modal and opens the code review modal again. The checkStepFunctionality() function provides feedback based on the selected step. The step_dropdown allows selecting a step for review, and the selected step determines the feedback.

NOTE: This functionality for the code review and feedback should be abstracted out to another file, will add another issue for this.