Visualize phase scores across interview attempts

Merged
ON
1mo ago
+698-54

Summary

This pull request improves the attempt history in the progress view by replacing the text-only score sequence with an interactive line chart.

REACTO and STAR remain separate sections. Each section uses a single chart, and users can select existing steps on the left to view their score trends across attempts.

Changes

  • Use the attempt number as the x-axis and the score as the y-axis.
  • Show the attempt number and score when hovering over or focusing on a data point.
  • Display unassessed attempts as Not assessed instead of treating them as a score of zero.
  • Keep REACTO and STAR separate, with independent chart scrolling.
  • Keep the step selector fixed while the chart area scrolls horizontally.
  • Refresh the chart immediately when a saved attempt is deleted.
  • Keep the existing text-based presentation when a framework has no assessed data.

Preview

  1. An attempt with a Not assessed phase, which is displayed as a gap in the line instead of a score of zero.

    Algorithm phase progress chart showing a not-assessed gap at attempt 6
  2. A REACTO-only attempt does not affect the STAR chart, and skipped STAR assessments do not break the existing STAR trend line.

    STAR trend remains connected across an attempt without STAR assessment
  3. The phase selector moves above the chart on narrow screens.

    Phase selector above the chart on a narrow screen

Closes #275


Summary by cubic

Replaces the text-only score sequence in the progress view with an interactive line chart plotting per-phase scores across interview attempts, closing #275.

  • Attempt number is the x-axis and score the y-axis; hovering or focusing a point shows the attempt number, score, and rubric version, and a visually hidden list keeps per-attempt scores available to screen readers.
  • Unassessed phases appear as hollow "Not assessed" markers at the baseline instead of being plotted as zero, while attempts with no framework assessment at all get no marker.
  • Lines break where the rubric version changes or the selected phase was unscored in an otherwise-assessed framework.
  • REACTO and STAR stay in separate tables; each uses one chart whose phase is chosen by a step selector that preserves scroll position when switching and wraps on narrow screens while the chart scrolls horizontally.
  • Frameworks with no assessed scores keep the text-only table, and charts refresh immediately when a saved attempt is deleted.