Skip to content

feat: Add Tpsentinel audit list page#796

Merged
Ganapathy-dev merged 2 commits intomainfrom
Add-audit-list
Mar 16, 2026
Merged

feat: Add Tpsentinel audit list page#796
Ganapathy-dev merged 2 commits intomainfrom
Add-audit-list

Conversation

@Ganapathy-dev
Copy link
Contributor

  • Moved Sentinel design separately from Testpress.
  • Updated sidebar to highlight the current tab.
  • Added a new audit list page.

- Moved Sentinel design separately from testpress
- update side bar to show current tab
- Add new audit list page
@gemini-code-assist
Copy link

Summary of Changes

Hello, 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 significantly enhances the TPSentinel module by introducing a new, dedicated audit list page. This change involves restructuring the Sentinel design to operate independently, improving the overall modularity of the application. Additionally, the sidebar navigation has been refined to provide clearer visual feedback on the active section, contributing to a more intuitive user interface.

Highlights

  • Sentinel Design Separation: The Sentinel module's design has been decoupled from the main Testpress structure, allowing for independent development and management.
  • Sidebar Navigation Enhancement: The application sidebar was updated to visually indicate the currently active tab, improving user navigation and experience.
  • New Audit List Page: A dedicated audit list page has been introduced for TPSentinel, providing a centralized view for reviewing audit-related data.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • src/_data/audit_list.json
    • Added a new JSON file containing sample audit data for demonstration purposes.
  • src/index.html
    • Refactored the main index page to remove the old Sentinel integration and re-add it with a new, distinct structure, aligning with the separation of Sentinel design.
  • src/sentinel/audit/list/filters.html
    • Introduced a new HTML file for the audit list filters, including navigation tabs (Needs Review, In Progress, Completed), a search input, a date range filter, and dropdown filters for priority, workspace, and anomaly status.
  • src/sentinel/audit/list/header.html
    • Added a new HTML file defining the header section for the audit list page, displaying the title "Audit Review Queue" and a descriptive subtitle.
  • src/sentinel/audit/list/index.html
    • Created the main HTML page for the TPSentinel audit list, which extends a base layout and incorporates the newly added header, table, and date picker components.
  • src/sentinel/audit/list/table.html
    • Implemented the HTML structure for the audit list table, featuring dynamic data rendering (if audit_list is present), checkboxes, user and workspace details, priority type, anomaly counts, and action buttons, along with an empty state illustration.
  • src/sentinel/audit/list/table_footer.html
    • Added the HTML for the footer section of the audit table, including pagination controls and a display for showing current results.
  • src/sentinel/audit/list/table_header.html
    • Defined the HTML for the audit table's header, including a "select all" checkbox and sortable columns for Candidate, Workspace, Priority, Anomalies, and Sessions.
  • src/sentinel/layout/sidebar.html
    • Modified the Sentinel sidebar to apply active state highlighting to navigation links based on the current page URL and updated the href attributes for the workspace and audit sections.
  • src/sentinel/partials/date_picker.html
    • Added a new HTML file containing a Flatpickr-based date range picker component, complete with cancel and apply buttons for filtering.
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

This pull request introduces a new audit list page for TPSentinel, refactors the main index page, and updates the sidebar for better navigation. The changes are a good step forward, but I've identified several issues, including critical security vulnerabilities and bugs in the new audit page functionality. Specifically, there's a hardcoded CSRF token, broken selection logic in the table, and several instances of hardcoded links and non-functional UI elements. Addressing these issues is crucial for the security and functionality of the new page.

@github-actions
Copy link

github-actions bot commented Mar 13, 2026

PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-03-16 05:53 UTC

@Ganapathy-dev Ganapathy-dev merged commit 4c743cd into main Mar 16, 2026
6 checks passed
@Ganapathy-dev Ganapathy-dev deleted the Add-audit-list branch March 16, 2026 05:53
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.

1 participant