Skip to content

Module 05 · Lesson 5.1

Planning Screens from Workflows

35 minUpdated 19 Nov 2026Part of Frontend and API Integration · New Project Creation
On this page
  1. What you will learn
  2. What a screen plan is and why it comes first
  3. From workflow steps to a list of screens
  4. Listing the states of each screen
  5. Worked scenario: Tidewell's screen plan
  6. Step-by-step workflow
  7. What the assistant can and cannot do when planning screens
  8. Conclusion and your next step
  9. Reusable prompt
  10. Expected output
  11. Common errors and fixes
  12. Validation checklist
  13. Hands-on exercise
  14. Knowledge check
  15. Frequently asked questions
  16. References

Before a builder lays one brick, someone draws the floor plan. They ask who walks in, where they go next and what happens when a door is locked. Screens need the same care. If you start with code, you end up with pages that look fine on a good day and confuse people on a bad one.

In this lesson you plan the screens for Tidewell Physiotherapy's booking system. You start from the workflow you mapped in Module 1, list the screens, and then list the states of each one. You also link every screen to a requirement and an acceptance scenario, so nothing is built without a reason. An AI assistant helps you challenge the plan, but you decide what goes in it.

What you will learn

  • Turn workflow steps into a short list of screens, each with one clear purpose.
  • List the states of each screen, such as loading, empty, error, success and conflict.
  • Trace every screen to requirements and acceptance scenarios.
  • Use an AI assistant to challenge a screen plan while keeping every decision yourself.

Before you start

What a screen plan is and why it comes first

A screen plan is a short written list of the screens in your application. For each screen it says what the screen is for, where it lives, what the person can do there and what can go wrong. It is not a drawing. It is closer to a menu that lists every dish before the kitchen starts cooking.

Planning first saves time in two ways. You find missing screens early, such as the page that tells someone their booking is cancelled. And you give the assistant a clear target, so it builds the screens you need and not the ones it imagines.

Screen
One view the person sees at a time, such as a list of free times. Like one page in a paper form.
Route
The web address of a screen, such as /my-bookings. Like the room number on a door.
State
The situation a screen is in right now: waiting for data, showing data, showing an error and so on. Like a traffic light, which is always in exactly one state.
Workflow step
One action in the story of how a person gets a job done, taken from your workflow map in Module 1.

From workflow steps to a list of screens

Take the workflow for a patient who wants an appointment. They find a free time, confirm it, later look at their bookings, and sometimes move or cancel one. Each time the person needs to see something new or make a new choice, you probably have a new screen.

Staff screens for front-desk work (FR-04) come later with roles in Module 6. For now the plan covers the patient's side. This is the list for Tidewell.

ScreenRouteRequirementPurpose
S1 Choose a clinician and date, then see free slots/bookFR-01Let a patient find a free time.
S2 Confirm a booking and see the confirmationShown after S1FR-01Make the booking and show that it worked.
S3 My bookings/my-bookingsFR-02Show the patient's upcoming bookings.
S4 Move a booking/my-bookings/[bookingId]/moveFR-02Pick a new time for one booking.
S5 Cancel a booking/my-bookings/[bookingId]/cancelFR-02Cancel one booking, or explain why it cannot be done online.
Five screens cover the patient's side of the booking workflow.

Rules for splitting and joining screens

  • Give each screen one main job. If you cannot say the job in one short sentence, split the screen.
  • Join steps that always happen together. Choosing a clinician and a date both feed one list of free times, so they share S1.
  • Give a risky action its own screen or step. Cancelling cannot be undone online, so S5 asks the patient to confirm.
  • Do not add a screen because the assistant suggested one. Add it when a requirement or scenario needs it.

Next.js, the framework chosen in Module 2, turns folders into routes. A folder named my-bookings becomes the address /my-bookings. You can read how this works in the Next.js project structure guide (opens in a new tab). The tool detail matters later. At this point you only need the list.

Listing the states of each screen

A screen is rarely just 'the screen with the data on it'. Data takes time to arrive. Sometimes there is none. Sometimes the server says no. If you plan only the happy case, the other cases are decided by accident, usually as a blank page or a confusing error.

Use the same small set of state names on every screen. The set for this module is: loading, empty, error, ready, submitting, success and conflict. A conflict is when your request clashes with something that changed meanwhile, such as someone else booking the same time first.

