Conversation
ReviewGameDock.tsx — Silent failure when clicking disabled SGF link The old code showed an alert dialog when a user clicked the disabled download link: void alert.fire(_("SGF downloading for this game is disabled until the game is complete."))The new code swallows the click silently when disabled — the sgf-download-restrictions.ts — Fragile hardcoded waits The test helpers use For the dock wait, consider waiting on the link itself becoming visible (e.g. |
|
It seems dubious to me to fire an alert when someone clicks a disabled button. There are no other examples (that Claude could find) so I've left it off. Test fixed. |
|
Two issues in 1. Download SGF lost its The original enabled Download SGF was a proper anchor: <a href={sgf_url} target="_blank">The new implementation replaces this with A minimal fix is to keep 2. No user feedback when clicking the disabled Download SGF button Previously, when |
|
I think I already mentioned: no other element has an alert for clicking it when it is disabled. I considered putting the info in the tooltip, but we generally dont even have tooltips, and these ones don't pop up if/when the dock opens, so they can't be relied on. |
|
Correction to previous automated review comments:
Test timing — the earlier comment about hardcoded One genuine FYI: because |
|
If someone save-ases the link, the backend change above blocks it. |
Fixes players not realising they shouldn't download SGF during play, because that will tempt them to use assistance in game.
Proposed Changes