33bc6a935c
Deploy / deploy (push) Successful in 3m31s
Coming back from a shot left the shot status page at the top with its sections reset. The scroll restore saved window.scrollY, but dashboard pages scroll the layout's <main>, so it always saved 0; the Projects page had the same bug. Only episode expansion was remembered — scene and group sections came back fully collapsed. A shared useScrollMemory hook saves the real scroll container's position as the user scrolls (so any way of leaving keeps it) and restores it once the content that sets the page height is back. It ignores the scroll the shared <main> fires when the next page replaces this one, which otherwise overwrote the saved position. Shot status now remembers episode, scene and group expansion per project. The client portal already kept its filters and collapsed episodes but restored scroll before they were applied; it now uses the hook too. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>