Commit Graph
33 Commits
Author SHA1 Message Date
Tom Praschan bbd4f981b3 feat: study search sorting (#2299) 2025-12-01 11:51:13 +01:00
Vincent Velociter 696817c887 Riverpod 3 (#2381) 2025-11-24 10:44:29 +01:00
Vincent Velociter 50be2066c6 Writable studies (#2321) 2025-10-30 15:11:32 +01:00
Tom Praschan 191b527456 fix: hide study hint when changing chapter or correct move has been played (#2298)
* test: add a regression test for #2212

* fix: hide study hint when changing chapter or correct move has been played

fixes #2212
2025-10-28 12:05:34 +01:00
Tom Praschan 3c55f67987 fix regression caused by #2255 (#2272)
I wrongly assumed that addMoveAt() already converts castling notation
for us, but that function is only called when new nodes are added to the
move tree in an active game, but not when parsing a study chapter.

This is why #2255 fixed the bug of a mve being incorrectly interpreted
as alt-castling, but it now broke the annotations if the move actually
WAS a castling move.

Luckily, while in addMoveAt() there are some heuristics because we only
have the UCI move, not the SAN move, in the AnalysisBoard we *do* have
the SAN move, so we can just check for O-O/O-O-O to avoid false
positives.

Resolves #2231
2025-10-17 16:11:21 +02:00
Tom Praschan c65101ea6c fix: don't try to account for alternative castling notation in annotations (#2255)
* fix: don't try to account for alternative castling notation in annotations

This leads annotations being displayed on the wrong square e.g. when
moving the rook from e1 to h1 (as its incorecctly interpreted as a
castling move).

Luckily, we already convert alternative castling notation when constructing the
node tree, so instead of extending the logic in the AnalysisBoard, we
can just get rid of this logic entirely.

Fixes #2231

* add regression test
2025-10-14 11:05:40 +02:00
Vincent Velociter 41325d2327 Remove deprecated patron field (#2238) 2025-10-01 15:45:00 -04:00
Nathan Gill 522d18e0a6 feat: show a list of study members (#2155) 2025-08-28 17:22:54 -05:00
Noah 4618393cd8 fix studies with illegal positions not loading (#2087)
* fix studies with illegal positions not loading

* add test for Chapters with a illegal position
2025-08-14 11:23:44 +02:00
Vincent Velociter 022091d6e5 Analysis improvements (#1823)
- Settings are now split per study, broadcast and analysis
- Add a toggle to expand/collapse engine lines to save space
- Display player names and clocks for lichess game analysis
- When viewing a game from another player, it now goes directly to analysis screen and at game start
- removed ArchivedGameScreen
- Improved game sharing menu in analysis screen
- Add a button to bookmark a game from analysis screen
2025-05-31 16:03:12 +02:00
Vincent Velociter 754678ef54 Format code with new formatting rules 2025-05-21 07:45:17 +02:00
Vincenzo De Petris 00a40eda24 use RichText widget to display chapters title 2025-03-04 13:09:00 +01:00
Vincent Velociter c0f6d2e917 More work on engine evaluation mixin 2025-02-28 12:19:47 +01:00
Vincenzo De Petris 37f7ed4f9c fix broken test 2025-02-13 23:03:26 +01:00
tom-anders 9d09ab0e89 fix study tests 2025-02-10 22:22:46 +01:00
Vincent Velociter 080fa07023 Format test folder 2024-12-15 20:27:50 +01:00
Vincent Velociter 8d40709b16 Fix tests 2024-11-27 19:45:39 +01:00
Vincent Velociter 96469e9c37 Fix study tests after merging 2024-11-18 15:13:01 +01:00
Vincent Velociter ca318ce78f Merge pull request #1128 from tom-anders/interactiveStudy
feat: interactive studies
2024-11-18 15:09:15 +01:00
Vincent Velociter 35bd609cc5 Checks the clock correctly flags 2024-11-14 12:37:22 +01:00
tom-anders 7ace51c313 feat: interactive studies 2024-11-12 15:53:48 +01:00
Vincent Velociter ff98f1684b Fix study screen tests 2024-11-12 12:47:18 +01:00
tom-anders 00ef7197f2 fix test 2024-11-10 22:36:57 +01:00
tom-anders 4a466008ff add comments about pumpAndSettle() calls 2024-11-10 22:36:18 +01:00
tom-anders cc44c630d1 fix test 2024-11-10 22:36:18 +01:00
tom-anders df2e0eed11 feat: add study screen 2024-11-10 22:36:18 +01:00
tom-anders 607ae0ad7a fix study search test 2024-11-01 21:55:04 +01:00
tom-anders b108d1ce40 correctly handle last page of paginated API
old code would keep requesting pages even if the API returns
"nextPage": null.
2024-11-01 21:55:04 +01:00
tom-anders e997390266 move SearchBar into ListView 2024-11-01 21:55:04 +01:00
tom-anders 2a38983fce add stricter verification of http requests 2024-11-01 21:55:04 +01:00
tom-anders e10929c942 add comment about pump reason 2024-11-01 21:55:04 +01:00
tom-anders 2da7c27bc4 make search bar non-sticky 2024-11-01 21:55:03 +01:00
tom-anders 1721308aed feat: add study list screen 2024-11-01 21:55:03 +01:00