● Travel Never Stops. Neither Do We. 365 Days a Year.

Web Application Developer Handover for Screen State Contracts

Give designers and developers a shared approval-screen contract for loading, invalid, forbidden and uncertain states, including accessibility tests.

Two software colleagues arrange paper wireframes beside a state-transition sketch

An approval screen can look complete in a design file while leaving the most consequential behaviour undefined. A button may appear disabled, a success banner may be drawn, and an error message may exist, yet none of those pictures explains what happens after a lost response, an expired permission, or a keyboard user's failed submission.

A useful web application developer handover turns one screen into a testable agreement among design, frontend, backend, and quality assurance. The agreement describes exactly what the person sees, what the system knows, which data survives a transition, and what evidence permits the interface to call a decision final.

Establish the Boundary of One Approval Screen

Consider a reviewer opening an internal approval page for a proposed travel itinerary exception. The person can inspect an existing request, read its supporting rationale, enter a decision note, and choose Approve or Return for Changes. This article covers that single approval interaction, not request creation, supplier booking, payment collection, notification delivery, or a complete administration platform.

Within this boundary, a design-to-development handover has four objects: the displayed request, an editable but uncommitted note, a permission to decide, and a server-recorded decision. Those objects have different lifetimes. The note may exist only in the browser until submitted. Permission can change while a page remains open. A recorded decision must be established by authoritative application evidence rather than by the colour of a banner.

The proposed screen should identify the request reference, current decision status, requester context needed for review, relevant supporting details, decision note, actions, and a status-message region. Every field requires a source and an ownership decision. For example, the request reference originates from the application record; a typed note is a draft; the permission comes from a current authorization check. A designer should not imply that a visible action grants authority.

Record Assumptions Before Discussing Pixels

The handover should state whether one reviewer or several may act on a request, whether a note is mandatory, whether a return decision is reversible, and whether the screen can be reopened after an approval. If any answer is unresolved, record it as a decision required from the product owner, with an owner and a date for resolution. Treating a question as a settled rule creates more risk than leaving it visibly open.

For this worked specification, assume an authenticated reviewer, one request at a time, a mandatory note for Return for Changes, and no approval-side supplier or payment operation. Assume that two reviewers can open the same request, but only a decision against the current record revision can succeed. These are hypothetical design choices, not claims about a live TravelTech365 product.

Deliverables should include an annotated screen, a state inventory, a focus-and-announcement matrix, a versioned result contract, event-to-result mappings, representative test fixtures, and signed acceptance evidence. Each artefact must refer to the same named states and actions. Without that shared vocabulary, a green mockup, a frontend boolean, and a backend status can silently describe three different situations.

Define the Six States Before Finalising the Visual Design

A UI state handover contract should be written before individual animations or components are approved. The six states below describe the reviewer's experience, not a replacement for the stored request lifecycle. Some are mutually exclusive at the page level; others, such as a validation message, may be attached to a form while the record remains awaiting review.

Illustrative state matrix for one approval page
Screen state Visible behaviour Focus and announcement Data to retain or remove
Empty No eligible request is returned; show an explanation and a safe way back to the work queue, not a blank card. On navigation, focus the main heading; expose “No request available for review” as readable text. On an in-place refresh, keep focus on Refresh and announce the empty result. Retain nonsensitive queue filters and navigation context; do not create a fabricated request draft.
Loading Show a stable heading, progress text, and a placeholder sized to avoid major layout movement. Decision controls are unavailable. Keep focus on the control that initiated loading; announce “Loading request details” once, then report completion without repeatedly interrupting speech. Retain an existing note and request reference during refresh; do not replace entered text with placeholder data.
Invalid Show a concise error summary and field-specific guidance, such as a missing return note; never erase all inputs to reset a form. After submission, focus the error summary or first invalid field according to the documented pattern; announce what needs correction and associate each field with its error. Keep all permitted inputs, the chosen action, and request context. Remove only a value explicitly prohibited or unsafe to retain.
Authorised Show the current request and permitted actions. An approval has not occurred merely because Approve is enabled. On initial navigation, place focus at the page heading; on refresh, preserve focus where possible. The heading communicates readiness without an unnecessary live alert. Keep the current draft, authoritative revision, and request identifier; do not silently overwrite the note with server data.
Forbidden Replace protected details with a clear access-denied view and a safe route away; avoid revealing private record facts through an error message. Move focus to the access-denied heading when the view replaces the form; announce “You no longer have permission to review this request.” Clear protected display data and sensitive browser-held drafts according to agreed policy; retain only safe navigation information.
Uncertain A decision was sent but its outcome cannot be verified. Show “Decision not yet confirmed” and a non-duplicating review path, not a success state. Focus the status heading after the pending action concludes without a reliable result; announce uncertainty once, with the next safe step. Preserve the attempted action, note, request reference, revision, and operation identifier as permitted for reconciliation; prevent blind resubmission.

