Commit graph

28 commits

Author SHA1 Message Date
Ajith KV
2db14dd9f5
Cypress test for button widget (#2989)
* Added cypress test for button widget

* Added custom commands

* Updated common selectors

* data-cy attributes for the elements

* Updated the login end point

* Updated new login end point

* Added data-cy attribute for autosave indicator

* Updated login end point

* Updated test for auto save indicator

* Updated custom commands for skipping instruction modal
2022-05-16 15:39:10 +05:30
Kiran Ashok
ec0bd7d2f4
fix for button loading state bug (#2823) 2022-04-14 14:41:30 +05:30
Abhinaba Adhikari
ea09f81db3
Set custom Button Loader color (#2292) 2022-04-05 16:57:22 +05:30
Gandharv
03b16802f4
Hide text overflow for button widget (#2061) 2022-02-01 12:04:46 +05:30
Arpit
52e0b666f8
Improvement: widget components from existing implementation to the new API (#1470)
* text-input widget

* button widget

* fix text input widget

* number input widget

* checkbox widget

* refactor checkbox

* radio btn widget

* dropdown widget

* refactor textinput and number input

* updated state variable

* Remove usage of component and currentState prop in dropdown

* Reset dropdown value whenever option set is changed

* Make text input respond to changed in its default value property

* Radio button component fix

* default value for number input: fixed

* Fix validation on Text Input component

* Use useState hook to manage value of text input component

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-14 09:10:42 +05:30
Akshay
5b30aa2007
Chore: Setup pipeline (#1539)
* github actions for PR and push to develop branch

* test workflow

* move to workflows folder

* add setup node action

* modify build

* specify npm version

* config unit test

* specify host postgres

* specify container to run on

* add postgresql dependency

* add specify ws adapter for test

* add e2e test

* fix linting

* only log errors on tests

* update eslint config

* fix linting

* run e2e test in silent mode

* fix library app spec

* dont send email on test env

* fix org scope

* mock env vars

* remove reset modules

* force colors

* explicitly close db connection

* add eslint rule for floating promises

* update workflow

* fix floating promise

* fix lint

* update workflow

* run on all push and pulls

* update lint check files

* simplify workflow

* increase js heap size on env

* separate lint and build

Co-authored-by: arpitnath <arpitnath42@gmail.com>
2021-12-10 08:43:05 +05:30
Navaneeth Pk
20cccd1df7
Responsive canvas (#1363)
* Better canvas

* Better canvas

* Better canvas

* Fix for resize

* Fix for drag

* Fix for drag

* Fix for drag

* Adjust width of components by # of grid lines

* Adjust components to comply with gridline based width

* Fix the width of rigth sidebar

* Fix for subcontainer resize issue

* Fix for dropped widget width (sc)

* Fix subcontainer drag width

* Fix grid for sub container

* Fix viewer

* Fix

* Fix

* Use RnD for dragging within canvas

* bounds for subcontainers

* fix for subcontainers

* Fix for mouseover issue

* Fix

* Fix widget widths

* Fixes chart

* Fixes qr scanner and divider

* Remove scaleValue

* Mmerge fix

* Mmerge fix

* Fix for ormconfig

* Fixes for comments

* Add comment where the user clicked

* Disable dragging on viewer

* Max width for canvas

* Fix for widget click events

* Fix for radio button

* Rebase widget width and left offset for responsive canvas

* Fix

* Fix the width of file picker

* Fix for calendar widget

* Disable zoom selector

* Fixes comment positions

* css fixes

* Fix

* Recompute width and offset of subcontainer widgets based on its parent's width

* Calculate container width separately for modal children while migrating to responsive

* Refactor migration to responsive canvas whereinwhich all mutations are done only after all required changes are computed

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-11-16 17:14:09 +05:30
navaneeth
2aa6179111 Backward compatibility for button border radius 2021-10-23 15:43:59 +05:30
SAI SUMANTH KUMAR
522baf32fb
Feature: border radius property for buttons (#1152)
* Update Button.jsx

* Update components.js

* Update components.js

* Update Button.jsx

* Update components.js

* Update Button.jsx

* Update Button.jsx

* Update Button.jsx
2021-10-23 15:29:33 +05:30
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
Ajinkya Deshmukh
fc536c20dd
Button and Modal text fix (#861)
* button text fix

* Modal dynamic text fix

* resolve the review comments
2021-10-08 11:32:20 +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
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
e15f159af7 Dynamic darker hover color for button widget 2021-05-31 09:27:54 +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
3af6fb2fef Fixed inconsistent loadingStates, minor fix for Table 2021-04-27 17:02:13 +05:30
navaneeth
5394dd6235 Fix for unwanted margin of button component 2021-04-18 18:07:01 +05:30
navaneeth
78c3169eb1 Fixes for component loading states 2021-04-14 21:42:37 +05:30
navaneeth
0655bb9ba8 Loading state for buttons 2021-04-14 14:10:25 +05:30
navaneeth
a0e3f876e7 Resizeable feature for all components, minor fixes 2021-04-10 09:19:07 +05:30
navaneeth
2d7a6e2ac7 Feature: REST API queries 2021-04-04 22:37:03 +05:30
navaneeth
782def75b3 Feature: App viewer 2021-04-02 16:39:55 +05:30
navaneeth
863a8ae732 Feature: Inspector for components 2021-04-02 14:54:51 +05:30
navaneeth
e6a71d75fc Setup & implement React DND with custom drag layer 2021-04-02 09:46:26 +05:30