Skip to content

feat: consolidate contest task management into a single page - #175

Merged
HermanPlay merged 1 commit into
masterfrom
feat/contest-tasks-management
Aug 12, 2026
Merged

HermanPlay merged 1 commit into
masterfrom
feat/contest-tasks-management

Conversation

@HermanPlay

Copy link
Copy Markdown
Member

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.

Note: this branch is stacked on top of #171 (participants). The incremental changes for this issue are the single commit on top; rebase after #171 merges if needed.

Changes

  • Merged page (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).
  • Pagination + sorting + search: both tables use server-side limit/offset/sort and a debounced search input (search param). Per-page selector 5/10/20; default 5.
  • Components: AddedContestTasksList, AssignableContestTasksList (sortable headers, creator column, title truncation with hover tooltip).
  • Schedule editing: edit dialog pre-filled from current start/end; saves via new PUT /contests/{id}/tasks/{task_id}.
  • Service: getContestTasks/getAssignableTasks return PaginatedData + search; new updateTaskInContest.
  • Cleanup: /assignable-tasks route removed; admin contest card button renamed to "Manage Tasks".
  • i18n (en+pl) for new strings; page title mapping.

Verification

  • pnpm run check: 0 errors
  • eslint clean on changed files
  • Deployed locally against backend with pagination/search/edit endpoints

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
HermanPlay force-pushed the feat/contest-tasks-management branch from 3fe841f to 66c86ba Compare August 12, 2026 08:40
@HermanPlay
HermanPlay merged commit 4663399 into master Aug 12, 2026
1 check passed
@HermanPlay
HermanPlay deleted the feat/contest-tasks-management branch August 12, 2026 08:44
@HermanPlay HermanPlay linked an issue Aug 12, 2026 that may be closed by this pull request
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.

Add already added tasks to task management page

1 participant