ScreenStates to designWhere each one comes from
S1 Free slotsLoading; empty (no free times that day); error; ready; submitting; conflict (slot taken)FR-01, NFR-01 and the 409 problem from the API
S2 ConfirmationSuccess (booking confirmed); errorFR-01 and the 201 reply
S3 My bookingsLoading; empty (no upcoming bookings); error; readyFR-02 and the acceptance question 'what happens with nothing?'
S4 Move a bookingLoading; empty (no other free times); ready; submitting; conflict; success; inside the notice periodFR-02.2 and the 422 problem
S5 Cancel a bookingReady; submitting; success; inside the notice period; not found; errorFR-02.1, FR-02.2, FR-02.3
The states come from requirements, scenarios and the problems your API can return.

Notice where the states come from. Each one traces to a scenario you already wrote, or to an error your API contract already lists. The Module 4 contract gives you 400, 404, 409, 422 and 500 problems. Every one of them needs a decision about what the person sees.

Worked scenario: Tidewell's screen plan

Now trace the acceptance scenarios from Module 1 to the screens. This is the check that tells you the plan is complete: every scenario should land on a screen, and every screen should serve at least one scenario.

ScenarioScreen and stateWhat the person sees
FR-01: see free slots for a clinician and dateS1 readyA list of free times for the chosen day.
FR-02.1: cancel outside the notice periodS5 successA message that the booking is cancelled, and a link to My bookings.
FR-02.2: cancel inside the notice periodS5 inside the notice periodThe booking is unchanged. The patient is told to phone 01632 960 123, Monday to Friday, 8:00 to 18:00.
FR-02.3: someone else's bookingS5 not foundThe same message as for a booking that does not exist, so its existence is not revealed.
NFR-01: two people, one slotS1 conflictA message that the time was just taken, and a refreshed list.
NFR-02: phone screensEvery screenEvery step works at 360 px wide without sideways scrolling.

Two decisions sit inside this table. First, the practice manager confirmed that a patient may move or cancel online only if the appointment starts at least 24 hours from now. Exactly 24 hours counts as allowed. Second, the screen does not apply that rule itself. It sends the request and shows what the server answers.

Why keep the rule on the server? Because the server is the one place every client has to pass through. A screen that works out the 24 hours on its own can disagree with the server. Then the patient sees one answer on screen and another on the phone. The screen only explains the answer.

Markdowndocs/screens.md
## S5 Cancel a booking
Route: /my-bookings/[bookingId]/cancel
Traces to: FR-02, FR-02.1, FR-02.2, FR-02.3, NFR-02
Purpose: let a patient cancel their own booking.
Shows: the booking (clinician, day, time) and one button, "Cancel this booking".
Calls: POST /api/bookings/{bookingId}/cancel

States:
- ready: booking details and the button.
- submitting: button disabled, text changes to "Cancelling".
- success: "Your booking is cancelled" and a link to My bookings.
- inside the notice period (422): show the server's message with the clinic phone number and opening hours. Booking unchanged.
- not found (404): "We could not find that booking". Do not say why.
- error (network or 500): a plain message. Tell the patient to check My bookings before trying again.

One screen plan entry. Keep one such entry per screen, in the docs folder, so assistants and reviewers can read it.

The last state deserves a second look. If the connection drops after the request left, the server may have cancelled the booking even though the screen never heard back. So the message must not promise that nothing changed. You will build that message in Calling the API from the Frontend.

Step-by-step workflow

  1. Step 1: Re-read the workflow map and the Must requirements

    Have your Module 1 workflow map and the scenarios open. Mark every step where the person needs to see something new or make a new choice.

    What you should see: A marked-up workflow with a number beside each step that needs a screen.

  2. Step 2: Name the screens

    Give each screen an ID (S1, S2 ...), a route and a one-sentence purpose. Apply the splitting and joining rules.

    What you should see: A screen table with five or six rows for a small project.

  3. Step 3: List the states for each screen

    Use the standard state names. For each state, write what the person sees and where the state comes from: a scenario or an API problem.

    What you should see: A state table in which every row has a source.

  4. Step 4: Trace scenarios to screens

    Walk through every acceptance scenario and find its screen and state. Add anything that has no home. Remove any screen that serves no scenario.

    What you should see: No orphan scenario and no orphan screen.

  5. Step 5: Ask an assistant to challenge the plan

    Use the prompt card. Treat the answer as questions to think about, not as changes to accept.

    What you should see: A short list of gaps, each marked accepted, rejected or 'ask the client'.

  6. Step 6: Save the plan next to the other documents

    Store it as docs/screens.md with the date. From now on, a screen that is not in the plan is not built.

    What you should see: A reviewed plan the assistant can be given as context in the next lesson.

