Version history
Tessera keeps a history of each dashboard. A version is a snapshot of the dashboard’s configuration, saved by Node-RED itself, so you can see what it looked like, give a good state a name and go back to it.
When a version is saved
Section titled “When a version is saved”On every deploy that changes the dashboard: an Apply & deploy from the builder and a plain Deploy from the Node-RED editor both count. If nothing of the dashboard changed (you deployed a function node, or the same flows again) no new version is saved. A dashboard is one tessera-base node: its versions cover that node, its pages and the widgets on those pages, and each dashboard has its own history.
What a version holds
Section titled “What a version holds”| Holds | Does not hold |
|---|---|
The dashboard node (title, theme, grid, branding…), its pages and its widgets, with their configuration and their position in the flow (x, y, the flow tab) |
Wires: what a widget is connected to belongs to your flow logic, not to the dashboard |
| Credentials, never | |
| Notification nodes: they have no page, so they are not part of the dashboard | |
| Widgets of an extension package, unless that package is loaded when the version is saved | |
| Other nodes (function, inject…) and the flow’s own groups: a widget that is recreated is not put back in a Node-RED group |
Versions are plain JSON files in <userDir>/tessera-versions/<dashboard id>/, next to flows.json (userDir is ~/.node-red by default).
How many are kept
Section titled “How many are kept”Fifty unnamed versions per dashboard unless settings.js says otherwise; when there are more, the oldest unnamed ones are removed:
tessera: { versionsMax: 50, // unnamed versions kept per dashboard},A named version is never removed and does not count towards the limit: name the ones worth keeping.
The Versions panel
Section titled “The Versions panel”In the builder, the Version history button of the toolbar (the clock) opens the panel — at a narrow width the toolbar drops that button into its menu, under More → Panels → Version history…. It needs the Node-RED editor that opened the builder, like the media library: the editor makes the authenticated calls.
- The list shows the newest version first, with its local date and time, its name if it has one and how many pages and widgets it holds.
- Name / Rename: up to 80 characters; saving it empty clears the name.
- Preview draws the version’s pages and widgets with the same renderer as the dashboard. It is read-only: clearly labelled, nothing in it can be clicked or edited, and your draft in the builder is not touched. Widgets show sample data (a version holds configuration, not values), and a widget of a type this builder does not have (an extension that is not loaded) is not drawn. Pick the page to look at, Back to the versions or Esc returns, and Restore this version is there too.
- Restore asks first and says what it does, see below.
The panel is a dialog: Tab stays inside it, Esc goes back one step (cancel a confirmation, leave a preview, close it) and the focus returns to the button that opened it — the clock in the toolbar, or the More button when the panel was reached from the menu.
Restore
Section titled “Restore”Restore takes the dashboard back to exactly that version:
- widgets and pages added since are removed;
- ones deleted since are recreated, with the same id and position, without wires to other nodes (the version never held them): wire them again;
- the widgets and pages that are still there get the settings of that version back, and keep their wires and their place on the flow canvas; a setting added since that the version did not have is cleared;
- a widget whose flow tab is gone is recreated on the Tessera UI flow (or the first flow) and the result says how many were moved there;
- other nodes of your flows are not touched.
It is one undoable edit in the Node-RED editor: a single Ctrl+Z there undoes the whole restore (the nodes come back as they were, but you still have to deploy to publish that). After the edit it deploys, like Apply & deploy, and the builder reloads its state from the editor, so you see the restored dashboard; the deploy saves a version of its own.
The panel shows what happened, e.g. 3 changed, 2 recreated, 1 removed. A restore that cannot be done is refused as a whole, with its reason, and nothing changes: the version was saved by another dashboard or is damaged, a widget type of the version is not installed (a disabled node set, a missing extension), or its id is now used by a node of another type.
Unapplied changes in the builder block Restore: the button is disabled and the panel says so until you Apply or Revert them, because the restore replaces what the editor has.
Permissions and endpoints
Section titled “Permissions and endpoints”The builder reaches them through the Node-RED editor, which is signed in. Under the admin root (httpAdminRoot, / by default):
| Request | Permission | What it does |
|---|---|---|
GET <adminRoot>/tessera/versions/<dashboard id> |
flows.read |
the list, newest first: [{ id, time, name, counts: { pages, widgets } }] |
GET <adminRoot>/tessera/versions/<dashboard id>/<version id> |
flows.read |
one version with its nodes |
POST <adminRoot>/tessera/versions/<dashboard id>/<version id>/name |
flows.write |
{ "name": "…" }: name it (up to 80 characters, no control characters, empty clears it) |
A version id is 15 digits (its creation time in milliseconds). Errors are { "error": "…" }: 400 for a bad id or name, 404 for an unknown version. Restore is not an endpoint: it is done by the editor, as an edit of its flows followed by a deploy, so it needs what deploying needs (flows.write). With adminAuth, a read-only user can list and read versions but cannot name or restore them.
A snapshot is a copy of your configuration (it can hold topics, URLs and the code of a Template widget, never credentials): anyone who can read flows can read it.