Skip to content

Statistics: dashboard view with tiles, meters, checks and CPS histogram#12518

Open
niksedk wants to merge 3 commits into
mainfrom
feat/statistics-dashboard
Open

Statistics: dashboard view with tiles, meters, checks and CPS histogram#12518
niksedk wants to merge 3 commits into
mainfrom
feat/statistics-dashboard

Conversation

@niksedk

@niksedk niksedk commented Jul 15, 2026

Copy link
Copy Markdown
Member

Implements the Statistics dashboard concept preview.

The window previously printed three plain-text blocks; it now shows the same numbers as a dashboard:

  • KPI tiles — subtitles, words, characters (text only), total duration.
  • Timing and pacing — min/avg/max meter rows (subtitle length, duration, chars/sec, words/min, gap) with the average marked as a dot on the min–max span.
  • Checks — the profile-rule counters (above max/optimal CPS, above max WPM, duration below min/above max, line too long/too wide, gap below min) with severity colors and icons; a zero count renders as a green check. Severity tones match the batch convert status badges.
  • Chars/sec histogram — distribution in 2-CPS bins with dashed lines at the profile's optimal/maximum CPS, per-bar tooltips with exact counts.
  • Most used words — top 8 as ranked bars with direct labels; Most used lines — top 8 with count pills.

Notes:

  • Export... is unchanged — the plain-text report is still generated and written as before.
  • The line-too-wide check and the gap rows only appear when applicable (wide-line coloring enabled / more than one line), same conditions as the old text.
  • Adds ~16 short LanguageStatistics tags (card headers, KPI labels, check labels) with English defaults; existing tags cover the rest.
  • All layout is plain panels/borders — no charting dependency.

I could not run the GUI from here, so please give it a visual once-over (dark + light, and a subtitle with overlaps so a negative minimum gap shows up).

🤖 Generated with Claude Code

niksedk and others added 3 commits July 15, 2026 23:14
Replaces the three plain-text blocks with a structured dashboard:
- KPI tiles (subtitles, words, characters, total duration)
- min/avg/max meter rows for subtitle length, duration, chars/sec,
  words/min and gap
- profile-rule check counters with severity colors and icons
  (green check when clean)
- chars/sec histogram with dashed optimal/max profile limits and
  per-bar tooltips
- most used words as ranked bars, most used lines with count pills

Export still writes the same plain-text report - the text blocks are
still generated. Adds a few short LanguageStatistics tags for the
new card headers and check labels.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- The average labels on the meter rows and the optimal/max labels on
  the CPS histogram never rendered: the zero-width pin panel measured
  the TextBlocks with a 0-width constraint. Fixed widths restore them.
- CPS histogram gets y-axis count labels in a gutter column left of
  the chart (max and the two gridlines).
- Most used words and most used lines cards get a copy-to-clipboard
  icon button in the header, copying the same text as the export.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- The copy buttons briefly turn into a green check with a
  "Copied to clipboard" label (new General.CopiedToClipboard tag),
  then revert - same idea as the speech to text console log copy.
- Export now shows the shared PromptFileSaved window with
  show-in-folder/open-file buttons, like other exports.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant