Enterprise Portal
Service Portal for Professional Intermediaries
Built a portal where professional intermediaries (lawyers, accountants, consultants) manage their clients' public service operations. The hard part wasn't the features - it was making navigation state management sane when you have breadcrumbs, tabs, sidebars, and route guards all fighting over "what page am I on?"
Professional intermediaries (lawyers, accountants, consultants) use this portal to manage their clients' public service operations. They navigate between client accounts, service views, and administrative tasks. The challenge: keep navigation state consistent when you have route guards, data resolvers, and HTTP interceptors all running at different times.
01 / The problem
Navigation state hell
Here's the issue: breadcrumbs, tabs, and side navigation all need to know "what page am I on?" But each one was maintaining its own state. Change a route, and the breadcrumbs update but the tabs don't. Switch permissions, and the side nav shows the wrong options. The UI was full of stale selections and inconsistent labels.
The root cause: scattered state management. Route guards check permissions in one place. Data resolvers load view data in another. HTTP interceptors handle auth in a third. Each one was doing its own thing, and the navigation UI was trying to piece it all together after the fact.
02 / How I solved it
Single source of truth for navigation state
I used Angular Signals for synchronous navigation state. The route owns the "current page" signal. Breadcrumbs, tabs, and side nav all derive their state from this one signal. When the route changes, everything updates together. No more stale state.
For async operations (loading view data, checking permissions), I kept RxJS. Signals are great for synchronous UI state, but they don't handle request cancellation or complex async coordination well. So the architecture is: Signals for "where am I," RxJS for "loading data for where I am."
I also separated concerns: the shell (layout, navigation) doesn't know about feature operations. Features don't know about navigation state. Route guards handle access decisions. Resolvers load view data. Interceptors handle HTTP policies. Each one has a clear responsibility.
03 / Accessibility
Keyboard navigation that actually works
A selected tab is useless if keyboard users can't navigate to it. I built reusable breadcrumbs, sidebars, and tabs with proper focus management. When you press Tab, focus moves to the next interactive element. When you press Enter, it activates the link. Arrow keys navigate within components.
The tricky part: route changes need to handle focus deliberately. When you navigate to a new page, where does focus go? I implemented focus restoration: when you go back, focus returns to where it was. When you go forward, focus moves to the main content.
Each feature supplies correct labels, destinations, and selected state. The navigation components just render what they're given. This keeps the navigation model consistent across the app.
Evidence & further reading