Giter Site home page Giter Site logo

reportit-script-builder's Introduction

reportit-script-builder

Chatbot editor for ReportIt

Development

Open /webapp to see more

reportit-script-builder's People

Contributors

webdevelopland avatar akariv avatar oferb avatar noamoss avatar dependabot[bot] avatar

Watchers

Ofri Raviv avatar  avatar James Cloos avatar  avatar Hostmaster avatar  avatar

reportit-script-builder's Issues

add in-script navigation

@akariv as a first exercise, let's add:

  1. a quick jump link, from any goto block:

image

  1. Ofer already implemented a referral 'back' link on each block, but instead of showing the concrete referring snippet name, the label shows the type of the referring block:

image

image

Please fix the label to "referring from: [snippet name]"

  1. Split "Infocards", "Organizations", "Task Templates" content (and editing) into separate tabs:

image

  1. a side navigator, listing all snippets with a color indicator for the active/on focus snippet (will be handled seprately on #23).

improve relevant scenarios editing for never/general org display

script editor should be more explicit regarding the scenarios in which each of the organizations shown/used.

image

  1. fix first button label to "הצגת הארגון לפי מאפייני פניה"
  2. add new button: "הכללת הארגון בכל סוגי הפניות" (this will ensure the organization to be included in all automatic loop functions.

notice that clicking on each of these buttons should cancel the other one functionality. This can be shown to the user in (at least) two ways:

a. include a small 'V' indicator if one of the buttons was clicked and turned on
b. add a scenario block if the 2nd button was clicked (something like {script: all}. This will be automatically deleted when the first button is clicked.

improve organization block editor

reorganize the fields order in the from:

  1. name: should be a mandatory field
  2. slug: should be a mandatory field
  3. description
  4. organization type: turn into a select list: ארגון חברה אזרחית, יחידה ממשלתית, יחידה ממשלתית רוחבית לתיאום
  5. contact person 1
  6. email 1: should be validated being either empty or an email address
  7. phone 1: should be validated being either empty or a phone number
  8. contact person 2
  9. email 2: should be validated being either empty or an email address
  10. phone 2: should be validated being either empty or a phone number
  11. phone response details: turn into a multi-line input field
  12. Reception details: turn into a multi-line input field
  13. mail address
  14. Website url 1: should be validated being empty or a URL
  15. Website label 1
  16. Website url 2: should be validated being empty or a URL
  17. Website label 2
  18. scenarios

remove the field Scenarios Relevancy

scripts validation, pre-publish

List of checks to run and block users trying to save/publish a script with illegal parts. I believe these validators should be checked over the YAML, after clicking on publish(hasadna/reportit-scripts#15) , showing an explaination for the deploy failure, when relevant:

  1. user is trying to save the value to a variable that is never being called/mentioned later.
  2. user is trying to save a value to a constant variable (report field) name that does not exist.
  3. script includes a goto points to a nonexisting block name
  4. user is trying to create a temporary variable name (represented on YAML with _) with a constant variable name (field record name).
  5. user is trying to create a temporary variable name (represented on YAML with _) with a saved word: (i.e. 'do', 'goto', etc.).

Can't insert blocks in the middle of a script

If I want to add a block in the middle of an existing script, it's not possible at the moment.

Two options for implementation -

  • Allow adding only in the end but enable reordering of blocks (e.g using drag and drop or a set 'move up/move down' buttons)
  • Allow adding inbetween blocks - e.g. when hovering on the space between existing blocks show a 'add new block here' button

fix the label to "referring from: [snippet name]"

Ofer already implemented a referral 'back' link on each block, but instead of showing the concrete referring snippet name, the label shows the type of the referring block:

image

image

Please fix the label to "referring from: [snippet name]"

(originally published on #21)

add in-script orientation side panel

show on the side an indication to the current view/scope of the general script. Being able to navigate through this pane would be a nice feature, something like this:

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.