Skip to content

Comments

Broadcast Server Analysis Summary#2610

Merged
veloce merged 2 commits intolichess-org:mainfrom
HaonRekcef:broadcast-game-summary
Feb 8, 2026
Merged

Broadcast Server Analysis Summary#2610
veloce merged 2 commits intolichess-org:mainfrom
HaonRekcef:broadcast-game-summary

Conversation

@HaonRekcef
Copy link
Collaborator

@HaonRekcef HaonRekcef commented Feb 2, 2026

Adds the ACPL Graph and the analysis table to the Broadcast Games
Preview:
grafik

I extracted the logic of the ACPL chart into acpl_chart.dart and the table into game_summary_table to avoid code duplication.
No functional changes to the Lichess game analysis intended.
Additionally:

Tested with the server, now it works)

@HaonRekcef HaonRekcef force-pushed the broadcast-game-summary branch 3 times, most recently from df82b33 to b6352d2 Compare February 4, 2026 15:02
- Broadcast Game Summary
- Extract ACPL chart and Summary Table into separate widgets
- fix lichess-org#1666
- add Broadcast graph tests
@HaonRekcef HaonRekcef force-pushed the broadcast-game-summary branch from b6352d2 to 3196b86 Compare February 4, 2026 15:07
@HaonRekcef HaonRekcef changed the title WIP Broadcast Server Analysis Summary Broadcast Server Analysis Summary Feb 4, 2026
@HaonRekcef HaonRekcef marked this pull request as ready for review February 4, 2026 15:13
Copilot AI review requested due to automatic review settings February 4, 2026 15:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds ACPL (Average Centipawn Loss) chart and analysis summary table to Broadcast Games, extracting common analysis visualization logic into reusable widgets. The changes address issue #1666 by migrating from old localization keys (nbInaccuracies, nbMistakes, nbBlunders) to new ones (numberInaccuracies, numberMistakes, numberBlunders) and removing manual capitalization. The PR also fixes a bug where division lines were displayed incorrectly when viewing moves off the mainline.

Changes:

  • Extracted ACPL chart and game summary table into reusable widget files (acpl_chart.dart, game_summary_table.dart)
  • Added broadcast game summary view with ACPL chart and analysis statistics
  • Updated localization key usage to match server API changes (issue #1666)
  • Fixed division line rendering to only show current position marker when on mainline
  • Added comprehensive test coverage for the new broadcast game summary feature

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 14 comments.

Show a summary per file
File Description
lib/src/widgets/acpl_chart.dart New reusable ACPL chart widget extracted from analysis screen
lib/src/widgets/game_summary_table.dart New reusable game summary table widget with player statistics
lib/src/view/broadcast/broadcast_game_summary.dart New broadcast-specific summary view integrating chart and table
lib/src/view/broadcast/broadcast_game_screen.dart Integrated summary tab into broadcast game screen
lib/src/model/broadcast/broadcast_repository.dart Added API support for fetching analysis summary from server headers
lib/src/model/broadcast/broadcast_analysis_controller.dart Added analysis summary state and ACPL chart data generation
lib/src/model/broadcast/broadcast.dart Added type definitions for broadcast analysis summary
lib/src/view/analysis/server_analysis.dart Refactored to use new reusable widgets, removing duplicated code
lib/src/model/analysis/analysis_controller.dart Changed ACPL chart data type from IList<Eval> to IList<ExternalEval>
test/view/broadcast/broadcast_game_screen_test.dart Added test verifying broadcast game summary display
test/model/broadcast/example_data.dart Added test data for analysis summary

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@veloce veloce merged commit e4f683a into lichess-org:main Feb 8, 2026
1 check passed
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.

Replace old keys for 'advices' table in post-game analysis

2 participants