02 / Frontend architecture
One frontend, many branded sites.
Open a profile on a branded site
━ Selected flow ┄ Other connections
The same frontend runs in the browser and the WebView wrapper. It calls the Platform API; each brand supplies its own colours and artwork.
The route names the shared profile page directly.
The account component uses the active brand’s icons and colours.
The component lays out the same details for a wide or narrow browser.
What we run · V1 · Shared views
- What stays shared
- The profile details route points to the same implementation across brands. Desktop and mobile layouts reuse the personal information and address components.
- Why change it?
- Changing an icon is easy. Giving just one brand a different profile screen is a different problem: the next frontend makes that an explicit choice.
Replace a page without forking its feature
━ Selected flow ┄ Other connections
The new frontend uses Core API. A brand can replace its profile screen without changing how that screen reads the cached user.
The build selects the brand’s profile page or falls back to its shared variant.
The shared page imports a details screen through a second slot. A brand can swap just that screen.
At runtime a hook reads the signed-in user from the app store. Rendering the profile does not itself fetch it again.
What we’re building · V2 · Replaceable pages
- Replace only what differs
- A brand can keep the shared profile page but supply its own details screen. Both screens accept the same typed props.
- Keep the data shared
- The screen reads the cached user through a hook. Replacing a view doesn’t mean copying account logic or shipping another brand’s UI in the bundle.
Open roles
No open role in this discipline right now.
See all open roles →