# Build a browser interface that users can follow A frontend connects a person's goal to a system operation. The user needs to know what they can do, whether an action succeeded, and how to recover when it fails. The maintainer needs to locate the code and state that produce those results. This is an overview. The repository does not yet contain separate frontend topic guides or a runnable frontend application. ## Start with one complete user flow Write down the starting state, action, result, and recovery path before choosing components. For example, a form that creates a record needs more than a submit button: | State | What the user needs | What the system must define | | --- | --- | --- | | Before submission | Clear labels and required fields | Input shape, defaults, and authorization | | Submitting | Visible progress | Request ownership and whether another submission is allowed | | Success | Confirmation and the saved result | Authoritative response and local state update | | Invalid input | Field-specific correction | Validation errors that map back to the form | | Request failure | An explanation and a safe next action | Whether the request reached the server and whether retry can duplicate work | Trace that flow through the route, component, request, server operation, and state update. Keep product language in the interface; put diagnostic detail in logs or developer tools. Test refresh, back navigation, keyboard use, and a failed request where they affect the flow. ## Use the web platform deliberately Semantic HTML gives elements defined roles and behavior. Use a `