feat(admin): catalog & logistics management screens - #14
Conversation
Add full CRUD management for the master data the admin role owns (ROLE_MATRIX = Full): catalog (categories, units, products, markets + per-market pricing) and logistics (hubs, vehicles, delivery zones). Simple resources share a config-driven ResourceCrudComponent; markets and pricing get bespoke screens. Wires admin routes, two nav groups and vi/en i18n. Also: - fix(auth): resolve the post-login landing in the sign-in / unlock-session components and drop the async-racy signed-in-redirect route (admins were bounced to /home on cold loads) - chore(config): add production environment (environment.production.ts) wired via angular.json fileReplacements; default codegen spec URL to localhost Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Code Review Could Not Complete
|
| Options | Enabled |
|---|---|
| Bug | ✅ |
| Performance | ✅ |
| Security | ✅ |
| Business Logic | ✅ |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (29)
📝 WalkthroughWalkthroughThis PR adds a configurable admin CRUD framework and new catalog, market-pricing, and logistics management screens. It also updates role-based landing navigation, environment-specific API configuration, response parsing helpers, translations, routes, API generation defaults, and verification guidance. ChangesAdmin management platform
Supporting runtime and tooling updates
Estimated code review effort: 4 (Complex) | ~60 minutes Sequence Diagram(s)sequenceDiagram
participant AdminUser
participant ResourceCrudComponent
participant CatalogAdminService
participant OpenAPIClient
AdminUser->>ResourceCrudComponent: open catalog or logistics screen
ResourceCrudComponent->>CatalogAdminService: list resource rows
CatalogAdminService->>OpenAPIClient: request API data
OpenAPIClient-->>CatalogAdminService: response body
CatalogAdminService-->>ResourceCrudComponent: normalized rows
AdminUser->>ResourceCrudComponent: submit create, edit, or remove action
ResourceCrudComponent->>CatalogAdminService: invoke configured operation
CatalogAdminService->>OpenAPIClient: send normalized payload
OpenAPIClient-->>CatalogAdminService: operation result
CatalogAdminService-->>ResourceCrudComponent: completion
ResourceCrudComponent-->>AdminUser: reload rows and show notification
Possibly related PRs
Suggested reviewers: Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install timed out. The project may have too many dependencies for the sandbox. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Add full CRUD management for the master data the admin role owns (ROLE_MATRIX = Full): catalog (categories, units, products, markets + per-market pricing) and logistics (hubs, vehicles, delivery zones). Simple resources share a config-driven ResourceCrudComponent; markets and pricing get bespoke screens. Wires admin routes, two nav groups and vi/en i18n.
Also:
Summary by CodeRabbit
New Features
Bug Fixes
Documentation