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: 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: built from the current draft, not live.

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.

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: 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.

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.

Comments
0