Project

General

Profile

Actions

Activity #4706

open

Module #4443: Development

Resume Functionality (State Persistence + Recovery)

Added by Kiran Raj 4 months ago. Updated 3 months ago.

Status:
In Progress
Priority:
Normal
Start date:
04/22/2026
Due date:
% Done:

90%

Estimated time:
Planned Due Date:

Description

Allow users to resume a case exactly where they left off (including planes, cuts, transforms, landmarks, and UI state).

Tasks
Backend
Design case state schema
Planes (position, normal, transforms)
Segments (IDs, hierarchy)
Transform matrices (4x4 per segment)
Landmarks (3D coords + labels)
Active step (Orientation / Align / Treat / Splint)
Implement auto-save API
POST /case/:id/save-state
Implement load API
GET /case/:id/state
Add versioning
Allow rollback (optional but high value)
Frontend
Create state manager (Zustand / Redux)
Serialize:
VTK actors
Plane configs
Transform matrices
Rehydrate scene:
Rebuild actors
Reapply transforms
Restore camera + UI state
Add auto-save trigger
On transform / cut / landmark move
Add manual “Resume Case” UI
Edge Cases
Handle missing STL / corrupted state
Backward compatibility for schema updates

Actions

Also available in: Atom PDF