feat: implement admin-specific functionalities - #88
Merged
Conversation
Adds a new admin-queries function that returns all applicants (including those with no quiz activity), each tagged with a Not Started / In Progress / Completed status derived from constiquiz-submissions and constiquiz-answers, plus the quiz's max possible score (sum of question point_values). Used by the upcoming /admin/constiquiz respondent list page. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Encapsulates the list-page layout (heading + search + filter + sort + paginated table) and the four state variables those controls share. Pages just supply the title, data, columns, filter key, row-click handler, and a cell snippet for custom rendering. Will be reused by the constiquiz and sigsheet admin list pages. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Implements P02-001. The /admin/constiquiz route lists every applicant with their status badge, current score over max possible score, and a "View response" link to the (future) P02-002 detail page. Loader calls fetchQuizRespondents and the page composes AdminListView with custom cell rendering for the status badge, score format, and link column. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Removed accidental `sign`/`string` imports from admin-queries.ts that broke `pnpm build` (effect/FastCheck is not a dependency). - Renamed route `/admin/sigsheet/[id]` to `[userId]` to match the link emitted by the P03-001 list page, and updated the loader to use `params.userId`. - Removed a redundant null-coalesce/cast on `sigsheetData` in `fetchSigsheetDetail`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
mikelReinanArcardo
self-requested a review
July 16, 2026 13:11
mikelReinanArcardo
approved these changes
Jul 16, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR is the whole implementation of the admin-specific functionalities for the UP CSI App. It also includes some code cleanups of the repo.
At a very high level, the features implemented here are based on the use cases documentation in this Google Sheets.