Commit graph

16 commits

Author SHA1 Message Date
Sherfin Shamsudeen
9a8ca9d754
Feature/refactor widget property resolution (#995)
* Make widget properties available as a prop to component

This commit also make the front-end app resolve widget properties
based on current state and definition, before passing in the final
resolved properties to the component

* Resolve unnecessary console.log and comments

* Provide styles as prop to component

* Give existing values precedence over definition values

* Serve properties and variables as separate props to components

* Remove the usage of separate directory for Box.jsx

* Remove unnecessary lint change

* Introduce fireEvent method to fire events

* Introduce validate function to validate a widgets value

* Rename "variables" to "exposedVariables"

* Add documentation for props and functions being passed to widgets

* Delete "id" from set of exposed variables presented to the widget

* Do not resolve exposed variables before passing to widget
2021-10-20 07:50:45 +05:30
Arpit
26c9cc655c
Fix linting errors across the app (#785)
* eslint-setup: rules for frontend and server

* setup pre-commit:hook

* frontend:eslint fixes

* frontend eslint errors and warning fixed

* eslint:fix for ./server

* fix server/test: expectatin string lint/error

* pre-commit:updated

* removed unwanted install cmd from docker file

* recommended settings and extension for vscode

* husky prepare script added

* updated extension recommendations

* added prettier as recommended extension

* added pre-commit to package.json

* remove .prettierrc file

* resolve changes

* resolve changes
2021-09-21 19:18:28 +05:30
Gandharv
1587321f4a
Feature: show errors in codehinter previews (#765)
* add error to suggestion box in codehinter

* rename variable to withError
2021-09-16 17:31:22 +05:30
Arpit
48bcfdd47f
Feature: default values for text/number inputs (#736)
* Order of state computation

* default values for textInput and numberInput widgets

* number input value should be an integer

Co-authored-by: navaneeth <navaneethpk@outlook.com>
2021-09-13 23:34:07 +05:30
Navaneeth Pk
3a09f40e35
Validation props for widgets (#700) 2021-09-07 10:41:57 +05:30
Navaneeth Pk
8fd05bd779
Add validation for dropdowns (#696)
* Validation for dropdowns

* fix

* fix

* fix
2021-09-06 20:02:09 +05:30
Navaneeth Pk
b12cc7f309
Input validation for widgets (#693)
* Validations

* Fix

* Validation for table cells

* fix
2021-09-06 14:20:38 +05:30
Arpit
67ca8f1461
Feature: disable widgets (#653)
* widgets can be disabled

* removed whitespace

* move to styles definitions

* default values fixed with nullish operator

* proper data attributes

* generic resolver function for widget value

* renamed the style property
2021-09-02 19:41:59 +05:30
Sherfin Shamsudeen
61d612ed64
Bugfix/component editing inside container (#641)
* Add support for editing and deleting components inside container

* Dont allow config handle click event to propagate

* Supply removeComponent method for Container component
2021-08-30 18:53:58 +05:30
Arpit
7f9f9cb418
backward compatibility for visibility (#640)
* show or hide widgets

* backward compatibility for visibility
2021-08-30 18:21:09 +05:30
Arpit
d6f5fd17dd
Feature: Show or hide widgets (#638) 2021-08-30 17:13:05 +05:30
Navaneeth Pk
8b481ae9f4
ESLint fixes (#138)
* ESLint fixes

* Eslinted
2021-04-30 13:40:57 +05:30
navaneeth
2e3e637eb2 Setup prettier, suggested fixes 2021-04-30 12:01:32 +05:30
navaneeth
a0e3f876e7 Resizeable feature for all components, minor fixes 2021-04-10 09:19:07 +05:30
navaneeth
bdd8ec3d70 Bindings for components results/other data 2021-04-04 18:41:17 +05:30
navaneeth
e6a71d75fc Setup & implement React DND with custom drag layer 2021-04-02 09:46:26 +05:30