Function
The lesson to mark
Whether the mark was saved
The mark shows at once on every surface and is saved through the completion Server Action; a refused save withdraws it. Deliberately not a hook: the Mark-as-complete button calls it from inside a transition, and the indicators observe the result through useLessonCompletion.
Marks a lesson complete for the signed-in learner.