Track Template Changes with Version History
Track Template Changes with Version History
Templates now keep a version history. Every time you save a template in the editor, NinjaCat automatically captures a new version, so you can see how a template changed over time, who changed it, and roll back to an earlier version when you need to.
This brings templates in line with the version history and revert capability already available for other parts of NinjaCat. Version history is available to anyone with permission to manage templates.
NoteOnly saves made in the template editor are recorded. Versions created automatically by scheduled reports, the API, or report exports are not shown in version history. NinjaCat keeps up to the 50 most recent editor saves per template.
Where to find version history
You can open version history from two places:
- In the template editor — click the Version History icon in the editor toolbar to open the Version History panel on the right side of the canvas.
- From the template list — click the Version History icon in the History column for any template to open the Version History window.
What's in each version
Each version shows:
| Field | Description |
|---|---|
| Version | A version number, with the newest marked as the current version. |
| Edited by | The user who saved that version. |
| Date | When the version was saved. |
If a version was created by restoring an earlier one, it's labeled to show which version it was restored from.
Versions saved before this feature launchedTemplates created before version history was introduced won't have a full history. The first time you save such a template in the editor, NinjaCat captures its current state as a starting point, and history builds from there.
Preview an earlier version
In the template editor's Version History panel, click any version to preview it on the canvas before deciding whether to restore it. Previewing only shows the template's layout — it doesn't refresh live widget data — and it doesn't change anything until you choose to restore.
To return to where you left off, just close the panel. Your current work, including any unsaved changes, is kept exactly as it was.
Restore an earlier version
- Open Version History from the template editor or the template list.
- Select the version you want to go back to.
- Click Restore (or Restore this version in the editor), then confirm.
When you restore a version, the template is set back to that version's content, and your current state is kept in the history as a new version, so you can always move forward again. Sharing and access settings stay as they currently are.
NoteRestoring discards any unsaved changes in the editor that aren't part of a saved version. Widgets that reference data sources that have since been removed will show no data.
Common use cases
- Recover from an unwanted change by restoring a known-good version.
- See who last edited a template and when.
- Compare an earlier layout against the current one before committing to a change.
Related articles
Reference: TP-868
Updated 33 minutes ago