Add POI feature and imporve the overall backend implementation
This commit is contained in:
@@ -49,15 +49,18 @@ ONBOARDING_STEPS = [
|
||||
# Phase 2: Core Setup
|
||||
"setup", # Basic bakery setup and tenant creation
|
||||
|
||||
# Phase 2a: AI-Assisted Inventory Setup (REFACTORED - split into 3 focused steps)
|
||||
# Phase 2a: POI Detection (Location Context)
|
||||
"poi-detection", # Detect nearby POIs for location-based ML features
|
||||
|
||||
# Phase 2b: AI-Assisted Inventory Setup (REFACTORED - split into 3 focused steps)
|
||||
"upload-sales-data", # File upload, validation, and AI classification
|
||||
"inventory-review", # Review and confirm AI-detected products with type selection
|
||||
"initial-stock-entry", # Capture initial stock levels
|
||||
|
||||
# Phase 2b: Product Categorization (optional advanced categorization)
|
||||
# Phase 2c: Product Categorization (optional advanced categorization)
|
||||
"product-categorization", # Advanced categorization (may be deprecated)
|
||||
|
||||
# Phase 2c: Suppliers (shared by all paths)
|
||||
# Phase 2d: Suppliers (shared by all paths)
|
||||
"suppliers-setup", # Suppliers configuration
|
||||
|
||||
# Phase 3: Advanced Configuration (all optional)
|
||||
@@ -81,6 +84,9 @@ STEP_DEPENDENCIES = {
|
||||
# Core setup - no longer depends on data-source-choice (removed)
|
||||
"setup": ["user_registered", "bakery-type-selection"],
|
||||
|
||||
# POI Detection - requires tenant creation (setup)
|
||||
"poi-detection": ["user_registered", "setup"],
|
||||
|
||||
# AI-Assisted Inventory Setup - REFACTORED into 3 sequential steps
|
||||
"upload-sales-data": ["user_registered", "setup"],
|
||||
"inventory-review": ["user_registered", "setup", "upload-sales-data"],
|
||||
@@ -98,8 +104,8 @@ STEP_DEPENDENCIES = {
|
||||
"quality-setup": ["user_registered", "setup"],
|
||||
"team-setup": ["user_registered", "setup"],
|
||||
|
||||
# ML Training - requires AI path completion (upload-sales-data with inventory review)
|
||||
"ml-training": ["user_registered", "setup", "upload-sales-data", "inventory-review"],
|
||||
# ML Training - requires AI path completion AND POI detection for location features
|
||||
"ml-training": ["user_registered", "setup", "poi-detection", "upload-sales-data", "inventory-review"],
|
||||
|
||||
# Review and completion
|
||||
"setup-review": ["user_registered", "setup"],
|
||||
|
||||
Reference in New Issue
Block a user