Improve frontend 5

This commit is contained in:
Urtzi Alfaro
2025-11-20 19:14:49 +01:00
parent 29e6ddcea9
commit 4433b66f25
30 changed files with 3649 additions and 600 deletions

View File

@@ -38,7 +38,10 @@
"savings": {
"label": "💰 SAVINGS",
"this_week": "this week",
"vs_last": "vs. last"
"vs_last": "vs. last",
"value_this_week": "€{amount} this week",
"detail_vs_last_positive": "+{percentage}% vs. last",
"detail_vs_last_negative": "{percentage}% vs. last"
},
"inventory": {
"label": "📦 INVENTORY",
@@ -52,7 +55,9 @@
"waste": {
"label": "♻️ WASTE",
"this_month": "this month",
"vs_goal": "vs. goal"
"vs_goal": "vs. goal",
"value_this_month": "{percentage}% this month",
"detail_vs_goal": "{change}% vs. goal"
},
"deliveries": {
"label": "🚚 DELIVERIES",
@@ -129,6 +134,14 @@
"remove": "Remove",
"active_count": "{count} active alerts"
},
"production": {
"scheduled_based_on": "Scheduled based on {{type}}",
"status": {
"completed": "COMPLETED",
"in_progress": "IN PROGRESS",
"pending": "PENDING"
}
},
"messages": {
"welcome": "Welcome back",
"good_morning": "Good morning",
@@ -203,6 +216,28 @@
"cost_analysis": "Cost Analysis"
}
},
"action_queue": {
"consequences": {
"delayed_delivery": "Delayed delivery may impact production schedule",
"immediate_action": "Immediate action required to prevent production issues",
"limited_features": "Some features are limited"
},
"titles": {
"purchase_order": "Purchase Order {po_number}",
"supplier": "Supplier: {supplier_name}",
"pending_approval": "Pending approval for {supplier_name} - {type}"
},
"buttons": {
"view_details": "View Details",
"dismiss": "Dismiss",
"approve": "Approve",
"modify": "Modify",
"complete_setup": "Complete Setup"
}
},
"orchestration": {
"no_runs_message": "No orchestration has been run yet. Click 'Run Daily Planning' to generate your first plan."
},
"errors": {
"failed_to_load_stats": "Failed to load dashboard statistics. Please try again."
}

View File

@@ -83,7 +83,7 @@
},
"accuracy": "Accuracy: 92% (vs 60-70% for generic systems)",
"cta": "See All Features",
"key1": "🎯 Precision:",
"key1": "🎯 Precision: ",
"key2": "(vs 60-70% of generic systems)"
},
"pillar2": {
@@ -121,7 +121,7 @@
"cta": "See All Features"
},
"pillar3": {
"title": "Your Data, Your Environmental Impact",
"title": "🌱 Your Data, Your Environmental Impact",
"intro": "100% of your data belongs to you. Measure your environmental impact automatically and generate sustainability reports that comply with international standards.",
"data_ownership_value": "100%",
"data_ownership": "Data ownership",

View File

@@ -157,5 +157,15 @@
"view_alert": "View Details",
"run_planning": "Run Daily Planning"
}
},
"types": {
"low_stock_detection": "Low stock detected for {{product_name}}. Stock will run out in {{days_until_stockout}} days.",
"stockout_prevention": "Preventing stockout for critical ingredients",
"forecast_demand": "Based on demand forecast: {{predicted_demand}} units predicted ({{confidence_score}}% confidence)",
"customer_orders": "Fulfilling confirmed customer orders",
"seasonal_demand": "Anticipated seasonal demand increase",
"inventory_replenishment": "Regular inventory replenishment",
"production_schedule": "Scheduled production batch",
"other": "Standard replenishment"
}
}

View File

