CANVAS

Screens, states and roles

Every app keeps a list of its screens, the states you can open them in, and the roles that decide who can see each one.

Screens

Every app keeps a list of its screens: each page, its address, a short name, and who can open it. Atomic keeps this list in step with the app’s pages and checks every screen on each build.

Open the screen menu in the top bar to go to any screen. Each entry shows its address and who it is for: anyone, signed-out visitors (such as sign-in), any signed-in user, or a particular role. Type to filter, or enter an address and select Go.

The screen menu open over the canvas, listing twelve screens with their addresses and who each is for, states under some screens, and a Save this screen field.
The screen menu: every screen, its states, and who it is for.

States

A state is a view of a screen you would otherwise have to click to reach, such as an open dialog or an empty list. States appear under their screen in the menu and beside it on the canvas, so you can open and edit them directly.

Saved screens

Name the current view under Save this screen at the bottom of the menu to come back to it later. Saved screens are shared with everyone building the app. Saving while an element inside a dialog is selected records that the dialog was open; opening the saved screen returns to its page and reminds you to reopen the dialog. Saved screens do not replay clicks, form entries or sign-ins.

Preview roles and published access

The canvas can represent roles such as owner, staff or agent so you can review the intended screens and workflows. These design roles are different from the current published-user controls, which support Member and Admin.

Use View as to explore the sample account for a preview role. Before publishing, test how the generated screens and data permissions map to Member and Admin. A screen’s role label alone does not prove that its records are protected. See who can use your app.

Adding screens and roles

Ask for new screens, states and roles in the conversation, for example “add a screen where staff see today’s appointments”. Say who each screen is for. Atomic adds it to the list and checks that it opens as that role.