Render DNF and DNS instead of raw negative result sentinels

Open Beginner friendly
#86 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript
Domain
frontend

Research direction

Locate the result formatter used by the competition result tables and inspect where values enter event-specific formatting. Add focused regression coverage for -1 and -2, verifying DNF and DNS while preserving normal centisecond, FMC, Multi-Blind, and zero-value placeholder behavior.

Written by the indexing model from the issue text.

Description

Problem

Competition result values use WCA sentinel values for non-results:

  • -1 means DNF
  • -2 means DNS

The current result formatter passes these values through numeric event formatting, so result tables can display the raw values -1 and -2. This is visible in the Lipnica Wielka Open 2026 results screenshot.

Expected behavior

Every displayed attempt, best, average, or mean result should render the WCA status text instead of the sentinel number:

  • -1 -> DNF
  • -2 -> DNS

Acceptance criteria

  • Negative WCA result sentinels are handled before event-specific formatting.
  • -1 renders as DNF.
  • -2 renders as DNS.
  • Normal centisecond, FMC, and Multi-Blind result formatting remains unchanged.
  • Existing zero-value placeholder behavior remains unchanged.
  • Add focused regression tests for both sentinels.
Dominant language
TypeScript
Stars
11
Forks
12
Avg merge
34m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from coder13/Competitor-groups

All issues in coder13/Competitor-groups

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.