feat: consolidate contest task management into a single page - #175
Merged
Merged
Conversation
Merge task assignment into /contests/[id]/tasks: - two stacked tables: Added Tasks (with edit/remove) and Available Tasks (with add) - server-side pagination (5/10/20), sorting, and debounced search on both - task title truncated with hover tooltip; plus-icon-only add button - edit task schedule (start/end) via new PUT endpoint - creator column on both tables - remove /assignable-tasks route; rename card button to Manage Tasks
HermanPlay
force-pushed
the
feat/contest-tasks-management
branch
from
August 12, 2026 08:40
3fe841f to
66c86ba
Compare
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.
Summary
Consolidates contest task management into a single page (
/dashboard/teacher/contests/[id]/tasks) and adds search, server-side pagination/sorting, and inline schedule editing. Depends on backend PR #240.Changes
tasks/+page.svelte): two stacked full-width tables — Added Tasks (with edit-schedule + remove actions) and Available Tasks (plus-icon add button) — each with loading/error states and an in-table empty row (search stays visible when no results).searchparam). Per-page selector 5/10/20; default 5.AddedContestTasksList,AssignableContestTasksList(sortable headers, creator column, title truncation with hover tooltip).PUT /contests/{id}/tasks/{task_id}.getContestTasks/getAssignableTasksreturnPaginatedData+search; newupdateTaskInContest./assignable-tasksroute removed; admin contest card button renamed to "Manage Tasks".Verification
pnpm run check: 0 errorseslintclean on changed files