coder13 / coder13/Competitor-groups

Render DNF and DNS instead of raw negative result sentinels

未关闭 适合新手
#86 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
11
派生
12
平均合并
34 分钟
30 天内合并 PR
2

描述

## 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.

贡献指南

这个仓库没有索引到贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
frontend
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
冷清
描述清晰度
基本清楚
新手友好度
72/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。