Commit graph

400 commits

Author SHA1 Message Date
Rudhra Deep Biswas
b5947dbb5c
New EE Licensing Plan Changes LTS to Modularisation (#12625)
* init

* fix

* logs

* remove ds

---------

Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
2025-04-21 19:37:16 +05:30
Akshay
4b6e6ee5cd
Feature: Dynamic form validations (#12292)
* fixed datasource page crash as function definition was referenced wrongly (#11562)

* Add new dynamicform

* Refactor postgres manifest file

* Add new input-v3 component

* Conditionally render DynamicformV2

* Make change to design system component

* Remove key-value label over header input and increase width

* Add validation function for individual inputs

* Add validations on datasource creation

* Update custom input wrapper

* Update manifest file

* Add validation setup for dynamic form with JSON schema

* Fix input labels

* Add more validation checks

* Update manifest

* Remove console logs

* Add props for header component

* Skip validation for encrypted fields

* Add validations while saving datasource

* Remove validations for connection-options

* Add fetch manifest function

* Centralise validation errors

* Add property name in datapath

* Initialize and map validation errors to property

* Reuse validationErrors while saving datasource

* Bypass design system validation by implementing custom validation prop

* Skip initial render validation

Skip validation message for unchanged elements

* Remove fetchManifest

* Add text input for connection string

* Add workflow schema

* Fix double border on error or success

* Remove redundant default populating logic

* Fix the error helper text color to red

* Validate all fields post initial render

* Show label name in helper-text for failed validation

* Correctly switch between the password eye svg

* Incorporate edit button on encrypted inputs

* Resolve lint issue

---------

Co-authored-by: Ganesh Kumar <40178541+ganesh8056@users.noreply.github.com>
Co-authored-by: Parth Adhikari <parthadhikari@192.168.1.3>
Co-authored-by: Parth Adhikari <parthadhikari@192.168.1.2>
Co-authored-by: Parth Adhikari <parthadhikari@192.168.1.6>
Co-authored-by: parthy007 <parthadhikari1812@gmail.com>
2025-04-03 13:47:49 +05:30
Ganesh Kumar
04bc740d95
Feat: Auto install plugin based on queries on app import (#12350)
* dependent plugins will be auto imported on App import

* added error handling

* added error handling for edge cases

* API permissions are updated
2025-04-03 12:02:39 +05:30
Midhun G S
b55490493d
Post modularization fixes (#12420)
* [white-labelling] Logo related pending issues (#12243)

* Working on refactoring and fixing white-labelling for modularisation

* Working on fixes

* Fixed: app builder logo issue

* Refactored default state behaviour

* Removed console logs

* Added workspace slug

* Adding single image changes from ee lts (#12272) (#12285)

Co-authored-by: Adish M <44204658+adishM98@users.noreply.github.com>

* Moving Vulnerability CI from EE (#12288)

* CE modularisation bugs (#12278)

* Working on refactoring and fixing white-labelling for modularisation

* Working on fixes

* Fixed: app builder logo issue

* Refactored default state behaviour

* Removed console logs

* Added workspace slug

* Fixed: Able to update group name with space

* Adding single image changes from ee lts (#12272)

* Fixed: Able to add a user 2 times to the group

* Fixed: Builder isn't able to datasiurces

* Fixed: updated the builder check

* Refactored the changes

---------

Co-authored-by: Adish M <44204658+adishM98@users.noreply.github.com>

* Add data-cy for components in modularisation branch (#12296)

* [modularisation-bugs] Fixing rest of the priority bugs  (#12301)

* Fixed: custom logout url issue

* Fixed: fixed all workspace redirection issue

* Fixed: made the datsource access same for ce and ee-basicplan builders

* Fixed: sample db connection issue

* Fixed: sample database query issue

* Fixed: page isn't showing the organization list for user whose current organization is archived

* Fixed: granular permission datasource page

* remove license check for oidc login

---------

Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
Co-authored-by: Adish M <44204658+adishM98@users.noreply.github.com>
Co-authored-by: Ajith KV <ajith.jaban@gmail.com>
Co-authored-by: Anantshree Chandola <anantshreechandola23@gmail.com>
2025-04-01 16:16:01 +05:30
Mekhla Asopa
0c338412a8
added data-cy for rest api (#12298) 2025-03-19 13:56:33 +05:30
Manish Kushare
5f416a31bf
[Fix] - TJDB bug fixes in modularisation (#12112)
* The space is required in between the primary column's name

* Added change for Made content width to 100% for request field in rest api query manager

* Filter label update with value 2 without apply 2 conditions

* The SQL editor size is not correct for the TJDB query

* There is a blank space in the json code hinter

* The blank space added after vertical scroll in the edit row tab

* Esc button size is not correct in the calendar for date and time data-type

* Unable to see the time in calendar for the date time column

* Unable to see the time in calendar for the date time column- added more specificity of class

* Fix bulk update primary key CodeHinter initialization
2025-03-07 18:11:18 +05:30
gsmithun4
269ec56455 Initial commit 2025-02-25 12:22:50 +05:30
Mekhla Asopa
b5225a3382
Added data-cy for rest api (#11922) 2025-02-04 18:59:19 +05:30
Akshay Sasidharan
f07a5a7113 Merge branch 'main' into release/marketplace-sprint-7 2024-12-10 19:03:55 +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
Ajith KV
b87dbf304c
Added data-cy for newly added components (#11435) 2024-12-03 11:53:34 +05:30
Akshay
09c305b157
Merge branch 'main' into release/marketplace-sprint-6 2024-11-29 01:29:06 +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
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
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
johnsoncherian
c7f3d5b9cc Merge branch 'lts-3.0' into fixes/release-v3.0/appbuilder 2024-11-14 12:25:23 +05:30
Nakul Nagargade
f505ab15c1 Merge branch 'fixes/release-v3.0/appbuilder' into fixes-ee-nakul 2024-11-14 10:36:47 +05:30
Johnson Cherian
db702de6cd
Merge pull request #11280 from ToolJet/page-and-viewer-fixes
Fix: viewer, sidebar and pages bugs
2024-11-14 10:28:57 +05:30
Nakul Nagargade
5694ff17d1 Fixes dark mode, mode theme in inspector, bg color in viewer, widget copying in Tab 2024-11-12 11:31:14 +05:30
Vijaykant Yadav
66defdf1c9 fix: viewer, sidebar and pages bugs 2024-11-12 11:03:33 +05:30
Rohan Lahori
fce61d8db9 open in new tab fix workspace modal (#2595) 2024-11-11 22:54:19 +05:30
Kartik Gupta
7a97623713 fix query not opening when search has a value and search not persisting when query panel is closed 2024-11-11 11:39:01 +05:30
Ganesh Kumar
3f87ebd9cc Feat: User with builder role can access ToolJet database (#2609)
* feat: users with builder role can access tooljet database

* fix: review comments
2024-11-09 18:50:22 +05:30
Shaurya Sharma
2d9db0741c Breaking app fix 2024-11-06 18:25:58 +05:30
johnsoncherian
7de3c4220f Merge branch 'main' into refactor/app-builder-merge-main 2024-11-01 11:22:19 +05:30
Ganesh Kumar
2205ebb193
feat: made tooljet database and marketplace mandatory (#11170) 2024-10-30 17:30:44 +05:30
Akshay Sasidharan
03329abfa6 sync marketplace and tooljet database changes 2024-10-28 23:37:40 +05:30
Akshay
570ffe6292
Merge branch 'main' into release-sharepoint 2024-10-24 19:15:49 +05:30
Devanshu Rastogi
c97fee5dd2 Fix: Sharepoint plugin issues found in ee test system (#2496)
* Fixed bug where queries crashed when reconnected to Sharepoint without re-entering the client secret or when page field had a value greater than 1 for operations which do not support pagination.

* Enhanced error handling by refactoring the code for run function.
2024-10-24 19:05:55 +05:30
Vijaykant Yadav
82ce1daef5 fix: darkmode action on viewer in incognito 2024-10-23 16:20:23 +05:30
Johnson Cherian
1442a11689
Merge pull request #11069 from ToolJet/fix/ce-app-builder
Merge fixes
2024-10-22 19:09:26 +05:30
Shaurya Sharma
37312e1ffd Merge fixes 2024-10-22 18:45:30 +05:30
Vijaykant Yadav
fbcfe34d93 fix page menu UI and settings 2024-10-22 17:08:53 +05:30
Kartik Gupta
ee79e3a2cb page menu and import export changes 2024-10-22 15:49:55 +05:30
Adish M
291a86ffe3
Merge pull request #11000 from ToolJet/mail-css-bugs
Email Images and New Organization dropdown UI
2024-10-22 13:48:31 +05:30
Rudra
05eb8482d8 tick size 2024-10-22 12:34:10 +05:30
Rohan Lahori
0249102c08
Pending Backlog Issues (#10823)
* folder-count-fix

* fixed query

* fixed app sharing bug

* minor css fix for delete group-button

* changed delete button color for light mode

* profile photo missing in groups

* ui fix for alignment

* css fix

* updated regex for email validation

* ui-fix for syncing the ui file with ee

* fix for workspace settings page

* workspace slug fix

* reverted some minor change

* minor ui fix

* folder-rerender changes
2024-10-21 12:37:09 +05:30
Devanshu Rastogi
166187ba3d Feature: Integrated Sharepoint as marketplace plugin (#2228)
* Created Sharepoint plugin and completed Manifest.json and Operation.json file.

* Added testConnection and runQuery logic in index.ts. Changed all text fields inside operations.json to codehinter.

* Fixed issue where POST requests were not working due to empty request body.

* Created dynamic form component for Sharepoint plugin.

* Added OAuth flow to the Sharepoint plugin.

* Updated manifest.json and operations.json for Sharepoint plugin.

* Updated the run query function using the Microsoft Graph API.

* Fixed the OAuth success page issue where user had to manually close the tab.

* Fixed copywriting punctuation after design review.

* Created fetchRequestOptsForOperation function to improve readability.

* Changed rendering method of authorization url from new tab to new window.

* Removed console log if authorization window fails to open.

* Changed height of authorization window.

* Updated placeholder and type for the client secret field for Sharepoint.

* Fixed issue where columns and fields were not visible in result of Get Metadata and Get Items operations respectively.

* Enhanced error handling for Sharepoint plugin.

* Fixed the api endpoint for the update item operation.
2024-10-17 16:41:56 +05:30
Rudra
a4c3b315e9 styling changes 2024-10-17 15:54:42 +05:30
Rudra
a2ea0b0031 ws dropdown 2024-10-16 17:51:15 +05:30
Rudra
2f5c5e88ad init 2024-10-16 13:41:25 +05:30
Rohan Lahori
2c81929eee
Bugfixes not fixes issues/ce release (#10819) 2024-09-24 16:59:56 +05:30
Rohan Lahori
8e8edd46f9
Bugfixes branch2/ce release (#10809)
* minor bug fix

* made the workspace name field optional for create user dto

* css fix

* disabled custom group for default groups

* forgot password input field fix

* removed useEffect for disabled states

* removed this because of multiple copywriting

* added trim logic for empty name checks

* dto changes

* dto changes fixes
2024-09-24 13:26:49 +05:30
Rudhra Deep Biswas
e70bd9d324
Workspace Constant CE Bug Fixes (#10811)
* init

* changes
2024-09-23 17:26:52 +05:30
Anantshree Chandola
34510591b2
Feature: Secret constants + Bug fixes for resolution of constants and secrets (#10551)
* Feature: Secret constants

* updates

* use constants

* name length validation

* update checks

* styling updates + unique constraint checks

* editor state updates

* update

* correct state

* ui updates

* added encrypted tag

* styling updates

* style update

* update

* fix for existing bugs

* styling updates

* styles

* update
2024-09-23 11:00:36 +05:30
Rudhra Deep Biswas
372cf41fb1
Platform Release 19.2 Bugs (#10794)
* init

* slug changes
2024-09-20 15:37:32 +05:30
Rohan Lahori
52ab7b2b9a
fixed empty slug issue (#10690)
* fixed empty slug issue

* minor bug fix

* removed unused console logs
2024-09-03 12:47:06 +05:30
Rohan Lahori
b49dbf9b1c
Feature/autofill workspaceslug using workspace name (#10432)
* fixed workspace slug autofilling

* changes for auto update slug url based on name

* changes to enable workspace button only when required

* made change for removing empty spaces

* added - support in the slug

* fixed all the bugs in workspace creation card

* removed all the console used for debugging

* added check for setting the prop to true

* add slug set dependency in the useEffect prop
2024-08-13 13:30:58 +05:30
Anantshree Chandola
84ab6756fb fix initial count for instanceSSO 2024-08-07 15:44:45 +05:30
Rudra
af8ac37489 copywriting and text color changes 2024-08-07 12:51:49 +05:30