pychess-variants icon indicating copy to clipboard operation
pychess-variants copied to clipboard

Spectator names are not clickable

Open visualdenniss opened this issue 4 years ago • 2 comments

Screenshot 2021-06-05 at 19 29 33

spectator names appear as a text rather than clickable links. It could be nice to if the names appear as clickable links that direct the user to the profile page of the player as on lichess.

visualdenniss avatar Jun 05 '21 16:06 visualdenniss

start off with something like spectatorLinks = [f’<a href=“https://www.pychess.org/@/{spectator.username}”>{spectator.username}</a>’ for spectator in spectators] ?

so a list of links can be created in https://github.com/gbtami/pychess-variants/blob/master/client/gameCtrl.ts#L499 and https://github.com/gbtami/pychess-variants/blob/master/client/tournament.ts#L613

should be added before https://github.com/gbtami/pychess-variants/blob/master/server/spectators.py#L18

randompearl-stack avatar Jun 04 '25 05:06 randompearl-stack

This spectatorLinks creation should happen on client side, not on the server.

gbtami avatar Jun 04 '25 07:06 gbtami