italanta / elewa

The Elewa Conversational Manager. An open-source chatbot editor and manager which allows to host and use conversational learning projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

💾 :clipboard: Save List Block Result As a Variable

LemmyMwaura opened this issue · comments

commented

User stories

As a user/org, I want to be able to save my users' selected option from the list block as a variable.


Summary

Process the user's selected response on the list block as a variable. No validation is required for this block.

Description:

At the moment variables as saved within their respective blocks, This also includes their type, unique validation and their validation message. The requirement to satisfy this issue is to continue on the same for the List Block.

To achieve this you will need to do the following:

  • Add the edit portal for the List block to the side nav.
  • Add a nested form group for the variable to the form group used to create the List Input block.
  • Pass List Block's FormGroup to the reusable variable Input component.
  • Set the variable name and the type and add that to its formGroup.

Resources

Check how this has been done on the name Block. Implementation should be similar.
No validation fields are required for this block at the moment.

The reusable component responsible for processing Inputs can be found here: libs\features\convs-mgr\stories\blocks\process-inputs\src\lib\components\variable-input\variable-input.component.html

The expected design for the List Block is shown below. (minus the validation fields)

Name Block validation

Acceptance Criteria

  1. A clean UI that makes it easy to set and update variables and changes reflected in the DB
  2. Variables are saved in the block.

Please also note:
2. If a conversation about the issue I’m working on is happening,
the outcomes should be documented within that issue (not in the comments).

Working on this