Commit graph

1170 commits

Author SHA1 Message Date
Sherfin Shamsudeen
0ebe2bd921
Set widget visibility to true if not explicitly set to false (#1627) 2021-12-23 13:45:03 +05:30
Arpit
8a89bc8b71
[Feature] : SendGrid integration (Datasource API) (#1608)
* SendGrid integration

* unused logs

* unused logs

* update help text

* fixestypos for schema description

* fixestypos for schema description

* adding sendgrid docs

* updates logo from  Sendgrid's media kit

* sendgrid query schema updated

* fixes typos

* updates docs

* typos fix

* fix jest module transform

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
2021-12-22 17:23:45 +05:30
Midhun G S
5bdd0fd6bf
Home Page Application search box (#1603)
* feature-1567 initial commit

* feature-1567

* freture-1567 App search box

* added default value for search key

* Loading fix

* Review comments

* Separated like query

* feature-1567 e2e testcases

* feature-1567 Fix

* feature-1567 fix

* feature-1567 fix
2021-12-22 14:37:37 +05:30
Sherfin Shamsudeen
93287a46cb
Add on change event for text input (#1622) 2021-12-22 12:03:59 +05:30
Sherfin Shamsudeen
a68a7b67d1
Feature/typesense integration (#1613)
* Install typesense npm package

* Implement CRUD operations using TypeSense

* Add documentation for typesense integration

* Rename apiKey to api_key and make it encrypted for typesense

* Add logo for typesense data source

* Add delete operation to typesense

* Add documentation for delete document

* Make protocol field a dropdown for TypeSense

* Additional documentation for TypeSense data source
2021-12-22 07:19:17 +05:30
Sherfin Shamsudeen
110eb62c10
Add error boundary for components (#1587)
* Add error boundary for components

* Reduce font size of fallback message on error boundary
2021-12-21 20:51:59 +05:30
Sherfin Shamsudeen
96eb7a4c45
Display validation error outside dropdown component (#1618) 2021-12-21 20:28:18 +05:30
Midhun G S
4f73a34365
Twilio SMS Integration (#1598)
* Twilio SMS Integration

* package lock fix

* package-lock fix

* Review comments
2021-12-20 11:49:00 +05:30
Gandharv
ab9ba8d748
Remove max-min query manager option (#1593)
* remove max-min query manager option

* remove icons
2021-12-20 09:24:11 +05:30
Arpit
08442259cf
changing sheet name to gid:ghseet query schema (#1600) 2021-12-18 09:58:04 +05:30
Akshay
fa9de160cc
add capability to add prefix on s3 listing (#1601) 2021-12-18 09:57:39 +05:30
Gandharv
c16bb0704f
set default height of query manager to 30% (#1596) 2021-12-16 14:09:43 +05:30
Gandharv
032fbef60b
fix: toggle query editor icon showing up on navbar when query editor is hidden (#1595) 2021-12-16 13:09:51 +05:30
Gandharv
df5df1a352
Add padding to align the editor header with sidebar (#1594) 2021-12-16 13:05:07 +05:30
Gandharv
9a9c4dbfa8
Change app version name to 10px (#1591)
Adds font size to `.app-version-name`
2021-12-16 13:03:20 +05:30
navaneeth
06a537b031 Merge branch 'main' into develop 2021-12-16 09:54:51 +05:30
Navaneeth Pk
b383ed2ba4
Fixes z index issue of date picker widget (#1570)
* Fix z-index issue of datepicker

* lint

* Fix for modal

* Fix

* Remove usage of onComponentclick from tabs widget

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-15 23:14:44 +05:30
Arpit
0f5c711fac
[Hotfix]: rest api oauth2 - fields value (#1582)
* fix:rest-api-oauth-client-secret

* fix:rest-api-oauth-custom-auth-params

* Revert "fix:rest-api-oauth-client-secret"

This reverts commit b6e3ec3605.
2021-12-15 23:14:24 +05:30
Sherfin Shamsudeen
7a79695af7
Feature/disable password login (#1585)
* Add option to disable login/signup via username/password

* Add documentation for disabling login via username/password
2021-12-15 22:53:07 +05:30
Arpit
7586fb4e39
[improvement] Widget components #1475 - modal widget (#1482)
* new implementation/modal

* title fixed

* removed use of component for getting exposed variable

* renamed useState var

* Rename variable canShowModel to canShowModal on Modal component

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-15 09:53:57 +05:30
Arpit
847fe94850
[Chore] Popup Code Hinter component style fixes (#1561)
* popup icon alignment:fix

* preview bg code block in popup hinter

* portal modal style fixes

* theme classes for preview error

* style fixes

* style fixes-darkmode height

* added color var and theme border mixin

* not related
2021-12-15 09:53:17 +05:30
Gandharv
89c7b1b89f
Make query manager re-sizeable (#1569)
* add drag handle to query manager

* remove console

* fix on resize options getting set to defaults

* remove prevent default from mouse move
2021-12-15 09:32:43 +05:30
Arpit
119275f9ba
[improvement] Widget components #1475 - container widget (#1488)
* new implementation/image

* Revert "new implementation/image"

This reverts commit 637bd83108.

* new implementation/container-widget

* resolved

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-14 16:49:12 +05:30
Arpit
9505589e6e
[improvement] Widget components #1475 - text editor widget (#1481)
* new implementation/rich-text-editor

* Ensure that Rich text editor exposes its default value on load

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-14 16:48:42 +05:30
Arpit
da670a8310
new implementation/password-input (#1483)
Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-14 16:48:25 +05:30
Arpit
57d89e76b8
[improvement] Widget components #1475 - toggle widget (#1484)
* new implementation/toggle-btn

* Make ToggleSwitch expose its value on load itself

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-14 16:47:40 +05:30
Arpit
5247265500
[improvement] Widget components #1475 - text widget (#1485)
* new implementation/text-widget

* fixed loading state

* resolved
2021-12-14 16:47:11 +05:30
Arpit
1069320120
[improvement] Widget components #1475 - range-picker widget (#1486)
* new implementation/daterange-picker

* resolved

* Bump default width of range picker from 8 to 10

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-14 16:47:02 +05:30
Arpit
8fa30f5612
[improvement] Widget components #1475 - image widget (#1487)
* new implementation/image

* Revert "new implementation/image"

This reverts commit 637bd83108.

* new implementation/image
2021-12-14 16:46:52 +05:30
Arpit
c550836497
[improvement] Widget components #1475 - QR scanner widget (#1489)
* new implementation/image

* Revert "new implementation/image"

This reverts commit 637bd83108.

* new implementation/qr-scanner
2021-12-14 16:46:44 +05:30
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
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
Gandharv
cc81386f9b fix: add correct display value (#1565) 2021-12-13 21:32:01 +05:30
Gandharv
8a04cce235
fix: add correct display value (#1565) 2021-12-13 14:31:03 +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
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
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