Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat messages in bughouse are recorded, however lost on reconnect or opening an old game and other issues #1500

Open
7 tasks done
nnickoloff1234 opened this issue Jun 9, 2024 · 2 comments
Assignees
Labels
bug Something isn't working bughouse

Comments

@nnickoloff1234
Copy link
Collaborator

nnickoloff1234 commented Jun 9, 2024

Action items:

  • Populate the chat list with the recorded chat messages
  • Make chat messages clickable and navigate to the move when the message was made
  • Depending if game is still in progress or not filter the messages according to only from partner or all players following same behavior as when playing game - chats during first 4 moves visible to all, after that only between partners, again to all after game end
  • When opening an old finished game (or on game end automatically) maybe show all messages from all players
  • In spectators mode show all messages from all players
  • Handle spectators chats differently to be visible only among spectators - currently their messages are visible to players and even recorded
  • System message for chat visibility getting changed to only between partners sometimes appears before the last message that is visible to all - should be after it
@nnickoloff1234 nnickoloff1234 added bug Something isn't working bughouse labels Jun 9, 2024
@nnickoloff1234 nnickoloff1234 self-assigned this Jul 5, 2024
nnickoloff1234 added a commit that referenced this issue Jul 7, 2024
@nnickoloff1234
Copy link
Collaborator Author

nnickoloff1234 commented Jul 14, 2024

I have implemented a lot of improvements with the last commit, but still some things need a bit more work. Putting my notes to myself here with more ideas related to chat so i have them written down somewhere:

  • tooltip with the move SAN on the chat line
  • pointer cursor for text messages not just for icons
  • spectators lose spectator chat after refresh - how is this working for normal games?
  • double "game over. chat visible to all" message for player on game end
  • show all chat on game end for both teams
  • align chat somehow? maybe overkill for now - align left / right for each team . or in spectator mode align spectator chats differently than team chats. or indicate in some other way which messages are from spectators
  • hide chat icons for spectators
  • can i invent logic to hide chat icons for finished games as well? mainly i want to leave MB visible for after the game ends. Could for the time being hide them all, but add different buttons like "MB", "GG", "WPP" for when game is over

@gbtami
Copy link
Owner

gbtami commented Jul 15, 2024

Regarding "spectators lose spectator chat after refresh - how is this working for normal games?",
the reason is bug spectator chat messages simply not appended to game.messages array because of this line https://github.com/gbtami/pychess-variants/blob/master/server/wsr.py#L627

"can i invent logic to hide chat icons for finished games as well?"
It would be nice to have standard lichess chat buttons before/after game.
https://i.imgur.com/aZZnDTx.png
https://i.imgur.com/lfpwZJU.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bughouse
Projects
None yet
Development

No branches or pull requests

2 participants