Skip to content
HotLayout Docs

Saving and publishing

Here you learn how your work is saved, how a screen gets to your apps, what to do when the Publish button is grey, and how to return to an earlier version.

Draft and published version#

Every document has two versions:

  • The draft is what you edit. It is saved automatically and is visible only to your team.
  • The published version is what the app shows. It changes only when someone presses Publish.

So you can work on a draft for days without changing anything for users.

Saving#

There is no save button. The editor shows one status at the top. While the draft is being saved, or could not be saved, that status is about saving; otherwise it is about publication, and the time of the last save is in its tooltip:

Status Meaning
Unsaved changes You changed something; it is about to be saved.
Saving… The draft is on its way to the storage.
Not saved The draft did not reach the storage. The reason is written below; press Save now to retry, and do not close the tab until it is saved.

When two people edit the same document#

HotLayout does not merge edits, and it does not let one person silently overwrite another. If a teammate saved the document after you opened it, your next change is not saved. A bar at the bottom explains it and offers two buttons:

The bar that appears when a teammate saved the document first: “Open their version” and “Keep mine”

  • Open their version — your screen is replaced with their version. Undo brings the choice back.
  • Keep mine — your version is saved over theirs.

To avoid this, agree who works on a document, or split the work into separate documents.

Publish#

  1. Click the screen through in Play.
  2. Press Publish.
  3. A window asks you to confirm. Under What will change it lists what differs from the published version, and it says when and by whom the document was last published. Press Publish in the window to go ahead, or Cancel (or Esc) to go back; nothing is published until you confirm. If the project publishes only approved versions, the window also says that the draft is the approved version and names its number.

When the new version may break the app#

The code of your app and your backend rely on a few names in the document: the entry points an app opens it by, the screens, the data fields the document writes (input fields, choices, buttons that set a value), the actions the app runs itself (opening a link, or an action your developers named, such as step.complete), and the analytics events. Before publishing, the window compares these names in the published version and in the new one.

If something disappears, the window shows May break the app with one sentence per name — for example, that an entry point is gone and an app that opens the document by it will show the start screen, or that the document no longer writes a field the backend may wait for. It also checks the app placements: a placement that points to an entry point the new version does not have is named too. If the placement map could not be read, the window says the placements were not checked.

Publishing is not blocked. The main button becomes Publish anyway, and Cancel is selected first, so pressing Enter does not publish by habit. Check with your developers before you go ahead. When nothing disappears, the window looks as usual; the first publication of a document has no such check.

The status next to the button changes to the time of publication and Apps see this version. The app shows the new version the next time it loads the document; how soon depends on how your developers set that up.

When you edit after publishing, the status says There are unpublished changes. Apps still see the previously published version. Publish again when the changes are ready.

The same status is in the list of documents of the project, in the In apps column.

Review before publishing#

Before apps get a version, colleagues can look at it and approve it.

  1. In the editor, press Send for review. Write what changed if you like, and send. Colleagues in your organization get a link to an unchangeable copy of this version with its theme; apps do not see it, and nothing is published. The note you wrote is shown on the review page as What changed, so the reviewer sees it before the screens.
  2. A colleague who can publish opens the link and looks through the screens. At the top of the page they press Approve — or write a comment and press Changes needed. The author of a version cannot approve it: someone else decides. There is one decision per version; after changes, send a new version.
  3. Next to Send for review the editor shows the state of the latest version, for example Version 3: Approved. All versions with their decisions and comments are in History, under Reviews.

Every decision is recorded in the activity log.

Send to a particular colleague#

In the send window, Send to lists colleagues who can approve. By default the version goes to All members (no one in particular), as before. Pick a person if you want exactly one colleague to look at it. The window then says who the version is waiting for. If nobody else on the team can approve, the field is not shown and the window says to invite a colleague with the right to publish.

