Commit graph

1789 commits

Author SHA1 Message Date
Arpit
d46ea97ae9
[improvement] Widget components #1475 - star rating widget (#1490)
* new implementation/image

* Revert "new implementation/image"

This reverts commit 637bd83108.

* new implementation/star-rating
2021-12-14 16:46:35 +05:30
Arpit
ada707678e
[improvement] Widget components #1475 - divider widget (#1491)
* new implementation/image

* Revert "new implementation/image"

This reverts commit 637bd83108.

* new implementation/divider widget
2021-12-14 16:46:27 +05:30
Arpit
d9a1b4f0ea
[improvement] Widget components #1475 - code editor widget (#1494)
* new implementation/image

* Revert "new implementation/image"

This reverts commit 637bd83108.

* new implementation/code-editor widget

* editor resolved

* Remove setting width on code editor widget

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-14 16:46:12 +05:30
Akshay
b26a23176c
Chore: Update user e2e tests (#1556)
* Update tests

* remove console log

* remove explicit db connection close

* remove reload usage
2021-12-14 16:32:03 +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
Sherfin Shamsudeen
16f225e3d1
Add alert type for default event handler (#1572) 2021-12-14 09:10:30 +05:30
Arpit
63cc923aae
[improvement] Widget components #1475 - chart widget (#1495)
* new implementation/image

* Revert "new implementation/image"

This reverts commit 637bd83108.

* new implementation/chart widget

* Remove the usage of currentState from chart component

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-13 21:43:51 +05:30
Arpit
f1457a1905
[improvement] Widget components #1475 - multi-select widget (#1535)
* upddated to new api & multiselect labels fixed

* backfill properties

* Expose default value of multiselect once the component is loaded

* Make multiselect reset to empty whenever option set is changed

* Whenever option set of multiselect changes, set it to default value if default value fits inside the new set of options

* Avoid crash in multiselect using ? operator.

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-13 21:43:09 +05:30
Akshay
3406e053c0
Fix: CI concurrency run (#1568)
* fix ci yaml

* dont cancel concurrent runs on main and develop
2021-12-13 21:42:13 +05:30
Gandharv
8a04cce235
fix: add correct display value (#1565) 2021-12-13 14:31:03 +05:30
Midhun G S
d9c541ec83
BugFix-1555 Apps listing order fix (#1566) 2021-12-13 14:30:19 +05:30
Akshay
f76b67509e
Chore: Support heroku review apps (#1560)
* add heroku predeploy script

* test env injected

* test prebuild heroku

* fix filename

* cancel inprogress pipeline

* change file permission

* test env replaced

* server install on predeploy

* frontend build on predeploy

* run as postdeploy script
2021-12-13 13:49:50 +05:30
Navaneeth Pk
511ec5510c
Update README.md 2021-12-13 10:35:04 +05:30
navaneeth
3c8cedb661 [docs] Add security document and examples 2021-12-11 07:28:36 +05:30
Gandharv
6c90a1667b
Feature: undo/redo for canvas 🔥 (#1446)
* feat: add restore shortcut when component is deleted

* change toast messages to hot toast from toastify

* change toast messages to hot toast from toastify

* change toast messages to hot toast from toastify

* on key press match clear the pressed keys

* add react hotkeys hook and delete use-shortcuts custom hook

* change toast messages to hot toast from toastify

* add immer lib

* applyPatches from immer + add undo redo on appdefination changes

* remove notification on undo

* add can-undo + can-redo checks

* add missing can-redo to handlePatchAdd

* add component versioning on componentDefinitionChanged

* set default value of loading state to interpolated boolean false for table

* set canUndo on initial load to false

* fix last element not getting removed on undo

* Remove console log

* add migration to change loadingState for existing tables

* set loadingstate value based on the previous value

* fix: app crash on inspector opening

* add check for selectedComponentId inside components def

* update template definitions for loadingState

* fix alert for success, error, info for button notifications
2021-12-11 04:41:24 +05:30
Midhun G S
f036fe0684
[Bug Fix #1521] Home Page Pagination (#1558)
* Bug Fix #1521 - Pagination

* bugFix-1521 changed pagination design
2021-12-11 04:40:19 +05:30
Arpit
9172f9aa96
[Bugfix] fixes app-name in darkmode (#1564)
* fixes app-name in darkmode

* added  bgdark var to scss
2021-12-11 04:36:03 +05:30
Shubhendra Singh Chauhan
71e4230a7d
Removed one of the two GitHubs in banner (#1562) 2021-12-10 15:46:41 +05:30
navaneeth
e4f7da59c1 Merge branch 'main' into develop 2021-12-10 14:49:51 +05:30
Sherfin Shamsudeen
eec622e91c
Hotfix/iframe new api (#1557)
* [improvement] Widget components #1475 - iframe widget (#1493)

* Bump ToolJet version to v0.11.1

Co-authored-by: Arpit <arpitnath42@gmail.com>
2021-12-10 12:52:41 +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
Arpit
b9754c4b6b
[Feature] popup modal for code hinter (#1465)
* portal for code hinter popup

* codehinter portal styles

* portal editor height

* update icons

* hinter changes

* refactoring to a separate dir

* code hinter - portal

* component details added in the portal header

* portal header: source name fixed

* portal header: inlcludes field name in the header

* display field names for rest api

* display field names for transformation

* handle for empty component names

* portal preview code bg

* foreUpdate

* foreUpdate

* refactored and using same codemirror component to render portal's editor

* clone codemirror to two different component

* fixed - need click to render the field data

* force update

* table component cell types: included

* chart component types: included

* alignment of the preview area

* btn color adapts to theme-fix

* remove console.logs

* disable portal editor for event manager

* scss unsued ruleset removed

* name fixes and remove unsued var

* .

* null check

* removed hardcode componentName

* app z-indexes: added z-index for suggestion-hints

* hook exhaustive-deps

* portal custom hook

* updated function name

* icon position fix

* hinter fails to open in certail scenarios: fixed
2021-12-10 08:39:23 +05:30
Arpit
72ca6b1af0
[improvement] Widget components #1475 - iframe widget (#1493) 2021-12-09 20:52:17 +05:30
Gandharv
d97ad3e360
add definition default values (#1549) 2021-12-09 17:33:13 +05:30
navaneeth
a03e93f1af Merge branch 'release/v0.11.0' into develop 2021-12-09 15:56:19 +05:30
navaneeth
bdc2d7a580 Merge branch 'release/v0.11.0' 2021-12-09 15:56:08 +05:30
navaneeth
5b558588d9 Bump ToolJet version 2021-12-09 15:52:06 +05:30
Gandharv
9db30829fd
Add migration for global settings for old apps (#1545)
* migration: add migration for global settings

* add empty check for definition

* update template definitions

* set slug as null on definitions

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
2021-12-09 15:47:56 +05:30
Gandharv
bdc3353f09
remove bg color from canvas container (#1544) 2021-12-09 12:59:41 +05:30
Gandharv
b78f9a8a90
Add global settings changes to app viewer (#1543)
* add hideHeader condition + maxwidth for canvas

* add background color to viewer

* add fallbacks
2021-12-09 12:30:58 +05:30
navaneeth
b4a5a3a16a Update helmet policy 2021-12-09 11:50:51 +05:30
navaneeth
6f995812a1 [docs] Add config for sitemap 2021-12-09 11:45:33 +05:30
navaneeth
a09fd6ad2f Merge branch 'main' into develop 2021-12-09 11:08:49 +05:30
Sherfin Shamsudeen
bbf552d693
Prevent datepicker from asking the user to select a date before showing the calendar (#1542) 2021-12-09 11:06:59 +05:30
Gandharv
9ada6d2aa6
Reduce 3px from editor and inspector (#1540) 2021-12-09 10:12:34 +05:30
Gandharv
8591dc4362
Add new navbar changes (#1538)
* Add new navbar changes

* css fixes

* canvas bg color picker

* css fixes

* add minimize icon

* add spacing when query panel closed

* add svg icon files

* reduce create button size and align to middle

* fix global settings styles

* retain selected data source on panel height change
2021-12-09 09:13:32 +05:30
navaneeth
c4b24e645e Merge remote-tracking branch 'origin/main' into develop 2021-12-08 13:55:22 +05:30
Akshay Sasidharan
31e200a002 bump version 2021-12-08 13:44:38 +05:30
Gandharv
886da251cd
fix query manage old state retained on add query (#1537) 2021-12-08 13:39:20 +05:30
Gandharv
edb43eb224
Add embeddable share link (#1522)
* add embeddable share link

* use slug from props

* remove unwanted feature policies
2021-12-08 13:12:47 +05:30
Navaneeth Pk
3477f7ff15
Support for running JavaScript as a query ( client-side execution ) (#1507)
* Custom js feature

* Disable transformations

* Fix

* Fix

* Fix

* Icon

* Rename variable OthetSources to OtherSources

* Fix

* Fix

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-08 13:03:08 +05:30
navaneeth
a610bd6ee1 Update the sidebar icon for settings 2021-12-08 12:59:57 +05:30
Gandharv
13a3a2c38c
Add global settings popup to left sidebar (#1532)
* add global settings popup inside inspector

* remove comment badge

* move global settings to left sidebar
2021-12-08 12:54:10 +05:30
Gandharv
4474f06e96
Homepage navbar active item border alignment issue (#1534) 2021-12-08 10:50:46 +05:30
navaneeth
ade85e2031 Merge branch 'release/v0.10.0' into develop 2021-12-07 21:21:46 +05:30
navaneeth
bc19612b3a Merge branch 'release/v0.10.0' 2021-12-07 21:21:33 +05:30
navaneeth
50b98f0178 Bump ToolJet version 2021-12-07 21:21:18 +05:30
Gandharv
53808bad0d
fix color diff in library page (#1533) 2021-12-07 20:54:53 +05:30
navaneeth
4641342038 Fixes width of iframe, code editor & password input 2021-12-07 20:51:20 +05:30
Arpit
c1939aa58c
[Bugfix] fields jumps when focused - REST API (#1516)
* fix: fields jumps when focused

* use colors from colors.scss
2021-12-07 20:12:13 +05:30