Try a Glance change before it goes live ๐Ÿ›ก๏ธ

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

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