How organicportal/organicportalfrontend works
OrganicPortal is an Angular portal with public organic-information and certified-product pages, QR information, authentication, and an authenticated management interface. Users enter through routed pages; protected interface routes are checked against user groups, while the app shell initializes authentication and browser-storage state. Management includes seed, company, and profile areas. The graph captures documented route dispatch and sampled storage/interceptor behavior; several page capabilities are clear from the tree, but their internal calls were not sampled, so those links are omitted.
Main entry points: main.module.ts Main routes · app.routes.ts Root routes · localstorage.effects.ts Storage effects · http-interceptor.service.ts HTTP interceptor
Components 22
Routing and shell
- Application shell
src/app/app.component.ts - Root routes
src/app/app.routes.ts - Main routes
src/app/main/main.module.ts
Public portal
- Organic information
src/app/main/pages/organic-info - Organic map
src/app/main/pages/organic-map - Certified products
src/app/main/pages/certificated-products/certificated-products.service.ts - QR information
src/app/main/pages/qr-info
Identity and access
- Authentication
src/app/main/pages/auth/auth.service.ts - Login
src/app/main/pages/auth/login - Group access guard
src/addons/guards/user-groups.guard.service.ts
Account management
- Management interface
src/app/main/pages/interface - Seed management
src/app/main/pages/interface/seed-management/seed-management.service.ts - Company management
src/app/main/pages/interface/my-companies - User profile
src/app/main/pages/interface/my-profile
Shared platform
- App configuration
src/app/app.config.ts - HTTP interceptor
src/addons/services/http-interceptor.service.ts - Authentication state
src/app/store/actions/auth.actions.ts - Storage actions
src/app/store/actions/localstorage.actions.ts - Storage effects
src/app/store/effects/localstorage.effects.ts - Browser local storage
- Storage state model
src/app/store/models/localstorage/models.ts
Other components
- Visitor
Connections 19
- Visitor → Root routes: opens pages
src/app/app.routes.ts - Root routes → Main routes: loads default
src/app/app.routes.ts - Root routes → Authentication: routes to
src/app/app.routes.ts - Root routes → QR information: routes to
src/app/app.routes.ts - Main routes → Organic information: loads route
src/app/main/main.module.ts - Main routes → Certified products: loads route
src/app/main/main.module.ts - Main routes → Organic map: loads route
src/app/main/main.module.ts - Main routes → Management interface: loads route
src/app/main/main.module.ts - Main routes → Group access guard: guards route
src/app/main/main.module.ts - Authentication → Login: includes login
src/app/main/pages/auth/auth.module.ts - App configuration → HTTP interceptor: registers
src/app/app.config.ts - App configuration → Storage effects: registers
src/app/app.config.ts - Application shell → Storage actions: dispatches init
src/app/app.component.ts - Application shell → Authentication state: dispatches init
src/app/app.component.ts - Storage effects → Storage actions: handles actions
src/app/store/effects/localstorage.effects.ts - Storage effects → Browser local storage: reads and writes
src/app/store/effects/localstorage.effects.ts - Storage effects → Storage state model: uses model
src/app/store/effects/localstorage.effects.ts - HTTP interceptor → Storage actions: dispatches removal
src/addons/services/http-interceptor.service.ts - HTTP interceptor → Authentication state: resets auditor
src/addons/services/http-interceptor.service.ts