From workflow to screen plan
  1. Workflow map

    Module 1

  2. Screen list

    S1 to S5

  3. States

    Loading to conflict

  4. Trace

    Scenarios to screens

  5. Assistant challenge

    Gaps as questions

  6. Saved plan

    docs/screens.md

Each stage feeds the next. The trace in the middle is where gaps show up.

What the assistant can and cannot do when planning screens

An assistant is good at asking 'what if' questions at speed. It has seen many applications, so it can remind you of states you forgot. It has not met Tidewell's patients and does not know the clinic's rules, so it cannot decide which screens matter.

TaskAssistant's partYour part
Listing screensPropose a list from your workflow and scenarios.Keep only screens that trace to a requirement.
Finding statesPoint out loading, empty and error cases you missed.Decide what the person should see in each.
Checking the traceSpot scenarios that have no screen.Confirm with the scenario owner, and fix the plan.
Wording messagesSuggest plain-language drafts.Check every rule and number against the client's decisions.
Choosing policyNothing. Flag it as a question.Ask the role that owns the rule, such as the practice manager.

Conclusion and your next step

A good screen plan is short and traceable. You list the screens from the workflow, name the states of each one, and check that every scenario lands on a screen. The assistant helps you find gaps, but the plan stays yours.

Your next step: write the screen list and state table for your own capstone project, then continue to Building Components with an Assistant. There you turn one screen from the plan into small, reviewed pieces.

For more practice, try the Appointment Booking Portal project, which has a similar clinic scenario. The Screen to Component Plan prompt helps with the next step, and the module overview, Frontend and API Integration, shows where this lesson fits.

Reusable prompt

Screen plan reviewer

Checks a draft screen list and state table against your scenarios and API problems, and reports gaps as questions.

You are reviewing a screen plan. Do not write code, choose a design or add features.

Fictional clinic: Tidewell Physiotherapy. Out of scope: payments, insurer billing, clinical notes. Staff screens come later.

Screens in my draft:
S1 Choose a clinician and date, then see free slots (/book) - FR-01
S2 Confirm a booking and see the confirmation - FR-01
S3 My bookings (/my-bookings) - FR-02
S4 Move a booking (/my-bookings/[bookingId]/move) - FR-02
S5 Cancel a booking (/my-bookings/[bookingId]/cancel) - FR-02

Scenarios: FR-01 see free slots; FR-02.1 cancel outside the notice period; FR-02.2 cancel inside it (told to phone the clinic); FR-02.3 someone else's booking (existence not revealed). NFR-02: every step works at 360 px wide.

API problems the screens may meet: 400 invalid-request, 404 not-found, 409 slot-taken, 422 notice-period, 500 internal-error, and no answer at all (network error).

Tasks:
1. For each screen list the states I have not covered, using these names: loading, empty, error, ready, submitting, success, conflict.
2. List any scenario that has no screen and any screen that serves no scenario.
3. Mark each finding "Proposed". Where the answer depends on a business rule, write "Decision needed" and name the role.
4. Do not propose new screens unless a scenario needs one, and say which.
Show the reusable template

Replace each {{placeholder}} with your own details.

You are reviewing a screen plan. Do not write code, choose a design or add features.

Context: {{organisation_and_scope}}

Screens in my draft:
{{screen_list_with_routes_and_requirements}}

Scenarios: {{acceptance_scenarios}}

API problems the screens may meet: {{api_problem_codes}}

Tasks:
1. For each screen list the states I have not covered, using these names: loading, empty, error, ready, submitting, success, conflict.
2. List any scenario that has no screen and any screen that serves no scenario.
3. Mark each finding "Proposed". Where the answer depends on a business rule, write "Decision needed" and name the role.
4. Do not propose new screens unless a scenario needs one, and say which.

Expected output and limitations

A list of findings grouped by screen. Each one is marked Proposed, missing states are named from your standard set, and anything that depends on a business rule is written as 'Decision needed' with a role.

Sample responseIllustrative — your output will differ
S1 Choose a clinician and date
  Proposed: empty - no free times on the chosen date.
  Proposed: conflict - 409 slot-taken after the patient confirms.
  Proposed: error - no answer from the server.

S3 My bookings
  Proposed: empty - the patient has no upcoming bookings.

S5 Cancel a booking
  Proposed: not found - 404, same message whether the booking exists or not (FR-02.3).
  Decision needed: what the patient sees if the cancel request times out. Role: practice manager.

Scenario with no screen: none found.
Screen with no scenario: S2 has no acceptance scenario of its own. Ask the client whether a confirmation scenario should be written.

