Commit graph

832 commits

Author SHA1 Message Date
Muhsin Shah C P
707dbcb606
Updated workspace signup flow & fixes (#9893)
* Added a fix for the blank page of the app url if the user is redirected from the invitation page

* Added workspace signup changes

* fix: could able to access sso only enabled workspace if switch b/w workspace after the flow completed

* fix: Getting something went wrong error when personal workspace is disabled

* Fix: logging with super-admin creds while ongoing session of another user making issue for a workspace switch

* fix: Resend workspace signup email is not working

* Added new changes to the resend-invite API

* Updating the source to invite while unarchiving the user

* Added forgot password fix (#447)

* Fixed import errors

* fixed invite flow sso error fallBack flow

---------

Co-authored-by: Midhun G S <gsmithun4@gmail.com>
2024-06-18 15:09:54 +05:30
Akshay Sasidharan
67bbce4070 add empty array check on import resources 2024-06-13 22:29:11 +05:30
Akshay Sasidharan
839fea3893 fix query params on postgrest request 2024-06-06 22:27:10 +05:30
Ganesh Kumar
35e8d116d7
Feature: Infinite scrolling for searching foreign key values in the ToolJet database. (#9785)
* feat: Added a support for infinite scroll on searching foreign key data

* feat: added debounce for search in infinite scroll and refactored the infinite scroll logic on listing Foreign key data

* fix: while searching foriegn key values in the drop down of tooljet database for varchar datatype possible search results will be returned and for other datatype strict matching is followed

* fix: review comments for optional chaining has been fixed

* fix: typo error has been fixed

* fix: client search on foreign key drop down is disabled

* stylefix: menu height is fixed now for foreign key drop down

* fix: foreign key drop down scroll bar moves to top on each render fixed

* Fix : Caching the foreign key column options  (#9828)

* Draft : Caching the fk options

* Refactored the code and use promise.all

* Used Promise.allSettled to ensure that all promises are processed regardless of whether they resolve or reject.

* Changed currentColumn to foreignKey

* Removed console

* Updated default value of cachedOptions state to empty object

* Updated the code with suggestion to uplift check condition

* Change the emptyError  copyright to No values found

* Bug fixed : on mount api request failing

* Refactored code from calculations to data by removing optional chaning

* Fix: Remove null values from the foreign key drop-down list (#9895)

* fix: filtered out null values and brought empty string to top in the foreign key drop down

* fix: review comments addressed

* fix: while creating or editing FK relation the source column drop down will not list empty column names

* stylefix: cell was not clickable on empty string

* fix: empty values are not listed on Foreign key drop down used for cell edit

* fix: empty string can be added as default in create table operation

* Fixed : Fk options are not cached when source column name is updated

---------

Co-authored-by: Akshay <akshaysasidharan93@gmail.com>
Co-authored-by: Manish Kushare <37823141+manishkushare@users.noreply.github.com>
Co-authored-by: manishkushare <kushare.manish9@gmail.com>
2024-06-04 17:50:44 +05:30
Shaurya Sharma
35efc02a4c
Fix for missing foreign key constraint on app import (#9661)
* Import Foreign Key Fix

* Minor Changes

* Relocated Logic and Added a Transaction Wrapper for Rollback

* Shifted Entire Logic to bulkTableCreate

* Nested Transaction Queries Added

* Fallback Added

* App export break fix

---------

Co-authored-by: Shaurya Sharma <shauryasharma@Shauryas-MacBook-Air.local>
2024-06-04 15:01:42 +05:30
Syed Abdul Rahman
1234979f56
fix : Delete column query throws error if the column name starts with uppercase in ToolJet database (#9877)
* fix : while deleting a column if the column name starts with uppercase, it throws error

* Added the query as parameterized query

* fix : using query runner with creation in parameterized queries
2024-06-04 11:09:29 +05:30
Akshay Sasidharan
1aa5ef66e2 Merge branch 'main' into release/database-1.1.1 2024-06-03 21:14:48 +05:30
Shaurya Sharma
bf2a310204
Shortcut keys for all drawers (#9791)
* Shortcut Keys added for all Drawers

* Shift + ALT Shortcut Key Added for Creating Multiple Rows

* Resetting to Default Values on Shift + Enter

* Added Error Borders on Input Fields for Create/Edit Row

* Minor Design Changes

* Comments Resolved

* Added Drawer Shortcut for Bulk Upload

* Dark Mode Colour Fix
2024-06-03 21:06:55 +05:30
Johnson Cherian
bc5580e055
Release: Appbuilder 1.7 (#9875)
* Remove date-fns depedency from table datepicker

* Revert Remove date-fns depedency from table datepicker

* Fix Built with Tooljet" watermark and app mode switcher appear briefly before the correct login page loads. (#9545)

* fix: headers and action button UI on table (#9626)

* fix: delete all children and nested children on component delete (#9182)

* fix: delete all children and nested children on component delete

* refactor: removed duplicate logics

* refactor: reuse functions and remove duplicate functions

* fix: update parentid of kanban modal child on version creation

* fix: add kanban modal children to delete list

* Fix duplicate text appearing at the bottom from the previous page in PDF widget (#9567)

* chore: fixed vulnerability issues on FE (#9561)

Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com>

* chore: Removed unused packages in FE (#9161)

* Removed unused packages

* Remove date-fns dependency drom table date picker (#9585)

---------

Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com>
Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com>

* Fix Pagination and order of rows malfunction if default selected Id is not on page 1 (#9651)

* Fix Pagination and order of rows malfunction if default selected Id is not on page 1

* remove console logs

* Add support to add Manual date entry in Datepicker table column (#9631)

* Removed unused packages

* Add Manual date entry in Datepicker table column

* Remove date-fns dependency drom table date picker (#9585)

* fix date input issue

* Remove consoles

---------

Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com>
Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com>

* Feature: pages sidebar collapsable and pin functionality in preview/release mode (#9650)

* add: pin and collapsable functionality to pages sidebar

* fix: review changes

* fix: canvas auto update width on sidebar toggle

* fix icon size

* Add support to wrap table's column header (#9565)

* Add support to wrap table's column header

* Resolve code comments

* commit

* fix: resize page width on window resize (#9164)

* feat: Button component revamp (#8361)

* init textinput revamp

* updated styles panel

* bugfix

* updates

* fix :: accordion

* fix :: styling

* add box shadow , additional property,tooltip

* fix conditional render for styles

* feat :: fixed order of each property and styles

* feat :: styling input

* bugfix

* feat :: add option to add icon

* add option to add icon

* adding option to toggle visibility

* updated password input with new design

* chnaging component location

* bugfix

* style fixes

* fix :: added loader

* updated :: few detailing

* few bugfixes

* fix :: for form widget label

* fixes

* added option to add icon color

* including label field for password input

* fix for label

* fix

* test fix backward compatibility for height

* updates

* revert

* adding key for distinguishing older and newer widgets

* testing

* test

* test

* update

* update

* migration testing

* limit vertical resizing in textinput

* testing

* throw test

* test

* adding check for label length

* fixing edge cases

* removing resize

* backward compatibility height

* backward compatibility

* number input review fixes

* added exposed items

* fixing csa

* ui fixes

* fix height compatibility

* feat :: csa for all inputs and exposed variables

* backward compatibility fixes and validation fixes

* fixes :: textinput positioning of loader and icon

* fix :: password input

* cleanup and fixes

* fixes

* cleanup

* fixes

* review fixes

* review fixes

* button component revamped

* fix :: csa

* typo fix

* typo

* fix :: styling

* exposed variables

* fix padding

* review fixes styles component panel

* fix naming

* fix padding

* default size

* fix :: icons position

* updates

* cleanup

* updates events , csa

* cleanup

* remove border

* backward compatibility

* clean

* feat :: change validation from properties

* ui fixes

* icon name

* disabled state

* removed 'px' text from tooltip

* fixes placeholder

* few updates :: removing label in form

* ui in form

* update :: number input validation behaviour

* testing fixes

* added side handlers

* removing unwanted fx

* disabling fx for padding field

* ordering change

* fix

* label issue + restricted side handler

* fix :: box shadow bug

* on change event doesnt propagate exposed vars correctly

* adding debounce for slider value change

* fix :: for modal ooen bug during onfocus event

* test slider

* fix :: bugs regarding state update in checbox , slider , slider bug

* update slider with radix slider

* bugfix

* merge fixes

* fix

* updates

* removing unwanted migrations

* fix: box shadow

* fix : import export issues

* fix : colouring

* cleanup

* fixes

* fix : design review comments

* add border color

* fix : review changes

* fix

* change display name to solid

* fix label

* fix : loader issue

* fix : button icon position

* fix : qa bugs

* feat: Checkbox + Toggle revamp (#8519)

* init textinput revamp

* updated styles panel

* bugfix

* updates

* fix :: accordion

* fix :: styling

* add box shadow , additional property,tooltip

* fix conditional render for styles

* feat :: fixed order of each property and styles

* feat :: styling input

* bugfix

* feat :: add option to add icon

* add option to add icon

* adding option to toggle visibility

* updated password input with new design

* chnaging component location

* bugfix

* style fixes

* fix :: added loader

* updated :: few detailing

* few bugfixes

* fix :: for form widget label

* fixes

* added option to add icon color

* including label field for password input

* fix for label

* fix

* test fix backward compatibility for height

* updates

* revert

* adding key for distinguishing older and newer widgets

* testing

* test

* test

* update

* update

* migration testing

* limit vertical resizing in textinput

* testing

* throw test

* test

* adding check for label length

* fixing edge cases

* removing resize

* backward compatibility height

* backward compatibility

* number input review fixes

* added exposed items

* fixing csa

* ui fixes

* fix height compatibility

* feat :: csa for all inputs and exposed variables

* backward compatibility fixes and validation fixes

* fixes :: textinput positioning of loader and icon

* fix :: password input

* cleanup and fixes

* fixes

* cleanup

* fixes

* review fixes

* review fixes

* typo fix

* fix padding

* review fixes styles component panel

* fix naming

* fix padding

* feat :: toggle switch revamp

* init checkbox

* fixes

* fixes

* switch fixes

* validation fix

* fixes

* cleanup

* height fix

* fix height toggle

* updates

* fix :: icons position

* updates

* cleanup

* updates events , csa

* cleanup

* backward compatibility

* clean

* backward compatibility fix

* label fixed to one line

* feat :: change validation from properties

* ui fixes

* icon name

* removed 'px' text from tooltip

* added onchange event for checkbox

* fixes placeholder

* few updates :: removing label in form

* ui in form

* fire onchange

* update :: number input validation behaviour

* testing fixes

* added side handlers

* removing unwanted fx

* disabling fx for padding field

* ordering change

* fix

* label issue + restricted side handler

* fix :: box shadow bug

* fix

* on change event doesnt propagate exposed vars correctly

* adding debounce for slider value change

* fix :: for modal ooen bug during onfocus event

* test slider

* fix :: bugs regarding state update in checbox , slider , slider bug

* update slider with radix slider

* bugfix

* update tooltip

* fix toggle switch

* fixes : inspector

* fix : checkbox label

* feat : checkbox completed

* update checkbox review changes

* feat : toggle component

* feat : added new toggle component

* fix : colors

* updated review changes

* update name for old and new version

* update

* case change

* update

* update icon

* removed padding from checkbox and toggle

* fix naming

* product review and bugfixes : changes

* fix : checkbox setvalue action

* Update setvalue action in toggle

* fixed: section for legacy and new components

* fix : checkbox tick mark not showing on resizing

* fix : icon in inspector

* fix : box shadow

* fix : ismandatory definition

* configs update

---------

Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com>

* fix : toggle switch import and switch component issues (#9874)

* fix : filter order of toggle (#9879)

* fix: appbuilder 1.7 integration testing bug fixes (#9880)

* fix: add only ids in deleted components map for component delete functionality

* Fix TableRowHeightInput in codehinter (#9881)

* fix: disable drag on calender popup and unblock other input interactions

* Bugfixes componentes 1.7 (#9892)

* fix : filter order of toggle (#9879)

* fix : Button alignment when label is empty

* fix : box shadow added

* fix : direction and default box shadow

* fix : disable csa not working for checkbox

* fix : button padding

* added toggle for box shadow check

* fixes : integration 1.7 (#9901)

* fix : exposed  vars not getting exposed on page change

* fix : validation error font

* fix : dynamic color for button

* fix : loading placement during CSA

* Move disabled, visibility, tooltip and box shadow to properties in Checkbox and Button (#9665)

* init textinput revamp

* updated styles panel

* bugfix

* updates

* fix :: accordion

* fix :: styling

* add box shadow , additional property,tooltip

* fix conditional render for styles

* feat :: fixed order of each property and styles

* feat :: styling input

* bugfix

* feat :: add option to add icon

* add option to add icon

* adding option to toggle visibility

* updated password input with new design

* chnaging component location

* bugfix

* style fixes

* fix :: added loader

* updated :: few detailing

* few bugfixes

* fix :: for form widget label

* fixes

* added option to add icon color

* including label field for password input

* fix for label

* fix

* test fix backward compatibility for height

* updates

* revert

* adding key for distinguishing older and newer widgets

* testing

* test

* test

* update

* update

* migration testing

* limit vertical resizing in textinput

* testing

* throw test

* test

* adding check for label length

* fixing edge cases

* removing resize

* backward compatibility height

* backward compatibility

* number input review fixes

* added exposed items

* fixing csa

* ui fixes

* fix height compatibility

* feat :: csa for all inputs and exposed variables

* backward compatibility fixes and validation fixes

* fixes :: textinput positioning of loader and icon

* fix :: password input

* cleanup and fixes

* fixes

* cleanup

* fixes

* review fixes

* review fixes

* typo fix

* fix padding

* review fixes styles component panel

* fix naming

* fix padding

* feat :: toggle switch revamp

* init checkbox

* fixes

* fixes

* switch fixes

* validation fix

* fixes

* cleanup

* height fix

* fix height toggle

* updates

* fix :: icons position

* updates

* cleanup

* updates events , csa

* cleanup

* backward compatibility

* clean

* backward compatibility fix

* label fixed to one line

* feat :: change validation from properties

* ui fixes

* icon name

* removed 'px' text from tooltip

* added onchange event for checkbox

* fixes placeholder

* few updates :: removing label in form

* ui in form

* fire onchange

* update :: number input validation behaviour

* testing fixes

* added side handlers

* removing unwanted fx

* disabling fx for padding field

* ordering change

* fix

* label issue + restricted side handler

* fix :: box shadow bug

* fix

* on change event doesnt propagate exposed vars correctly

* adding debounce for slider value change

* fix :: for modal ooen bug during onfocus event

* test slider

* fix :: bugs regarding state update in checbox , slider , slider bug

* update slider with radix slider

* bugfix

* update tooltip

* fix toggle switch

* fixes : inspector

* fix : checkbox label

* Move disabled, visibility, tooltip and box shadow to properties

* Remove toggleswitch and button

* Add down rollbackUpdates

* fix : filter order of toggle (#9879)

* fix merge issue

* fix

---------

Co-authored-by: stepinfwd <stepinfwd@gmail.com>

* fix: use onMouseOver and onMouseLeave together to fix hover event

* fix : Validation message to be shown only when use toggles on and off , code refactor (#9905)

* Fix naming logic for copying (#9909)

---------

Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com>
Co-authored-by: Kiran Ashok <stepinfwd@gmail.com>

* fix: update animateTransform for cross browser compatibility (#9917)

* fix: color transitions on sidebar pages in dark mode (#9920)

* Fix table all column editable (#9921)

* fix: add only ids in deleted components map for component delete functionality

* Fix TableRowHeightInput in codehinter (#9881)

* fix: disable drag on calender popup and unblock other input interactions

* Fix allColumns editable in Table

* Fix clientServer nor working in Table

* In widget config, update the total records as 10

---------

Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com>

* chore: bump minor version

---------

Co-authored-by: Nakul Nagargade <nakul@tooljet.com>
Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com>
Co-authored-by: vjaris42 <vjy239@gmail.com>
Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>
Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com>
Co-authored-by: Kiran Ashok <stepinfwd@gmail.com>
2024-05-30 18:12:10 +05:30
Parth
f4df1e5515
Handle missing plugin_id (#9907) 2024-05-29 16:47:21 +05:30
Shaurya Sharma
e3975f034e
Loader added for foreign key dropdown (#9760)
* Loader added for foreign key dropdown

* Empty State text change

* Design Changes

* Loader added in Main Table Edit

* Minor Text Changes

* Added Loader in Edit/Create Column & Row
2024-05-28 13:06:04 +05:30
Syed Abdul Rahman
71db339114
fix : Adding both filter and sort for tjdb query is not working and it throws error (#9794)
* fix : adding both filter and sort for tjdb query is not working and it throws error

* fix : added check as if query array has something there then only it will append in url
2024-05-28 12:43:25 +05:30
Kavin Venkatachalam
4b183bc4b1 Merge branch 'main' of https://github.com/ToolJet/ToolJet into feat/grid-appbuilder-improvement 2024-05-24 11:03:40 +05:30
Anantshree Chandola
7c35c5fea0
Revert masked constants (#9824)
* revert masked constants

* update

* update

* update

* update

* update

* removed validation

* bump version

---------

Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
2024-05-23 21:55:59 +05:30
Akshay Sasidharan
84eed67850 Merge branch 'develop' into release/database-1.1.1 2024-05-22 11:31:38 +05:30
Akshay Sasidharan
8a9cd790c1 fix TJDB query with subpath setup 2024-05-21 22:52:21 +05:30
Anantshree Chandola
2e6f4510dd
add validation for password length (#9798) 2024-05-21 12:50:56 +05:30
Akshay Sasidharan
023e093f79 Merge branch 'develop' into release/database-1.1.1 2024-05-21 00:30:51 +05:30
Kavin Venkatachalam
1cc99a86c1 Merge branch 'main' of https://github.com/ToolJet/ToolJet into feat/grid-appbuilder-improvement 2024-05-20 10:46:19 +05:30
Akshay Sasidharan
6b8bd98fd3 Merge branch 'main' into release/database-1.1 2024-05-17 13:20:31 +05:30
Midhun G S
60dec556de
Merge pull request #9758 from ToolJet/main
Merge main to develop
2024-05-16 18:42:49 +05:30
Akshay Sasidharan
3e5a306df3 fix postgrest reload 2024-05-16 15:30:04 +05:30
Akshay Sasidharan
a2e2fbcb2d fix tableIds not mapped in tjdb queries 2024-05-16 15:29:57 +05:30
Anantshree Chandola
2219ce31e4
UI updates (#9737) 2024-05-16 11:40:58 +05:30
Akshay Sasidharan
7fd2b7ec30 update dto transforms version 2024-05-14 20:40:15 +05:30
Anantshree Chandola
000b40c7c9
Masking workspace constants on frontend (#9596)
* masking workspace constants on frontend

* remove comment

* update

* added logic to verify constants keys used in codehinter

* Add check for value type

* update workspace constant permissions

* Fix exitsing issues related to validation on code hinter

* do not send encrypted value to fe

* small updates

* Add data-cy for workspace constants components

* Modify workspace constants cypress test cases

* fix value alignment

---------

Co-authored-by: ajith-k-v <ajith.jaban@gmail.com>
2024-05-14 15:49:12 +05:30
Muhsin Shah C P
c04e39d266
Added workspace_signup source (#9688) 2024-05-14 12:18:58 +05:30
Akshay Sasidharan
29c8d81be6 Merge branch 'develop' into release/database-1.1 2024-05-13 18:04:25 +05:30
Parth
5d4db131f6
Feature: Salesforce added as a plugin (#9583)
* Dynamic form configuration API logic pending

* OAuth 2.0

* Testing redirectURI

* salesforce-react-component

* Oauth flow

* OauthFlowSetup

* Merge develop

* Oauth flow changes

* Implement run function

* Fetch query details correctly

* Added instance URL to source options for run function

* Remove BulkLoad & ApexRESTQuery operation

* Increase resource-body height

* Render plugin icon in marketplace

* Make the URL dynamic in salesforce form

* Revert "Make the URL dynamic in salesforce form"

This reverts commit 62fa0fa2c1.

Remove extra imports

* Make the redirectUri dynamic

* Remove console.log

* Make use of classnames package for conditional styles

Remove console.log

* Add back remove elements

* Make instanceUrl snakecase

* Correct description for salesforce

* Revert changes to plugin icon in marketplace

---------

Co-authored-by: Syed Mohammad Akhtar Rizvi <85864291+ShazanRizvi@users.noreply.github.com>
2024-05-13 18:03:03 +05:30
arpitnath
e89a1e4c9e fixes: on reload of apps subcontainer children position changes 2024-05-10 17:02:36 +05:30
arpitnath
28970328d9 Revert "Add grid dimension migration"
This reverts the migration that introduced a new column to handle grid dimensions with enums count and percent. Upon further review, the migration is unnecessary as the application manages grid dimension adjustments dynamically on component load without the need for persisting these changes. This avoids unnecessary data modifications that impact high volumes of data, streamlining operations and maintaining performance.
2024-05-10 16:58:03 +05:30
Ganesh Kumar
0415596678
fix: tooljetdb schema reload was missed on few operations (#9660) 2024-05-09 12:06:16 +05:30
Akshay Sasidharan
e1342ca933 handle foreign key violation error 2024-05-09 03:03:01 +05:30
Ganesh Kumar
5643b4a8ef
fix: extended error customization support for referenced tables (#9654) 2024-05-08 21:17:16 +05:30
Syed Abdul Rahman
609360e775
feat : Foreign key feature in ToolJet database (#9544)
* feat: added support for creating primarykey and unique constraint while creating new table

* feat : primary key with unique constraint

* feat : able to create primary key on table creation

* minor changes for backend

* checked and added constraints for primary key

* Added tooltips for primary key columns and added a fix for autofocus for last focussable element in focustrap

* Added a new component named TableSchema so that we can use this same component in both create table and edit table

* fix: fetching tjdb table metadata query has been updated to support unique constraint

* feat : primary key in edit table

* mariadb library update

* atleast one primarky should be mandatory for each field

* fix: list tjdb table data api due to id column sort by default

* fix: tjdb dashboard table column datatype icon and name was missing when primary key feature was added and table header content component refactored

* fix: tjdb create row operation made compatible with Primary key

* fix: add column operation will now suport serail and unique constraint

* fix: Edit column operation support unique constraints

* fix: added primary key icon is tjdb dashboard table

* feat : foreign key drawer ui

* fix: dynamic tooltip text in table for serial datatype and primarykey

* fix: cell edit menu should not open for primary key column and serial datatype column

* fix: cell edit menu save flow and boolean toggle update flow will now execute based on primary key

* minor ui change in nested drawer for foreign key relation

* fix: edit row operation now supports and works based on primary key for updates

* fix: add row operation refetch query works based on primary key

* Added foreign key active state icon

* feat: API to edit table schema

* Added fixes for primary constraints

* fix: edit table allows to add new columns and delete old columns as well

* fixes related to primary key

* fix: primary key mandatory check on edit table API

* fix: moved table rename inside db transaction

* fix: on editing a primary key column it will not remove primary key constraint

* changes and fixes in primary key integration

* edit table api integration

* fix: primary key mandatory validation was wrongly placed in edit table api in tooljetdb

* fix: edit tooljetdb table dto validation modified

* edit table api integration

* edit table success toast update message

* Added tooltip for serial datatype defaultvalue and design change of Add more columns button

* added scrollbar to tableschema and added a hover effect to column which has foreign key relation

* feat: Foreign key creation support in create table Inprogress

* fix: code review comments for backend fix inprogress

* fix: in edit table operation in tooljetdb for serial datatype default values can't be edited

* fix: edit table payload naming convention changed

* fix : review comments and ui fixes

* fix : undefined check error in renameTable function

* fix: unique constraint will be false by default on version less than 2.30.0

* added primary key icon in edit column header

* fix: unable to change single primary key to composite primary key when a column has duplicate values

* added regex check for serial datatype's default value

* feat : in edit table the primary columns should be group together and in top of the schema

* fix: custom exception filter for tooljetdb and optimized cell edit save flow by reducing a refetch api call

* fix: primarykey column default value of character varying datatype is in wrong format

* fix: tjdb exception filter is added at controller level and it can group multiple exceptions altogther

* fix: on a exception postgrest error message has been sent as response

* fix: edit-table api payload details were mis-matching

* fix: on editing serial datatype column default value is not necessary

* fix: in create and  edit table drawer datatype dropdown selection was wrong in serial datatype scenario

* fix: multiple exceptions can be handled together

* removed the code comments

* fix : primary key columns should in top of the order in edit table and edit row

* revert back the changes of primary key column group together in edit table

* Add null value for default value when we change the datatype in edit table flow

* fix: feature to create foreign key while creating a new table

* integrated source table details and source column details

* fix : serial data type cause error in default value when there is more than one serial data type

* feat: tooljet database table metadata api now includes foreign key details

* feat : foreign key designs for create and edit table

* fix : view table api error issue

* feat : foreign key designs for create and edit column

* feat: added support for creating foreign key in add column api

* feat: api to create edit and delete foreign key has been added to tooljet database

* feat : foreign key designs in create and edit row as well as cell edit and in dashboard

* fix : cell click issue in cell edit for boolean type

* feat: added support to select specific columns in the postgrest query

* feat: added foreign key referenced table id in metadata details

* fix: naming convention changed for foriegn key apis

* fix: updated DTO to check on-delete and on-update operation of foreign key details

* completed api integration and remaining ui popups for delete and change in foreign key and customized tooltip

* added routing logic for navigate to reference table from source table

* implemented infinite scroll logic for cell edit foreign key column values

* moved scroll logic to selectBox component

* fix: removed the scroll for column schema section in create and edit table drawer

* fix : major bugs

* fix: added support to delete FK in Edit Column API

* feat: Join FK columns auto populate on query manager

* feat : allowing to create multiple foreign keys in single table

* feat: auto suggestion on joins

* fix: foreign key column must be rearranged to top of the list

* fix : major bugs

* fix : bugs list

* fix: foreignkey details on tjdb context were not updated properly

* fix : bugs in calling selectQuery api

* completed missed routing logic in cell edit dropdown

* fix: cell edit menu on clicking search closes

* fix : bugs list

* fix: cellEdit drop down menu provides wrong values for FK

* fix: fk values is made to default onClosing CellEditMenu

* fix: on table cell click foreign key details are made to default state

* fix : bugs in edit row and in all dropdown which is showing reference table's column values

* fix: infinite scroll for listing foreign key drop down

* fix: infinite scroll in FK data dropdown goes unresponsive

* fix : width of tooltip in showing foreign key relation and throwing error when opening a default value dropdown in create table and create column

* fix : the search api needs to hit only for the referenced column names values in dropdown

* fix: basic lint fixes

* fix : default value preselect value is passing as empty in create row and in create table for the
 edit part added delete functionality and fixed editing foreign keys in create table and fix in edit table api fixed bugs related to forein key edit

* fix : create row sort logic and fix for edit foreign key relation

* fix : merge conflict stylings collapsed

* feat: implemented infinite scrolling for listing down FK data in cell edit menu drop in tooljetdatabase

* fix: in edit column while we create a new foreign key it was not reflected on edit ccolumn view

* fix: join query when auto populated with columns table name was missing

* fix: Not able to edit a table when a column has been referenced for foreign key-the issue has been fixed

* fix: serial data-type column will have placeholder as auto-generated

* fix : bugs from design review

* fix : icon mismatch in source and target column

* Feature: Import Export revison for TJDB relations (#9597)

* make create table infer serial data type

* make import/export backward compatible

* fix column type check

* fix: cell edit drop down search issue and drop down misses the values on second load and fixed the edit primary key column issue

* fix : disabling serial type in source column and removing strict rule of unique constraint for serial type and fix of bugs which is related to foreign keys

* fix : validation issue for save changes button in foreign key drawer

* disabled creation of foreign key from create and edit column and enabled support for bigint with integer in foreign key relation

* fix : edit column foreign key relation is becomes false when we close the foreign key drawer

* fix: composite primary key columns cannot be mapped to foreign key

* fix : create column and edit column : previous column values are populated in foreign key drawer and fixes of bugs which is related to foreign key relation in create and edit column

* fix : Unable to see the column menu icon when column name has 32 characters

* fix : edit column delete is not working when we chnage the foreign key toggle to false

* fix bulk upload for case sensitive columns

* fix : while selecting different table in target table, the target column should be empty

* Fix : Bugs from Foreign key feature (#9552)

* Added tooltip when add relation button is disabled

* Set the values to no actions by default for action dropdowns

* Added tootip for add relation button when disabled

* Updated the UI of dropdowns in the actions section of foreign key drawer

* Disable the add relation button when less than 2 table are  present in edit mode and less than 1 in create mode

* Updated the logic to render option description in actions dropdown and highlight table names

* Adding conditional chaining to avoid app getting crashed

* Avoding showing toast message for crating foreign key in create column and table mode

* Updated tooltip description for add relation button

Added full stops to descriptions of options in actions dropdown

* Show tooltip on read docs regarding fk for column and table operations

* Updated description of foreign key relation text in create/edit table drawer

* Updated description of foreign key relation text in create/edit column drawer

* Type error fixed

* Show unuqie constaint info UI update

* Added copyrights for foreign keys

* fix: When we create a FK relation, and then if we change a source column name, when we open default drop down throws error in create column

* Feature: Add setup to standardise TJDB error handling (#9629)

* add wip error handling setup

* make errors thrown as TooljetDatabaseError

* fix types

* handle query manager errors

* make error logging better

* add comment

* remove redundant logger

* fix: add column api dto validation updated

* return records to throw errors from postgrest

* fix type

* Chore: Primary key backward compatibility migration (#9636)

* recreate pk constraints for existing tables for backward compatibility

* fix comment

* handle unique name error on table create

* Fix : Bug fixes from foreign key feature (#9637)

* Removed create table and column info to add foreign key message

* Added tooltip when at least one column is not filled

Enable the add relation buttton when at least one column is present and filled otherwise disabled

* fix : placeholder text in foreign key drawer and error handleing text as well

---------

Co-authored-by: Ganesh Kumar <ganesh8056234@gmail.com>
Co-authored-by: Akshay <akshaysasidharan93@gmail.com>
Co-authored-by: Manish Kushare <37823141+manishkushare@users.noreply.github.com>
2024-05-08 13:47:11 +05:30
Muhsin Shah
2c90827a15 Merge branch 'feat/grid-appbuilder-improvement' into builder-performance-platform-part/release 2024-05-07 18:04:27 +05:30
Muhsin Shah C P
b8ce0bbcda
Platform-Editor API improvements (#9460)
* Editor header and sequence of API calls Improvements. (#9366)

* Added createVersion and updatedVersionName changes

* Added deff-call for version delete action

* removed callBack func(re-arranged as sub-functions)

* removed unwanted functions

* fixed merge issues, appVersioManager and environment store issues

* Resolved query-onload issue and release button bugs

* working on preview setting issues

* refactoring the code

* moved environment manager directory

* fixed import issues

* Refactoring the service functions

* Added environments details to the init response

* Added appVersionsCount to the response

* Added new post action to the controller

* Refactored recent commit

* Fixed query response array issue

* Fixed await issue

* Added extra release/promote button cases

* Removed organizations call from the authorizeWorkspace function

* added a length check to prevent calling the api again

* removed the loader and notification API call

* Fixed on blur issue of react-select using event handlers
2024-05-07 16:58:07 +05:30
kriks7iitk
904bdaa30d
Fix: Query duplication on version creation (#9588) 2024-05-07 14:50:12 +05:30
Akshay Sasidharan
b40694c636 Merge branch 'develop' into release/database-1.1 2024-05-07 14:23:04 +05:30
Akshay
897e410f85
Feature: TJDB bulk upload support for primary key (#9503)
* Make primary key data mandatory except for serial data type

* Remove unnecessary console.log and comments

* Detect serial datatype against int datatype

* add ability to upsert rows on conflicting pk

* fix generated SQL for placeholder mismatch

* add type info

* discard serial values in csv

* add pk explicit check

---------

Co-authored-by: parthy007 <parthadhikari1812@gmail.com>
2024-05-06 13:26:17 +05:30
Kavin Venkatachalam
84907f86bd Merge branch 'main' of https://github.com/ToolJet/ToolJet into feat/grid-appbuilder-improvement 2024-05-06 10:21:33 +05:30
Muhsin Shah
b1e2820681 Fix: the wrong invite-url in unarchive user email 2024-05-02 19:45:52 +05:30
Adish M
c59b682287
Merge pull request #8896 from ToolJet/invite-flow-part1/platform14
[Revamp] Simplify workspace invite flow
2024-05-02 15:26:44 +05:30
Muhsin Shah
98cfca2e83 Fixed: Sign in CTA, Expired Link back button, invite user email content 2024-05-02 00:31:14 +05:30
Akshay
bc9990d081
Hotfix: TJDB connection on feature disabled flag (#9579)
* fix TJDB deps for feature flag

* support async loading of db connection

* conditionally init TJDB connection on boot

* bump to v2.39.1
2024-05-01 23:24:50 +05:30
Muhsin Shah
ce5808b366 Merge branch 'main' into invite-flow-part1/platform14 2024-05-01 15:32:57 +05:30
Midhun G S
eef2a49fa9
Release Platform v17 (v2.39.0) (#9502)
* bump version

* Sample data source (#9501)

* Added sample data populating script

* added expand-collapse  in add data soure menu

* Sample database

* Design changes

* Added CTA to buttons and added design changes

* Added code sanity fix for some services

* changed configration for create sampke db and code sanity fix

* Removed logs

* Added xlsx in dependency

* added migration for sample db

* Added loggin for testing

* Added await in migration

* Replace excel sheet with JSON files

* reverted package-lock file

* Fixed issues

* dependecy deletion

* Added schedular

* Added changes for bug fixes and typeorm query for creating sample db

* Removed color.scss file import

* Add logo in sample application

* add documentation link for sample db

* fixed migration issue for data queries creation

* removed sample db intergration

* bump version

* Remove .env file and code sanity

* deleted migration file

---------

Co-authored-by: Kritagya <kriks.iitk@.com>
Co-authored-by: Kritagya Kumar <kritagyakumar@192.168.1.6>
Co-authored-by: kriks7raptor <kritagya@raptorx.ai>
Co-authored-by: gsmithun4 <gsmithun4@gmail.com>

* Add data-cy for drag drop empty canvas card (#9513)

* Add sample db condition on all components (#9516)

* Add sample db condition on all components

* Changed empty state for container

* Condiiton on sample data source

---------

Co-authored-by: kriks7raptor <kritagya@raptorx.ai>

* Release fix: subpath (#9535)

* Add sample db condition on all components

* Changed empty state for container

* Condiiton on sample data source

* fixed subpath issue for workspace setting and folders

* Folder change handler in subpath

---------

Co-authored-by: kriks7raptor <kritagya@raptorx.ai>

* fixed version

* fixed version

* fixed version

* update server version

* Bump version to v2.39.0

---------

Co-authored-by: kriks7iitk <34170719+kriks7iitk@users.noreply.github.com>
Co-authored-by: Kritagya <kriks.iitk@.com>
Co-authored-by: Kritagya Kumar <kritagyakumar@192.168.1.6>
Co-authored-by: kriks7raptor <kritagya@raptorx.ai>
Co-authored-by: Ajith KV <ajith.jaban@gmail.com>
Co-authored-by: kriks7iitk <kriks.iitk@gmail.com>
Co-authored-by: Adish M <44204658+adishM98@users.noreply.github.com>
Co-authored-by: Muhsin Shah <muhsinshah21@gmail.com>
2024-04-30 21:49:37 +05:30
Syed Abdul Rahman
429a160f51
Fature : Primary key support in ToolJet database (#9279)
* feat: added support for creating primarykey and unique constraint while creating new table

* feat : primary key with unique constraint

* feat : able to create primary key on table creation

* minor changes for backend

* checked and added constraints for primary key

* Added tooltips for primary key columns and added a fix for autofocus for last focussable element in focustrap

* Added a new component named TableSchema so that we can use this same component in both create table and edit table

* fix: fetching tjdb table metadata query has been updated to support unique constraint

* feat : primary key in edit table

* mariadb library update

* atleast one primarky should be mandatory for each field

* fix: list tjdb table data api due to id column sort by default

* fix: tjdb dashboard table column datatype icon and name was missing when primary key feature was added and table header content component refactored

* fix: tjdb create row operation made compatible with Primary key

* fix: add column operation will now suport serail and unique constraint

* fix: Edit column operation support unique constraints

* fix: added primary key icon is tjdb dashboard table

* fix: dynamic tooltip text in table for serial datatype and primarykey

* fix: cell edit menu should not open for primary key column and serial datatype column

* fix: cell edit menu save flow and boolean toggle update flow will now execute based on primary key

* fix: edit row operation now supports and works based on primary key for updates

* fix: add row operation refetch query works based on primary key

* feat: API to edit table schema

* Added fixes for primary constraints

* fix: edit table allows to add new columns and delete old columns as well

* fixes related to primary key

* fix: primary key mandatory check on edit table API

* fix: moved table rename inside db transaction

* fix: on editing a primary key column it will not remove primary key constraint

* changes and fixes in primary key integration

* edit table api integration

* fix: primary key mandatory validation was wrongly placed in edit table api in tooljetdb

* fix: edit tooljetdb table dto validation modified

* edit table api integration

* edit table success toast update message

* Added tooltip for serial datatype defaultvalue and design change of Add more columns button

* fix: code review comments for backend fix inprogress

* fix: in edit table operation in tooljetdb for serial datatype default values can't be edited

* fix: edit table payload naming convention changed

* fix : review comments and ui fixes

* fix : undefined check error in renameTable function

* fix: unique constraint will be false by default on version less than 2.30.0

* added primary key icon in edit column header

* fix: unable to change single primary key to composite primary key when a column has duplicate values

* added regex check for serial datatype's default value

* feat : in edit table the primary columns should be group together and in top of the schema

* fix: custom exception filter for tooljetdb and optimized cell edit save flow by reducing a refetch api call

* fix: primarykey column default value of character varying datatype is in wrong format

* fix: tjdb exception filter is added at controller level and it can group multiple exceptions altogther

* fix: on a exception postgrest error message has been sent as response

* fix: edit-table api payload details were mis-matching

* fix: on editing serial datatype column default value is not necessary

* fix: in create and  edit table drawer datatype dropdown selection was wrong in serial datatype scenario

* fix: multiple exceptions can be handled together

* removed the code comments

* fix : primary key columns should in top of the order in edit table and edit row

* revert back the changes of primary key column group together in edit table

* Add null value for default value when we change the datatype in edit table flow

* fix : serial data type cause error in default value when there is more than one serial data type

* fix : minor bugs

---------

Co-authored-by: Ganesh Kumar <ganesh8056234@gmail.com>, Abd-Rahman-1999 <s.rahmanabd1999@gmail.com>
2024-04-30 14:47:39 +05:30
Kavin Venkatachalam
15e5a81483 Merge branch 'main' of https://github.com/ToolJet/ToolJet into feat/grid-appbuilder-improvement 2024-04-30 10:34:40 +05:30
Muhsin Shah
1eaea70886 Merge branch 'main' into invite-flow-part1/platform14 2024-04-29 18:15:18 +05:30