feat(elections): results UI with round-by-round visualization

Đang mở
#1,945 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
d3, react

Hướng nghiên cứu

Start with epic #1933 and the dependent IRV and STV tabulation issues to understand the available aggregate results. Then locate the existing election UI entry points and design-system color tokens; done means admin and public result views, round tables and visualization, exhausted-ballot labels, shareable URLs, CSV downloads, and no raw ballots exposed.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Summary

Display tabulation results to admins (preview) and to the public (after publish) with a round-by-round breakdown that makes ranked-choice results legible.

Part of #1933.

Requirements

  • Admin-only results preview once election status is `closed`
  • Public results page once status is `published`
  • Per-race display: method (IRV/STV), winner(s), seats filled, quota (for STV)
  • Round-by-round table showing counts, eliminations, transfers
  • Visualization (stacked bar chart or Sankey) showing ballot flow across rounds
  • Clear labeling of exhausted ballots in every round
  • Shareable per-election URL
  • Downloadable CSV of per-round counts for each race
  • No raw ballots exposed in the UI — only aggregate round data

Context

  • Epic: #1933
  • Depends on IRV and STV tabulation issues

Implementation notes

  • Sankey visualization library: `d3-sankey` directly, or `@nivo/sankey` if we want a pre-built React component
  • Use design-system color tokens — results coloring must meet contrast requirements
Ngôn ngữ chính
HTML
Star
33
Fork
107
Merge trung bình
14 giờ 6 phút
Pull request đã merge (30 ngày)
19

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của USRSE/usrse.github.io

Tất cả issue của USRSE/usrse.github.io

Issue tương tự

Thêm issue về Data Visualization

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.