Sub topic 7
Building the screens
This chapter assumes you have a scoped core flow and a data model, as covered in earlier chapters. You should know what a table, a field and a record are. Here you turn the flow into screens.
Start from the flow, not the page list
Each step of your core flow becomes one screen or one part of a screen. For the TaskNest example, the flow is: sign in, create a task, see your tasks, mark one done. That needs three screens at most:
- A sign-in screen.
- A list page that shows the user's tasks.
- A create-task form, which can sit on the list page.
Anything that does not serve a step in the flow waits. Settings pages, profile pages and dashboards are common scope creep at this stage.
The building blocks of a screen
Most no-code tools and AI builders give you the same four kinds of parts.
| Part | What it does | TaskNest example |
|---|---|---|
| Container | Groups and arranges other parts | A page with a header and a content area |
| Display element | Shows data | A repeating list of task rows |
| Input element | Collects data | Title, client name and due date fields |
| Action element | Triggers something | A "Save task" button, a "Done" checkbox |
The key idea is binding. A display element is bound to a data source, such as a query on the tasks table. The list updates when the data changes. An input element is bound to a field, so what the user types becomes a column value when the form is submitted.
Rules that keep screens simple
- Use one primary action per screen. If there are two equally loud buttons, users hesitate.
- Reuse the builder's built-in components and theme. Custom styling costs time and tests nothing.
- Design for a phone width first if your users are on mobile. Most builders offer a preview at several widths.
- Write real labels and real sample data. "Lorem ipsum" hides layout problems that real client names expose.
Handle the states people forget
A screen has more than one appearance. Check each of these before you call it done:
- Empty: a new user has no tasks. Show a short message and the create button, not a blank page.
- Loading: the list takes a moment to arrive. Show a placeholder.
- Error: saving fails. Show a message and keep what the user typed.
- Validation: a required title is missing. Mark the field and say why.
Common errors
- Building every screen before testing one. Build the list page, run it with real data, then continue.
- Binding a list to the whole table instead of a query filtered to the signed-in user. In a builder preview this can look right when you are the only user.
- Forgetting to refresh the list after a create or update action, so the new task seems missing.
Exercise
A new user signs in to TaskNest and sees a blank white area where the task list should be. Name the screen state that is missing and what you would add.
Show answer
The empty state is missing. Add a short message such as "No tasks yet" together with a visible "Create task" button, so the user knows the page loaded correctly and what to do next.