Each state also needs an exit rule. Empty can move to Loading after choosing another request. Loading can settle as Authorised, Empty, Forbidden, or an explicitly handled retrieval failure. Invalid can return to Authorised after correction. Uncertain must not transition to Approved simply because a timeout message disappears. A confirmed server result or an authorized reconciliation finding must drive that change.

Separate Screen States from Business States

The stored request might be Awaiting Review, Approved, Returned, or another product-defined value. These are business facts. Loading is only a presentation condition; Invalid may concern the entered note; Forbidden concerns access; Uncertain describes incomplete knowledge about an attempted mutation. Naming them in separate fields prevents a skeleton animation from masquerading as a database transition.

Use a small decision ledger for each transition: trigger, previous UI state, expected next UI state, authoritative evidence required, and fallback if evidence is missing. A transition marked “successful” only because the click handler ran should fail review. Likewise, an optimistic message that appears before a durable decision may be labelled “Submitting” but not “Approved.”

Specify Focus Movement and Accessible Feedback as Behaviour

Approval screen error states must be described in interaction terms rather than represented only by red borders. A reviewer needs to know whether a message is actionable, which control needs attention, and whether entered work remains intact. The handover should therefore pair every state with a focus destination, an announcement expectation, and a recovery action.

For a new page, a predictable main heading gives keyboard and screen-reader users a stable starting point. For an in-place refresh, leaving focus on Refresh avoids forcing the reviewer to start over. When a validation summary appears after submission, focus should go to that summary or the first failed field using one agreed pattern. The summary should identify the problem and offer a clear route to the input. An error icon or colour alone is insufficient.

When access is revoked and the previous form disappears, focus cannot safely remain on a removed button. Move it to the replacement access-denied heading and discard protected content as required by the data policy. When a decision outcome becomes uncertain, focus belongs on the new status heading or message control, while the action buttons remain gated against accidental duplicate submissions.

Announcements should communicate changes that are not otherwise evident through focus. A short status region can report “Submitting decision” and later “Approval recorded” when supported by evidence. Avoid announcing a loading message on every render or stacking an alert and focus change that repeat the same long sentence. Specify exact user-facing text in the design artefact, then verify the spoken sequence with the chosen assistive-technology combinations rather than assuming an accessibility attribute produces identical results everywhere.

Trace a Complete Keyboard-Only Journey

The acceptance path begins with opening the request without a mouse, reading its heading, moving through request details, entering a note, and activating an action with the keyboard. Tab and Shift+Tab must follow the visual and logical reading order. Enter and Space should activate controls as appropriate to their semantics. If a confirmation dialog is used, its opening focus, dialog boundaries, Cancel behaviour, and return focus must be documented. Escape should dismiss only where that is appropriate and must not silently discard a submitted decision.

Test what happens when a server response arrives while the reviewer is focused in the note field. A refresh should not forcibly move focus or replace a partially typed note. Test the case where the user activates Approve and the control becomes unavailable: focus should not vanish into the page body. The status region or an appropriate stable element must provide a coherent continuation. If an action is intentionally disabled, its reason should be understandable before the user reaches a dead end.

Check Enlarged Text Without Hiding the Decision

Run the same journey with enlarged browser text, narrow viewport width, and substantial zoom. Inspect the request summary, full note, error descriptions, approval controls, and status messages, not only the first viewport. Content should reflow into a readable order without overlapping a sticky footer, clipping the note field, or separating a label from its input. Any horizontal scrolling required for a genuinely wide data table should not be imposed on the main form.

A long request reference, translated button label, or multi-sentence error can expose problems missed by short sample copy. Prepare test fixtures with lengthy text and visible focus outlines. The test report should identify the browser, viewport or zoom configuration, keyboard path, screenshot, and whether every control remained reachable. These are project acceptance conditions; supported devices and test combinations still need to be agreed.

Reviewers match physical interface layout cards with colored state markers

Bind UI Events to a Versioned Backend Result Contract

The approval screen should not infer a business decision from a visual effect. Instead, the frontend consumes an agreed backend result with an explicit contract version and machine-readable outcomes. This example proposes a project-owned contract named approval-result.v1; it is an illustrative specification, not a field set promised by any external provider.

