# Undo, saving and earlier versions

> How saving works in the editor: undo and redo, autosave every 30 seconds, the save status pill, checkpoints and restoring an earlier version.

Source: https://docs.personacart.com/editor/undo-and-history

In short: {"How saving works in the editor: undo and redo, autosave every 30 seconds, the save status pill, checkpoints and restoring an earlier version."}

You can try anything in the editor. Undo takes back your last change, autosave keeps your draft safe, and **Earlier versions** lets you go back to a version you saved or published. Nothing here touches your live store until you publish.

1. Press **Cmd+Z** (**Ctrl+Z** on Windows) to undo a change.
2. Watch the save status in the header. Autosave runs every 30 seconds.
3. Open **More → Earlier versions** to go back to a saved version.

## Where to find it

Sidebar → STOREFRONT → Pages, then open a page. A page opens in **Simple view** or in the full editor, depending on your account (see [Simple view and full editor](/editor#simple-view-and-full-editor)). In the full editor, **Layers** and **Add** are on the left, the canvas is in the middle and the inspector is on the right. **Undo**, **Redo** and the save status are in the header.

## Undo and redo

- Press the **Undo** and **Redo** buttons in the editor header (on a narrow screen they are inside **More**, as **Undo / Redo**), or use the keys: **Cmd+Z** (Ctrl+Z on Windows) to undo, **Cmd+Shift+Z** or **Cmd+Y** to redo. See [Keyboard shortcuts](/editor/keyboard-shortcuts).
- One undo takes back one meaningful change: a drag, a typed edit, a style change or a paste. Changes made by the editor itself, such as applying a template or a Beautify with AI, also come back in a single undo step.
- Many actions show a toast with its own **Undo** (for example after deleting several layers, changing the look, or archiving a page).
- Undo works within your session. To go further back than this session, use an earlier version (below).

## Autosave and the status pill

The editor saves your draft by itself about every 30 seconds while you have unsaved changes, and you can press **Save** any time (**Cmd+S**, Ctrl+S on Windows). The save status pill in the header tells you where you stand:

| What it says | What it means |
| --- | --- |
| **Ready** | Nothing has changed yet. |
| **Unsaved page** / **Unsaved shop** | You have changes that are not saved yet. |
| **Unsaved · saves in 12s** | The next autosave is 12 seconds away. |
| **Saving page…** | A save is in progress. |
| **Saved as draft** / **Saved as draft · 10:42** | Your draft is saved. It is not public. "Saved as draft. Publish to make it live." |
| **Saved · publishing…** | The page was saved and is going live. |
| **Live page · 10:42** / **Live · just now** | Your published page matches your draft. |
| **Last saved (time)** | When the last save happened. |
| **Save failed · retry** | The save did not work. "Couldn't save. Your change is still here. Try again." Press the pill or **Retry**. |
| **Save failed · reload the page** | The editor cannot save any more from this tab. Reload the page; your unsaved changes are offered back. |
| **Editing elsewhere · read-only** | Someone else (or another tab) holds the page. See [When someone else is editing](/editor/someone-else-editing). |

The **Save** button carries a small number when your saved draft is ahead of what is live. The tooltip says, for example, "Save your draft — 3 saved edits not yet published". If you leave with unsaved changes the editor asks **Leave without saving?** with **Stay** and **Leave**.

## Earlier versions

Press **Earlier versions** in the header (tooltip "Go back to an earlier copy"; on a narrow screen it is under **More**). A panel opens with two tabs.

### Versions tab: your named checkpoints

- **Save checkpoint** saves the page as it is now. You can **Name this checkpoint (optional)**, for example "Before the summer sale", then press **Save**.
- Each checkpoint shows a name, how long ago and the date, with a **Restore** button (it reads **Load** on editor v2 pages, or when draft and live versioning is on). "Load this version into the editor (your current work is saved first as a checkpoint)."
- If a checkpoint might miss your very last edits the editor says so ("Checkpoint saved, but it may not include your very latest edits").

### History tab: published versions and automatic saves

The **History** tab lists dated snapshots of the page: **Published**, **Manual save**, **Autosave**, **Import** and **Restore**, newest first. A badge shows how each compares to your live page: **LIVE**, **Even with live**, **+n ahead** or **−n behind**.

For each version you can:

- **Preview** it: a read-only look ("Nothing changes until you load this version") without loading it.
- The button reads **Load** on editor v2 pages, or when draft and live versioning is on. **Load** puts that version in your draft; you still publish.
- **Load**: puts it in your **draft**. "Loaded as your draft. Publish to make it live."
- **Restore**: replaces what is on your page now. A confirmation says "Go back to this version? This replaces what is on your page now with (version). We save your page first, and you can press Undo to come back." Choose **Go back to this version** or **Keep my page**.

Restoring a version loads its content straight into the editor and saves like any other edit; your live store only changes when you publish.

## Opening a page that has a newer draft

- When a page has an unpublished draft that differs from what is live, the editor asks **Load which version?**: **Live (published)** ("What visitors see right now"), **Your draft** ("Your last saved, unpublished edits"), or **A specific version**.
- If your draft is missing blocks that are live right now it tells you ("Not in this draft, but live right now") so you do not publish by accident and remove them.
- A page that was never published offers **Saved page (not published)**.

## Publish history and Discard draft

- The publish history dialog compares **Current draft** with **Last published** ("This is what your visitors see right now.").
- It says **Draft matches the published version.** when there is nothing to compare.
- **Discard draft (revert to published)** replaces your draft with the last published version.
- It is disabled with a reason if the page was never published ("Publish at least once before you can roll back."), if the draft already matches, or if the feature is not available yet.
- The same action appears in the Publish menu as **Discard changes**.

## Steps: go back to how the page looked yesterday

  Press Earlier versions in the header and open the History tab.
  Find the version by its date and type (for example Published). Press Preview to look at it.
  Press Restore (it reads Load on editor v2 pages or when draft and live versioning is on; Load puts the version in your draft and you still publish) and confirm with Go back to this version. The editor saves your current page first.
  If it was the wrong version, press Undo (Cmd+Z) to come back.
  Publish when the page is right. See Publishing.

## What happens, and what doesn't

- Autosave and checkpoints change only your **draft**. Visitors keep seeing the last published version.
- A restore adds a **Restore** entry to History; the other versions stay in the list.
- If a restored older page contains a legacy section the editor cannot convert, it still loads correctly ("Restored, but some legacy sections couldn't be converted to the new format").

## Questions