The person you picked sees the version at the top of the organization's home page, in Waiting for your approval: the document, the project, the version, who sent it, when, and your note. Click a row to open the review page in a new tab, where the page says Waiting for your approval. Other colleagues see who the version is waiting for. Picking a person does not lock the decision: anyone who can approve may decide, so a version does not get stuck when the chosen person is away. If the chosen person's role no longer lets them approve, the page shows a sentence about that instead of the buttons. Once the version is decided, or a newer one is sent, it disappears from the list. The block is not shown when nothing is waiting for you.

If the person you picked leaves the organization or loses the right to approve, the version does not get stuck: everyone who can approve sees it in Waiting for your approval, with a note that it was sent to that person and why they can no longer decide (The recipient is no longer in the team, or … can no longer approve). The review page and History name the person it was sent to in the same way. While the exact version you have in the editor is already waiting for approval, the editor says so instead of asking you to send it again.

Publish only approved versions#

An owner or an admin can turn on Publish only approved versions in the project settings. Then Publish works only when the draft matches the latest approved version. If you change the draft after it was approved, send the new version for review again.

This is a check of the team's process in the editor, not access protection: a person with the right to publish can still write to the storage directly, past the editor. What happened is visible in the activity log.

Why the Publish button is grey#

The reason is always written: next to the button, and as a bar at the bottom of the editor that starts with Publishing is off.

Publishing is off: the bar at the bottom names the error, and the list above it leads to the widget

Reason What to do
The document has errors Press Show errors in the bar. Each error names the screen, the widget and the field; click it to go there. Widgets with errors are also marked in the tree. Fix them and the button becomes active.
Your role does not publish Ask an admin or a publisher of the organization to publish, or to change your role. See Team and roles.
The trial has ended or the licence has expired Editing still works and drafts are saved. See Trial and licence.
The document uses theme tokens that apps do not have yet Publish the theme first — Design, then Publish the theme — and then the document.
Someone else changed the document or the theme Follow the message: open their version or reload the page, then publish.
Nothing has changed There is nothing to publish — the draft matches what is published.
The project publishes only approved versions Send the document for review and wait until a colleague approves it. If you changed the draft after approval, send the new version. See Review before publishing.

Typical errors: a button without a label, a transition to a screen that was deleted, a binding to a field that is no longer in the data dictionary, a navigation bar on only some of the section screens.

Warnings in Checks — a text that does not fit, content below the first screen — are advice. They never block publishing.

If publishing itself fails, for example without a connection, nothing is sent to apps and the message says so. Press Publish again; publishing does not retry by itself.

History#

Every publication leaves a snapshot. Open History on the left.

The History section: what apps see now, what you are editing, and the list of published snapshots

  • Right now compares what apps see with what you are editing, and says how many changes the draft is ahead.
  • Below is the list of snapshots, newest first, each with the time and the person who published.
  • Click a snapshot to see how it differs from your draft. Changes are named by meaning — a widget added, moved or changed, a screen renamed — not as lines of code.

Return to an earlier version#

A snapshot has two buttons, and they differ by where the version goes.

Back to apps, right away. When the published version is broken and phones must show the previous one now:

  1. Select the snapshot.
  2. Press Restore this version to phones.
  3. The same window as for publishing lists what will change for apps and, if needed, what may break the app. Press Restore to phones to go ahead.

This is a publication: apps get the snapshot, a new snapshot is kept, and it is recorded who published it, as with Publish. The same rules apply — your role must publish, and the theme tokens of the snapshot must be in the published theme. Your draft does not change: Right now then shows how it differs from what apps see.

Back to the draft, to keep working.

  1. Select the snapshot.
  2. Press Restore this version to the draft and confirm with Replace.

The version is put into your draft. Nothing changes in apps until you press Publish. If you change your mind, undo brings the previous draft back.

To drop your unpublished changes, use Discard the draft and take the published version.

Export and import#

The JSON section holds the document as a file:

  • Copy JSON and the download button export it — for a backup or to hand it to a developer.
  • Under Import, paste a document or choose a file and press Import. The imported content replaces the draft of the document you have open. If the file does not match the theme or the data dictionary of this project, it opens with remarks you fix in the editor.

The same section shows the full list of errors of the current document.

Next#