Skip to content

feat: add spectator chat for games#3131

Open
tom-anders wants to merge 2 commits into
lichess-org:mainfrom
tom-anders:spectatorChat
Open

feat: add spectator chat for games#3131
tom-anders wants to merge 2 commits into
lichess-org:mainfrom
tom-anders:spectatorChat

Conversation

@tom-anders
Copy link
Copy Markdown
Collaborator

tv_chat.webm

Copy link
Copy Markdown
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

Adds a spectator chat entry point from the TV/watch game screen, wiring TV games into the existing chat UI/controller stack.

Changes:

  • Adds a chat button to TvScreen and introduces TvChatOptions for public spectator chat on watched games.
  • Extends ChatBottomBarButton to allow custom tap handling (while keeping the default navigation behavior).
  • Updates ChatController to load initial chat lines for TV games via tvControllerProvider.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
lib/src/view/watch/tv_screen.dart Adds chat button + state to manage watch behavior when navigating to chat.
lib/src/view/chat/chat_screen.dart Makes ChatBottomBarButton optionally delegate its tap behavior to a caller-provided callback.
lib/src/model/tv/tv_controller.dart Adjusts Flutter import (now material.dart).
lib/src/model/chat/chat_controller.dart Adds TvChatOptions and loads TV chat initial messages + report resource mapping.

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

Comment thread lib/src/view/watch/tv_screen.dart Outdated
Comment thread lib/src/view/watch/tv_screen.dart
Comment thread lib/src/model/tv/tv_controller.dart Outdated
@tom-anders tom-anders force-pushed the spectatorChat branch 2 times, most recently from 0410f04 to e68be2f Compare May 7, 2026 19:22
@tom-anders tom-anders marked this pull request as ready for review May 7, 2026 19:22
@tom-anders tom-anders requested a review from veloce May 7, 2026 19:23
@veloce
Copy link
Copy Markdown
Contributor

veloce commented May 19, 2026

Sorry for the delay on this @tom-anders ; can you solve the conflict please? Thanks!

@tom-anders
Copy link
Copy Markdown
Collaborator Author

Rebased 👍

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.

3 participants