Limitations to keep in mind

  • The assistant works from typical systems. It may suggest states that do not apply, such as 'offline mode', which Tidewell set aside as a non-driver.
  • It may add screens or features that no requirement asks for. Strike any finding you cannot trace.
  • It cannot tell you what the clinic wants patients to see after a failed cancellation. That is a decision for a named role.

Common errors and how to fix them

The plan lists screens but no states.

Why it happens: Only the happy path was imagined.

Fix: Add the standard state set to every screen and write where each state comes from.

A screen has no requirement or scenario behind it.

Why it happens: It was suggested by the assistant or copied from a similar product.

Fix: Trace it. If nothing supports it, remove it or put it on the candidate list.

The screen is designed to decide a business rule, such as the 24-hour notice period.

Why it happens: The rule was copied into the interface to save a round trip.

Fix: Keep the rule on the server and let the screen show the server's answer.

Validation checklist

Tick each item once you have confirmed it.

Hands-on exercise

Screen plan for Ferngate's parts form

Ferngate Cycle Repairs needs a way for a mechanic to record a part taken for a job. Write a screen list with routes and a state table for the main screen, then trace it to the acceptance scenarios you wrote earlier. Run the Screen plan reviewer and mark each finding accepted, rejected or sent to the owner.

You will need

  • Your Ferngate requirement 'A mechanic can record a part taken for a job' and its scenarios.
  • Note: mechanics share one tablet and often have greasy hands.
  • Note: the workshop's internet connection is unreliable.
  • Note: the low-stock threshold is still 'to be agreed'.

Acceptance criteria

Your work is done when every one of these is true.

Hints (2)
  • Ask what a mechanic sees if the part number does not exist.
  • A shared tablet means the screen should never assume who is using it. Ask how the mechanic says who they are.
Show a model answer

A strong answer lists a handful of screens, such as 'Choose a job', 'Record a part' and 'Recent entries'. The main screen has ready, submitting, success, error (unknown part), a lost-connection state and a conflict if two entries clash. Each state names its source, for example the scenario about an unknown part. The low-stock threshold is not decided in the plan: it is marked 'Decision needed' for the owner. The lost-connection message says the entry may or may not have been saved and tells the mechanic where to check. Rejecting an assistant suggestion such as a supplier ordering screen shows that the scope held.

Knowledge check

Choose an answer, then check it. Nothing is recorded — this is for you.

  1. 1.Which is the best reason to list the states of a screen before building it?
    Show the answer and explanation

    Answer: B. Listing states forces a decision about every situation the person can meet. It does not make the screen look better, which is the tempting answer, because looks are a separate task. It also does not replace testing: it only gives you the cases to test.

  2. 2.The assistant proposes a 'My profile' screen for Tidewell. No requirement mentions it. What should you do?
    Show the answer and explanation

    Answer: C. Every screen should trace to a requirement or scenario. 'Most systems have one' is tempting but it is not a reason: it adds unreviewed scope. Building it last still builds it.

  3. 3.Where should the 24-hour notice rule be applied when a patient cancels?
    Show the answer and explanation

    Answer: B. The server is the one place every request must pass, so the rule lives there. Putting it in the screen feels faster, but the two copies can disagree, and then the patient sees different answers on screen and on the phone. Two separate copies are the same problem twice.

Frequently asked questions

What is the difference between a screen and a page?

In everyday use they mean much the same thing. 'Screen' puts the focus on what the person sees at one moment, which can change as data loads. 'Page' puts the focus on the web address. This course uses 'screen' when planning and 'page' when talking about routes.

Do I need to draw wireframes before I plan screens?

No. A list with a purpose, a route, a requirement and the states is enough to start. A rough sketch can help you think, but the list is what you check against the scenarios. You can add drawings later if the client needs them.

What are UI states?

A UI state is the situation a screen is in at a moment, such as loading, empty, showing an error or showing data. A screen is always in exactly one of them. Naming them up front stops you forgetting the less happy ones.

Should I design the screens before or after the API?

Plan the screens from the workflow, and write the API contract from the same workflow. If either one changes, update the other. In this course the contract came first, so the screen plan can list the exact errors it must handle.

Written by
PromptFable Editorial
Last updated 19 Nov 2026
Review
Reviewed by Waseem Nadir, Technical Reviewer
Last reviewed 27 Nov 2026

References

Primary sources for the technical details in this lesson. Vendor platforms change — check the official page if anything here looks different from what you see.

PromptFable is independent and is not affiliated with, endorsed by or sponsored by Anthropic, Google, OpenAI or any other vendor. Claude, Gemini, Google AI Studio and other product names are trademarks of their respective owners.