The read result should distinguish the request identifier, current record revision, stored business status, permission to take each action, and server-provided display content. A mutation result should carry the attempted operation identifier, the request and resulting revision when known, a commit outcome supported by server evidence, a reason code for non-success, and a correlation reference for investigation. The exact field names and response transport remain implementation decisions to record and test.

Proposed event-to-result mapping, independent of frontend framework
User or system event Requested evidence Allowed screen reaction
Open request Read result with contract version, request reference, revision, status, and permissions. Render Authorised only if the result permits review; otherwise choose Empty or Forbidden as warranted.
Choose Return without required note Local validation, followed by server validation on any actual submission. Render Invalid, focus the agreed error destination, and preserve the draft; do not send a knowingly incomplete mutation.
Submit decision Mutation request with request reference, expected revision, action, note, and unique operation identifier. Show a nonfinal submitting state; protect against another activation until outcome handling is complete.
Receive confirmed application Authoritative mutation result showing the operation was applied and the committed business revision. Display the recorded decision and move to a read-only or next-task view as specified.
Receive validation, conflict, or permission denial Explicit nonapplication result and actionable reason, with any safe current revision details. Show Invalid, a stale-record conflict view, or Forbidden; never announce success.
Lose the response No reliable result; operation reference and traces remain available for investigation. Display Uncertain, preserve permissible inputs, and begin a defined reconciliation path without blind retry.

Version the Semantics, Not Just the Payload Shape

Two results may contain the same fields yet mean different things. A change from “accepted for processing” to “recorded as final” is a semantic change even if both responses use a word such as success. The handover should define permitted enum values, nullability, required evidence, and the meaning of each outcome. It should also specify how the UI behaves when it receives an unknown contract version or reason code: show a safe generic message, log the correlation reference, and avoid guessing the committed state.

Write example fixtures for an approved decision, missing note, record revision mismatch, permission loss, and a mutation that never returns a response. Contract tests should verify that every documented enum is handled and that an omitted revision cannot accidentally be treated as the latest. A compatible addition can be tested without changing the meaning of an existing status; a breaking interpretation requires coordinated deployment or explicit version handling.

Some failures are not equivalent. An explicit application refusal with evidence that nothing was applied can permit editing and another intentional submission. A browser timeout provides no such guarantee. A successful status read showing the old value does not, by itself, prove that a delayed mutation cannot still commit afterward. The proposed design needs a durable operation record, a server-enforced uniqueness or idempotency rule where feasible, and a reconciliation method that can establish the final disposition of the specific operation.

Only after the backend can establish that the operation was applied, definitively not applied, or safely superseded should the UI enable the corresponding next step. If the system lacks those safeguards, manual investigation and an explicit hold are preferable to an automatic retry. The interface must never represent the absence of confirmation as a rejection or an approval.

Walk Through a Hypothetical Review and Its Failure Paths

Imagine request TRV-4821, a fictional proposed itinerary exception awaiting internal approval. Reviewer A opens revision 7 and reads the context. The screen shows Authorised, with a draft note field and two actions. The business record remains Awaiting Review. Nothing in this example confirms a flight seat, supplier inventory, payment, ticket, or customer booking.

Reviewer A enters “Reviewed against the submitted exception rationale” and selects Approve. The frontend creates a unique attempt reference, sends the action with expected revision 7, and shows “Submitting decision.” Suppose the application commits the decision as revision 8 and returns a matching applied result. Only then does the interface show “Approval recorded,” with the recorded revision and a clear route back to the queue. The operation reference and result can be matched in diagnostic evidence.

Now vary the order of events. Reviewer B also opened revision 7 before A submitted. When B attempts Return for Changes, the backend compares the expected revision against current revision 8. In this hypothetical rule set, it refuses the stale mutation. B sees a conflict explanation and a Review Latest Request action. B's unsent note remains available locally while the visible record is refreshed; the system does not secretly submit the old note against the new revision.

Distinguish Three Failures That Look Similar to Users

First, the reviewer chooses Return for Changes with an empty mandatory note. This is Invalid. The application can prevent submission, focus the field-level error, and preserve the rest of the page. Server validation still matters because client validation is not authoritative.

Second, the permission changes after the page loads. A previously enabled Approve button may remain visible briefly, but the backend denies the action. This is Forbidden, not an intermittent frontend bug to bypass. Protected record data disappears according to policy, the denial heading receives focus, and a non-sensitive navigation option remains.

