
Product
Introducing Socket Scanning for OpenVSX Extensions
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.
@bigbinary/neeto-rules
Advanced tools
neetoRules is the library that manages automation rules across neeto products.
yarn add @bigbinary/neeto-rules
neetoRules has a few peer dependencies that are required for the proper functioning of the package. Install all the peer dependencies using the below command:
yarn add @bigbinary/neetoui @bigbinary/neeto-icons ramda@^0.28.0 classnames@^2.3.1
import React from "react";
import {
TICKET_FIELDS,
STATUS,
TEAMS,
MEMBERS,
TAGS,
BUSINESS_HOURS,
COMPANIES,
ROLES,
TEST_RULES_INITIAL_VALUE,
} from "./constants";
import NeetoRules from "@bigbinary/neeto-rules";
const config = {
status: STATUS,
teams: TEAMS,
members: MEMBERS,
tags: TAGS,
businessHours: BUSINESS_HOURS,
companies: COMPANIES,
roles: ROLES,
ticketFields: TICKET_FIELDS,
};
const RulesComponent = () => (
<NeetoRules
dropdownOption={config}
initialRules={TEST_RULES_INITIAL_VALUE}
onSubmit={onSubmit}
/>
);
export default RulesComponent;
NeetoRules component takes two props i.e,
If you want to just use action form or the conditional form only then you can export them individually. But these components need to be used inside a formik component, neetoRules component is integrated inside the formik component whereas ActionForm or the ConditionalForm Components are not.
import React, { useMemo } from "react";
import { ActionForm } from "@bigbinary/neeto-rules";
import { Formik, Form } from "formik";
const ActionFormComponent = () => (
<Formik>
<Form>
<ActionForm actionOptions={actionOptions}/>
</Form>
</Formik>
)
export default ActionFormComponent;
ActionForm takes actionOptions as prop.
[{
label: "Note",
value: "add_note",
placeholder: "Note",
updateFieldKey: "body",
},
{
label: "Comment/Reply",
value: "add_reply",
placeholder: "Comment/Reply",
updateFieldKey: "body",
},
{
label: "Change Status",
value: "change_status",
fieldType: "dropdown",
placeholder: "Select Status",
updateFieldKey: "value",
dropDownOptions: [],
},
{
label: "Change Priority",
value: "change_priority",
fieldType: "dropdown",
placeholder: "Select Priority",
updateFieldKey: "value",
dropDownOptions: [
{ label: "Low", value: "low" },
{ label: "Medium", value: "medium" },
{ label: "High", value: "high" },
{ label: "Urgent", value: "urgent" },
],
},
{
label: "Add Tags",
value: "add_tags",
updateFieldKey: "tag_ids",
dropDownOptions: [],
},
{
label: "Remove Tags",
value: "remove_tags",
updateFieldKey: "tag_ids",
dropDownOptions: [],
},
{
label: "Assign Member",
value: "assign_agent",
fieldType: "dropdown",
placeholder: "Select Member",
updateFieldKey: "actionable_id",
dropDownOptions: [],
defaultData: {
actionable_type: "User",
},
},
{
label: "Assign Team",
value: "assign_group",
fieldType: "dropdown",
placeholder: "Select Team",
updateFieldKey: "actionable_id",
dropDownOptions: [],
defaultData: {
actionable_type: "Group",
},
},
]]
import React, { useMemo } from "react";
import { ConditionForm } from "@bigbinary/neeto-rules";
import { Formik, Form } from "formik";
const ActionFormComponent = () => (
<Formik>
<Form>
<ConditionForm dropdownOption={actionOptions} previewCallback={previewCallbackFunction}/>
</Form>
</Formik>
)
export default ActionFormComponent;
ConditionForm takes dropdownOption and previewCallback functions as props.
const previewCallbackFunction = (condition) => {
setCondition(condition);
setShowPreviewTickets(true);
}
Install all the dependencies by executing the following command
yarn install
Start the development server using the yarn start command.
The neetoRules package gets auto-published to npm for every new merge to the
master branch. You can checkout the publish workflow in git actions to get a
live update.
| Project | Pages |
|---|---|
| neeto-desk-web | Automation rules, views, Canned response |
FAQs
Manage rules across neeto products.
The npm package @bigbinary/neeto-rules receives a total of 1 weekly downloads. As such, @bigbinary/neeto-rules popularity was classified as not popular.
We found that @bigbinary/neeto-rules demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 12 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Product
Bringing supply chain security to the next generation of JavaScript package managers

Product
A safer, faster way to eliminate vulnerabilities without updating dependencies