Pattern: Client-side UI composition
A browser shell loads and assembles independently owned interface modules. Agree on navigation, shared state, and isolation between modules.
Context
Teams need to ship pieces of the same interface independently. The browser shell must still give users consistent navigation, identity, focus, and error recovery.
Problem
How can separately owned UI fragments form one screen in the browser?
Forces
Independent releases need a small contract for layout, navigation, and UI events. The client still has to pay for each fragment's network requests and JavaScript.
Solution
Define how the shell loads modules, shares styles and platform libraries, and passes stable identifiers. Give each module an error boundary or equivalent isolation. Treat shared shell events and route contracts as documented interfaces.
Catalog module and Ticket module converge at Browser shell.
Example
The event page shows a catalog panel and a ticket widget from different teams. The shell passes an event ID and can show a fallback if one module fails.
Resulting context
Teams can update their interfaces independently. Additional downloads, dependency compatibility, and inconsistent styles or focus behavior can hurt the experience.
Related patterns
Verify the behavior
Serve a broken new module while leaving the others healthy. Check that the shell remains navigable, preserves the current selection, and offers a useful recovery route. Watch bundle size and version conflicts with a real network budget.