Commit graph

1736 commits

Author SHA1 Message Date
kriks7iitk
eb4ebb6c05 merge CVE 2024-08-06 10:41:11 +05:30
Muhsin Shah
e0a5899635 Merge branch 'main' into cve/server-high 2024-08-05 15:13:44 +05:30
Muhsin Shah
0ed470b9c7 removed nest mailer package
- moved migration file to migrations folder
- copied smtp changes
2024-08-05 14:37:59 +05:30
Muhsin Shah
d463ac4f4f Added typeorm command changes 2024-08-05 14:26:53 +05:30
gsmithun4
5fe5260d49 fixes 2024-08-05 13:40:27 +05:30
Nakul Nagargade
5800def955
Fix p0 hotfixes (#10563)
* Fix P0 hotfixes

* Upgrade version
2024-08-02 18:18:29 +05:30
Johnson Cherian
4a35a6830f chore: update version for release 2024-08-01 19:40:36 +05:30
Johnson Cherian
bb4d379896 Merge branch 'main' of https://github.com/ToolJet/ToolJet into fix/appbuilder-stability-and-ui 2024-08-01 19:39:07 +05:30
gsmithun4
d13d5d1261 initial commit 2024-08-01 15:01:05 +05:30
Kartik Gupta
f405d3db74
fix table mapping for events when cloning and creating new versions (#10444)
* fix table mapping for events when cloning and creating new versions

* add set-table-page mappping on duplicate page as well
2024-07-31 15:24:52 +05:30
Muhsin Shah
e1eb6c7ac1 Added metadata fix 2024-07-23 18:13:19 +05:30
gsmithun4
269b659779 migration fix 2024-07-23 16:04:32 +05:30
gsmithun4
e86697dbf1 improvements 2024-07-23 15:27:22 +05:30
gsmithun4
994686a1f1 initial commit 2024-07-23 14:35:34 +05:30
Muhsin Shah
fc8e71e6b2 Merge branch 'main' into cve/server-high 2024-07-23 14:34:25 +05:30
Muhsin Shah
cae9a1ed9d Added :prod migration script changes 2024-07-23 14:24:56 +05:30
Muhsin Shah
3a6bfe340d Refactoring the code 2024-07-23 13:10:57 +05:30
Muhsin Shah
0bd6cc0097 Added express-static types to the dependency array to solve the nest build issue 2024-07-23 12:59:51 +05:30
gsmithun4
bdb5a83d55 bump version 2024-07-23 12:35:05 +05:30
Akshay
72ada407fc
Chore: Add jest types dependency (#10419)
* add jest type dependency

* ignore jest config on build
2024-07-22 17:29:52 +05:30
Anantshree Chandola
1c2f1705ca fix bulk upload 2024-07-22 16:50:21 +05:30
Arpit
8805af9ce1 Fix: handle error gracefully for failed saving changes (#512)
* handle error gracefully for event handlers attachment do not exist

* handle error on saving changes
- added server side validation checks
- client side error message
- removed autoSave triggers from priotity queue
2024-07-22 09:11:20 +05:30
Johnson Cherian
67cb1455fa fix: statistics widget and page switch crash issue (#504) 2024-07-22 09:08:14 +05:30
arpitnath
78db56f74c fixes: on cloning the page: events loses entity mappings 2024-07-22 09:07:58 +05:30
arpitnath
4ce20a5b03 fixes: import/export/clone/versioning for bracket notations references 2024-07-22 09:02:22 +05:30
kriks7iitk
0abaa754ba constant fix 2024-07-19 13:23:33 +05:30
Midhun G S
9cd4fa9bd2
changes for app themes 2.0 (#10404) 2024-07-18 21:45:19 +05:30
kriks7iitk
fb5f218769 constant change 2024-07-18 18:40:26 +05:30
kriks7iitk
676a349276 fix for folder 2024-07-18 17:35:27 +05:30
kriks7iitk
8a4600803a user role fix 2024-07-18 14:36:16 +05:30
kriks7iitk
f1827722ab group name default group issue 2024-07-18 14:14:06 +05:30
kriks7iitk
39a675c89d cache issue for reduce function 2024-07-18 13:43:38 +05:30
kriks7iitk
4af32c6f98 migration and user query fix 2024-07-17 13:35:28 +05:30
kriks7iitk
cbf75f74ba user query fix 2024-07-17 13:35:01 +05:30
kriks7iitk
6ffa983436 Merge branch 'main' of github.com:ToolJet/ToolJet into group-revamp-fix_krit 2024-07-17 11:40:30 +05:30
kriks7iitk
2e7246cca7 bulk upload user fix 2024-07-17 11:11:24 +05:30
kriks7iitk
8301a4c4c3 Admin count check 2024-07-17 10:17:20 +05:30
Akshay
17f67e7e31
Chore: Setup Polly.js for recordable stubs on TJDB specs (#10275)
* setup recordable tests for TJDB with Polly

* remove unrequired normalization

* remove duplicate test hook

* revert naming

* make minimal test module setup
2024-07-16 20:46:49 +05:30
kriks7iitk
14b7ba4120 viewbale apps issue fix 2024-07-16 19:41:22 +05:30
Midhun G S
6b5b68df49
fix for public app not loading (#10378) 2024-07-16 13:54:47 +05:30
kriks7iitk
617a6fbc83 Admin archive isssue 2024-07-16 13:15:29 +05:30
kriks7iitk
fc089927fa Addmin archive fixed 2024-07-16 12:12:42 +05:30
kriks7iitk
ec81a8b393 Fixed bugs 2024-07-16 11:37:19 +05:30
Midhun G S
05bc94d579
Fixed: Public app preview 403 error (#10360)
Co-authored-by: Muhsin Shah <muhsinshah21@gmail.com>
2024-07-15 21:01:54 +05:30
Rudhra Deep Biswas
b44f99b880
removed condition to create version from dev env only (#10247) 2024-07-15 21:00:56 +05:30
Midhun G S
b617b09f5a
app themes related changes (#10313) 2024-07-15 21:00:29 +05:30
kriks7iitk
d82467c2c4 Fixed migration issue 2024-07-15 19:47:55 +05:30
kriks7iitk
d5765869f4 Admin archive issue 2024-07-15 19:40:42 +05:30
gsmithun4
9bfa729553 bump version 2024-07-15 15:52:01 +05:30
kriks7iitk
24fc657956 fixed folder searhc and count 2024-07-15 11:21:22 +05:30
kriks7iitk
f1dcf87efd bug fixes 2024-07-12 19:55:47 +05:30
kriks7iitk
ec20f8d2f1 duplication isue fix 2024-07-12 14:07:11 +05:30
kriks7iitk
b8316730fe Viewable apps query modiifcation 2024-07-12 11:52:12 +05:30
kriks7iitk
befa600644 org constant fi 2024-07-12 10:48:01 +05:30
Shaurya Sharma
126f0d7808
fix: lowercase configuration being returned from backend (#10334) 2024-07-11 20:49:17 +05:30
kriks7iitk
3ec8fb4fad design layout fix 2024-07-11 19:14:59 +05:30
kriks7iitk
d9ecd52bcb Bugs fixes 2024-07-11 16:10:19 +05:30
kriks7iitk
7aae48ad7c invite flox fixes 2024-07-11 14:35:14 +05:30
kriks7iitk
d9cc52a3e5 Deleted migeations from table migrations 2024-07-11 11:37:22 +05:30
kriks7iitk
3de36e0633 Merge branch 'group-revamp-fix_krit' of github.com:ToolJet/ToolJet into group-revamp-fix_krit 2024-07-11 11:24:21 +05:30
kriks7iitk
4b39935233 Merged woht merge branch 2024-07-11 11:23:30 +05:30
kriks7iitk
ef2c8b7f13 moves migration to data migrations 2024-07-11 11:15:22 +05:30
Rudra
21ae801c00 rudra bug fixes-2 2024-07-10 18:22:50 +05:30
Rudra
aa7ee05f4a buG fixes 2024-07-10 18:16:22 +05:30
Ganesh Kumar
adacfbe48c
Fix: Removed the org id from the query option details of the ToolJet database. (#10303)
* fix: removed orgid from query options and updated dependent logic in tjdb operations service as well

* fix: On exporting tjdb table schema only tables used for respective operation is filtered and validated now it will not pick from join options json even if it is available for list row operation
2024-07-10 16:59:52 +05:30
Akshay Sasidharan
744b6b0d18 bump to v2.65.0 2024-07-10 16:11:57 +05:30
kriks7iitk
7a25f4a5c4 Merge group revamp 2024-07-10 13:48:26 +05:30
Rudra
c57cbafb9d UI fixes 2024-07-10 11:51:46 +05:30
Rudra
523d0e3737 uI changes 2024-07-10 11:04:33 +05:30
Muhsin Shah
a2d365ad19 Added sessionId to the logout api jwt payload 2024-07-09 16:50:46 +05:30
kriks7iitk
d8fbf7ce5e Removed depreciated code 2024-07-09 14:29:54 +05:30
kriks7iitk
fa203bbf2d Migration developer testing 2024-07-09 13:52:10 +05:30
kriks7iitk
2bc01dfc55 Migration fix for custom groups 2024-07-09 12:57:45 +05:30
Shaurya Sharma
4f1beef160
Fixed issues related to date time data type for TJDB (#10253)
* Fixed some issues

* Added error borders and fixed some more issues

* Added Tooltip for datatype label and added pill for create/edit row

* Resolved few more issues

* Resolved datetime input text colliding with clear button & create/edit row css collapsing

* Import/export for configurations added

* Minor Fixes

* Fixed calendar not being updated on keydown

* Fixed date formatting
2024-07-09 12:25:06 +05:30
kriks7iitk
36b5f09c55 Fixed mihrations 2024-07-09 11:34:19 +05:30
kriks7iitk
125be1a9a3 Added migration 2024-07-09 10:06:09 +05:30
Muhsin Shah
8efa0b3806 Merge branch 'main' into cve/server-high 2024-07-07 22:13:35 +05:30
kriks7iitk
8426e2248e Modify bulk upload, inspector and design fix 2024-07-07 13:59:29 +05:30
Muhsin Shah
e8b755023e Added SSOConfigs as Type 2024-07-07 03:33:12 +05:30
Akshay Sasidharan
7997801851 fix TJDB module init when disabled 2024-07-05 17:07:33 +05:30
Ganesh Kumar
6296a347e8
Fix: Validation of aggregate conditions (#10261)
* fix: added validation for empty column names in list rows for aggregate condition

* fix: handle empty conditions for aggregates

* fix: error message for aggregate condition in join operation has been updated

* fix: handled a scenario where table and column name with capital letter was not working properly in aggregate and groupby
2024-07-05 13:53:23 +05:30
kriks7iitk
41b0c6c1b6 Merge and design fix 2024-07-05 11:50:24 +05:30
kriks7iitk
4af13effc3 design fix 2024-07-05 09:56:32 +05:30
Muhsin Shah
3652727a5b Added DeepPartial instead of QueryDeepPartialEntity to avoid the type error 2024-07-04 19:15:27 +05:30
Muhsin Shah
45c45f05d3 fix: for comment and thread custom repository issue 2024-07-04 16:26:30 +05:30
Muhsin Shah
8489b5355d Fixed: delete component unkown error 2024-07-02 20:04:04 +05:30
Muhsin Shah
a5458eeeaa Upgraded some plugin versions and fixed syntax errors. grpc and oracle left to test 2024-07-02 20:03:27 +05:30
Ganesh Kumar
4c778d4e71
fix: removed unused env variable for aggregate (#10237) 2024-07-01 18:27:52 +05:30
Akshay Sasidharan
2dec9a106d Merge branch 'main' into release/marketplace-sprint-2 2024-07-01 16:37:46 +05:30
Shaurya Sharma
a6d2666206
Date with time data type for ToolJet Database (#10066)
* Basic wrapper around Datetime picker component

* Cell Edit Menu for Datetime Picker

* Reverted Old Changes

* Added Datetime picker for Add/Edit Row

* Added datetime picker for create/edit column

* Added datetime picker for create/edit table

* Added datetime picker for create/edit table

* Disabled PK, FK, Unique and made some fixes

* Migration script added

* Internal table configuration update changes

* Updating internal table configuration based on timezone select

* Time display pill & support for changing & retrieving timezone from the frontend added

* Time bug partially resolved

* Time bug solved

* Minor Bugs Solved

* fix : datepicker closed when we select date from outside month which is not current month's date

* Minor Design Fixes

* Css & Comment Fixes

* Removed console.logs

* Fixed app import failing

* Changed datatype name and label

* Css Fixes and added clear button

* Minor fix

* Fixed create table breaking on null values

---------

Co-authored-by: Abd-Rahman-1999 <s.rahmanabd1999@gmail.com>
2024-07-01 16:24:51 +05:30
Akshay
7e6ceb886c
Merge pull request #10048 from ToolJet/community/marketplace
Community: Marketplace Sprint 2
2024-07-01 16:18:55 +05:30
Manish Kushare
6f43a043dc
Feature: Aggregate and group by functionality in TJDB (#10170)
* Added no codition section when aggregates are not available

* Added feature to add aggregate condition and display it accordingly

* Added feature to change the aggregateFx option

* Added feature to update column option in the aggregate

* Added feature to delete the aggregate

* Disabling the group by according to valid condition but without tooltip

* Added flow for deleting aggregate

* feat: migration and configuration changes to support aggregation in tooljet database

* added functionality for join table operations

* Dropdown styles

* Showing section for aggregate dropdown for joinTable operation

* Added gap in multiple aggregate conditions

* Added table_id in aggregate condition

* Added custom placeholder

Adjusted width of add condition of aggregate

* Refactored logic for disable group_by field

Added tooltip when group by is disabled

* Updated aggregateFx to aggFx and groupBy to group_by

* feat: group_by and aggregate option in list rows

* added table name for aggregate dropdown value in joinTable operation

* Get the group by options

* value of aggregate column dropdown in join table operation

* Added error and success message for aggregate deletion

* Spacing adjustments

* Clear the unwanted code

* Updated the stucture of aggregate

* Updated the structure of group_by

* Fix: Query builder breaking due to undefined values

* feat: logic used to aggregate on joins

* Removing async

* fix: app is crashing

* feat: statement timeout at database level and user session level configuration can be done for ToolJet database

* Added min and max width to dropdown in tooljetdb query manager

* Added description

* Adding width as 80 percentage when description is not avaialable

* New Postgrest change for render related to Aggregate (#10175)

* New Postgrest change for render related to Aggregate and group by functionality

* correction in PGRST_DB_ENABLE_AGGREGATE value

* Adding the env variable PGRST_DB_PRE_CONFIG

* Adding the new postgrest related env changes to CE specific files

* fix: updated env variable naming for aggregates

* Showing description at the bottom for aggregate fx

* Fixing typo error

* Showing tick mark on selected item in dropdown when isMulti is false

* Updated requested changes

* Showing some description when option is not focused or selected

* Updated the component name to AggregateFilter

* fix: updated env variable to enable aggregation in tooljet database

* refactor: new wrapper to create migration connection for tooljet database

* fix: custom error message for aggregation errors has been handled for list_rows operation

* fix: code review fixes

* fix: aggregate function validation typo is updated

* fix: empty validation for Select and Aggregate fields

* postgrest changes for cypress

* removed PGRST_DB_ENABLE_AGGREGATE

---------

Co-authored-by: Ganesh Kumar <ganesh8056234@gmail.com>
Co-authored-by: Adish M <44204658+adishM98@users.noreply.github.com>
Co-authored-by: Adish M <adish.madhu@gmail.com>
2024-07-01 14:38:31 +05:30
Johnson Cherian
3169d38d63
Release: Appbuilder S1 (#10081)
* fix : color for all new columns

* revert

* Fix: selection of copy of selected component for ease (#9818)

* fix: selection of copy of selected component for ease

* add pre selection for clonig as well

* add clone check

* fixes selection of components on empty canvas

* Fix: sizing issues in horizontal divider (#9942)

* fix horizontal divider sizing issues

* fix dark mode color in horizontal divider and remove unused class

* add custom fallback for images when not found (#9943)

* cherry pick error message log changes and fix tjdb error logs in debugger (#9951)

* Fix: mouse release on canvas when properties/styles values selected (#9732)

* fix: mouse release on canvas when properties/styles values selected

* fix: event name

* fix: rest api headers empty state while creating new query (#9729)

* fix: selection issue in table row while editing  (#9944)

* allow selection in table cell

* update classname for selection

* display date picker date as text instead of input in read only mode

* Add new revamped multiselect widget (#9837)

* 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

* Remove date-fns depedency from table datepicker

* Revert Remove date-fns depedency from table datepicker

* 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

* add new version of dropdown

* Add same styles as other input components

* fix height issues

* Add new revamped multiselect widget

* Fix design review

* fix design issues

* Fix

* Fix merge issues

* Add menu portal target

* resolve code comments

* widget config changes

* add hover for clear icon

* fix

* Fix review comments

* Multiselect changes after dropdown merge

* exposed variables

* Delete unused components

* Multiselect fixes

* Dropdown CSS fixes and multiselect fixes

* Fix merge issues

* fix

* Add highlight text

* Change multiselect UI

* fix error message

* fix multiselect opening closing

* placeholder fix

* fix highlighting in multiselect

* fix : testing bugs

* fix : default value

* Fix merge issues

* Fix Qa bugs

* Fix QA bugs

* Fix codehinter default values

* fix fireEvent on focus

* Fixes

* Provide minwidth to dropdown and multiselect

* Fix search input value not getting updated

---------

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

* Fix: remove mandatory key from password input (#9786)

* Remove date-fns depedency from table datepicker

* Revert Remove date-fns depedency from table datepicker

* remove mandatory key from password input

---------

Co-authored-by: Nakul Nagargade <nakul@tooljet.com>
Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com>

* feat : Query manager separated to different tabs (#9823)

* change toggle for query manager and revamp preview

* feat : query manger body revamp

* updates

* fix : tranformation switch

* preview integration

* loader safari changes and overflow fix

* fix

* fix : settings tab QM

* revert few changes to fix datasources page

* revert header options change

* zindex fix for query-pane

* fix : events ui

* fix :events widget manager

* code optimised for this file

* QM header fixes

* dark mode changes

* fix : info icon

* open preview drawer on run query

* fix : query manager query section icons update

* update color

* design feedbacks and make preview panel resizable

* update toggle for preview result & increate draggable area

* fix :review changes

* merge fixes

* Merge branch 'appbuilder-1.8' into feature/query-manager-body

* fix : codehinter in disabled state

* ui fix

* code refactor

* cleanup

* fix fontsize in datasource selector popup

* fix border issue in preview container and increase draggable area

* fix : review fixes

* fix: fixed text css formatting for safari support

* Revert "code refactor"

This reverts commit 4763dd11a3.

* typo

* fix : not able to select text in preview

* fix : not able to view add params

* fix selection issue in preview

* fix : add scroll in query  manager when preview is blocking view

---------

Co-authored-by: Kartik Gupta <gupta.kartik18kg@gmail.com>

* Fixes: select all click behaviour on label (#10108)

* fixes: select all click behaviour on label

* fix: legacy component names

* fix: selecto issue (#10107)

* Fix : Prevent component autofill (#10040)

* fix : prevent other component from autofilling data when password is filled from browser suggestions

* optimise

* feat: skip onDragStop execution if drag event is empty (#10118)

* feat: skip onDragStop execution if drag event is empty

* fix: added additonal logs for  error

* display query preview data in preview panel and display transformation failure stacktrace data in previewpanel as well (#10129)

* Fix while adding new rows in table components when ever entered the text and pressed enter it doubles the text (#10112)

* Integration bugfixes appbuilder 1.8 (#10109)

* fix : query maanager duplicate and preview issue

* fix : multiselect breaking on making dynamic options null

* fix : preview and query panel integration bugs

* fix : placeholder

* fix : doc links

* fix : scroll in TJDB filter section

* fix : portal for multiselect

* fixes

* fix : image column table alignment

* fix : doc link for multiselect

* fix : codehinter state being persited across components

* fix :export app qery manager items not coming in correct order

* fix: search icon position

* code refactor

---------

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

* add z-index to app name info header container (#10116)

* Fix dropdown and multiselect crash on integer labels (#10128)

* cast integer labels to string

* add null check for label and provide default value for empty labels

* empty and null handle for schemas and other values

* revert changes

* Fix: dark mode on preview names (#10136)

* fix: dark mode of preview names

* fix background color of preview

* fix tjdb query import (#10134)

* fix :revert radio button name change (#10153)

* Fix: select issue on multiselect (#10137)

* remove portal from multiselect

* fix: dynamic values for options in dropdown/multiselect

* remove fx from default option

* Fix: delete on options delete in dropdown (#10192)

* fix: delete on options delete

* fix: overlapping of multiselect on parent container

* fix: outside click of multiselect

* hotfix : Table breaking on importing older apps with null value in column (#10185)

* fix : table breaking on importing older apps with null value in column

* fix : table crash , codehinter not saving values upon page change

* remove low priority wrapper from autosave

* remove logs

* added delay to autosave as callback

* fix: dropdown crash on invalid data (#10202)

* revert to previous transformation code , fix darkmode color (#10216)

* fix : doclink for dropdown (#10217)

* fix : Transformations value getting cleared / not getting saved (#10218)

* fix : transformation value not getting saved

* remove dependency

* chore: version update for release

---------

Co-authored-by: stepinfwd <stepinfwd@gmail.com>
Co-authored-by: vjaris42 <vjy239@gmail.com>
Co-authored-by: Kartik Gupta <gupta.kartik18kg@gmail.com>
Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com>
Co-authored-by: Nakul Nagargade <nakul@tooljet.com>
Co-authored-by: Akshay <akshaysasidharan93@gmail.com>
2024-07-01 08:46:22 +05:30
kriks7iitk
9c57ccda8a Added design fix phase 2 2024-06-28 13:49:03 +05:30
Kavin Venkatachalam
84167f3479 Merge branch 'main' of https://github.com/ToolJet/ToolJet into chore/main-to-develop 2024-06-28 12:05:37 +05:30
kriks7iitk
b3f1f1c857 1st round design fix 2024-06-28 02:24:00 +05:30
Kavin Venkatachalam
b92a4fc371 hotfix LTS: Fix for duplicating the components (#10208)
* fix: while duplicating the component, the component ID was sent to BE instead of entity ID

* Fixes: page duplication entity mappings
- On page duplication, after cloning of components and mapping to respectived ids, the references used inside the the new/cloned components's definition needs to be updated

* fixes: component crash on page deletion

---------

Co-authored-by: arpitnath <arpitnath42@gmail.com>
2024-06-27 18:02:00 +05:30
Muhsin Shah
0eb0cf3c25 Added migration helpers 2024-06-27 16:38:46 +05:30
Muhsin Shah
ea37a024e0 Added apps subscriber to listen entity events 2024-06-27 14:12:52 +05:30
Muhsin Shah
c3cd2c2f2f migrating code to new typeorm version 2024-06-27 13:25:53 +05:30
Kavin Venkatachalam
ca5df2ebe2 Merge branch 'main' of https://github.com/ToolJet/ToolJet into perf/0.1 2024-06-27 11:41:33 +05:30
Midhun G S
f77bf00a9d
bump version (#10206) 2024-06-27 11:12:42 +05:30
Muhsin Shah
ede11aa27b Added initial fixes for typeorm migration 2024-06-26 17:14:32 +05:30
Kavin Venkatachalam
7aa656169f Merge branch 'lts-2.50' into perf/0.1 2024-06-26 16:46:08 +05:30
Kavin Venkatachalam
7a6f12473c
LTS - hotfix: Fix for canvas background color & reserved keyword (#10171)
* fix: update canvas background color to default when the linked component is deleted

* chore: version bump

* Fix: Update keyword validation to handle reserved keywords accurately

- Refined validation logic to handle reserved keywords, ensuring that compound identifiers are not incorrectly flagged.
- Improved checks to allow valid code patterns like 'window.location.href' while blocking invalid usage of 'window'.
- Addressed all known cases, including those causing app or component crashes and previously non-working cases.
- Enhanced handling for both multiline and single line code validation.

* chore: removed console.log

* fixes: table actions events - with multiple events only the last event created was triggered

* fixes: returning circular deps crashes the app

* fix: added a debounce changes

---------

Co-authored-by: arpitnath <arpitnath42@gmail.com>
2024-06-26 15:04:46 +05:30
Akshay
a29f025012
Merge branch 'release/marketplace-sprint-2' into community/marketplace 2024-06-26 13:01:25 +05:30
kriks7iitk
ad29c98e48 Design fix for user group 2024-06-26 10:36:58 +05:30
Muhsin Shah
3bba26bc85 reverted the typeorm version back to old 2024-06-25 16:55:44 +05:30
Muhsin Shah
70ad703637 regenerated the pacakge-lock json files 2024-06-25 15:01:36 +05:30
Arpit
a1b38f4a2f
Hotfix [LTS] - Bugfixes (#10146)
* fixes: child components on listView are not updating correctly

* bumped version

* Special handling for 'window' keyword in multiline code editors

- Updated validation logic to allow 'window.x' while treating standalone 'window' as a reserved keyword.
- Refined keyword matching to ensure keywords are not part of a string or a comment and are exact matches.
- Applied a hotfix to both CE-LTS and the latest non-LTS CE versions, effective by end of day.
- Note: This update is specifically for multiline code editors; single line editors will continue to support 'window.x' or any usage of 'window' as it breaks the app otherwise.

* fixes: update the query refs for failed query

* fixes: on form submit the children's data should be accessable from queries events

* fixes: event execution

* adds a debounce for form reset on submit

* for onPageLoad events, we need to execute the actions after the page is loaded
2024-06-24 20:22:23 +05:30
Arpit
5666442f8f
bumped version to 2.55.6 (#10130) 2024-06-19 14:41:44 +05:30
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
kriks7iitk
540bf31f80 removed log from server 2024-06-18 12:15:51 +05:30
kriks7iitk
88e02bdfd3 changes for group-sync 2024-06-18 12:06:10 +05:30
Aman Regu
d91b600396 Merge branch 'develop' into merge-main-develop 2024-06-14 19:43:40 +05:30
Akshay Sasidharan
e4f6356fc4 bump to v2.61.3 2024-06-14 11:18:50 +05:30
kriks7iitk
2fa84b0ab1 added seeding for new user revamp 2024-06-14 10:01:46 +05:30
Akshay Sasidharan
67bbce4070 add empty array check on import resources 2024-06-13 22:29:11 +05:30
kriks7iitk
35769ceff9 change permission system on client side 2024-06-13 18:31:29 +05:30
kriks7iitk
ef1d0eb9a3 remove cyclic dependency from casl module 2024-06-13 15:21:11 +05:30
kriks7iitk
dfcc232b6c changed app get query 2024-06-13 11:20:03 +05:30
kriks7iitk
c2b70ebc94 fixed folder query 2024-06-13 11:15:20 +05:30
kriks7iitk
1994ca651b fixed for admin setup 2024-06-13 10:47:18 +05:30
Akshay Sasidharan
dfa3304bef bump to v2.50.5 2024-06-13 10:46:29 +05:30
Akshay Sasidharan
058196ada0 bump to v2.61.2 2024-06-12 19:26:01 +05:30
kriks7iitk
2e22a59462 fixed for resource function 2024-06-12 14:29:53 +05:30
blank0537
91169cf6a7
Fix create app failure issue because TJDB is disabled (#9082)
Co-authored-by: Akshay <akshaysasidharan93@gmail.com>
2024-06-11 20:58:43 +05:30
kriks7iitk
0af5f94180 merged latest 2024-06-11 11:48:12 +05:30
kriks7iitk
6acd403e2b Adding user group permissions ability factory 2024-06-10 16:27:55 +05:30
Johnson Cherian
b71c11af0f chore: bump version 2024-06-07 09:54:54 +05:30
Johnson Cherian
f461239dad Merge branch 'lts-2.50' into merge-lts-2.50.4-main 2024-06-07 09:36:25 +05:30
Akshay Sasidharan
839fea3893 fix query params on postgrest request 2024-06-06 22:27:10 +05:30
Akshay
11d94f0017
Merge branch 'main' into release/database-1.1.1 2024-06-06 19:35:36 +05:30
Kiran Ashok
1d99f1c80f
hotfix: Hidden component's box height not shrinking (#10003)
* fix : shrink box size on visibility hidden

* chore : version bump

* fix

* fix : shrinking in subcontainer
2024-06-06 18:51:37 +05:30
Kiran Ashok
8675b3186a
Bugfixes: Table crash fixes for LTS / Zindex issue for datepicker (#9984)
* fix : Table breaking for nested array of objects

* fix : table crash on selecting time only datepicker sing add new row

* remove logs

* update zindex

* Fix: Entity reference mapping and performance issues on codehinter (#10004)

* Fix: Entity reference mapping and performance issues on codehinter (#430)

* trial

* fixes:
- entity mapping on version switch
- entity mapping on page switch
- entity mapping on viewer on page switch

* fixes: performance of codehinter for rendering nested json data

* trial

* fixes:
- entity mapping on version switch
- entity mapping on page switch
- entity mapping on viewer on page switch

* Revert "fixes:"

This reverts commit 6ca9921731468aca4132c0aff3aeba02845bcd8a.

* Revert "trial"

This reverts commit 5bfa40c36aeb84abe98c0f2ab2418148772a048d.

* fixes: editor crash on resolving workspace variables

* fixes: populate JS hints

* chore : version bump

* version bump

---------

Co-authored-by: Arpit <arpitnath42@gmail.com>
2024-06-06 17:19:46 +05:30
Akshay Sasidharan
30c3378e3e bump to v2.50.3 2024-06-06 13:15:54 +05:30
Kiran Ashok
750b5f53e6
hotfix : Datepicker popover coming behind other components in viewer mode (#9965)
* fix : datepicker popover coming behind other components in viewer mode

* added viewer check

* update zindex

* chore version bump
2024-06-06 12:00:40 +05:30
Akshay Sasidharan
8e353f2be0 bump to v2.61.0 2024-06-04 18:16:17 +05:30
Akshay Sasidharan
d0bfdf0e77 Merge branch 'main' into release/database-1.1.1 2024-06-04 18:14:43 +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
Kiran Ashok
3f407530bd
Hotfix : Table crashing on selecting a value using time only datepicker in add new row (#9975)
* fix : table crash on selecting time only datepicker sing add new row

* fix : docs link in widget manager

* fix : naming

* chore : version bump
2024-06-04 17:48:08 +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
Kiran Ashok
d245d170aa
fix : Table breaking for nested array of objects (#9919)
* fix : Table breaking for nested array of objects

* remove log

* chore: bump minor version for hot fix

---------

Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com>
2024-05-31 10:21:06 +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
kriks7iitk
8abb5dfa56 Merge branch 'revamp/users-and-groups-frontend' of github.com:ToolJet/ToolJet into group-revamp-2 2024-05-30 05:49:52 +05:30
Akshay Sasidharan
e201b817ba bump to v2.50.2 2024-05-29 16:53:03 +05:30
Parth
db7a77862a Handle missing plugin_id (#9907) 2024-05-29 16:51:47 +05:30
Kavin Venkatachalam
d60047f22f chore: version bump 2024-05-29 16:32:43 +05:30
kriks7iitk
826293b0f8 Added response type for getAll Users 2024-05-29 11:28:14 +05:30
kriks7iitk
7b2d637374 revamp casl and permission module 2024-05-29 05:16:46 +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
Sherfin Shamsudeen
f2ed28f6d9
Merge main back to develop (#9864)
* fix : form csa for onsubmit not getting triggered (#9862)

* Bump version to v2.50.0 (#9863)

---------

Co-authored-by: Kiran Ashok <stepinfwd@gmail.com>
2024-05-24 21:40:46 +05:30
Sherfin Shamsudeen
3cb97a5b89
Bump version to v2.50.0 (#9863) 2024-05-24 20:50:54 +05:30
Kavin Venkatachalam
40da826300 Merge branch 'main' of https://github.com/ToolJet/ToolJet into chore/v2.45.0-conflicts 2024-05-24 17:09:02 +05:30
Aman Regu
0b6d67a834
add gstatic to CSP whitelist (#9858) 2024-05-24 16:27:30 +05:30
arpitnath
781e8de500 bumped version to 2.45.0 2024-05-24 13:43:10 +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
kriks7iitk
a3d3dfb16f completed group permission service 2024-05-23 15:08:09 +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
kriks7iitk
525404c4a4 Add granular permissions api 2024-05-20 22:57:23 +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
2d6d32459b bump to v2.43.0 2024-05-17 13:22:42 +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
gsmithun4
e1ac1ccd27 bump version 2024-05-16 18:23:12 +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
Rudhra Deep Biswas
7a29426169
Added warning info for local data sources and added a svg to assets (#9704)
* Added warning info for local data sources and added a svg to assets

* converted output of isDataSourceLocal to boolean
2024-05-15 14:59:13 +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
470dcc8b43 bump to v2.42.0 2024-05-13 18:11:02 +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
Muhsin Shah
9f43fe5e1a Merge branch 'main' into release/platform17.2 2024-05-13 14:05:26 +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
Nakul Nagargade
321ae5f887
Revert table header and null renderer changes (#9646)
* Revert table header and null renderer changes

* Fix

* Update versions
2024-05-09 16:44:13 +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
Akshay Sasidharan
ceefa39035 fix batched query 2024-05-08 18:36:34 +05:30
Akshay Sasidharan
b5db005902 define unused tjdb connection name on data migration 2024-05-08 18:16:03 +05:30
Akshay Sasidharan
9faff8b3c3 fix lint 2024-05-08 17:24:17 +05:30
Syed Abdul Rahman
a502a9beda
fix : cell select focus issue (#9639) 2024-05-08 14:58:21 +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
kriks7iitk
ce2d72d4bb Add user role service in permissions module 2024-05-06 07:56:48 +05:30
kriks7iitk
ac6bc8d16f Add apis for group permissions 2024-05-06 07:54:47 +05:30
Sherfin Shamsudeen
5cabfa9fa9
Merge branch 'develop' into release/templates-1.2 2024-05-03 20:03:25 +05:30
Abhinaba Adhikari
cb59c79a13
Fix manifests of templates (#9605) 2024-05-03 18:16:41 +05:30
Sherfin Shamsudeen
b6f09813fd Bump version to 2.41.0 2024-05-03 17:49:33 +05:30
Abhinaba Adhikari
a3de9f8991
add in-house templates (#9604) 2024-05-03 17:44:11 +05:30
Muhsin Shah C P
636deed6aa
Updated the versions (#9594) 2024-05-02 22:29:01 +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 C P
9c643dd7f7
Initial commit of release branch (#9586) 2024-05-02 14:55:21 +05:30
Sherfin Shamsudeen
532de117a7 Merge branch 'release/community-templates1.0' into release/templates-1.2 2024-05-02 12:52:52 +05:30
kriks7iitk
ccaa17250d added function in group revamo 2024-05-02 10:38:07 +05:30
Abhinaba Adhikari
ab1aa2cc3d
Fix community templates (#9559)
* Renamed conflicting folder

* Restored correct folder name

* Prepare templates for deployment

* Update id of lorem ipsum template
2024-05-02 02:56:34 +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
Muhsin Shah
da12420c93 refactored the activate-account-with-token API 2024-04-29 17:54:59 +05:30
Kavin Venkatachalam
0fae5a09e8
chore: Improvements on super store (#9518)
* chore: updated superstore

* Fixed component crash on Viewer

* Changed the icon of clear button in debugger to trash icon (#9528)

---------

Co-authored-by: Manish Kushare <37823141+manishkushare@users.noreply.github.com>
2024-04-29 16:36:10 +05:30
gsmithun4
0ab0766fa0 bump version 2024-04-29 14:25:54 +05:30
kriks7raptor
461a05208a Added services for granular and group permissions 2024-04-29 11:36:43 +05:30
Muhsin Shah C P
0f57094b0b
Fixes/invite flow (#9533)
* Changed copywriting

* working on updated signup flow

* Added redirectTo to organization only invite

* Fixed some bugs: typo, undefined error

* Removed and refactored some code of new invite flow
2024-04-29 10:07:46 +05:30
kriks7raptor
cc6a7d02d6 added skeleton for user graoup revamp 2024-04-25 12:19:26 +05:30
Akshay Sasidharan
7acf99b5b9 bump to v2.37.0 2024-04-24 18:01:24 +05:30
Akshay Sasidharan
76300cf23c Merge branch 'main' into release/community 2024-04-24 17:59:33 +05:30
Akshay Sasidharan
8bb39b5099 fix tjdb dependency error 2024-04-24 17:42:31 +05:30
Johnson Cherian
cfdc00fad1 chore: update version for release 2024-04-24 17:38:25 +05:30
Kavin Venkatachalam
15762d0c13 Merge branch 'main' of https://github.com/ToolJet/ToolJet into feat/grid-appbuilder-improvement 2024-04-24 13:17:50 +05:30
Johnson Cherian
6a4f00741f Merge branch 'main' into appbuilder-1.6 2024-04-24 11:26:13 +05:30
Akshay
6c6cad8bc8
Add ability to run TJDB queries from public apps (#9134)
* add ability to run TJDB queries from public apps

* make TJDB query run similar to other datasources

* add result key for backward compatibility

* throw query error on postgrest request failures
2024-04-24 01:48:21 +05:30
Manish Kushare
5b690ebcb1
Table column redesign demo (#8442)
* initial commit

* redesign column manager

* redesign string column type in the table

* setting the color of the input field for string column type

* setting bg of popover body

* design the style tab of string column type

* adjusted spaces in the properties and style elements in the column manager

* fixed typo error

* removed unwanted line

* redesign the validation section of number column type manager

* added the placeholder value for string column type min and max length in the validation section

* replace text with icons for horizontal alignment in the style tab

* show delete icon outside of the menu actions for each column in the table inspector

* Revert "redesign string column type in the table"

This reverts commit a440f3fc23, which made changes for string column type in the table component on the canvas

* making flex fill for horizontal alignment icon buttons in the style tab of column manager in the table

* Bug fixed: event manager is not working in toggle column type

* added decimalPlaces prop to number column manager

* added text color and cell background props to style tab of number column manager

* added few validations for number

* created boolean column type consisting input checkbox working as toggle switch

* allow user to select boolean column type from the component manager and display boolean column in the table on the canvas

* making boolean component content consistent with the horizontal alignment

* making Boolean column type functional

adding editable and non-editale content to display on table

* fixed horizonta alignment issue for boolean column

* Revert "fixed horizonta alignment issue for boolean column"

This reverts commit d41499a1ed.

* making input elment vertically aligned

* added generalised cell interaction

* added props for boolean column types in column manager of table

* added feature to provide custom bg to toggle switch

* removed default value to toggleOnBg and toggleOffBg

* conditionally displaying hardcoded value if toggleBg is not available

* change the file and component name of existing customSelect to customDropdown

* change component name

* remove unwanted code

* added select option to the column type dropdown field

* Created component for select column type

* rendering custom select component for select column type

* adding border danger for invalid value

* redesign column manager for select column type

* bug fixed : disabling control to select column type when editable is off

* changing the name key to label for select column type options

* partially implemented make default option feature

* Implemented default option for select column type

* added text color prop in a styles tab to select column type

* adding indigo color to selected option to select column type menu list

* avoid breaking table if array is not provided for dynamicOption field

* Organize the column manager and related files

* Added validation fields in text column manager

* Added text color to text area column type

* Added validation to text column type

* Avoiding bg to persisit for few column tupes, who dont have background field

* bug fixed : other valdiation are not rendering for string column type

* bug fixed: on hover always danger border is displayed for each cell

* Cell density enhancement

* Returning empty array for validationList for few column types

* handling validation list by merging organizing-column-manager

* Changed the select component in the properties tab of column popover

* Changed the UI of validation according to new design also few column popover and action popover UI changes

* Adding fx code block in style tab for text color and cell bg color

* fixing UI of select column type column manager according to new UI

* creating multiselect column and its UI wrt option list

* added overlay trigger to multiselect

* feat : added design theme new colors

* fix : adding new color swatch to input components

* fix : colors, number input with height less than 16px and number input arrow in padding none mdode

* fix : icon color

* few color fixes

* overlay trigger for multi-select column type

* color picker bug fixed

* color changes

* column type input text is not consistent with the dark theme- fixed

* custom select single value container bug

* manking add new row, hide column and download popover background consistent with the dark theme

* Making add new row consistent with the updated UI changes

* feat : link column type table

* fix: default underline color

* fix : sentence casing

* added missing transformation field

* fixes

* fixing tab opening condition

* fix : backward compatibility

* supported multiple badges , tags for cell density propety

* added feature to duplicate column

* made td container overflow hidden

* provided 100% width to Image fit prop in styles tab

* oveflow hidden prop changes

* revert unwanted change

* change the gap between columns in column lists inside table inspector

* Deprecate few column types in table

* Fix

* Fixes

* change the functionality of cell density feature

* Fix msg

* Revamp date picker in table

* Fix

* fix : darkmode colors

* revert

* Supported cell density feature for multiple badges

* making badges aligned center

* madde tags column consistent with cell density feature

* Remove imports

* enhancing the code density feature

* Making radio column consistent with the cell density feature

* Fix unixtimestamp

* Fix CSS issues

* making tags and badges overlay appear only when content is overflowed

* CSS fixes

* Fix

* Fix dark mode issues

* making background transparent for deprecating columns

making overlay visible on horizontal overflow

* New revamped styles

* fix box shadow

* Migrations to move visibility and disabled states from styles to properties

* undo change

* refactored custom select component

* patch fixes

* bug fixed action popover was inconsistent with dark theme

* testing

* update custom select column type

* fixes

* Avoided options being populated in columns

* removed consoles

* making custom select align center vertically

* on focus , we used to see on hover effect, avoiding it

* Design review changes

* Made text and string text-container according to design

* vertical positioning of select and multiselect

* overlay for deprecated columns

* regex placeholder

* Icons for number column type

* Design feedback changes

* Design fixes

* box shadow on select menu list in canvas

* added missing feature of decimal places and make increment and decrement icon vertically aligned

* Fix design issues

* Solve lint issues

* Design theme revert changes

* color of column list on hover and active is updated

* fixes

* changing the font weight of labels in styles tab of column manager

* fix

* Revert design theme

* label change

* horizontal alignment of select and datepicker columns

* Reverted back to textarea for text column type

* sync package-lock.json

* fix import

* UI fixes

* Css changes

* feat: Update default table data (#9312)

* updated default table data

* fix : table breaking

* fix : datepikcer crashing table

* fix : data

* fix :: table image height (#9307)

* fix  : Table datepicker UI fixes (#9324)

* fix : datepicker ui

* update

* fix

* refactor: removed unused codes

* add overlay

* add overlay

* Fix datepicker when date and time both are disabled

* Fix paddings and margins

* fix : default states in datepicker in table (#9335)

* feat : update default data with images (#9338)

* Design feedback

* fix multiselect column type issues

* Fix datepicker header width

* Fix dropdown

* Fix options loading state

* Fix select issues

* Fix multiselect default option

* fix overlay trigger multiselect

* fix: fixed issue with overlay display and cell content alignment for text

* fix: Multiselect popover (#9394)

* fix: popover only needed when content overflows

* fix

* fix: update zindex of edited text column

* fix: show overlay when text in string overlay overflows

* Fix multiselect default options

* fix: show error message for editable string cloumn

* Fix date issues

* Fix date fixes

* fix: more info popup close on mouse leave

* Fix unix timestamp issue

* Migration: set default demo data for older data (#9423)

* fix: backfill old default data if user did not add a data

* fix: backfill old default data if user did not add a data

* Table column redeisgn demo string fix (#9415)

* fix: show error message on table input validations

* fix: error message alignments

* Fix import issue for datepicker

* wrapping the contant of multiselect selected options (#9429)

* Fix popover in multiselect

* Add multiselect popover only when content wrap is false or max row height is custom

* Fix : String column types bug fixes (#9431)

* Bug fixed: Hiding max row height field when content wrap is disabled

* Removed border bottom when striped table style is applied

* removed unwanted code

* Apply hover effect on non-editable cell

* Fixed width applied to multiselect popover

* Fixed multiselect popover when content wrap is auto

* Fix : arrow indicators vertical alignment in number column (#9440)

* Fix: vertcial alignment of arrows

* added hover effect on even rows

* removed important

* fix : Link column ui bugs , console error fix when hovering table (#9437)

* fix : link column ui ux

* update icons

* Fix: focus editable string column on click of anywhere in cell (#9435)

* Bug fixed: Hiding max row height field when content wrap is disabled

* Removed border bottom when striped table style is applied

* removed unwanted code

* Apply hover effect on non-editable cell

* Not able to edit the cell if clicked on the edges

---------

Co-authored-by: manishkushare <kushare.manish9@gmail.com>

* fix: number input overlap with increment/decrement button (#9406)

* Number input arrow bug (#9441)

* Fix: vertcial alignment of arrows

* added hover effect on even rows

* removed important

* number are overflowing on arrows fixed

---------

Co-authored-by: manishkushare <kushare.manish9@gmail.com>

---------

Co-authored-by: stepinfwd <stepinfwd@gmail.com>
Co-authored-by: Nakul Nagargade <nakul@tooljet.com>
Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com>
Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com>
2024-04-19 17:22:06 +05:30
Arpit
6249227022
Add updatedAt column to layouts table (#9026)
adds a new column named updatedAt to the layouts table in the database. The column has a default value of CURRENT_TIMESTAMP, which automatically sets the timestamp to the current date and time when a new row is inserted.

This change enables us to track the last update time of each layout entry, which is essential for various functionalities such as querying the latest versions of layouts and implementing dynamic component rendering based on the most recent updates.

The migration script responsible for adding the updatedAt column has been executed successfully, and the column has been verified to exist in the layouts table.
2024-04-19 13:05:08 +05:30
Nakul Nagargade
b5974b2b8d
feat: Add light/dark/auto mode theme setting at application level (#9091)
* Add app mode in global settings

* Fix width of app mode toggle

* Resolve code comments

* Fix design comments

* Fix when canvas bg is empty

* Product feedback

* Fix dark theme issue in table

* Code refactor

* Always enable dark mode toggle in editor

* Fix canvas container color

* fix: update currentstate theme on appMode change

* fix: check theme as string from localstorage

* Update frontend/src/Editor/Header/AppModeToggle.jsx

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

* Update frontend/src/Editor/Viewer/DesktopHeader.jsx

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

* fix: check app theme when switching global theme

* fix: check if appmode is empty and show toggle button in viewer

* fix: set appmode on editor load from appdef

---------

Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com>
Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>
2024-04-19 12:55:16 +05:30
Adish M
8433ccac40
Merge pull request #9313 from abdel-rahmanSalem/template/lorem-ipsum-generator
Template: Created lorem ipsum generator
2024-04-19 12:08:39 +05:30
Adish M
536015ad48
Merge pull request #9337 from Ranit-Bandyopadhyay/patch-1
Template: Created digital marketing campaign manager
2024-04-19 12:08:22 +05:30
Adish M
da596831d5
Merge pull request #9362 from Sadaf-A/template/finance-underwriting
Template: Created finance underwriting
2024-04-19 12:07:58 +05:30
Akshay Sasidharan
07c636c061 Merge branch 'develop' into release/community-templates1.0 2024-04-18 12:10:45 +05:30
gsmithun4
15a4c4330e bump version 2024-04-17 17:19:46 +05:30
gsmithun4
a101df402b Merge branch 'main' into release-rebase-3/platformv14.7 2024-04-17 17:19:06 +05:30
kriks7iitk
38eb851c93
Fix: duplicated datasource in export of app (#9393)
* Fix: duplicated datasource in export of app

* fix:code sanity

---------

Co-authored-by: Kritagya <kriks.iitk@.com>
2024-04-16 20:05:03 +05:30
gsmithun4
9302132b53 bump version 2024-04-16 20:01:51 +05:30
Muhsin Shah
57440039ae Merge branch 'main' into invite-flow-part1/platform14 2024-04-16 15:16:32 +05:30
gsmithun4
29903ee722 bump version 2024-04-16 13:53:22 +05:30
gsmithun4
5dc4f7e86d Merge branch 'main' into release-rebase-2/platformv14.7 2024-04-16 13:48:16 +05:30
Midhun G S
27e500c012
added improvement for email transport (#9355) 2024-04-16 13:34:08 +05:30
Midhun G S
46923463af
Added app edit privilege for clone app (#9314)
* added app edit privilege for clone app

* fix

* fix

* added privilege check in front end for clone app
2024-04-16 13:33:28 +05:30