Migration 077 keeps one draft per record of any entity. Saving a draft checks it by applying it in a transaction that is rolled back; Preview opens the record's page in a tab that sends X-Draft-Preview, and the server answers those reads from a second connection holding the applied draft, then rolls back, so nobody else sees it. Publish is the ordinary save, which drops the draft. tx() now nests as a savepoint. Also commits TODO.md: the answered questions, and parts 1 to 3 moved to Done. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| package.json | ||
| pnpm-lock.yaml | ||