How coelho-labs/portal-shell works
Portal Shell is a React micro-frontend host. The user-facing flow is browser entry into the shell, route selection, then lazy loading of Planning Poker; the shell also places remote content-delivery widgets in its layout. Theme selection is a separate shared-UI capability. The home page shown is starter content rather than a developed product feature. Edges follow the sampled imports and calls plus README documentation; remote services are external to this repository.
Main entry points: App.tsx Shell router and layout · theme-toggle.tsx Theme selector · module-federation.config.ts Remote configuration · main.tsx React entry
Components 12
Shell experience
- React entry
src/main.tsx - Shell router and layout
src/App.tsx - Home page
src/pages/home/Home.page.tsx
Remote modules
- Planning Poker MFE
- Content delivery MFE
Theme and UI
- Theme selector
src/components/theme-toggle.tsx - Theme state
src/hooks/use-theme.ts - Button component
src/components/ui/button.tsx - Dropdown menu
src/components/ui/dropdown-menu.tsx - Class utilities
src/lib/utils.ts
Federation runtime
- Remote configuration
module-federation.config.ts
Other components
- Portal user
Connections 14
- Portal user → React entry: opens portal
README.md - React entry → Shell router and layout: renders
src/main.tsx - Shell router and layout → Home page: routes to
src/App.tsx - Shell router and layout → Planning Poker MFE: lazy-loads route
src/App.tsx - Shell router and layout → Content delivery MFE: lazy-loads widgets
src/App.tsx - Shell router and layout → Theme selector: renders
src/App.tsx - Theme selector → Theme state: reads and sets
src/components/theme-toggle.tsx - Theme selector → Button component: uses
src/components/theme-toggle.tsx - Theme selector → Dropdown menu: uses
src/components/theme-toggle.tsx - Button component → Class utilities: merges classes
src/components/ui/button.tsx - Dropdown menu → Class utilities: merges classes
src/components/ui/dropdown-menu.tsx - Theme state → Portal user: persists preference
src/hooks/use-theme.ts - Remote configuration → Planning Poker MFE: configures remote
module-federation.config.ts - Remote configuration → Content delivery MFE: configures remote
module-federation.config.ts