Files
DeepTutor/web/hooks
Bingxi Zhao (Frank) d49a41cd99 fix(mastery): refresh the study map when a turn ends, not only when a socket says so
The study screen refetched the topic on one signal: a revision bump from the
mastery WebSocket, or the REST reconcile that window focus, visibility and
`online` trigger. There is no polling, no turn-end refresh, and the screen
never called `activity.refresh()` — the three existing calls are all on the
topic detail page. So a proxy that will not upgrade WebSockets, or a
connection an idle timeout closed, leaves the outline rail frozen at whatever
it read when the page opened, until the learner switches windows and comes
back — which someone working through a question does not do.

The end of a turn is when the map is most likely to have moved, since grading
and assessment both happen inside one. Reconciling there costs one GET on a
healthy socket and is the only thing that reports progress without one.
2026-09-14 15:09:13 +08:00
..
2026-09-06 13:46:29 +08:00
2026-06-11 20:03:34 +08:00
2026-09-06 13:46:29 +08:00
2026-09-03 01:38:54 +08:00
2026-06-18 00:22:48 +08:00
2026-09-06 13:46:29 +08:00
2026-07-31 00:25:48 +08:00
2026-08-10 00:47:37 +08:00
2026-08-02 13:23:45 +08:00
2026-04-23 19:29:16 +08:00
2026-09-03 01:38:54 +08:00
2026-09-06 13:46:29 +08:00
2026-09-06 13:46:29 +08:00