Skip to content

feat: redirect to submission page after successful submit - #164

Merged
HermanPlay merged 3 commits into
masterfrom
feat/redirect-after-submit
Aug 11, 2026
Merged

HermanPlay merged 3 commits into
masterfrom
feat/redirect-after-submit

Conversation

@HermanPlay

Copy link
Copy Markdown
Member

Closes #135.

Changes

  • SubmissionService.submitSolution now parses submissionId from the API response
  • Task and contest submission forms navigate to /dashboard/user/submissions/{id} after success (keeps existing task refresh via onSuccess)

Verification

  • pnpm run check → 0 errors
  • pnpm run build succeeds

submitSolution now returns the new submissionId from the API response;
both task and contest submission forms navigate to the submission detail
page after success (in addition to refreshing the task).
- closes #135
goto was called unawaited after onSuccess (task refresh); the re-render
could cancel the pending navigation. Navigate first, then refresh.
- createParameterizedQuery skips fetch for non-finite numeric params
  (prevents /contests/NaN/tasks/NaN 400 during hydration/navigation)
- explicit guards in contest + contest-task pages
- TestCaseResult handles null executionTimeMs/peakMemoryKb (fresh
  submissions have null values -> toFixed crash)
@HermanPlay
HermanPlay merged commit d7efec4 into master Aug 11, 2026
1 check passed
@HermanPlay
HermanPlay deleted the feat/redirect-after-submit branch August 11, 2026 21:46
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.

After succesful submition, redirect to submission page

1 participant