-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Add Tpsentinel audit list page #796
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| [ | ||
| {"id":1,"user_name":"Sample User 1","workspace_id":101,"workspace_name":"Sample Workspace A","type":"Routine","total":12,"flagged":3,"compromised":1,"review_count":2,"assigned_to_me":false}, | ||
| {"id":2,"user_name":"Sample User 2","workspace_id":102,"workspace_name":"Sample Workspace B","type":"Routine","total":25,"flagged":5,"compromised":2,"review_count":3,"assigned_to_me":true}, | ||
| {"id":3,"user_name":"Sample User 3","workspace_id":103,"workspace_name":"Sample Workspace C","type":"Routine","total":18,"flagged":4,"compromised":1,"review_count":1,"assigned_to_me":false}, | ||
| {"id":4,"user_name":"Sample User 4","workspace_id":104,"workspace_name":"Sample Workspace D","type":"Routine","total":30,"flagged":7,"compromised":3,"review_count":5,"assigned_to_me":false}, | ||
| {"id":5,"user_name":"Sample User 5","workspace_id":105,"workspace_name":"Sample Workspace E","type":"Routine","total":22,"flagged":6,"compromised":2,"review_count":4,"assigned_to_me":true}, | ||
| {"id":6,"user_name":"John Carter","workspace_id":3,"workspace_name":"sample workspace","type":"Routine","total":54,"flagged":12,"compromised":4,"review_count":3,"assigned_to_me":false}, | ||
| {"id":7,"user_name":"Priya Sharma","workspace_id":4,"workspace_name":"security audit","type":"Routine","total":76,"flagged":20,"compromised":10,"review_count":14,"assigned_to_me":false}, | ||
| {"id":8,"user_name":"Rahul Verma","workspace_id":4,"workspace_name":"security audit","type":"Routine","total":32,"flagged":11,"compromised":3,"review_count":2,"assigned_to_me":true}, | ||
| {"id":9,"user_name":"Neha Kapoor","workspace_id":5,"workspace_name":"exam monitoring","type":"Routine","total":15,"flagged":5,"compromised":1,"review_count":7,"assigned_to_me":false}, | ||
| {"id":10,"user_name":"Amit Singh","workspace_id":5,"workspace_name":"exam monitoring","type":"Routine","total":200,"flagged":80,"compromised":25,"review_count":30,"assigned_to_me":false}, | ||
| {"id":11,"user_name":"Divya Patel","workspace_id":6,"workspace_name":"student review","type":"Routine","total":90,"flagged":35,"compromised":12,"review_count":8,"assigned_to_me":false}, | ||
| {"id":12,"user_name":"Karan Mehta","workspace_id":6,"workspace_name":"student review","type":"Routine","total":61,"flagged":22,"compromised":5,"review_count":10,"assigned_to_me":true}, | ||
| {"id":13,"user_name":"Sanjay Kumar","workspace_id":7,"workspace_name":"final exam audit","type":"Routine","total":44,"flagged":10,"compromised":6,"review_count":4,"assigned_to_me":false}, | ||
| {"id":14,"user_name":"Meera Nair","workspace_id":7,"workspace_name":"final exam audit","type":"Routine","total":28,"flagged":9,"compromised":2,"review_count":5,"assigned_to_me":false}, | ||
| {"id":15,"user_name":"Rohit Gupta","workspace_id":8,"workspace_name":"test workspace","type":"Routine","total":75,"flagged":30,"compromised":11,"review_count":15,"assigned_to_me":false}, | ||
| {"id":16,"user_name":"Sneha Iyer","workspace_id":8,"workspace_name":"test workspace","type":"Routine","total":22,"flagged":7,"compromised":2,"review_count":1,"assigned_to_me":false}, | ||
| {"id":17,"user_name":"Vikram Joshi","workspace_id":9,"workspace_name":"online proctor","type":"Routine","total":300,"flagged":150,"compromised":40,"review_count":60,"assigned_to_me":true}, | ||
| {"id":18,"user_name":"Ananya Das","workspace_id":9,"workspace_name":"online proctor","type":"Routine","total":18,"flagged":6,"compromised":1,"review_count":3,"assigned_to_me":false}, | ||
| {"id":19,"user_name":"Harish Reddy","workspace_id":10,"workspace_name":"mid term audit","type":"Routine","total":64,"flagged":19,"compromised":7,"review_count":11,"assigned_to_me":false}, | ||
| {"id":20,"user_name":"Pooja Shah","workspace_id":10,"workspace_name":"mid term audit","type":"Routine","total":39,"flagged":14,"compromised":3,"review_count":6,"assigned_to_me":false} | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,131 @@ | ||
| <!-- Header --> | ||
| <div class="pt-3 px-3.5 border-b border-gray-200 dark:border-neutral-700"> | ||
| <div x-data="{ activeTab: 'needs-review' }" class="flex flex-wrap justify-between items-center gap-y-2 gap-x-5"> | ||
| <!-- Nav Tab --> | ||
| <nav class="flex gap-1" aria-label="Tabs" role="tablist"> | ||
|
|
||
| <a href="#" | ||
| @click.prevent="activeTab = 'needs-review'" | ||
| :class="activeTab === 'needs-review' ? 'text-gray-800 dark:text-neutral-200 after:bg-gray-800 dark:after:bg-neutral-400' : 'text-gray-500 dark:text-neutral-500 hover:text-gray-800 dark:hover:text-neutral-300'" | ||
| class="relative inline-flex px-2 py-1.5 mb-2 text-sm rounded-lg after:absolute after:-bottom-2 after:inset-x-2 after:h-0.5 after:pointer-events-none" | ||
| > | ||
| Needs Review | ||
| <span class="py-0.5 px-2 text-xs font-medium rounded-full bg-gray-100 text-gray-800 dark:bg-neutral-700 dark:text-neutral-200"> | ||
| 20 | ||
| </span> | ||
| </a> | ||
|
|
||
| <a href="#" | ||
| @click.prevent="activeTab = 'in-progress'" | ||
| :class="activeTab === 'in-progress' ? 'text-gray-800 dark:text-neutral-200 after:bg-gray-800 dark:after:bg-neutral-400' : 'text-gray-500 dark:text-neutral-500 hover:text-gray-800 dark:hover:text-neutral-300'" | ||
| class="relative inline-flex px-2 py-1.5 mb-2 text-sm rounded-lg after:absolute after:-bottom-2 after:inset-x-2 after:h-0.5 after:pointer-events-none" | ||
| > | ||
| In Progress | ||
| <span class="py-0.5 px-2 text-xs font-medium rounded-full bg-gray-100 text-gray-800 dark:bg-neutral-700 dark:text-neutral-200"> | ||
| 20 | ||
| </span> | ||
| </a> | ||
|
|
||
| <a href="#" | ||
| @click.prevent="activeTab = 'completed'" | ||
| :class="activeTab === 'completed' ? 'text-gray-800 dark:text-neutral-200 after:bg-gray-800 dark:after:bg-neutral-400' : 'text-gray-500 dark:text-neutral-500 hover:text-gray-800 dark:hover:text-neutral-300'" | ||
| class="relative inline-flex px-2 py-1.5 mb-2 text-sm rounded-lg after:absolute after:-bottom-2 after:inset-x-2 after:h-0.5 after:pointer-events-none" | ||
| > | ||
| Completed | ||
| <span class="py-0.5 px-2 text-xs font-medium rounded-full bg-gray-100 text-gray-800 dark:bg-neutral-700 dark:text-neutral-200"> | ||
| 20 | ||
| </span> | ||
| </a> | ||
|
|
||
| </nav> | ||
| </div> | ||
| </div> | ||
| <!-- End Header --> | ||
| <div> | ||
| <div class="py-4 px-5 flex flex-wrap justify-between items-center gap-y-2 gap-x-5"> | ||
| <div class="w-1/2 relative"> | ||
| <!-- Search Input --> | ||
| <div class="absolute inset-y-0 start-0 flex items-center pointer-events-none z-20 ps-3.5"> | ||
| <svg class="shrink-0 size-4 text-gray-500 dark:text-neutral-400" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | ||
| <circle cx="11" cy="11" r="8"></circle> | ||
| <path d="m21 21-4.3-4.3"></path> | ||
| </svg> | ||
| </div> | ||
| <input type="text" name="search" value="" class="py-1 sm:py-1.5 ps-10 pe-8 block w-full bg-gray-100 border-transparent rounded-lg sm:text-sm focus:bg-white focus:border-indigo-500 focus:ring-indigo-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:border-transparent dark:text-neutral-400 dark:placeholder:text-neutral-400 dark:focus:bg-neutral-800 dark:focus:ring-neutral-600" placeholder="Search by candidate name, email, or workspace..."> | ||
| <!-- End Search Input --> | ||
| </div> | ||
| <div class="flex justify-end items-center gap-x-2"> | ||
| <div class="p-2 inline-flex items-center text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-2xs hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-hidden focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800"> | ||
|
|
||
| <span class="flex items-center gap-x-1 flatpickr-input" id="date-range-input" readonly="readonly"> | ||
| <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="shrink-0 size-3.5"><path d="M8 2v4"></path><path d="M16 2v4"></path><rect width="18" height="18" x="3" y="4" rx="2"></rect><path d="M3 10h18"></path><path d="M8 14h.01"></path><path d="M12 14h.01"></path><path d="M16 14h.01"></path><path d="M8 18h.01"></path><path d="M12 18h.01"></path><path d="M16 18h.01"></path></svg> | ||
| Filter by Date | ||
| <svg class="shrink-0 size-3.5" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"></path></svg> | ||
| </span> | ||
|
|
||
| </div> | ||
|
|
||
| <!-- Filter Dropdown --> | ||
| <div class="hs-dropdown [--auto-close:inside] [--placement:bottom-right] inline-flex"> | ||
| <button id="hs-pro-prtrdm" type="button" class="p-2 inline-flex items-center text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-2xs hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-hidden focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800" aria-haspopup="menu" aria-expanded="false" aria-label="Filter"> | ||
| <svg class="shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | ||
| <polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"></polygon> | ||
| </svg> | ||
| </button> | ||
| <div class="hs-dropdown-menu hs-dropdown-open:opacity-100 w-72 transition-[opacity,margin] duration opacity-0 hidden z-50 bg-white rounded-xl shadow-xl dark:bg-neutral-900 p-4 flex flex-col gap-y-4" role="menu" aria-orientation="vertical" aria-labelledby="hs-pro-prtrdm" tabindex="-1"> | ||
|
|
||
| <!-- Priority Filter --> | ||
| <div > | ||
| <label for="priority-filter" class="block mb-2 text-sm font-medium text-gray-500 dark:text-neutral-500">Priority</label> | ||
| <select id="priority-filter" name="priority" class="py-2 px-3 w-full text-sm text-gray-800 bg-white border border-gray-200 rounded-lg focus:outline-hidden focus:ring-2 focus:ring-blue-500 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-400"> | ||
| <option value="">All Priorities</option> | ||
|
|
||
| <option value="1">Critical</option> | ||
|
|
||
| <option value="3">High</option> | ||
|
|
||
| <option value="5">Medium</option> | ||
|
|
||
| <option value="7">Low</option> | ||
|
|
||
| <option value="10">Routine</option> | ||
|
|
||
| </select> | ||
| </div> | ||
| <!-- Workspace Filter --> | ||
| <div> | ||
| <label for="workspace-filter" class="block mb-2 text-sm font-medium text-gray-500 dark:text-neutral-500">Workspace</label> | ||
| <select id="workspace-filter" name="workspace" class="py-2 px-3 w-full text-sm text-gray-800 bg-white border border-gray-200 rounded-lg focus:outline-hidden focus:ring-2 focus:ring-blue-500 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-400"> | ||
| <option value="">All Workspaces</option> | ||
|
|
||
| <option value="2">course 1</option> | ||
|
|
||
| <option value="1">proctoring</option> | ||
|
|
||
| <option value="11">Finance</option> | ||
|
|
||
| </select> | ||
| </div> | ||
| <!-- Anomaly Status Filter --> | ||
| <div> | ||
| <label for="anomaly-filter" class="block mb-2 text-sm font-medium text-gray-500 dark:text-neutral-500">Anomaly Status</label> | ||
| <select id="anomaly-filter" name="anomaly_status" class="py-2 px-3 w-full text-sm text-gray-800 bg-white border border-gray-200 rounded-lg focus:outline-hidden focus:ring-2 focus:ring-blue-500 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-400"> | ||
| <option value="">All Status</option> | ||
| <option value="has_anomalies">Has Anomalies</option> | ||
| <option value="no_anomalies">No Anomalies</option> | ||
| </select> | ||
| </div> | ||
| <div class="flex gap-x-2"> | ||
| <button type="button" class="flex-1 py-2 px-2.5 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:ring-2 focus:ring-blue-600 dark:focus:ring-blue-500"> | ||
| Apply Filters | ||
| </button> | ||
| <a href="#" class="flex-1 py-2 px-2.5 inline-flex justify-center items-center gap-x-2 text-sm font-medium rounded-lg border border-gray-200 bg-white text-gray-800 hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-hidden focus:ring-2 focus:ring-blue-600 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700"> | ||
| Clear | ||
| </a> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <!-- End Filter Dropdown --> | ||
| </div> | ||
| </div> | ||
| </div> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| <div class="flex flex-wrap justify-between items-center gap-2"> | ||
| <div> | ||
| <h1 class="text-lg md:text-xl font-semibold text-gray-800 dark:text-neutral-200">Audit Review Queue</h1> | ||
| <p class="mt-1 text-sm text-gray-500 dark:text-neutral-400"> | ||
| Review candidate workspace progress and verify completion | ||
| </p> | ||
| </div> | ||
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| --- | ||
| tags: sentinel | ||
| student_view : Audit | ||
| date: 2026-03-16 | ||
| --- | ||
|
|
||
|
|
||
| {% extends "src/sentinel/layout/index.html" %} | ||
|
|
||
| {% block main_content %} | ||
|
|
||
| {% include "./header.html" %} | ||
| {% include "./table.html" %} | ||
| {% include "src/sentinel/partials/date_picker.html" %} | ||
|
|
||
| {% endblock main_content %} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.