# Try a Glance change before it goes live 🛡️

- Link: https://gexis.net/2026/11/18/try-a-glance-change-before-it-goes-live-%f0%9f%9b%a1%ef%b8%8f/
- Published: 2026-11-18T18:00:00+01:00
- Author: George

A typo in glance.yml can leave a Glance dashboard on its old config, or stop it 
at the next restart. In Glance Editor, every change is a draft first: it can be 
previewed, it is checked before it is written, and every saved version can be brought
back.

⌊History: three versions, one changed outside the editor, with a diff against the
live one⌉⌊History: three versions, one changed outside the editor, with a diff against
the live one⌉
 _History: every save is a version, and any of them can come back._

## 👀 Preview first

Edits stay in a draft, and the dashboard doesn’t change until Save. **Preview** 
builds the draft on a second, private Glance inside the container, the same version
as the dashboard, and shows it inside the editor at desktop or phone width. After
more edits, the preview says it’s out of date until _Refresh_.

⌊Preview of the draft at desktop width, marked Not live⌉⌊Preview of the draft at
desktop width, marked Not live⌉
 _Preview: built from the current draft, not live._

⌊Preview on a phone⌉⌊Preview on a phone⌉
 _The same preview, on a phone._

## ✅ Review, then Save

**Save** opens Review, which lists every change: a page renamed, columns changed,
a widget moved. Then the draft is checked twice: by the editor’s own rules, then
by Glance’s own validator. glance.yml is written only if both pass. Glance then 
reloads by itself, and the editor confirms that it did.

⌊Save: three changes listed, and a note that the draft is checked twice before writing⌉⌊
Save: three changes listed, and a note that the draft is checked twice before writing⌉

_Review: what changes, and what happens when it’s saved._

The editor’s rules catch things Glance’s validator lets through. A page named _Login_,
for example, passes the validator, but Glance then won’t load the config; the editor
says so before anything is written. `${VARIABLES}` don’t fail the check: it runs
with stand-in values, and the file keeps the placeholders.

## 🎯 Problems with a Go to

If a check fails, nothing is written and the dashboard keeps running as it was. 
Each problem says where it is, in plain words, with a **Go to** button that opens
the field. Glance’s own messages name only the widget type, so the editor works 
out which widget it is.

⌊Not saved: one problem found, a page without a name, with a Go to button⌉⌊Not saved:
one problem found, a page without a name, with a Go to button⌉
 _Not saved: glance.
yml unchanged, and Go to opens the field._

## 💾 Written safely

The new glance.yml replaces the old one in a single step, so Glance never reads 
a half-written file. The previous file is kept beside it as `glance.yml.prev`.

## 🕘 History

Every save stores the whole config as a version. Each version shows what changed
and a line-by-line comparison with the live one. **Restore as draft** loads it into
the draft; it goes live only through Save, with the same checks as any change. Background
settings travel with each version, so a restore brings the background back too.

⌊History: versions on the left, the selected version's changes and diff on the right⌉⌊
History: versions on the left, the selected version's changes and diff on the right⌉

_Version 0 is the file as it was before the editor._

## ✍️ Edited by hand?

glance.yml can still be edited by hand. The editor notices, keeps the file as its
own version, marked _Outside editor_, and asks before saving over it: **Keep my 
draft** or **Load the file**. Either way nothing is lost; the other one stays in
History.
