@bigbinary/neeto-rules-frontend 0.6.6 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -592,11 +592,29 @@ The `RulePreview` component is used to preview the automation rule.
592
592
  2. `isLoading`: To specify if the preview is loading. (Boolean).
593
593
  3. `isOpen`: To specify if the preview is open. (Boolean).
594
594
  4. `onClose`: The callback function to call when the preview is closed. `() => void`.
595
+ 4. `moreDropdownProps`: To add and specify actions for MoreDropdown. Refer [MoreDropdown component doc](https://neeto-molecules.neeto.com/?path=/docs/moredropdown--docs).
595
596
 
596
597
  reference:
597
598
 
598
599
  1. [neeto-crm-web](https://github.com/bigbinary/neeto-crm-web/blob/b4c59181aec20d7519dd73b54b0695362ed4466f/app/javascript/src/components/Settings/Automations/index.jsx#L115)
599
600
 
601
+
602
+ #### 4. `RulesReorder`
603
+
604
+ The `RulesReorder` component is used to reorder the automation rule.
605
+
606
+ ![rule-reorder](./docs/images/rules-reorder.png)
607
+
608
+ #### Props
609
+
610
+ 1. `isOpen`: To specify if the reorder pane is open. (Boolean).
611
+ 2. `onClose`: The callback function to call when the reorder pane is closed. `() => void`.
612
+ 3. `rules`: The list of rules to be reordered.
613
+ 4. `onReorderCancel`: The callback function to call when the reorder is cancelled. `() => void`.
614
+ 5. `onReorderSave`: The callback function to call when the reorder is saved. `(reorderedRules) => {}`.
615
+ 6. `isReordering`: To specify if the reordering is in progress. (Boolean).
616
+ 7. `paginationProps`: To add pagination to the list of rules. Refer [Pagination component doc](https://neeto-ui.neeto.com/?path=/docs/components-pagination--docs).
617
+
600
618
  ## Instructions for Publishing
601
619
 
602
620
  Consult the [building and releasing packages](https://neeto-engineering.neetokb.com/articles/building-and-releasing-packages) guide for details on how to publish.
@@ -32,7 +32,8 @@
32
32
  "sms": "SMS",
33
33
  "phoneNumber": "Phone number",
34
34
  "phoneNumbers": "Phone numbers",
35
- "data": "Data"
35
+ "data": "Data",
36
+ "reorder": "Reorder"
36
37
  },
37
38
  "form": {
38
39
  "noEvents": "A rule without events will run hourly.",
@@ -195,7 +196,7 @@
195
196
  "leadingSpace": "Can not have leading white space",
196
197
  "slack": {
197
198
  "invalidChannel": "Could not connect to the channel, please select other options.",
198
- "errorInIntegration": "Could not connect to Slack! Please check the integration or remove this action otherwise the automation rule will not be able to function as intended."
199
+ "errorInIntegration": "Could not connect to Slack! Please verify the integration settings or remove this action to ensure the automation rule functions correctly.<br/><br/>Go to <button>Slack Integration</button>."
199
200
  },
200
201
  "invalidPhoneNumber": "Phone number is invalid",
201
202
  "invalidUrlEntity": "{{entity}} must be a valid URL"
@@ -302,6 +303,9 @@
302
303
  },
303
304
  "messages": {
304
305
  "removeInvalidPhoneNumbers": "Click here to remove invalid phone numbers."
306
+ },
307
+ "description": {
308
+ "reorder": "Automation rules are applied from top to bottom."
305
309
  }
306
310
  }
307
311
  }