Skip to content

Conversation

@Ganapathy-dev
Copy link
Contributor

Added a new feedback form modal to collect student feedback for courses.

@gemini-code-assist
Copy link

Summary of Changes

Hello @Ganapathy-dev, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a new student feedback mechanism by adding a dedicated modal UI. This modal allows users to provide ratings and detailed comments on courses, enhancing the platform's ability to gather valuable insights into course quality and mentor effectiveness. The changes ensure that the feedback form appears contextually when a student completes a course, streamlining the feedback collection process.

Highlights

  • New Feedback Modal UI: A new HTML partial, feedback_modal.html, has been added to introduce a dedicated student feedback form. This modal includes a 5-star rating system and three text areas for qualitative feedback on mentor teaching, content currency, and assignment helpfulness.
  • Modal Trigger Integration: The 'Mark as Completed' button in content_heading.html has been updated. Clicking this button now not only marks the course as completed but also triggers the display of the newly added feedback modal, ensuring timely feedback collection.
  • Alpine.js State Management: A new showFeedback boolean property has been introduced in the Alpine.js component state within content_scripts.html. This property controls the visibility of the feedback modal, allowing for dynamic display based on user interaction.
  • Page Inclusion: The new feedback_modal.html partial has been included in pdf.html, making the student feedback modal available on the content detail page where it can be activated.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

The pull request introduces a new feedback form modal to collect student feedback for courses. The changes include adding a new HTML file for the feedback modal, modifying the content heading and scripts files, and including the feedback modal in the PDF template. I have provided feedback on the HTML structure and accessibility of the modal.

How the mentor of the course taught complex problems ?
</label>

<textarea id="hs-pro-shwprmar" required class="py-3 px-4 block w-full border-gray-200 rounded-lg sm:text-sm placeholder:text-gray-400 focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-600 dark:focus:ring-neutral-600 min-h-[4rem]" rows="2" placeholder=""></textarea>

Choose a reason for hiding this comment

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

high

All textareas share the same id (hs-pro-shwprmar). id attributes must be unique within the HTML document. Change the id for each textarea to ensure uniqueness.

For example:

<textarea id="mentor_feedback" ...>
<textarea id="content_feedback" ...>
<textarea id="assignments_feedback" ...>

<!-- Footer -->
<div class="py-4 px-6 md:px-8 border-t border-gray-200 dark:border-neutral-700">
<div class="text-end">
<button type="submit" class="py-2 px-3 inline-flex justify-center items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none focus:outline-hidden focus:bg-blue-700" data-hs-overlay="#hs-pro-shwrm">

Choose a reason for hiding this comment

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

medium

The submit button has a data-hs-overlay attribute that seems to be referencing the modal itself (#hs-pro-shwrm). Submit buttons typically don't control the modal's visibility. Remove this attribute from the submit button.

Also, the submit button should be disabled while the form is submitting to prevent multiple submissions.

<button
x-on:click="!is_completed && (is_completed = true)"
<button data-hs-overlay="#hs-pro-shwprm"
x-on:click="if (!is_completed) { is_completed = true, showFeedback = true }"

Choose a reason for hiding this comment

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

medium

Consider using a more descriptive name for the showFeedback variable to improve readability. For example, isFeedbackModalOpen might be more clear.

@github-actions
Copy link

github-actions bot commented Oct 24, 2025

PR Preview Action v1.6.2

🚀 View preview at
https://testpress.github.io/design/pr-preview/pr-613/

Built to branch gh-pages at 2025-10-24 13:31 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

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