@@ -8,6 +8,16 @@
"willBeGeneratedAutomatically": "Will be generated automatically",
"autoGeneratedOnSave": "Auto-generated on save"
},
"keyValueEditor": {
"showBuilder": "Show Builder",
"showJson": "Show JSON",
"suggestions": "Quick suggestions",
"keyPlaceholder": "Key",
"valuePlaceholder": "Value",
"remove": "Remove",
"addPair": "Add Parameter",
"emptyState": "No parameters yet. Click 'Add Parameter' to get started."
},
"inventory": {
"title": "Add Inventory",
"inventoryDetails": "Inventory Item Details",
@@ -168,6 +178,17 @@
"title": "Add Quality Template",
"templateDetails": "Quality Template Details",
"fillRequiredInfo": "Fill in the required information to create a quality check template",
"selectCheckType": "Select Quality Check Type",
"selectCheckTypeDescription": "Choose the type of quality check you want to create",
"essentialConfiguration": "Essential Configuration",
"essentialConfigurationDescription": "Define the core properties of your quality check template",
"criteriaAndSettings": "Quality Criteria & Settings",
"criteriaAndSettingsDescription": "Configure scoring methods and advanced quality criteria",
"steps": {
"checkType": "Check Type",
"essentialConfiguration": "Configuration",
"criteriaSettings": "Criteria & Settings"
},
"fields": {
"name": "Name",
"namePlaceholder": "E.g., Bread Quality Control, Hygiene Inspection",
@@ -177,24 +198,90 @@
"templateCode": "Template Code",
"templateCodePlaceholder": "Leave empty for auto-generation",
"templateCodeTooltip": "Leave empty to auto-generate from backend, or enter custom code",
"category": "Category",
"categoryPlaceholder": "E.g., appearance, structure, texture",
"version": "Version",
"description": "Description",
"descriptionPlaceholder": "Detailed description of the quality check template",
"applicableStages": "Applicable Stages",
"applicableStagesTooltip": "Comma-separated list of production stages: e.g., mixing, proofing, baking, cooling",
"applicablePlaceholder": "mixing, proofing, baking, cooling"
"applicableStagesTooltip": "Select the production stages where this quality check applies",
"applicableStagesHelp": "Leave empty to apply to all stages",
"applicablePlaceholder": "mixing, proofing, baking, cooling",
"instructions": "Instructions",
"instructionsPlaceholder": "Step-by-step instructions for performing this quality check",
"minValue": "Minimum Value",
"maxValue": "Maximum Value",
"targetValue": "Target Value",
"unit": "Unit",
"unitPlaceholder": "E.g., °C, g, cm, %",
"tolerancePercentage": "Tolerance Percentage",
"toleranceTooltip": "Acceptable deviation from target value (0-100%)",
"scoringMethod": "Scoring Method",
"passThreshold": "Pass Threshold (%)",
"passThresholdTooltip": "Minimum score percentage required to pass (0-100%)",
"frequencyDays": "Frequency (days)",
"frequencyDaysTooltip": "How often this check should be performed (in days)",
"frequencyDaysPlaceholder": "Leave empty for batch-based",
"requiredCheck": "Required Check",
"checkPointsJsonArray": "Check Points (JSON Array)",
"checkPointsTooltip": "Array of check points: [{\"name\": \"Visual Check\", \"description\": \"...\", \"weight\": 1.0}]",
"checkPointsPlaceholder": "[{\"name\": \"Visual Inspection\", \"description\": \"Check appearance\", \"expected_value\": \"Golden brown\", \"measurement_type\": \"visual\", \"is_critical\": false, \"weight\": 1.0}]",
"acceptanceCriteria": "Acceptance Criteria",
"acceptanceCriteriaPlaceholder": "E.g., Golden uniform color, fluffy texture, no burns...",
"parametersJson": "Parameters (JSON)",
"parametersTooltip": "Template parameters: {\"temp_min\": 75, \"temp_max\": 85, \"humidity\": 65}",
"parametersPlaceholder": "{\"temp_min\": 75, \"temp_max\": 85, \"humidity\": 65}",
"thresholdsJson": "Thresholds (JSON)",
"thresholdsTooltip": "Threshold values: {\"critical\": 90, \"warning\": 70, \"acceptable\": 50}",
"thresholdsPlaceholder": "{\"critical\": 90, \"warning\": 70, \"acceptable\": 50}",
"scoringCriteriaJson": "Scoring Criteria (JSON)",
"scoringCriteriaTooltip": "Custom scoring criteria: {\"appearance\": 30, \"texture\": 30, \"taste\": 40}",
"scoringCriteriaPlaceholder": "{\"appearance\": 30, \"texture\": 30, \"taste\": 40}",
"responsibleRole": "Responsible Role/Person",
"responsibleRolePlaceholder": "E.g., Production Manager, Baker",
"requiredEquipment": "Required Equipment/Tools",
"requiredEquipmentPlaceholder": "E.g., Thermometer, scale, timer",
"specificConditions": "Specific Conditions or Notes",
"specificConditionsPlaceholder": "E.g., Only applicable on humid days, check 30 min after baking...",
"activeTemplate": "Active Template",
"requiresPhotoEvidence": "Requires Photo Evidence",
"criticalControlPoint": "Critical Control Point (CCP)",
"notifyOnFailure": "Notify on Failure"
},
"checkTypes": {
"product_quality": "Product Quality",
"process_hygiene": "Process Hygiene",
"equipment": "Equipment",
"safety": "Safety",
"cleaning": "Cleaning",
"temperature": "Temperature Control",
"documentation": "Documentation"
"visual": "Visual Inspection",
"measurement": "Measurement",
"temperature": "Temperature",
"weight": "Weight",
"boolean": "Pass/Fail Check",
"timing": "Timing",
"checklist": "Checklist"
},
"checkTypeDescriptions": {
"visual": "Inspect appearance, color, and visual quality characteristics",
"measurement": "Measure specific dimensions, sizes, or quantities",
"temperature": "Monitor and verify temperature readings",
"weight": "Check weight and mass measurements",
"boolean": "Simple yes/no or pass/fail checks",
"timing": "Track time-based quality criteria",
"checklist": "Multi-point checklist verification"
},
"processStages": {
"mixing": "Mixing",
"proofing": "Proofing",
"shaping": "Shaping",
"baking": "Baking",
"cooling": "Cooling",
"packaging": "Packaging",
"finishing": "Finishing"
},
"sections": {
"basicInformation": "Basic Information",
"additionalIdentifiers": "Additional Identifiers",
"additionalIdentifiersDescription": "Optional identifiers for organization",
"measurementSpecifications": "Measurement Specifications",
"additionalDetails": "Additional Details",
"additionalDetailsDescription": "Optional detailed instructions",
"scoringConfiguration": "Scoring Configuration",
"advancedOptions": "Advanced Options",
"advancedOptionsDescription": "Optional fields for comprehensive quality template configuration",