Render DNF and DNS instead of raw negative result sentinels

未關閉 適合新手
#86 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
72/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
冷清
技術堆疊
typescript
領域
frontend

研究方向

定位競賽結果表使用的結果格式化器,並檢查值進入事件特定格式化的位置。針對 -1 和 -2 新增有針對性的回歸覆蓋,驗證 DNF 和 DNS,同時保留正常的百分之一秒、FMC、Multi-Blind 以及零值佔位符行為。

由索引模型根據 Issue 內容生成。

描述

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.
主要語言
TypeScript
星號
11
分支
12
平均合併
34 分鐘
30 天內合併 PR
2

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

coder13/Competitor-groups 的其他 Issue

查看 coder13/Competitor-groups 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。