Commit graph

8575 commits

Author SHA1 Message Date
Devanshu Rastogi
3ebc1933cc
Enhance: Added 'Set Value' functionality and support for HTML with hyperlinks in Rich Text Editor component (#11406)
* Added HTML support for Placeholder and Default Value property. Added CSA for loading state.

* Exposed isDisabled, isVisible and isLoading variables. Also exposed setValue, setDisable, setVisibility and setLoading functions.

* Fixed issue where loading state functionality was not visible in the properties section on the initial render of rich text editor.
2024-12-04 14:40:57 +05:30
Kartik Gupta
5e9e9381e9
download event for table in server side pagination (#10330) 2024-12-04 13:59:29 +05:30
Devanshu Rastogi
af1dda8ec9
Feature: Added Radio button V2 component (#11408)
* Initial setup for Radio Button V2

* Made changes in Radio Button component and its properties.

* Added a loader.

* Added disabled states in Radio Button V2.

* Fixes

* CSA fixes

* fixes

* Fixed switch case label for Radio Button V2 and updated config files.

* Added Radio Button component in Inspector and refactored the component and config file.

* Refactored code for updating exposed variables and fixed default value for non dynamic options.

* Fixed sonarlint issue - Unexpected duplicate font-size.

* Made minor styling changes.

* Removed currentStateStore logic.

* Implemented single source of truth for changing value and resolved review comments.

* Changed font weight of options to 400.

---------

Co-authored-by: Nakul Nagargade <nakul@tooljet.com>
2024-12-04 13:59:08 +05:30
Devanshu Rastogi
fef97269ae
Added loading state in pie chart. (#11404) 2024-12-04 13:58:41 +05:30
Nithin David Thomas
aa4cd1fc2e
chore: Exposes CSAs for Container widget (#11229)
* chore: Exposes CSAs for Container widget

* Introduces hook to expose variables

* Updates hook to expose variable after setting the state

* Update frontend/src/AppBuilder/_hooks/useExposeVariables.js

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>

* Removes unwanted imports

* Exposing CSA to control component actions

* Moves CSA's to additional actions section

* Fixes wrong handle param

---------

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>
2024-12-04 13:56:38 +05:30
Nakul Nagargade
966c208333
Fix container and kanban can't be moved by dragging on the body of the component (#11355) 2024-12-04 13:54:43 +05:30
Nithin David Thomas
a609b3cd7a
chore: Set modal as the selected widget when clicked (#11363) 2024-12-04 13:54:08 +05:30
Devanshu Rastogi
f5cab90b5c
Fix: Content overflow issue in rich text editor (#11405)
* Fixed the content overflow issue in rich text editor.

* Fixed issue where content overflowed when height is resized below a certain height.
2024-12-04 13:53:28 +05:30
Devanshu Rastogi
05b25cfe82
Fixed value of value CSA when no default value is set and clear() action is used. (#11409) 2024-12-04 13:52:33 +05:30
Nakul Nagargade
c3b14dac27
feat: Introduce table styles property to set the casing of table column names (#11424)
* feat: Introduce table styles property to set the casing of table column names

* Update table default data keys

* Fix
2024-12-04 13:51:11 +05:30
Ganesh Kumar
d19a4cd942 Feature: Added env support to configure max rows and max csv file size for tooljet database bulk upload (#2726) 2024-12-04 13:50:20 +05:30
Manish Kushare
e1d7fbb2bb Feature: Add JSON datatype to ToolJet Database (#2492)
* feat: jsonb datatype support in tooljet database inprogress

* feat: jsonb support added for tooljet database column operations as well as create and edit table

* feat: added support to query JSONB values in JOIN operation

* added dto validation for join operation

* Added json data type in tjdb

* single line editor bug fixed

* Basic UI implementation for create table drawer for jsonb column type

* removed the console

* Added the sanitization for json default value in the dto

* Added jsonb svg for jsonb column type

* Updated UI for created column form

* Updated UI for edit column form

* Change the UI for create row

* Updated UI for edit row form

* Show dummy {...} value on table cell

* Setting up the codehinter in tjdb dashboard

* Created codehinter wrapper for tjdb table celljsonb data type

* Codehineter for tjdb cell

* Made changes in tjdb column and row drawers

* removed unwanted code

* Added maximum height for codehinter wrapper in each drawers

Avoided keydown event in create column drawer

* Set max height to codehinter for tjdb table cell

* Added jsonb path option for list row operation [rebase]

* Added filtering out column with json datatype in udpate rows operation

* Added filter option with jsonpath in delete row operation

* Made changes for join tables

* added json path in jon filter condition

* fix: parsing the jsonb default values in view table api

* Made on change and initial value value changes for all tjdb dashboard changes

* updated intial value and component name for codehinter in all drawers for tooljetdb

* Table cell edit codehinter initial value

* Updated codehinter onchange and initial value

* Added json path field for join sort section

* TJDB query manager updates for jsonb column type

* Tjdb dashboard bug fixes

* fix: joins jsonbpath expression can be sent without single quotes

* Added error validation for JSON in codehinter

* Removed console

* Added codehinter wrapper for tjdb cell

* Made default functional

* Made set to null functionality working

* Toggle functionality for default value

* Toggle null functionality

* Clean code

* create row form added handle disable input click

* cutom-footer css and add new data css

* Fixed tooltip

* Updated tooltip for join codehinters in query manager

* fix: jsonb column values validation in server side

* Made the initial value empty string if value is undefined

* active tab in edit row form bug

* Error state in tjdb hinter inside cell

* code mirror breaks, on the initial render

* Added placeholder and adjusted icon size in dropdown

* Fixed: Opening the cell with keyboard nav shows ‘enter to save’.

* bug fixed

* json icon alignment in the dropdown fixed

* In create and edit table, codehinter text is vertcially centered aligned

* Create row and update row info message for jsonb column type fixed

* SHowing popover when clicked on the jsonb cell

* Showing unique constraint in disable state for jsonb

* bugfix: bulkupload in tjdb for jsonb datatype should accept different json format

* Bug fixed for cellhinter and row form

* Avoided flickering in column form

* removed console

* zindex issue for codehinter in react portal for table cell

* Single line editor file changes removed

* row form bug fixed

* single quotes string escaped as it needs to be inserted as default value in JSONB column

* Bug fixed

* Edit and create row active tab bug fixed

* If value is empty, then dont show error in the codehinter

* fix: error handling for invalid jsonpath in join expression

* Handled null and Null edge cases for edit and create row

* Removed console

* Bug fix for save chages button in edit and create row drawer

* Error toast message for invalid syntax

* removed debounce time

* Copied all query manager and codehinter changes from editor to appbuilder directory

* Updated imports of codehinter in tjdb forms inside dashboard

* Discarded all changes made to editor directory

* Removed console

* Fixed flickering effect in the edit and create row drawer in TJDB dashboard

* Added focused state to codehinter in tjdb drawer, updated font size for the same

* Updated error message

* bug fixed : Pop up icon not visible inside codehinter

* Fixed : border issue in tjdb codehinter

* bugfix: array is not allowed to insert in JSONB column (#2734)

* Error message in tjdb drawers

* Error state for table schema

* Error message for cell hinter wrapper

* fixed : space between {} and table name in popup

* Spacing issue in create and update column UI in query manager fixed

* Show tooltip in fk column dropdown

* Bug fixed: edit drawer on first render cutom value is always empty

* Bug fixed

* Reverting react portal changes

* bug fixed for error copyright

* z index issue fixed for tableschema

* reverting back the changes for table form from last commit

* Bug fix: Flickering issue in table schema for codehinter input

* Bug fixed : toggle bwtween null and default value

* Handled spacing between the component name in react portal

* added new schema definition as we have introduced jsonb datatype default values can have Object and Array

* fix: removed the support for error code mapping for undefined function error  because database has different error text for it based on the scenario like jsonb aggregates etc

---------

Co-authored-by: Ganesh Kumar <ganesh8056234@gmail.com>
Co-authored-by: Ganesh Kumar <40178541+ganesh8056@users.noreply.github.com>
Co-authored-by: Akshay <akshaysasidharan93@gmail.com>
2024-12-04 13:49:24 +05:30
Nakul Nagargade
022e554812
[feat] : Add support for clicking anywhere on the edge should select the component (#11425) 2024-12-04 13:49:06 +05:30
Adish M
2858179029
Merge pull request #11494 from ToolJet/test/v3-platform-cypress-fix
Modified failed Platform cypress test cases
2024-12-04 12:21:08 +05:30
ajith-k-v
60265ed25a Modify platform cypress test cases 2024-12-04 12:17:53 +05:30
Ajith KV
c4f3137feb
Modified failed Platform cypress test cases for Tooljet V3 (#11486) 2024-12-03 12:18:49 +05:30
Ajith KV
b87dbf304c
Added data-cy for newly added components (#11435) 2024-12-03 11:53:34 +05:30
Akshay
3b7577262d
Merge pull request #11389 from ToolJet/release/marketplace-sprint-6
### 🚀  Features
- Feature: Add SSL support to MongoDB datasource 
  - closes [#10874](https://github.com/ToolJet/ToolJet/issues/10874)
  - by @parthy007
- Feature: Add list all sheets and create new spreadsheet operation to GoogleSheets
  - closes [#10878](https://github.com/ToolJet/ToolJet/issues/10878), [#10876](https://github.com/ToolJet/ToolJet/issues/10876)
  - by @parthy007
- Feature: Stripe plugin UI fixes with OpenAPI endpoint as source
  - closes [#9498](https://github.com/ToolJet/ToolJet/issues/9498)
  - by @devanshu052000, @mansukh-tj

### 🌟 Enhancements
- Enhance: Statement timeout for postgresql mssql mysql can now be configured from env  
  - by @ganesh8056
- Enhance: Add clear all, cancel & apply functionality to TJDB filter-popup 
  - closes [#9103](https://github.com/ToolJet/ToolJet/issues/9103)
  - by @parthy007 
- Enhance: Add read documentation link with data source drop down in query builder
  - closes: [#10713](https://github.com/ToolJet/ToolJet/issues/10713)
  - by @parthy007
- Enhance: Improve error handling in Google-Sheets run query 
  - closes [#9498](https://github.com/ToolJet/ToolJet/issues/9498)
  - by @parthy007
- Enhance: Error handling for PgSql, MySql and MsSql 
  - closes: [#10883](https://github.com/ToolJet/ToolJet/issues/10883)
  - by @parthy007
- Enhance: Rest api body to accept raw input instead of raw json 
  - closes [#10814](https://github.com/ToolJet/ToolJet/issues/10814)
  - by @devanshu052000 
- Enhance: Improve error handling in Airtable run query
  - closes [#10833](https://github.com/ToolJet/ToolJet/issues/10833)
  - by @parthy007 
- Enhance: Add AI-tag to datasources in marketplace page [#2597](https://github.com/ToolJet/tj-ee/pull/2597) 
  - closes [#11238](https://github.com/ToolJet/ToolJet/issues/11238)
  - by @parthy007
2024-11-29 01:31:43 +05:30
Akshay
09c305b157
Merge branch 'main' into release/marketplace-sprint-6 2024-11-29 01:29:06 +05:30
Akshay Sasidharan
bb600c6651 bump to v3.0.5-ce 2024-11-29 01:26:22 +05:30
Ganesh Kumar
a4189e0149 Fix: ToolJet database limit check API issue (#11416) 2024-11-29 01:00:15 +05:30
Vijaykant Yadav
9d6c880b84 fix: query kind for select source in rest api 2024-11-29 00:58:50 +05:30
Parth
6dbdfe2f79 Fix: Api call for token generation in client-credentials grant type (#2785) 2024-11-29 00:58:35 +05:30
johnsoncherian
cd2350db46 chore: version bump 2024-11-25 12:04:17 +05:30
Johnson Cherian
70391b2c12
Merge pull request #11401 from ToolJet/main-merge-lts-3.0
Main merge lts 3.0
2024-11-25 11:57:26 +05:30
johnsoncherian
8e3986e0a1 Merge branch 'lts-3.0' into main-merge-lts-3.0 2024-11-25 11:49:53 +05:30
johnsoncherian
11b4368cc0 Merge branch 'main' of https://github.com/ToolJet/ToolJet 2024-11-25 11:48:10 +05:30
Parth
63954ef189 Enhance: Add AI-tag to datasources in marketplace page (#2597)
* Add AI-tag to datasources in marketplace page

* AI BANNER Tag

* margin

* Refactor tag rendering logic for marketplace page

* Refactor tag rendering for datasource page

* Refactor import and props

* Remove ai prefix and fix indentations

* Make custom hook for fetching plugins.json

* Add AI tag on installed page

* Marketplace page UI fix and add a plugin button fixes

* Add AI tag on datasource connection form

Change classname

* Fix svg flickering

* Fix svg chipping issue

* Push AI tag to extreme right

---------

Co-authored-by: Rudra <rudra21ultra@gmail.com>
2024-11-22 15:53:17 +05:30
Parth
1e2ae8c720 Enhance: Improve error handling in Airtable run query (#2234)
* Refactor error handling to streamline QueryError messages

* Handle 404 errors
2024-11-22 12:52:58 +05:30
Akshay
7aa2a6880e Feature: Stripe plugin UI fixes with OpenAPI endpoint as source (#2725)
* Fixed GET and DELETE request input renders and added all UX fixes (#9498)

* fixed get and delete request input renders and added all UX fixes

* Extracted Stripe plugin component as a separate component for Dynamic Form.

* Resolved PR review comments and fixed issue where rendering path input field crashed the app.

* Changed param name underline to dashed for tooltip and revamped input field clear button

* Fixed a few sonarlint issues.

* Removed the duplicate code by creating a separate function named RenderParameterFields.

* Refactored computeOperationSelectionOptions function to not nest functions more than 4 levels deep.

* Refactored RenderParameterFields function to reduce its Cognitive Complexity.

* Made span tag with the 'button' interactive role focusable.

* Inside switch case for codehinter in DynamicForm > getElementProps, Extracted nested ternary operation for theme into an independent statement.

* Added keyboard listener to the clear button.

* Removed opacity from select dropdown and operation from operation select dropdown UI.

* Fixed syntax error in clearButton function.

* Removed the package @nrwl/nx-linux-x64-gnu from marketplace dependencies.

---------

Co-authored-by: Mansukh Kaur <mansukhkaur@Mansukhs-MacBook-Pro.local>
Co-authored-by: Devanshu Rastogi <devanshu.rastogi05@gmail.com>

* Made changes according to new app builder architecture in v3.

* Fixed import issue for codehintor

* Fixed issue where due to incorrect value, stripe queries crashed the entire app.

---------

Co-authored-by: Mansukh Kaur <mansukhkaur@Mansukhs-MacBook-Pro.local>
Co-authored-by: Devanshu Rastogi <devanshu.rastogi05@gmail.com>
2024-11-22 12:52:39 +05:30
Parth
993c925b12 Feature: Add SSL support to MongoDB datasource (#2430)
* Add TLS support inputs in frontend

* Add backend logic for TLS support

* Add TLS inputs types

* Update TLS label

* Change ssl_certificate to tls_certificate

* Update the file handling in tls

* Update connection logic

* Fix unlinking file issue

* Remove catch block for unlinking file

* Handle tls certs directly
2024-11-22 12:51:48 +05:30
Devanshu Rastogi
e4196adae1 Enhance: Rest api body to accept raw input instead of raw json. (#2249)
* Enhanced rest api body to accept raw input instead of raw json.

* Changed content type from application/json to text/json and changed copywrite to RAW.

* Changed rest api body toggle label from 'RAW' to 'Raw'.

* Added request label for static REST API data source.

* Fixed issue where GET query failed since body was undefined.

* Integrated json_body to add backward compatibility.

* Removed console logs.

* Added support for 'text/json' type in checkIfContentTypeIsJson function.

* Made changes according to new frontend architecture in v3.

* Fixed request URL field overflow issue.

---------

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
2024-11-22 12:49:08 +05:30
Parth
61781d2fa0 Enhance: Error handling for PgSql, MySql and MsSql (#2389)
* Enhance error handling for pgsql

* Enhance error handling for mysql

* Remove console logs

* Enhance error handling for MsSql

* Refactor error handling for consistency
2024-11-22 12:46:29 +05:30
Parth
cb181c40dd Enhance: Improve error handling in Google-Sheets run query (#2286)
* Add error details

* Display error for incorrect JSON

* Throw error for empty spreadsheetid and operator
2024-11-22 12:46:29 +05:30
Parth
6b3d1c3630 Enhance: Add read documentation link with data source drop down in query builder (#2162)
* Add read-documentation link

* Change copywriting for datasources name

* Update new component for link

* Increase input width

Update redshift link

* Fix the datasource name issue
2024-11-22 12:46:29 +05:30
Parth
cb056795b4 Feature: Add list all sheets and create new spreadsheet operation to GoogleSheets (#2370)
* Add create spreadsheet functionality

* Add list all sheets functionality

* Updated delete and batch-update methods

* Change interface to type
2024-11-22 12:46:29 +05:30
Parth
a45e740add Enhance: Add clear all, cancel & apply functionality to TJDB filter-popup (#2344)
* Update filter inputs

* Update filter body

* Style fixes

* Handle invalid filters

* Fix bugs
2024-11-22 12:46:29 +05:30
Ganesh Kumar
0890027c29 statement timeout for postgresql mssql mysql can now be configured from env 2024-11-22 12:46:29 +05:30
Midhun G S
167d1eb2db
Merge pull request #11370 from ToolJet/release/lts-3.0.3
Release LTS v3.0.3 - Platform
2024-11-22 12:41:00 +05:30
Midhun G S
94b8f466db
Merge branch 'lts-3.0' into release/lts-3.0.3 2024-11-21 20:14:55 +05:30
gsmithun4
1f73c11289 bump version 2024-11-21 20:14:08 +05:30
Adish M
04af065364
Merge pull request #11385 from ToolJet/fix/do-template-main
Fix DO template to main branch
2024-11-21 19:42:45 +05:30
Adish M
5a9f1b0f49 Fix DO template to main branch 2024-11-21 19:39:21 +05:30
Rudhra Deep Biswas
3f681c1bde
Integration and Workspace Constants Page UI Fixes (#11377)
* ui fixes ws constants and integration page

* ws const css
2024-11-21 19:06:33 +05:30
Rohan Lahori
be7d461816
CE Subpath pending issues (#11352)
* subpath fix

* subpath fix

* minor fix

* minor fix

* ee-cherrypicked
2024-11-21 12:26:22 +05:30
Johnson Cherian
eea5af776c
Merge pull request #11360 from ToolJet/fix-resolved-query-headers
Fix request, response, responseHeaders from resolved query not being part of  dependency graph
2024-11-21 11:56:38 +05:30
Nakul Nagargade
076ef68a26 Bump version 2024-11-21 11:23:25 +05:30
Nakul Nagargade
532499b815 Merge branch 'lts-3.0' into fix-resolved-query-headers 2024-11-21 11:21:51 +05:30
Nakul Nagargade
994e1a8c2f Add support for CSA setValue in codeeditor widget 2024-11-21 10:56:20 +05:30
Rohan Lahori
d29d0c730e
Local data source discontinued changes (#11344)
* basic setup changes

* minor changes

* minor ui fix

* remove parameter check and minor refactoring

* bugfix

* variable changes

* css changes

* removed consoles

* removed consoles

* pr review changes

* documentation link changes

* minor css changes
2024-11-20 14:58:58 +05:30