Third, the network drops after A selects Approve. The operation may have reached the backend and committed, or it may not. The UI shows Uncertain. It retains the operation reference and safe draft context, offers Check Decision Status only through the designed reconciliation flow, and does not expose an unguarded Approve button. If the system later proves that this exact operation committed revision 8, the screen can show the recorded result. If no conclusive evidence is available, the request stays in an investigation path.

This distinction protects user trust. A loading spinner proves only that the interface is waiting. A saved browser draft proves only that text was retained locally. A stored application approval proves an internal decision when backed by its authoritative record. It does not automatically prove anything about a supplier reservation or payment outcome, neither of which this screen attempts to perform.

Produce Evidence That Reviewers Can Actually Inspect

For TRV-4821, create an evidence packet containing the six state screenshots, test-data setup, keyboard traversal notes, enlarged-text observations, frontend event trace, redacted request and response examples, and matching server-side operation or audit references. Include the before-and-after revision for the confirmed mutation and the refusal reason for the stale attempt. Redact personal or commercial details that are unnecessary to demonstrate behaviour.

The packet should also show the uncertain case without falsifying resolution: timestamp of the attempted click, client correlation reference, last confirmed revision, the unavailable or inconclusive response, and the agreed escalation owner. A screenshot of a green banner is not proof of a committed decision. The evidence should make it possible for another engineer to reproduce the outcome from an identified fixture, rather than trust a narrated demonstration.

Convert the Handover into Executable Acceptance Checks

Accessible interface acceptance is more useful when every check states an input, an expected visible result, an authoritative source, and an observable pass condition. The following checklist is suitable as a starting point for this one-screen specification. Each item should carry an owner and evidence reference in the project's actual handover record.

  • Entry: Opening a valid request displays the current revision and permissions; opening an unavailable request produces the defined Empty or Forbidden view without leaking protected details.
  • Loading: Slow reads show progress without moving focus unexpectedly or erasing an existing note; a failed read does not produce a fabricated request.
  • Validation: Missing required text produces a readable summary and field guidance; correction is possible without re-entering unrelated information.
  • Authorisation: A permission change is enforced by the backend, and the forbidden screen removes inappropriate actions and protected content.
  • Keyboard: All interactive elements are reachable in logical order; decision, cancellation, correction, and recovery work without pointer input.
  • Enlarged text: Long labels, errors, and user notes remain readable and operable under the agreed zoom and narrow-width test configurations.
  • Submission: The interface never says Approved while only a request is in flight; the final message identifies the authoritative committed outcome.
  • Concurrency: A stale expected revision cannot silently overwrite a newer decision; the user sees a clear conflict path and retains safe unsent text.
  • Uncertainty: A lost mutation response produces an unresolved message, preserves an attempt reference, and does not trigger an uncontrolled duplicate.
  • Contract safety: Unknown versions, unexpected values, and incomplete result fields fail conservatively and produce a traceable diagnostic reference.
  • Evidence: Every critical state has a reproducible fixture and an inspection record; confirmed approval includes an auditable backend result.

Use negative tests as deliberately as happy paths. Disable a network connection just after submission, expire the user's access, return an unrecognized reason code, and simulate a second reviewer changing the record. Repeat relevant cases with slow input, long notes, and a browser refresh. For the uncertain case, tests must distinguish an operation that was committed before the response vanished from one that provably never began. Merely observing identical banners is not sufficient.

Record genuine limitations. For example, the team may have agreed to support certain browsers and assistive-technology combinations but not every possible device. A client may require a particular retention period for unsent notes, but that policy cannot be inferred from the mockup. Mark these as explicit choices rather than assuming that a universal default exists.

Sign Off the Contract, Not the Screenshot

The handover is ready when design, frontend, backend, product ownership, and testing all agree on the same transition table, the same decision evidence, and the same recovery behaviour. Ask the designer to sign off focus and message copy; the backend owner to sign off permission, revision and commit semantics; the frontend owner to sign off state mapping and draft preservation; and the tester to attach keyboard, enlarged-text, conflict, and uncertain-outcome evidence.

Before release, check three questions in a short review: Can a person finish or safely stop the task without losing permitted work? Can the interface explain what it knows without pretending to know more? Can the team trace a displayed final decision to a specific authoritative operation? If any answer is uncertain, the screen is not complete simply because its styling is approved.

For wider context on application architecture and connected workflows, see TravelTech365's guide to custom web application development. The narrower discipline here is the contract for one approval screen: six observable states, explicit focus and announcement rules, a versioned backend result, and verifiable evidence that business decisions remain independent of client-side display and animation.