Nothing you edit reaches the database until you press Save. Until then your edits are an overlay over the saved tokens that the preview, the score and the checks all read, and that undo and redo walk.
How to use it
Edit anything and the page header grows Save, Discard and the undo and redo buttons, with an amber count of unsaved changes. Save sends every edit at once; Discard drops them all. Cmd+Z undoes the last edit and Shift+Cmd+Z (or Ctrl+Y) redoes it, outside a text field; the command palette lists both. The amber dots on the tier tabs and the group headings go out as the edits that lit them are saved, undone or put back by hand.
The contrast and corners dialogs land their repairs as unsaved edits, so Discard is their undo too, beside their own Undo fixes. Ask AI's edits land the same way.
How it works
One request. Save sends the whole overlay in one request and installs the list the server answers, so twenty edits are one round trip and a failure midway leaves nothing half saved. The server validates every edited token against the project as it will be once all edits land (one edit may depend on another, two tokens may swap names) and writes them in one transaction.
A value put back by hand leaves no unsaved change. The overlay keeps only fields that differ from the saved token, and drops a token's entry once nothing differs, so the count, the dots and Save go quiet together.
History. Every change to the overlay (an edit, a Fix, a Discard) pushes the previous overlay onto the undo stack, up to 100 steps, and clears redo. Edits to one token within half a second of each other are one step, so a colour drag or a typed value undoes as one, while a Fix all that touches many tokens in one tick is one step and Ask AI's edits, arriving seconds apart, are one each. Discard is itself a step.
History stops at Save. Saving, deleting a token and switching projects clear both stacks, since the stacks hold overlays relative to the saved tokens.
Leaving a project keeps its edits in this tab. Going to Projects or opening another project parks the overlay in the tab's memory, and coming back restores it (the undo history starts over). A parked project's card on Projects shows an amber Unsaved changes line. Memory is all it is: while any project holds an unsaved edit, closing or reloading the tab from any page asks first.
Signing out discards them. If any project holds unsaved edits, Sign out asks before it goes, and drops them once you confirm, so the next person in this browser never sees them. Deleting your account drops them too.
While a save runs, Save spins and says Saving… and both buttons disable; the row of a token being deleted shows a spinner in place of its trash icon.
What can go wrong
- A save refused for one token refuses the whole batch and names the token; nothing is written.
A token with that name already exists: a rename collided with a token saved from elsewhere meanwhile.- Unsaved edits live in one tab: another tab, or the same project opened after the tab closed, does not see them.
- Two tabs editing the same project: the last save wins per token; the other tab's overlay still applies on top of what it loaded.