From a3a0f92507fb485127b37ca71255db11e621a73b Mon Sep 17 00:00:00 2001 From: Yash Maheshwari Date: Wed, 14 Aug 2024 15:39:51 +0530 Subject: [PATCH] Improved: empty state message for inventory filter and sort options and also made improvement in the order filter and sort option empty state(#165) --- src/locales/en.json | 9 +++++++-- src/views/BrokeringQuery.vue | 39 ++++++++++++++++++++++++++++-------- 2 files changed, 38 insertions(+), 10 deletions(-) diff --git a/src/locales/en.json b/src/locales/en.json index ae180ed..abb0ac3 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1,12 +1,17 @@ { + " about enabling a facility for online fulfillment.": " about enabling a facility for online fulfillment.", "A store repesents a company or a unique catalog of products. If your OMS is connected to multiple eCommerce stores sellling different collections of products, you may have multiple Product Stores set up in HotWax Commerce.": "A store repesents a company or a unique catalog of products. If your OMS is connected to multiple eCommerce stores sellling different collections of products, you may have multiple Product Stores set up in HotWax Commerce.", "Actions": "Actions", "Active": "Active", "Activate": "Activate", "Add": "Add", + "Add filters": "Add filters", + "Add inventory lookup filters.": "Add inventory lookup filters.", "Add inventory rule": "Add inventory rule", "Add order filters.": "Add order filters.", + "Add sorting": "Add sorting", "Add sorting rules.": "Add sorting rules.", + "All facilities enabled for online fulfillment will be attempted for brokering if no filter is applied.": "All facilities enabled for online fulfillment will be attempted for brokering if no filter is applied.", "All orders in all parkings will be attempted if no filter is applied.": "All orders in all parkings will be attempted if no filter is applied.", "Allow partial allocation": "Allow partial allocation", "Already passed": "Already passed", @@ -47,6 +52,7 @@ "Error getting user profile": "Error getting user profile", "Execution history": "Execution history", "Expression": "Expression", + "Facilities will be sorted based on creation date if no sorting preferences are applied.": "Facilities will be sorted based on creation date if no sorting preferences are applied.", "Failed to clone brokering run": "Failed to clone brokering run", "Failed to clone rule": "Failed to clone rule", "Failed to clone the rule": "Failed to clone the rule", @@ -78,6 +84,7 @@ "Job updated": "Job updated", "kms": "kms", "Last run": "Last run", + "Learn more": "Learn more", "Logging in...": "Logging in...", "Logging out": "Logging out", "Login": "Login", @@ -151,9 +158,7 @@ "Scheduler": "Scheduler", "Search time zones": "Search time zones", "Select": "Select", - "Select filter to apply": "Select filter to apply", "Select if partial allocation should be allowed in this inventory rule": "Select if partial allocation should be allowed in this inventory rule", - "Select sorting to apply": "Select sorting to apply", "Select store": "Select store", "Select time zone": "Select time zone", "Service has been scheduled": "Service has been scheduled", diff --git a/src/views/BrokeringQuery.vue b/src/views/BrokeringQuery.vue index d7448c4..050a8e3 100644 --- a/src/views/BrokeringQuery.vue +++ b/src/views/BrokeringQuery.vue @@ -47,13 +47,17 @@ {{ translate("Filters") }} - +

- {{ translate("Add order filters.") }}
+ {{ translate("Add order filters.") }}

{{ translate("All orders in all parkings will be attempted if no filter is applied.") }} + + {{ translate("Add filters") }} + +

@@ -93,14 +97,18 @@ {{ translate("Sort") }} - +

- {{ translate("Add sorting rules.") }}
+ {{ translate("Add sorting rules.") }}

{{ translate("Orders will be brokered based on order date if no sorting is specified.") }} + + {{ translate("Add sorting") }} + +

@@ -171,11 +179,19 @@

{{ translate("Filters") }}

- +
-

{{ translate("Select filter to apply") }}

+

+ {{ translate("Add inventory lookup filters.") }}

+ {{ translate("All facilities enabled for online fulfillment will be attempted for brokering if no filter is applied.") }}

+ {{ translate("Learn more") }}{{ translate(" about enabling a facility for online fulfillment.") }} + + {{ translate("Add filters") }} + + +

{{ facilityGroup.facilityGroupName || facilityGroupId }} @@ -212,11 +228,17 @@

{{ translate("Sort") }}

- +
-

{{ translate("Select sorting to apply") }}

+

+ {{ translate("Facilities will be sorted based on creation date if no sorting preferences are applied.") }} + + {{ translate("Add sorting") }} + + +

{{ getLabel("INV_SORT_PARAM_TYPE", code) || code }} @@ -1405,5 +1427,6 @@ ion-chip > ion-select { .empty-state { text-align: center; + margin: 0; }