Improve the UI and tests
This commit is contained in:
@@ -67,6 +67,9 @@
|
||||
"expand": "Expand",
|
||||
"collapse": "Collapse"
|
||||
},
|
||||
"item": "item",
|
||||
"items": "items",
|
||||
"unknown": "Unknown",
|
||||
"status": {
|
||||
"active": "Active",
|
||||
"inactive": "Inactive",
|
||||
|
||||
@@ -34,6 +34,32 @@
|
||||
"quick_actions": "Quick Actions",
|
||||
"key_metrics": "Key Metrics"
|
||||
},
|
||||
"insights": {
|
||||
"savings": {
|
||||
"label": "💰 SAVINGS",
|
||||
"this_week": "this week",
|
||||
"vs_last": "vs. last"
|
||||
},
|
||||
"inventory": {
|
||||
"label": "📦 INVENTORY",
|
||||
"all_stocked": "All stocked",
|
||||
"low_stock": "Low stock",
|
||||
"stock_issues": "⚠️ Stock issues",
|
||||
"no_alerts": "No alerts",
|
||||
"out_of_stock": "{count} out of stock",
|
||||
"alerts": "{count} alert{count, plural, one {} other {s}}"
|
||||
},
|
||||
"waste": {
|
||||
"label": "♻️ WASTE",
|
||||
"this_month": "this month",
|
||||
"vs_goal": "vs. goal"
|
||||
},
|
||||
"deliveries": {
|
||||
"label": "🚚 DELIVERIES",
|
||||
"arriving_today": "{count} arriving today",
|
||||
"none_scheduled": "None scheduled"
|
||||
}
|
||||
},
|
||||
"procurement": {
|
||||
"title": "What needs to be bought for tomorrow?",
|
||||
"empty": "All supplies ready for tomorrow",
|
||||
@@ -72,8 +98,8 @@
|
||||
"view_all": "View all alerts",
|
||||
"time": {
|
||||
"now": "Now",
|
||||
"minutes_ago": "{{count}} min ago",
|
||||
"hours_ago": "{{count}} h ago",
|
||||
"minutes_ago": "{count} min ago",
|
||||
"hours_ago": "{count} h ago",
|
||||
"yesterday": "Yesterday"
|
||||
},
|
||||
"types": {
|
||||
@@ -101,7 +127,7 @@
|
||||
"additional_details": "Additional Details",
|
||||
"mark_as_read": "Mark as read",
|
||||
"remove": "Remove",
|
||||
"active_count": "{{count}} active alerts"
|
||||
"active_count": "{count} active alerts"
|
||||
},
|
||||
"messages": {
|
||||
"welcome": "Welcome back",
|
||||
@@ -131,16 +157,16 @@
|
||||
},
|
||||
"health": {
|
||||
"production_on_schedule": "Production on schedule",
|
||||
"production_delayed": "{{count}} production batch{{count, plural, one {} other {es}}} delayed",
|
||||
"production_delayed": "{count} production batch{count, plural, one {} other {es}} delayed",
|
||||
"all_ingredients_in_stock": "All ingredients in stock",
|
||||
"ingredients_out_of_stock": "{{count}} ingredient{{count, plural, one {} other {s}}} out of stock",
|
||||
"ingredients_out_of_stock": "{count} ingredient{count, plural, one {} other {s}} out of stock",
|
||||
"no_pending_approvals": "No pending approvals",
|
||||
"approvals_awaiting": "{{count}} purchase order{{count, plural, one {} other {s}}} awaiting approval",
|
||||
"approvals_awaiting": "{count} purchase order{count, plural, one {} other {s}} awaiting approval",
|
||||
"all_systems_operational": "All systems operational",
|
||||
"critical_issues": "{{count}} critical issue{{count, plural, one {} other {s}}}",
|
||||
"critical_issues": "{count} critical issue{count, plural, one {} other {s}}",
|
||||
"headline_green": "Your bakery is running smoothly",
|
||||
"headline_yellow_approvals": "Please review {{count}} pending approval{{count, plural, one {} other {s}}}",
|
||||
"headline_yellow_alerts": "You have {{count}} alert{{count, plural, one {} other {s}}} needing attention",
|
||||
"headline_yellow_approvals": "Please review {count} pending approval{count, plural, one {} other {s}}",
|
||||
"headline_yellow_alerts": "You have {count} alert{count, plural, one {} other {s}} needing attention",
|
||||
"headline_yellow_general": "Some items need your attention",
|
||||
"headline_red": "Critical issues require immediate action"
|
||||
},
|
||||
@@ -160,7 +186,7 @@
|
||||
"suppliers": "Suppliers",
|
||||
"recipes": "Recipes",
|
||||
"quality": "Quality Standards",
|
||||
"add_ingredients": "Add at least {{count}} ingredients",
|
||||
"add_ingredients": "Add at least {count} ingredients",
|
||||
"add_supplier": "Add your first supplier",
|
||||
"add_recipe": "Create your first recipe",
|
||||
"add_quality": "Add quality checks (optional)",
|
||||
|
||||
36
frontend/src/locales/en/purchase_orders.json
Normal file
36
frontend/src/locales/en/purchase_orders.json
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"purchase_order": "Purchase Order",
|
||||
"purchase_orders": "Purchase Orders",
|
||||
"created": "Created",
|
||||
"supplier": "Supplier",
|
||||
"order_date": "Order Date",
|
||||
"expected_delivery": "Expected Delivery",
|
||||
"items": "Items",
|
||||
"no_items": "No items in this order",
|
||||
"notes": "Notes",
|
||||
"not_found": "Purchase order not found",
|
||||
"total_amount": "Total Amount",
|
||||
"status": {
|
||||
"draft": "Draft",
|
||||
"pending_approval": "Pending Approval",
|
||||
"approved": "Approved",
|
||||
"sent": "Sent",
|
||||
"partially_received": "Partially Received",
|
||||
"received": "Received",
|
||||
"cancelled": "Cancelled"
|
||||
},
|
||||
"details": {
|
||||
"title": "Purchase Order Details",
|
||||
"quick_view": "Quick Order View",
|
||||
"summary": "Summary",
|
||||
"supplier_info": "Supplier Information",
|
||||
"delivery_info": "Delivery Information",
|
||||
"order_items": "Order Items",
|
||||
"additional_notes": "Additional Notes"
|
||||
},
|
||||
"actions": {
|
||||
"approve": "Approve Order",
|
||||
"modify": "Modify Order",
|
||||
"close": "Close"
|
||||
}
|
||||
}
|
||||
@@ -75,8 +75,8 @@
|
||||
"last_updated": "Last updated",
|
||||
"next_check": "Next check",
|
||||
"never": "Never",
|
||||
"critical_issues": "{{count}} critical issue{{count, plural, one {} other {s}}}",
|
||||
"actions_needed": "{{count}} action{{count, plural, one {} other {s}}} needed"
|
||||
"critical_issues": "{count} critical issue{count, plural, one {} other {s}}",
|
||||
"actions_needed": "{count} action{count, plural, one {} other {s}} needed"
|
||||
},
|
||||
"action_queue": {
|
||||
"title": "What Needs Your Attention",
|
||||
@@ -85,11 +85,23 @@
|
||||
"estimated_time": "Estimated time",
|
||||
"all_caught_up": "All caught up!",
|
||||
"no_actions": "No actions requiring your attention right now.",
|
||||
"show_more": "Show {{count}} More Action{{count, plural, one {} other {s}}}",
|
||||
"show_more": "Show {count} More Action{count, plural, one {} other {s}}",
|
||||
"show_less": "Show Less",
|
||||
"total": "total",
|
||||
"critical": "critical",
|
||||
"important": "important"
|
||||
"important": "important",
|
||||
"consequences": {
|
||||
"delayed_delivery_impact": "Delayed delivery may impact production schedule",
|
||||
"immediate_action_required": "Immediate action required to prevent production issues",
|
||||
"some_features_limited": "Some features are limited"
|
||||
},
|
||||
"actions": {
|
||||
"approve": "Approve",
|
||||
"view_details": "View Details",
|
||||
"modify": "Modify",
|
||||
"dismiss": "Dismiss",
|
||||
"complete_setup": "Complete Setup"
|
||||
}
|
||||
},
|
||||
"orchestration_summary": {
|
||||
"title": "Last Night I Planned Your Day",
|
||||
@@ -97,17 +109,17 @@
|
||||
"run_planning": "Run Daily Planning",
|
||||
"run_info": "Orchestration run #{{runNumber}}",
|
||||
"took": "Took {{seconds}}s",
|
||||
"created_pos": "Created {{count}} purchase order{{count, plural, one {} other {s}}}",
|
||||
"scheduled_batches": "Scheduled {{count}} production batch{{count, plural, one {} other {es}}}",
|
||||
"show_more": "Show {{count}} more",
|
||||
"created_pos": "Created {count} purchase order{count, plural, one {} other {s}}",
|
||||
"scheduled_batches": "Scheduled {count} production batch{count, plural, one {} other {es}}",
|
||||
"show_more": "Show {count} more",
|
||||
"show_less": "Show less",
|
||||
"no_actions": "No new actions needed - everything is on track!",
|
||||
"based_on": "Based on:",
|
||||
"customer_orders": "{{count}} customer order{{count, plural, one {} other {s}}}",
|
||||
"customer_orders": "{count} customer order{count, plural, one {} other {s}}",
|
||||
"historical_demand": "Historical demand",
|
||||
"inventory_levels": "Inventory levels",
|
||||
"ai_optimization": "AI optimization",
|
||||
"actions_required": "{{count}} item{{count, plural, one {} other {s}}} need{{count, plural, one {s} other {}}} your approval before proceeding",
|
||||
"actions_required": "{count} item{count, plural, one {} other {s}} need{count, plural, one {s} other {}}} your approval before proceeding",
|
||||
"no_tenant_error": "No tenant ID found. Please ensure you're logged in.",
|
||||
"planning_started": "Planning started successfully",
|
||||
"planning_failed": "Failed to start planning",
|
||||
|
||||
@@ -12,6 +12,16 @@
|
||||
"title": "Add Inventory",
|
||||
"inventoryDetails": "Inventory Item Details",
|
||||
"fillRequiredInfo": "Fill in the required information to create an inventory item",
|
||||
"summary": "Summary",
|
||||
"steps": {
|
||||
"productType": "Product Type",
|
||||
"basicInfo": "Basic Information",
|
||||
"stockConfig": "Stock Configuration"
|
||||
},
|
||||
"typeDescriptions": {
|
||||
"ingredient": "Raw materials and ingredients used in recipes",
|
||||
"finished_product": "Final products ready for sale or consumption"
|
||||
},
|
||||
"fields": {
|
||||
"name": "Name",
|
||||
"namePlaceholder": "E.g., All-Purpose Flour, Sourdough Bread",
|
||||
@@ -81,6 +91,11 @@
|
||||
"basicInformation": "Basic Information",
|
||||
"advancedOptions": "Advanced Options",
|
||||
"advancedOptionsDescription": "Optional fields for comprehensive inventory management",
|
||||
"additionalInformationDescription": "Optional product identifiers",
|
||||
"additionalDetails": "Additional Details",
|
||||
"additionalDetailsDescription": "Optional product details",
|
||||
"advancedStockSettings": "Advanced Stock Settings",
|
||||
"advancedStockSettingsDescription": "Configure inventory thresholds and reorder points",
|
||||
"pricingInformation": "Pricing Information",
|
||||
"inventoryManagement": "Inventory Management",
|
||||
"productInformation": "Product Information",
|
||||
|
||||
Reference in New Issue
Block a user