Commit graph

1349 commits

Author SHA1 Message Date
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
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
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
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
bc19612b3a Merge branch 'release/v0.10.0' 2021-12-07 21:21:33 +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
Arpit
5ca4b54649
[improvement] Widget components #1475 - datepicker widget (#1530)
* updated to new api, fixed time-selection, and fixed enableDate

* fix typo

* fix validate arg

* Initiate datepicker value to defaultValue and validate without referring to currentState variable

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-07 19:28:46 +05:30
Akshay
bf13cf5e1c
Feature: library apps with templates (#1529) 2021-12-07 18:55:41 +05:30
Gandharv
d8c3556d3e
change max-height to height for homepage body (#1527) 2021-12-07 18:06:43 +05:30
Gandharv
8eca3b4fe1
fix: dark mode styles for widget inspector (#1526) 2021-12-07 17:37:55 +05:30
Gandharv
d398266991
fix toggle value (#1525) 2021-12-07 15:41:12 +05:30
Gandharv
0c57a0b728
main wrapper position relative change (#1523) 2021-12-07 14:17:02 +05:30
Arpit
2cba8d6d38
fix- visibility defination of calender widget (#1514) 2021-12-07 11:26:20 +05:30
Gandharv
7a8698645e
Add checked prop to toggle element (#1520)
* fix: add checked prop to toogle element

* add onChange value based on event.target.checked
2021-12-07 11:21:56 +05:30
Sherfin Shamsudeen
aa0265c6cd
Disable textOrientation property for calendar events on month view (#1512) 2021-12-06 15:38:23 +05:30
Sherfin Shamsudeen
828e35094e
Set currentView of calendar correctly when default view is not month (#1510) 2021-12-06 15:38:03 +05:30
Gandharv
f3828339cb
fix: tabs text jump in inspector (#1508) 2021-12-05 15:31:57 +05:30
navaneeth
5ff6b5170b Update default button color to match new theme 2021-12-04 23:37:41 +05:30
navaneeth
f533e3c6c1 Fixes inconsistent popover styling 2021-12-04 23:24:56 +05:30
navaneeth
e7fc123b2a Update color of folder app count badges 2021-12-04 23:18:16 +05:30
navaneeth
5a98cb8ac2 App title should not overflow to next line 2021-12-04 23:13:54 +05:30
Gandharv
06201a3679
Split properties and styles for component inspector (#1467)
* split properties and styles for component inspector

* add accordion for table component

* add accordion to charts.jsx

* add accordion button css

* css changes

* move +add to right + change basic fields to properties

* keep events and layout closed by default

* center empty text

* add empty text for handler events

* css changes

* add margin bottom for table columns+cards

* css fixes

* add spacing below add+ button
2021-12-04 23:11:25 +05:30
navaneeth
0a6173bec1 Hoxfix for device window width 2021-12-03 18:34:33 +05:30
navaneeth
6ca57daf1e Merge remote-tracking branch 'origin/main' into develop 2021-12-03 18:28:27 +05:30
Navaneeth Pk
819f223b99
Default to desktop view if no widgets on mobile layout (#1506)
* Default to desktop view if no widgets on mobile layout

* Revert

* Fix
2021-12-03 18:27:53 +05:30
navaneeth
2a98c6bbae Merge branch 'develop' of github.com:ToolJet/ToolJet into develop 2021-12-03 16:19:52 +05:30
navaneeth
668f4b8478 Merge branch 'main' of github.com:ToolJet/ToolJet into develop 2021-12-03 16:19:25 +05:30
Arpit
f43b19960c
fixes: text type columns of tables cannot be marked as "not editable" (#1502)
* fix

* isEditable set to true, run handleCellValueChange function
2021-12-03 16:06:24 +05:30
Arpit
05ac0e470e
Fixes #1498 - serverside pagination fix (#1500)
* lint fixes

* serverside pagination limits records to 10: fix
2021-12-03 15:17:34 +05:30
Arpit
f4c56225fc
table string column input field max width fix (#1504)
* lint fixes

* fix
2021-12-03 15:14:04 +05:30
Arpit
07dc6c2197
Bugfix: cell value does not change when the value on the inspector is updated [table widget] (#1440) 2021-12-03 13:52:50 +05:30
Arpit
25a196d354
fixed: Improper date parsing (#1318) 2021-12-03 13:52:14 +05:30
Gandharv
372bfe7a18
fix: query manager closing on view updates (#1478) 2021-12-02 14:17:48 +05:30
Arpit
2b303c026b
[Feature] : Gsheet update operation (#1453)
* gsheet update op: schema and UI

* gsheet update op: server

* update operation for google sheet datsource api

* remove unsued comments

* backward compatiable: removed custom rule for sheet

* unsused consolelogs

* .

* Show gsheets update query body as a single-line codehinter

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-02 12:25:40 +05:30
Karl Rezansoff
620b3277c0
moved toast container so toasts show above modal (#1480) 2021-12-02 12:22:41 +05:30
navaneeth
c834f4fc26 Change the table widget scrollbar track color 2021-12-01 18:14:35 +05:30
navaneeth
53070f55eb Merge branch 'develop' of github.com:ToolJet/ToolJet into develop 2021-12-01 16:33:47 +05:30
navaneeth
22319251f5 Merge remote-tracking branch 'origin/main' into develop 2021-12-01 16:33:25 +05:30
Navaneeth Pk
1408f5725e
Update logo colors (#1477) 2021-12-01 16:12:32 +05:30
Sherfin Shamsudeen
daf2dcb8d1
Feature/dashboard redesign phase 1 (#1472)
* Display apps as cards on dashboard

* Add alignment, border and font styles to app cards

* Arrange app cards in 3x5 grid on dashboard

* Fix bug with app list index calculation

* Remove overflow and scrollbar from homepage body

* Align homepage header with apps grid

* Display three-dots icon on top-left of app card

* Highlight app card on hover on dashboard

* Replace edit and launch buttons with new design on app card

* Align app cards along with folder panel

* Change three-dots image of app menu

* Align app name and details towards center of app card

* Support dark mode in dashboard

* Apply brand colors to app dashboard

* Set canvas container bg color to #2f3c4c for dark mode

* Hide scrollbar from app body

* Fix alignment issues on app dashboard when app create button is not shown

* Rename svg file for three-dots icon on app card
2021-12-01 13:50:21 +05:30
Sherfin Shamsudeen
9326120b5a
Apply higher z-index for selected component (#1474) 2021-11-30 19:48:12 +05:30
Sherfin Shamsudeen
2b308b2f3a
Fix width for iFrame and PasswordInput (#1463) 2021-11-25 19:34:47 +05:30
Sherfin Shamsudeen
64ec3e5b20
Set code editor default width to 15 (#1459) 2021-11-25 17:33:31 +05:30
navaneeth
dff987b58f Fix for incorrect modal widget placing 2021-11-25 14:17:18 +05:30
Sherfin Shamsudeen
c2ad1f029d
Set overflow to auto for .jet-data-table:hover (#1457) 2021-11-25 13:28:10 +05:30
Navaneeth Pk
9cc0023b9c
Disable drag while table columns are being resized (#1452)
* Fix resize

* Fix

* Make calendar not draggable from its body

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-11-24 18:01:21 +05:30
Gandharv
29b20ce1e8
fix rest api defaults (#1450) 2021-11-24 16:12:16 +05:30
Sherfin Shamsudeen
1cdd109403
Generate file action (#1449) 2021-11-24 15:03:28 +05:30
Sherfin Shamsudeen
f804706de2
Expose current view of calendar component (#1447)
* Expose current view of calendar component

* Rename exposed variable 'view' of calendar to 'currentView'

* Document currentView variable of calendar
2021-11-23 20:38:40 +05:30
Sherfin Shamsudeen
efa6b4ab50
Custom color for calendar event title (#1445) 2021-11-23 20:32:25 +05:30
Sherfin Shamsudeen
72ec5d786d
Add option to display day names as headers of calendar week view (#1444) 2021-11-23 15:46:10 +05:30
Sherfin Shamsudeen
ba89790d0d
Add all-day label to calendar all day events row (#1443) 2021-11-23 14:50:53 +05:30
Navaneeth Pk
ae02ec49a9
Feature/calendar popover (#1442)
* Calendar popover

* Cleanup

* Fix scroll

* Resize issue fix

* Make calendar event popover optional

* Fix lint issues on CalendarPopOver.jsx

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-11-23 13:29:22 +05:30
Navaneeth Pk
354ccd7786
Tabs widget (#1438)
* Feature: Tab widget

* Fix container in container crash

* Container inside tabs

* props

* Fix

* Add icon

* Default tab property

* Fix lint issues with Tabs.jsx

* Introduce tab id to select between tabs

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-11-22 21:41:26 +05:30
Gandharv
b61d07e0c5
Refactor: move default options to schema files (#1425)
* refactor: move default options to schema files

* fix: use options instead of source.options

* add default empty object when defaults not present in schema

* add null checks for gsheets and slack component

* removes un-necessary console log

* delete constancts file

* delete default options file for data sources
2021-11-22 13:52:32 +05:30
Arpit
cfde7ccb85
Read file as dataURL or textString (#1415)
* Read file as dataURL or textString

* adds new properties to the file picker docs

* url -> URL encoded string

* typo fix

* docs update

* remove file reading options, and default file reading as textSting and dataURL

* remove docs: definations

* name variable should be empty string too by default

* data (exposed variable) updated to dataURL

* data (exposed variable) updated to dataURL
2021-11-22 09:19:27 +05:30
Arpit
31e8752b65
code hinter height fixed for queryEditors - datasources (#1431) 2021-11-21 09:44:26 +05:30
Arpit
1fdcccec26
google sheet datasource schema update (#1436) 2021-11-20 07:04:00 +05:30
Gandharv
a8806d3123
fix: add placeholder for records while bulk update in postgres (#1434) 2021-11-20 07:03:36 +05:30
Gandharv
01f30d4194
chore: delete mysql source file (#1435)
This PR deletes the mysql file for data sources as its moved to schema
2021-11-20 06:56:47 +05:30
Gandharv
133e53720f
fix: typo in index.jsx (#1433)
fixes typo
2021-11-20 06:56:29 +05:30
Gandharv
1ddd170539
Add schema for data query editor (#1361)
* Initial commit for data query schema changes

* db: add mssql schema

* api: add graphql schema

* api: add redis data query editor

* db: add my sql db

* api: dataquery - add airtable api schema

* api: dataquery - add dynamodb api schema

* database: dataquery - add database api schema

* database: dataquery - add elastic search api schema

* database: dataquery - add mongo db schema

* database: dataquery - add postgre sql schema

* api: dataquery - add slack schema

* api: dataquery - add google sheets schema

* database: dataquery - add gcs schema

* fix: dynamodb styles

* fix: elastic search styles

* fix: firestore styles

* fix: remove line numbers + add className prop + add initialValue prop

* remove line numbers

* cleanup: remove jsx files of data queries

* cleanup: fix merge conflicts

* fix: on edit dropdowns not retaining value

* fix: remove unnecessary log statement
2021-11-17 23:29:00 +05:30
Gandharv
1750dc73a6
aadd delete shortcut when a widget is in selectable mode (#1418)
* feat: add delete shortcut when a widget is in selectable mode

* feat: ignore key events if the target element is input, textarea, iscontenteditable
2021-11-17 22:59:36 +05:30
Arpit
07572e6ce5
Bugfix: Redirecting to /login instead of / (#1419)
* after correct creds are provided should not redirected to '/login' instead should redirect to '/'

* resolved conflicts
2021-11-17 19:25:59 +05:30
navaneeth
4d01aa31a1 Fixes incorrect resolving of cellValue 2021-11-17 17:07:06 +05:30
Sherfin Shamsudeen
d88139d5b7
Feature/merge google sso to community edition (#1420)
* SSO 🔥 (#2)

* Add rough implementation of google SSO

* Use env variables for storing Google Oauth client id

* Set organization user to active when a new user is created via sso

This commit also fetches first name and last name from the payload
received from google.
Also adds some refactoring.

* Apply proper styles to google login button

* Refactor oauth controller

* Move google specific logic to a separate service

* Fail sign-in if google could not verify idToken

* Refactoring update for GoogleOAuthService

* Change env variable name for google sso client id

* Show Google sign-in button only if client id env variable is given

* Add SSO_GOOGLE_OAUTH2_CLIENT_ID to app.json

* Whitelist apis.google.com in CSP

* Add accounts.google.com to CSP

* Add documentation for Google SSO

* Add e2e tests for Google SSO

* Resolve minor linting issues

* Avoid use of raw query in migration for SSO ID

This commit also adds an index for SSO ID

* Verify domain of user's email id for single sign on

* Add documentation for RESTRICTED_DOMAIN env variable in SSO

* Move SSO controllers and services to ee folder

* Move GoogleLoginButton to ee folder

* Test the restricted domain verification for Google SSO

* Remove unnecessary console.log

* Apply better styles to Sign in with google button

* Remove documentation for Google SSO

This will be added to the community edition repo

* Remove unnecessary static images

* Fetch Google OAuth2 client id from server instead of client env (#3)

* Check for existing email when signing in via SSO (#4)

* hotfix oauth service return type

* hotfix sso user creation

* Allow disabling sign-up via SSO (#5)

* hotfix file input change on import/export

* Align SSO button on login box center (#6)

* Fix: group permission not being set on sso (#7)

* fixes group permission not being set on sso

* update specs for sso

* lint fix

* add user id on login response

* decamelize keys on login response

* fix specs

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
Co-authored-by: navaneeth <navaneethpk@outlook.com>
2021-11-17 16:51:50 +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
Gandharv
27bb0ef2a3
Add jwt auth to websocket connections (#1392) 2021-11-15 21:15:16 +05:30
Gandharv
6b8e32b850
Fixes CSS of border-bottom of active classname in group manager (#1407) 2021-11-15 21:14:53 +05:30
Arpit
7663147525
Feature: Code editor widget (#1381)
* Code Editor Widget

* code editor docs added

* updated to Code Mirror

* updated to Code Mirror

* Language resources do not need to be importe in @codemirror-v3.x

* code editor docs: updated with language mode info and link

* comment pkg.json for future ref - @uiw/react-codemirror versions

* docs: supported lang

* widget reference sidebar alphabetical order

* removed comment form pkg.json
2021-11-15 12:12:02 +05:30
Tulsi Prasad
fec4e90057
Add clear button on search widget manager (#1340) 2021-11-15 11:49:27 +05:30
Arpit
a203253131
Feature: adds code preview for codeboxes (#1011)
* preview codeHinter default=true

* adding preview code for codeHinter for table widgets

* previw for codeHinter in eventManager and RestAPI headers tab fixed

* added classes to header tabs

* fixed preview for transformations

* widgets preview for title

* preview for advance tab QueryManager

* preview box for datasource queryeditor

* sql code hinter UI spaces fixed
2021-11-15 11:48:09 +05:30
Akshay
a7f36f77f6
Chore: Revise and add specs for folders (#1391)
* revise and add specs for folders

* Feature: Folder create permission (#1394)

* add migration for folder create permission

* add backfill migration for folder create permission on admin group

* adds permission for folder creation

* refactor function

* select distinct folders
2021-11-15 11:43:48 +05:30
Arpit
df88790dab
Feature: IFrame widget (#1402)
* feature: iframe widget

* iframe docs - added

* explicitly set frame-src directive

* explicitly set frame-src directive

* typos fixes
2021-11-15 10:09:56 +05:30
Gandharv
abeecaa638
Fix for users api being called multiple times (#1389) 2021-11-11 21:23:02 +05:30
Gandharv
6c02987cb7
Fixes nav links css for dark mode (#1396) 2021-11-11 21:22:31 +05:30
Arpit
7d42a0283d
Reset to default value when option values gets an update (#1332)
* reset t0 default value when optin values gets an update

* reset the default value to empty string

* Revert "reset the default value to empty string"

This reverts commit 6845422613.

* Revert "reset the default value to empty string"

This reverts commit 6845422613.

* Reset to default value or to undefined  when option values gets an update

* removed unused effects
2021-11-10 14:35:35 +05:30
Gandharv
76e86bc56e
Chore: rename files to camelcase (#1388) 2021-11-10 14:13:22 +05:30
SAI SUMANTH KUMAR
6f0183c32f
Fixed : Show tooltip on comments tab which says indicates that the app needs to be saved to open comments (#1359)
* added tooltip

* Update frontend/src/Editor/LeftSidebar/SidebarComment.jsx

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>

* Fix tooltip not showing up on sidebar item when disabled

Fix tooltip not showing up on sidebar item when disabled

* Remove if statement around onClick handler - sidebarcomment
2021-11-09 09:23:38 +05:30
Sherfin Shamsudeen
50174efeaf
Feature/event handlers for table toggle (#1377)
* Fixing lint issues

* Add support for events for table toggle

* Await cell value change before firing table togle event

* Make execution of actions for column events and table button events serial

* Await execution of each table column/button event before executing the next
2021-11-08 12:58:05 +05:30
Gandharv
957241bdb8
Broadcast only to clients connected to a particular app id (#1384)
* websocket: broadcast only to clients connected to a particular app id

* fix: type error

* fix: broken test for comment
2021-11-08 12:45:18 +05:30
Navaneeth Pk
583bc6ea7d
Switch to secure ws connections when possible (#1380) 2021-11-05 19:05:08 +05:30
Gandharv
6f1e3c19db
add websocket url fallback as window.location.host (#1374) 2021-11-05 15:11:00 +05:30
Sherfin Shamsudeen
b4a1ae9c55
Invoke onComponentClick whenever onClick event is fired via fireEvent (#1371)
Co-authored-by: Sherfin Shamsudeen <sherfin@Sherfins-MacBook-Pro.local>
2021-11-05 10:35:31 +05:30
navaneeth
5956eebddf Remove initials from comment cursor 2021-11-04 15:33:03 +05:30
navaneeth
fe6fbcaad6 Minor UI corrections for comment dialog 2021-11-04 14:55:57 +05:30
navaneeth
6d8ac86f36 Fixes nav tab font inconsistency 2021-11-04 14:49:49 +05:30
Akshay
c58e0765bf
Feature: Google cloud storage integration (#1364)
* add ability to list buckets/objects and create signed url fot GET and PUT

* ask to specify region when adding s3 buckets

* add ability to read file contents from s3

* add ability to upload to s3 bucket

* rename s3 dropdown options

* add abilty to read, write, list and generate signed url for gcs

* fix gcs query service

* remove paginated response

* make gcs private key as textarea

* revise gcs upload response
2021-11-04 14:30:09 +05:30
Sherfin Shamsudeen
8bbbbfc869
Feature: Calendar widget 🗓 (#1368)
* Insert required boilerplate code for Calendar widget

* Display basic calendar

* Display events on calendar widget

* Pass JS date object as calendar default event date

* Add resource scheduling to Calendar widget

* Add icon for Calendar widget

* Allow configuration of views and default view for calendar

* Add onEventSelect event to Calendar widget

* Accept date as string for Calendar

* Option to disable/enable toolbar in Calendar

* Add default date to Calendar

* Add support for setting color of calendar events

* Set calendar cell size to 50px

* Allow spacious and compact cell sizes for Calendar

* Add support for "select slots" event for calendar

* Add support for custom event tooltip for Calendar

* Add support to not highlight today and now in Calendar

* Add visible border for Calendar events

* Set 14px font size for calendar toolbar

* Add dark mode styles for calendar

* Make calendar view mode controllable with logic

* Add documentation for calendar widget

* Add additional documentation for calendar events

* Expose default view instead of view for calendar

* Add documentation for changes in calendar

* Style updates to calendar

* Increase padding for calendar events
2021-11-04 14:23:50 +05:30
Arpit
a6f99f6fba
Feature: File Picker Widget (#1274)
* File Picker Widget inital commit

* Merged develop

* add file picker icon

* dropzone

* added file picker widget

* does notrequires* babel-import

* fixed styles and removed button to open file selector

* updatedbthe fle picker icon

* style fixes

* added event: onFileSelected

* seperated the concerns and made it more flexible

* fixed handling file types for the picker

* handle - file reject

* file picker description

* text color updates

* Reads contents of the file as a text string

* display list of accepted files

* filepicker docs

* read multiple files-fixed

* style fixes

* added filepicker gif for docs

* typo fixed: docs

* selected files should be inside the widget bound & clear button to clear the selected files

* remove btn for files and selected files should always remain inside the widget bound

* display files bg style and multi-files resolved

* fixed typos
2021-11-04 11:11:10 +05:30
Gandharv
3e1a5c1fb0
UI: Add a preview loader while a comment is being added to the canvas (#1358)
* ui: add a comment-loader while a comment is being added

* ui: add loader while notifications are being loaded

* add correct y co-ordinate for temp loader

* on tab change add loader for comment sidebar notifications
2021-11-03 19:36:18 +05:30
Arpit
e21f1cfd3f
Go to app - on success event fixed (#1360)
* Goto app handler, when run as the on-success event handler of query, it should not ask for confirmation, in the viewer

* Goto app handler, when run as the on-success event handler of query, it should not ask for confirmation, in the viewer
2021-11-03 13:33:29 +05:30
Akshay
44f3b9d8d0
Feature: AWS S3 Integration 🚀 (#1333)
* add ability to list buckets/objects and create signed url fot GET and PUT

* ask to specify region when adding s3 buckets

* add ability to read file contents from s3

* add ability to upload to s3 bucket

* rename s3 dropdown options

* update region dropdown for s3
2021-11-02 11:42:46 +05:30
Gandharv
ff8a6a0e61
reduce header size and fix launch button border (#1355) 2021-11-02 10:59:40 +05:30
Gandharv
22bce1f4fb
Feature: Collaboration ( realtime comments for canvas ) 🔥 (#810)
* feat: initial commit for collaboration feature

* add dnd to comments

* add positions endpoint

* feat: encapsulate all http common logic in http-client

* segregate sections and transfer responsibility of state

* feat: use-spring to add fade effect 

* fix: open in right

* fix: left-right position css

* add footer for message

* integrate getcomment endpoint

* use fromnow for date ago

* add dnd

* - Add data trasfer object for comment
- Add class-validator package to check the response type from client
- Add comment repository class for persistance layer
- Add comment service with std. http methods
- Update controller with all http methods
- Update comment module
- Fix http-client bug when error is thrown

* fix http client bug when error is thrown

* feat: add entity thread

* feat: add migrations for thread and comment

* update entitites

* add tid to migration

* filter comments by tid(thread_id)

* fix: comment migration, add missing column comment

* feat: integrate in ui

* feat: split comments based on app_id

* fix: dnd to correct position

* package json engines

* engines update

* update npm

* npm 6 to 7

* fix: add user initials to thread

* fix: add firtname lastname to the comments

* - Return user object when save thread called
- Hide password field from user response
- Fix created_at date typo
- Instead of fetch all threads on new thread added, add the response to array of existing threads

* feat: update ui components

* change icon on comments view

* ui fixes

* fix: close icon close the popover

* temp: comment select: false

* use currentUser from localStorage

* fix: on click outside if comment is open, dont hit addThread

* fix: auth token issue in http-client

* on drag hide the comment if open

* add jwt auth

* spec: add test for comment & thread

* cleanup: remove console.log

* feat: add comment actions

* feat: add edit, delete, resolve options

* feat: add mentions component

* feat: add nestjs websockets

* temp

* websocket: establish client-server communication

* ws: add message listner to comments module in ui

* feat: add broadcast method to broadcast new events to all clients 💣

* ws: cleanup 🤙

* fix: remove max height from comment actions

* feat: add user mentions, emoji support

* fix: add static list of users - temp

* update and delete iterations

* - Rename comment, thread to comments, threads
- Add conditional actions
  - Show edit, delete only if he is comment owner
  - Show resolve only if he is thread owner

* reset engines

* move svgr webpack to deps

* fix: ui issues

* remove log stmt

* refactor: move resolved icon to comment-header

* feat: allow comments to be added on top of widgets

* feat: add keyboard shortcut

* scroll to bottom on comment add

* ui fixes

* feat: add react toast for notification display

* feat: add comment badge

* fix: ws connection

* fix: ws

* remove rvrse

* feat: add comment sidebar

* feat: add comment right sidebar

* fix: add missing foreign key elements

* - upgrade typeorm to 0.2.38
- comment sidebar ui
- added filter ui

* feat: on click of right sidebar notificaiton open the comment box

* reset engines

* fix: add organization id to the comment and thread module

* fix: add current version id

* add currentversion id

* disable comments if no id present

* temp:checking for heroku deploy

* fetch app on edit and deploy version

* rename current_version_id to app_versions_id

* ui fixes

* show mentioned user in blue color

* add ui changes

* add authorization for create thread

* change color to blue on click of comment, add auth for other endpoints of thread

* update threads, notifications using socket

* add auth for comments

* remove events spec file

* fix duplicate key error

* fix notificaitons updation on edit, delete, resolve buttons clicked

* update notifications for edit

* feature toggle changes for frontend

* add check for comments server

* add emoji mart package for emoji

* add reply count in comment sidebar

* subtract 1 from count in comment sidebar

* change empty text when no comments available
2021-11-01 12:58:03 +05:30
Santosh Bhandari
755be351f9
Add border to color picker selector (#1329) 2021-10-30 18:38:21 +05:30
SAI SUMANTH KUMAR
56165ad8bd
Fixed : App allows to create a datasource with no name (#1253)
* Update DataSourceManager.jsx

* Update DataSourceManager.jsx
2021-10-29 14:36:44 +05:30
Jayden-Chiu
1aca2b0ea0
show toast on renaming first/last name to empty string (#1328) 2021-10-29 14:33:48 +05:30
Ksathwik03
5c17d64463
add new markers if addNewMarkers is set to true by default (#1323)
* add new markers if addNewMarkers is set to true by default

* Update components.js
2021-10-29 07:53:53 +05:30
Trevor Bayless
579d2bb79e
Show confirmation dialog when deleting a group (#1217)
* Show confirmation dialog when deleting a group

* Add cancel logic to groups dialog
2021-10-29 07:27:48 +05:30
Trevor Bayless
84f8f3c5bc
Adjust confirmation dialog logic so closed dialogs can reopen (#1259) 2021-10-29 07:18:33 +05:30
Tulsi Prasad
d3140a9d1b
Add link to documentation on API datasources (#1241) 2021-10-28 08:29:04 +05:30
Deepanshu Dhruw
8097b62ac1
Updated client-side input validations (#1282)
* added email validation utils
, added input validation for login page
;
'

* updated login page input validation

* added signup page input validation

* added forgotpassword page input validation

* updated reset-password page input validation

* updated input validation for invitations page
2021-10-28 08:25:00 +05:30
Yash Soni
765fdf007a
launch btn css fix (#1308) 2021-10-28 02:44:31 +05:30
akk312000
0192563232
Breadcrumbs not visible in dark mode #1028 (#1313)
* Added email field on profile page

* Fix:Breadcrumbs not visible in dark mode
2021-10-28 02:35:18 +05:30
akk312000
2de623ae9c
Added email field on profile page (#1311) 2021-10-27 13:28:54 +05:30
Arpit
6b79a3096d
Bugfix/chart widget freeze issue (#976)
* fixes chart widget

* refactored

* removing comments
2021-10-27 13:27:57 +05:30
Yash Joshi
7931e9b8f7
fix(import): only accept json files to create application (#1287) 2021-10-26 18:38:49 +05:30
navaneeth
669bc896fc Merge remote-tracking branch 'origin/main' into develop 2021-10-26 18:34:40 +05:30
Nishidh Jain
219079be84
Resolves text and button color issue in dark mode for filter component of table (#1283) 2021-10-26 17:55:53 +05:30
Arpit
ed3b166628
select search component fixed: event manager - actions (#1303) 2021-10-26 17:08:52 +05:30
SAI SUMANTH KUMAR
1cc16506b8
Should not allow creation of version without name (#1261) 2021-10-26 13:07:29 +05:30
Jayden-Chiu
206d4f0cef
reset connectionTestError on data source modal exit (#1295) 2021-10-26 12:45:58 +05:30
Nishant Samel
89c1f3f02c
Fixes logo alignment issue (#1291) 2021-10-26 10:03:25 +05:30
Rodolfo Nei
d5b062701a
fix widget documentation link to persist the applied theme (#1293) 2021-10-26 10:02:34 +05:30
Sherfin Shamsudeen
afa5dfc00d
Add action to set localStorage value (#1280)
* Add action to set localStorage value

* Apply spacing between key and value of set localstorage action
2021-10-25 22:24:21 +05:30
Arpit
e3087f737d
revert/fix default value for dropdown (#1142) 2021-10-25 17:25:40 +05:30
Gandharv
c8f3479432
add encrypted icon to firestore data source (#1272) 2021-10-25 14:46:46 +05:30
Akshay
a958b37cef
Feature: Group level permissions and related fixes (#1204)
* add column app_create to group_permissions table

* add app create column to group permission entity

* backfill app_create permission as true for admin group

* add app delete permissions to group permissions

* update group permissions entity for app delete

* add ability to set group level permission for app creation

* refactor and fix app clone and imports

* fix created by user on homepage

* fix spinner on import

* update seeds service to set group level permission

* fix rollback query

* fix imported/cloned app timestamps

* honor logged in user permissions at UI

* remove console log

* fix data query id being replaced on import

* replace data query id within app versions on import
2021-10-25 14:05:32 +05:30
Sherfin Shamsudeen
ef9951b255
Bugfix/table pageindex sync with total pages (#1263)
* Update table page data when page index is updated

* Pass pageIndex from useTable hook as lastActivePageIndex for pagination

* Goto last page in table whenever page count is less than current page index
2021-10-25 14:00:52 +05:30
Trevor Bayless
d5c4ca6128
Do not allow ConfigHandle icons to be dragged on the canvas (#1260) 2021-10-25 09:19:54 +05:30
Gurvir
f10727068e
Removes empty rulesets and commented out code (#1254) 2021-10-25 09:06:30 +05:30
SAI SUMANTH KUMAR
5a458acfe2
Disables resizing of textarea to avoid overflow (#1252) 2021-10-24 20:55:09 +05:30
SAI SUMANTH KUMAR
3ec6e2d06a
dropdown to H1 - H6 tags in Text Editor (#1207) 2021-10-24 20:43:55 +05:30
Jayden-Chiu
78f6785456
fix vertical alignment of empty folder in homepage (#1198) 2021-10-24 20:00:38 +05:30
Bhavin Ag
3ebf355d47
fix(table): add condition to check empty id row (#1213) 2021-10-24 19:54:00 +05:30
SAI SUMANTH KUMAR
c258016fba
Bugfix: The search box should be displayed on the map if canSearch is set to true by default (#1243)
* Update components.js

* Update components.js
2021-10-24 19:50:27 +05:30
Mohammad Farhan
36d39cb47b
Fixes close button in dark mode (#1187) 2021-10-24 19:49:00 +05:30
Raj Mhatre
a238efe062
fixed edit icon in databse section in dark mode (#1215) 2021-10-24 19:47:36 +05:30
Tulsi Prasad
3c1dc290e8
Use createref in Editor component properly (#1227)
- Prettify editor component
2021-10-24 19:46:10 +05:30
SAI SUMANTH KUMAR
1f1cd70175
To perform an action immediately after setting state on a state variable and then returning a result, a callback will be useful. (#1229)
* Update Editor.jsx

* fixed typo
2021-10-24 19:45:37 +05:30
JuniorS6
a27d603ea3
Update theme.scss for accessibility (#1212)
* Update theme.scss

* Revert theme.scss

* Update ManageGroupPermissionResources.jsx
2021-10-24 19:43:35 +05:30
SAI SUMANTH KUMAR
eec6263dda
Fixes the overflow issue of text editor (#1214)
* Update DraftEditor.jsx

* Update theme.scss
2021-10-23 17:50:53 +05:30
Jayden-Chiu
2106f4c5f5
Fixes app being able to be named empty or whitespace string in editor (#1197) 2021-10-23 16:11:58 +05:30
Santosh Bhandari
59e33a370c
Fix query manager appearance in dark mode (#1202) 2021-10-23 16:08:47 +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
Ksathwik03
3302eb9647
Fixes border radius (#1209) 2021-10-23 13:35:34 +05:30
navaneeth
2dedcae20a Shallow clone objects while resolving references 2021-10-23 00:41:22 +05:30
Sherfin Shamsudeen
65b5735b74
Feature/resize dropdowns (#1206)
* Resize dropdown height

* Fix for label

* fix

Co-authored-by: navaneeth <navaneethpk@outlook.com>
2021-10-22 14:42:37 +05:30
Pramod
a18dacf544
Use const declarations for variables that are never reassigned (#1203) 2021-10-22 12:17:31 +05:30
Ksathwik03
918e8b9304
Remove null check for 'component.definition.styles (#1183)
* Remove null check for 'component.definition.styles

* Update Toggle.jsx

* Update Toggle.jsx
2021-10-22 07:51:45 +05:30
Sherfin Shamsudeen
a7502e5f03
Feature/cell types (#1194)
* Add custom spacing for table cells

* Add migration to set every tables cell spacing compact

* Rename cellSpacing to cellSize

* Add documentation for table cellSize
2021-10-22 07:49:51 +05:30
SAI SUMANTH KUMAR
9b59d0820b
Avoid using this.state inside this.setState() (#1176)
* Update LoginPage.jsx

* Update LoginPage.jsx
2021-10-21 23:10:51 +05:30
Arnav Puri
cf4e28c59e
resolves #401 by adding dark mode color (#1189) 2021-10-21 23:01:21 +05:30
Bhavin Ag
37d3bb4ae9
update theme toggle position to bottom (#1186) 2021-10-21 22:57:31 +05:30
Arpit
cb78a73105
Password input widget (#1172)
* password input widget

* revert: textinput default value
2021-10-21 21:53:11 +05:30
alammoiz
0605f97a21
Added tooltip to buttons (#1132) 2021-10-21 21:44:21 +05:30
Muhammad Mohsin
94f614918e
Added condition for pie chart to hide marker and grid line from inspector (#1182) 2021-10-21 21:36:58 +05:30
nik
8a51fe36ad
Add default value for text widget (#1179)
* Add default value for text widget

* Revert "Add default value for text widget"

This reverts commit fc03b3bdcf.

t

* Remove extra space and add text widget

* add value at proper place and remove from display
2021-10-21 21:29:47 +05:30
alammoiz
8ead99407e
fixed dom property (#1178) 2021-10-21 13:02:25 +05:30
SAI SUMANTH KUMAR
ff82ca032d
Show password feature (#1159)
* show password feauture Implemented

* small typo

* fixed typo
2021-10-21 08:19:01 +05:30
Trevor Bayless
8ccdb3eedb
Update theme so all hr-text classes respond to theme switching (#1168) 2021-10-21 07:48:17 +05:30
SAI SUMANTH KUMAR
f47695dc23
Padding for datepicker component (#1160) 2021-10-20 22:56:34 +05:30
Arpit
373acb252a
Fixes time selection (#1162) 2021-10-20 22:51:46 +05:30
SAI SUMANTH KUMAR
9f00ceb4a7
Update DataSourceManager.jsx (#1164) 2021-10-20 22:50:55 +05:30
Aratrik Pal
25009b3a2a
Email should not be clickable #972 (#1163) 2021-10-20 22:50:29 +05:30
Dainius Lukša
7fb6a70b25
Invite user with existing email show error (#990)
* Invite user with existing email show error

* fixed react key warning

* fix var to const
2021-10-20 07:51:13 +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
Akshay
5043663c54
hotfix file input change on import/export (#1153) 2021-10-19 22:31:15 +05:30
Ksathwik03
82b1237128
Remove border radius of container widget (#1151) 2021-10-19 16:52:51 +05:30
Akshay
b0208c553a
Feature: Add ability to import and export apps (#1138)
* add ability to import and export apps

* copy credentials on imports if it already exists

* authorize exports for public apps with only authenticated users

* remove app auth guard for export

* make import as a separate button

* update import button styling

* handle prexisting slug while import

* set file input as null when file has been read

* add fix for slug updation on import
2021-10-19 16:52:00 +05:30
Arpit
1776ae85ea
Set textinput default value (#1148)
* revert textinput default value

* default value
2021-10-19 16:05:41 +05:30
Jayden-Chiu
3f3d53681b
remove ago suffix from app creation date (#1141) 2021-10-19 10:10:52 +05:30
Tulsi Prasad
d7a6948619
Add default value to RichTextEditor component (#1115)
- Update DraftEditor component only when default value is changed
2021-10-19 09:53:39 +05:30
VilijaSan
6c99b49930
[docs] setup pages cleanup (#1126) 2021-10-19 08:04:29 +05:30
Raj Mhatre
ccb5df757e
fixed edit icon in inspector not visible in dark mode (#1133) 2021-10-18 20:16:44 +05:30
Yash Joshi
c31a578978
fix(folders): add no folder present messaging in dropdown (#1118) 2021-10-18 13:49:40 +05:30
Deepanshu Dhruw
5ffcc14d68
updated saveFolder function, to validate newFolderName state before creating folder (#1125) 2021-10-18 13:23:19 +05:30
vedanth bora
18a0f34e16
Updated default value for date picker. (#1110) 2021-10-18 09:03:04 +05:30
Sai Deepesh
269ac0f191
add default value for textarea (#1111) 2021-10-18 09:02:33 +05:30
Alok Kumar Sahoo
9603f2b923
GH-1037: fix/base url not changing with theme (#1113) 2021-10-18 08:57:39 +05:30
Amit Wani
1c9c1afb08
Removed margin top of the toggle component (#1120) 2021-10-17 15:12:18 +05:30
VilijaSan
02434ce710
moved default parameter (#1041) 2021-10-16 08:45:20 +05:30
Arpit
78d0ce343b
Bugfix: fix widgets alignment consistency (#1083)
* widgets dimensions updated: follow up PR-#869

* removed unwanted console.log

* toggle widget minor tweaks

* Fixes the padding of dropdown & multi-select dropdown

* Minor corrections

* Fix padding of datepicker and date range picker

* Fix for toggle switch

* fix checkbox and removed duplicate classname in radio widget

* multi-select width update

* fixed widgets styles

* alignment consistency

Co-authored-by: navaneeth <navaneethpk@outlook.com>
2021-10-16 08:44:29 +05:30
Raj Mhatre
26cba4ece9
fixed dark mode text in groups page (#1099) 2021-10-16 08:41:34 +05:30
Akshay
047ad1bfe7
fix equality checks and data query run guard (#1086) 2021-10-16 08:40:56 +05:30
Mohammad Farhan
1170fcfe19
default values for text widget props (#1103) 2021-10-16 08:40:04 +05:30
Trevor Bayless
ea77528472
Give the Number Input widget a default value (#1105) 2021-10-16 08:39:06 +05:30
Idan Moral
c7d2b604a9
Changed default value of TextInput (#1090) 2021-10-15 19:56:32 +05:30
Joshua T
64d99b046f
Skip deepsource false positive (#1060) 2021-10-15 14:12:16 +05:30
Arpit
a42f1278d9
Fixes widgets not being dropped in the canvas (#1075) 2021-10-15 10:22:40 +05:30
arunkc
af5804776e
Refactor: add missing await expression (#1059) 2021-10-15 07:41:32 +05:30
Arnav Puri
6c137306d8
Fixed #1049 Broken Toggle Button (#1061) 2021-10-15 07:40:08 +05:30
Trevor Bayless
f9ab73516c
Update email placeholder text on login page (#1070) 2021-10-15 05:51:03 +05:30
Sherfin Shamsudeen
18dd420216
Do not use strict inequality for checking code string termination (#1068) 2021-10-15 05:29:10 +05:30
Akshay
ceca48b100
Revert "Feature: Snowflake integration (#996)" (#1046)
This reverts commit d4c4501d63.
2021-10-14 22:10:18 +05:30
alammoiz
b1bebf0990
Remove onclick event of folders (#1038) 2021-10-14 13:50:16 +05:30
Tulsi Prasad
a21dac5208
Use strict equality in comparision operators (#1006)
Fix #1002
2021-10-14 13:47:30 +05:30
Srijit Mondal
ee047f441f
Aligns blue bottom border in query editor (#1033) 2021-10-14 13:44:58 +05:30
Harshavardhan Bajoria
0826f5613a
Update the text on forgot password button (#1032) 2021-10-14 11:40:02 +05:30
VilijaSan
a294a3b977
Use regex test instead of match (#1016) 2021-10-14 08:02:59 +05:30
Sumit Sawant
9beec28eeb
Refactor: use forEach instead of map (#1022) 2021-10-14 08:01:11 +05:30
Raj Mhatre
7565ea5b20
Fixes section header color in dark mode (#1009) 2021-10-13 23:08:41 +05:30
Mohammad Farhan
99cb7fca78
missing table horizontal scroll fixed (#1017) 2021-10-13 22:31:54 +05:30
Виктор Виктор
d8009fa028
Refactor: removes directly used builtins for Object.prototype (#999) (#1005) 2021-10-13 14:07:14 +05:30
Akshay
d4c4501d63
Feature: Snowflake integration 🔥 (#996)
* add snowflake datasource and query manager for frontend

* add snowflake integration
2021-10-13 09:35:35 +05:30
Dainius Lukša
68566a6126
Confirmation dialog on app builder leave (#989) 2021-10-13 09:32:18 +05:30
VilijaSan
6f53f4d3e9
Submit user invite form on enter (#992) 2021-10-13 09:28:24 +05:30
Dainius Lukša
b6c55cc6dd
showModal handler won't crash when no modalId (#973)
* showModal handler won't crash when no modalId

* Fix empty modalId check
2021-10-12 15:14:42 +05:30
Rajesh.K
32fdac513c
Adds tooltip for user invitation (#974)
* Issue 971 added tooltip for user invitation

* Added styling for tooltip - used react-tooltip library
PR - https://github.com/ToolJet/ToolJet/pull/974
2021-10-12 12:15:52 +05:30
Santosh Bhandari
1111a75318
Change badge color for archived users (#982) 2021-10-12 11:09:56 +05:30
Elisha Hollander
a0403a4804
Code refactoring (#977)
* remove `componentData`

* declare `x`, `y` as `var`s

* remove testing for `!isTesting`

* Update frontend/src/Editor/CustomDragLayer.jsx
2021-10-12 09:03:34 +05:30
Akshay
7023f72d1d
Feature: User access management 🔥 (#918)
* create migrations for group permissions setup

* define new entities and relationships

* revise migrations

* rename columns

* add migration to populate permission groups for existing users

* Feature: User access permission group usage (#883)

* create migrations for group permissions setup

* define new entities and relationships

* revise migrations

* rename columns

* add migration to populate permission groups for existing users

* revise migrations

* hide roles usage

* setup group permissions for apps and users

* fix defaultChecked

* fix update permission checkbox

* fix casl ability check to have params passed

* fix casl apps abilities to check with app specific permission

* add ability to delete groups

* conditionally render edit and delete options for all and admin users

* fix user role to group migration

* revise group management pages to disallow updating default group

* move manage users and groups to navbar dropdown

* show only addable apps and users on dropdowns

* rename header as profile settings

* scope addable apps and users by organization

* scope viewable apps on homepage

* hide manage groups link from non admins

* make permissions to be used with radio input

* add loading state for add apps/users buttons

* revise unit tests

* revise migrations

* fix e2e tests

* comment out dead code

* fix seeds script

* handle folder count

* captalize error toast

* hide manage users dropdown for non admins

* show fobidden error on blank homepage

* fix folder app count

* fix invalid state set

* make group name clickable for edit instead

* users with edit permission can deploy apps

* not show edit link on homepage if user dont have update permission

* remove unused entity from merge

* remove roles usage from manage org users page

* fix folder count and blank slate on homepage

* disable add buttons if there is no selections

* humanize default groups on view

* make app added onto groups have read permission by default

* not show app menu if user is not admin

* remove admin users from group user addition dropdown

* create default permissions for app cloned

* fix querying index page without page params

* fix admin scoped out from group add

* remove apps from header

* fix invitation url not shown

* scope admin deletion check by org

* scope public apps by organization

* add specs for group permissions e2e

* removed unused entity and add group permissions spec

* remove console logs

* remove unused permission

* scope public app count by org

* remove console log

* refactor manage group permission resources component

* update group permssion in org scope
2021-10-11 20:45:58 +05:30
Santosh Bhandari
dbfd88dbef
Adjust widget search term to appear properly (contrast) in dark mode (#969) 2021-10-11 15:06:04 +05:30
Deepanshu Dhruw
0531b63df0
fixes logo toggling on dark mode (#967) 2021-10-11 15:02:16 +05:30
Arpit
6c4f1c48ef
Feature: Divider widget (#970)
* feature: divider widget

* fixes
2021-10-11 14:41:17 +05:30
Santosh Bhandari
1e285ce31b
Update the color of buttons to be same (#968) 2021-10-11 11:34:59 +05:30
natalson
2dd7e9f515
Decrease brightness of launch buttons when they are inactive (#964)
Co-authored-by: Natália Demčáková <natalia.demcakova@student.tuke.sk>
2021-10-11 08:32:44 +05:30
Deepanshu Dhruw
a1a4637eb5
updated font-weight of add folder button #956 (#960)
* updated font-weight of add folder btn

* added font-weight:500 css class in theme.scss and updated folder create classes
2021-10-11 08:31:03 +05:30
Arpit
c96a6b4eea
adding transformation error logs to debugger (#938)
* adding transformation error logs to debugger

* error data in debugger

* remove console.logs

* transformation error

* refactored
2021-10-11 08:30:26 +05:30
Sagar Choudhary
5a70d996fb
Feature: color selector for checkbox (#930) 2021-10-08 13:50:11 +05:30
Santosh Bhandari
dcbc594e59
Fixes the incorrect error message while resetting password (#948) 2021-10-08 13:31:00 +05:30