CS - Apps#

Based on the customer’s requirements, csAppBuilder is used to create a UI-based task similar to a form.

csAppBuilder has components such as dropdown, radio button, check box, chat bot, toggle button and so many options within it, which can be used for designing UI. Based on customers requirement, ConverSight’s data scientist team works on it.

UI Task#

A UI Task is roughly comparable to a generic task. However, when creating a task, we use @uitask rather than @task. This will result in the creation of a UI task.

Based on the customer requirement to generate a user interface, this type of task makes extensive use of helper functions.

The UI is built using csAppBuilder in this case. We can use this to create n number of UI flows and web-based apps. csAppBuilder allows you to build demos and share them all in Python. The list of functions available for csAppBuilder is displayed when you select hitting tab.

from conversight import csAppBuilder as capp
from conversight import uitask

def greet(ctx, name):
    return "Hello " + name + "!"

@uitask
def New_UI_Testing():
    """
    testing
    """
    try:
        from conversight import csAppBuilder as capp
        name = capp.Textbox(label="Name")
        output = capp.Textbox(label="Output Box")
        greet_btn = capp.Button("Hello Greet")
        greet_btn.click(fn=greet, inputs=name, outputs=output)
    except Exception as e:
        print(e)

Once created, an uitask can be run, registered, and promoted in the same way that generic tasks can. Run, promote, setVersion, getVersion, showCode, editCode, deleteVersion, and delete are the available additional functions.

Created UI Task will be saved to CS Dashboard post registering it. CS Dashboard is available under Launch Pad.

../../../../_images/Launch_Pad.png

Launch Pad#

A registered UI Task should be made deployable so that other users can access it.

../../../../_images/CS_Dashboard.png

CS Dashboard#

By clicking on the icon, you can add CS Dashboard to the left side of your Home screen. In near by future, you can use launch pad(similar to a play store) and add menus to your left side of the home screen (Configuration Tab) as per your need.