Refactor create order UI and improve architecture

Refactored the client create order feature to move UI logic for order type selection into a dedicated CreateOrderView widget, extracted order type UI metadata to a separate entity, and updated page widgets to delegate to new view components. Improved code documentation and structure for arguments, use cases, and repository interfaces. Added new localization keys and minor design system icon update.
This commit is contained in:
Achintha Isuru
2026-01-23 01:55:12 -05:00
parent e24019494c
commit 9e513d96af
36 changed files with 1451 additions and 1113 deletions

View File

@@ -280,13 +280,17 @@
"end_label": "End",
"workers_label": "Workers",
"lunch_break_label": "Lunch Break",
"no_break": "No break",
"paid_break": "min (Paid)",
"unpaid_break": "min (Unpaid)",
"different_location": "Use different location for this position",
"different_location_title": "Different Location",
"different_location_hint": "Enter different address",
"create_order": "Create Order",
"creating": "Creating...",
"success_title": "Order Created!",
"success_message": "Your shift request has been posted. Workers will start applying soon."
"success_message": "Your shift request has been posted. Workers will start applying soon.",
"back_to_orders": "Back to Orders"
},
"recurring": {
"title": "Recurring Order",

View File

@@ -286,7 +286,8 @@
"create_order": "Crear Orden",
"creating": "Creando...",
"success_title": "¡Orden Creada!",
"success_message": "Tu solicitud de turno ha sido publicada. Los trabajadores comenzarán a postularse pronto."
"success_message": "Tu solicitud de turno ha sido publicada. Los trabajadores comenzarán a postularse pronto.",
"back_to_orders": "Volver a Órdenes"
},
"recurring": {
"title": "Orden Recurrente",