mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-27 23:27:31 +00:00
f02c0e088b
The journal views read the journal again after their own changes (saved settings, a finished entry, an added trip, picked provider photos) by calling loadJourney and dropping the promise. loadJourney rethrows every failure, so a reload that failed, offline or timed out, became an unhandled rejection with nothing shown to the user. In CI the same happened whenever a test ended with such a read still open: the teardown runs the pending timers, the request timeout fired, and the run failed on the unhandled error. The store gets refreshJourney, which reads the journal and answers whether the read landed instead of rejecting; a 404 still turns into notFound. The shared journal hook hands it to the desktop and the phone view and to the map layers in place of the raw loader, and the Studio uses it for its own reads.