Commit graph

487 commits

Author SHA1 Message Date
Kiran Ashok
d5989517c5
fix : The query in the suggestion does not exist if we rename the query and try to access the suggestions by typing {{queries (#10482)
* fix: deprecated prop

* fix : upon renaming query suggestions list doesn't get updated
2024-07-31 15:54:40 +05:30
Kiran Ashok
06d7d833db
fix : on reload after disabling tranformation value gets cleared (#10476) 2024-07-30 09:22:21 +05:30
Sherfin Shamsudeen
01bf0b87ad Do not parse undefined value within queryPreviewDataWithCircularDependenciesRemoved 2024-07-17 15:25:00 +05:30
Sherfin Shamsudeen
6ac2bd8a8f Introduce reserved keywords replacer for critical stringifys 2024-07-17 15:23:57 +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
Shaurya Sharma
25edbb9cfd
Infinite scroll loader fix (#10179) 2024-07-09 20:22:07 +05:30
Parth
fab12df3c4
Feature: Manual toggle for retrying failed REST-API requests (#10100)
* Add retry-toggle to app builder

* Add backend logic for number of retries

* Add retry-toggle to restAPI data-source

* Add margins between settings options in app builder

* Add changes for static-query toggle in app builder

* Initialise toggle value in store

* Change tooltip text

* Change classname for tooltip

* Add default value for toggle from manifest.json

* fix : rest api retry network toggle width issue

* Refactor: Setup retry initialization within restapi component (#10219)

* refactor to setup retry initialization within restapi component

* remove unused css class

* rename condition

* remove unused css

* Refactored: Merged RestAPIToggle into existing Toggle component

* Fix cookies support input render in querybuilder

* Add delayed initialization for retry_network_errors

---------

Co-authored-by: Abd-Rahman-1999 <s.rahmanabd1999@gmail.com>
Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
2024-07-09 13:10:22 +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
Manish Kushare
c63abeb168
Fix : Bugs from aggregate feature (#10239)
* Bug fix: if option is undefined select dropdown is breaking application

* Hide Select section when one aggregate is added

* Deleting single aggregate will delete all the available group by values

* Wrapped showSelectSelection withing useCallback to avoid unnecessary re-renders

* Improved code readability of constructAggregateValue function

* Change the name of variable to columnList

* Updated the requested changes

* Removed duplicate condition

* Updated requested change

* Fixed : In Join operation, unable to select columns in aggregate condition

* Showing tooltip for truncated table name in group by section

* Disable the group by condition and and show tooltip if tableName is falsy value

* Fixed width issue of table name in group by section

Do not show dropdown if joining table is empty for the same

* show delete confirmation modal, when we are deleting last filled value and all other are half filled or empty, then discard all group by conditions

* fix : deleting aggregate with confirmation always deletes last avaialable aggregate whether its filled or empty

* Fix: editing aggregate change was not consistent
2024-07-05 19:48:39 +05:30
Parth
063a8d2b85
Fix cookies support input render in querybuilder (#10260) 2024-07-03 18:32:25 +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
Parth
056d23dd94
Feature: Add cookies support in the REST API datasource & query builder for static and global datasource (#10166)
* Add cookies parameter to querybuilder frontend

* Add cookies parameter to datasource page

* Add cookies to the request headers in backend

* Change return type of sanitizeCookies function

* Change empty state styling in query-builder

* Add style changes for button

* fix : rounded corners in border for key field in rest api datasource

---------

Co-authored-by: Abd-Rahman-1999 <s.rahmanabd1999@gmail.com>
2024-07-01 15:32:24 +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
Kavin Venkatachalam
7aa656169f Merge branch 'lts-2.50' into perf/0.1 2024-06-26 16:46:08 +05:30
Akshay
a29f025012
Merge branch 'release/marketplace-sprint-2' into community/marketplace 2024-06-26 13:01:25 +05:30
Akshay Sasidharan
2238b01cf7 reword toast message when TJDB is not enabled 2024-06-24 15:20:15 +05:30
Kavin Venkatachalam
bdb4706fc1
Performance release 0.1 (#9922)
* chore: moved fetching gds and lds from low priority calls

* Refactor: Optimize state updates by removing component dependencies on current state to avoid trade-offs

* clean up

* run on page queries after on app load queries are done executing
page load queries should be triggered even if the one or all the app load queries fails

* performance improvements:
- reduced calling resolver functions upto 50% times for components' rendering
- moved to new resolver function for resolving component properties: which 100 times more efficient as utitlises hash table to resolve references and only uses recursive function for resolving JS code by inferring the query
- reduced re-rendering of Box component upto 50-60%
- app load time improved by 30% : as resolver function is more efficient and 50% reduction on rendering of Box.jsx

* chore: removed currentState dependency from SubContainer and QueryManager

* chore: removed useCurrentState from old kanban component

* chore: filtered `false` from componentToRender array to avoid unwanted re-renders when there is an update in a component

* fix: minor improvement on buildAppDef function

* [performance] removes current state dependency from resolvers (#9934)

* Removes current state from function calls of resolver functions

* clean up

* remoes lodash clone deep to more efficient clone deep or copying utitlity method

* ts files to js

* replaced setTimeout to debounce method of lodash for more efficient delayed invocation and yielding mechanism to reschedule large number of tasks

* fixes file path for deepclone method

* fixes import file path for utils helpers

* fixes import file path for utils helpers

* clean up

* fixes: listView's custom resolvers are not getting updated

* chore: moved lastUpdatedRef state from Editor to the subscription of relsoverStore

* fixes: re-rendering of box component for trigger back resolvers

* fix: removing the delay as the runJS updates are not reaching to the components. While start running the query we are updated the componentIds that needs to be rendered. After running the query the same IDs are updated and this is stopping the re-render of the component

* Reverting commit 583460c

* fix: Table search event was not firing while clearing the search input

* fixes: mapping entites on clone page

* commit: Fixed issue on running query on app load with confirmation

* fix: we're mutating the data and which avoids the re-render to update the canvas bg colour. Added a deepClone to avoid it

* Bugfix - perf mapping (#10101)

* fixes: entity for compnent or query duplications with events

* maxDisplayLength for hinter's preview

* clean up

* fix: when multiple components are deleted, the codehinter has the deleted component as suggestion

* fixes: on typing fast the cursor postion changes its postion to first char of the line in multiline JS

* trial

* fix: moved currentValue state of codemirror to ref

* fix: the passed value to the codehinter was not updated properly

---------

Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com>

* fixes: evaluatin js code in codehinters with reserveed keyword

* fixes: reserved keywords string should be resolved and updated in the compnent

* re-rendering of componenrs in viewer

* fixes: resolving of refs

* added a timeout for filepicker

* removes 100s

* filepicker crashes (component) crash on page deleting

* fixes: app crash on adding file events

* fixes: hinter suggestions selection by keyboard

* [chore]: Show proper error message instead of app could not save (#10126)

* chore: show error message from BE instead of app could not save

* Added a fallback value

---------

Co-authored-by: arpitnath <arpitnath42@gmail.com>
2024-06-19 14:36:09 +05:30
Akshay Sasidharan
c65c053d03 update TJDB status check condition 2024-06-11 22:49:44 +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
Akshay
42f3dd8aea
fix : cell edit menu stying issue for foreign key values (#1535) (#10029)
Co-authored-by: Syed Abdul Rahman <137684137+S-Abdul-Rahman@users.noreply.github.com>
2024-06-11 11:09:49 +05:30
Akshay Sasidharan
1330afc10b disable loader for foreign key dropdown 2024-06-06 20:42:05 +05:30
Abd-Rahman-1999
fbf166f1c4 fix : null value issue in cell edit menu 2024-06-06 14:32:27 +05:30
Abd-Rahman-1999
163d6e44dd fix : cell edit menu's default and null value toggle fixes and some other styling fixes in tjdb dashboard 2024-06-05 16:34:12 +05:30
Manish Kushare
3619d2d849
Updated copuright to No data found for dropdown select in tjdb (#9979) 2024-06-04 19:07:04 +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
Syed Abdul Rahman
6ea2a47e14
fix : Foreign key dropdown width oversize issue in create and edit row (#9799)
* fix : foreign key dropdown width oversize issue in create and edit row

* fix : unable to read the menu text in fkr dropdown

* css classaname prefix changes

* fix : added tooltips for create and edit row in large fk values

* fix : Added max-width property for tooltip on create and edit row for foreign key fields

* fix :added tooltips for fkr dropdown in create and edit column

* fix : added tooltips for fkr dropdowns in create and edit table
2024-06-04 16:26:46 +05:30
Parth
a220356f84
Fix: Disable boolean datatype selection for foreign key on create and edit table in TJDB (#9817)
* Prevent boolean datatype from being selected as a foreign key

* Change placeholder text

* Restrict foreign key relation for boolean datatype from edit/create column drawer

* Place disabled options together at the top

* Disable boolean datatype from dropdown

* Remove placeholder text and make it appear on hover

* Correct source-description text

* Correct the tooltip text for boolean data type

* Remove background colour from disabled options

* Change the tooltip text for boolean type in tableschema

* Disable cursor for disabled options

* Shows hover tooltip text on disabled options

* Change tooltip and placeholder text
2024-06-04 14:52:26 +05:30
Parth
e3b9bac9b6
Fix: Standardise the drawer heading's styles in TJDB (#9747)
* Change class name for Table schema header

* Add classname to heading

* Add styles for new & changed class

* Add styles for lightmode

* Add classnames for lightmode

* Change spacing and empty-foreign-key-container styles

* Add classname to text

* Add styles for the text

* Reduce gap between the icon and text

* Remove background colour when disabled in lightmode

* Remove button shadow

* Fix styles for create new column drawer

* Fix styles for create new row drawer

* Fix styles for edit row drawer

* Fix styles for edit column drawer

* Remove the background colour from column background

* Add scroll and fix font-size

* Remove errors

* Remove extra tooltip
2024-06-04 14:21:17 +05:30
Akshay Sasidharan
1aa5ef66e2 Merge branch 'main' into release/database-1.1.1 2024-06-03 21:14:48 +05:30
Shaurya Sharma
5a86dab79d
Foreign key dropdown added for cell edit (#9826)
* Foreign Key Dropdown added for Cell Edit

* Minor Bug Fixes

* Comments Resolved
2024-05-30 16:36:12 +05:30
Kavin Venkatachalam
a9113b8ad5 fix: passed delayOnChange from Transformation component to get the immediate onChange value from codeHinter 2024-05-29 15:05:47 +05:30
Kavin Venkatachalam
d6964effba fix: runpy is not returning the proper value. This is due to the setTimeout inside the codehinter 2024-05-29 14:02:04 +05:30
Kavin Venkatachalam
76143d6abd fix: runjs is not returning the proper value. This is due to the setTimeout inside the codehinter 2024-05-29 11:04:23 +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
Akshay Sasidharan
023e093f79 Merge branch 'develop' into release/database-1.1.1 2024-05-21 00:30:51 +05:30
Kavin Venkatachalam
1cc99a86c1 Merge branch 'main' of https://github.com/ToolJet/ToolJet into feat/grid-appbuilder-improvement 2024-05-20 10:46:19 +05:30
Kavin Venkatachalam
02b9789e29 fix: alignment issue on query manager 2024-05-17 15:50:31 +05:30
Akshay Sasidharan
6b8bd98fd3 Merge branch 'main' into release/database-1.1 2024-05-17 13:20:31 +05:30
Anantshree Chandola
d91490e599
Styling fixes for UI comps (#9752) 2024-05-16 15:49:58 +05:30
Kavin Venkatachalam
a1fa21614c chore: added margin bottom to codehinter of runPy to be consistent with the runJS 2024-05-16 13:22:47 +05:30
Anantshree Chandola
2219ce31e4
UI updates (#9737) 2024-05-16 11:40:58 +05:30
Rudhra Deep Biswas
e4ecf99c97
fixed ui <>& symbol issues for tooltip and whitelabel (#9731) 2024-05-15 17:10:58 +05:30
Rudhra Deep Biswas
63d1294e33
FIx "<>&" UI errors (#9602)
* added decode entity function

* added decode functions to resolve <> naming

* removed unnecessary fns

* Moved decodeEntities function to helpers/util

* Update frontend/src/_helpers/utils.js

Co-authored-by: Midhun G S <gsmithun4@gmail.com>

---------

Co-authored-by: Midhun G S <gsmithun4@gmail.com>
2024-05-15 14:57:05 +05:30
Anantshree Chandola
724d8168e3
UI Updates (#9726)
* UI updates

* fix search bar borders and side bars border

* update size of input box
2024-05-15 14:34:12 +05:30
Kavin Venkatachalam
80689a6a55 fix: fixed updating the parameters with right value. Introduced a prop on codehinter to call the callback without any delay 2024-05-13 09:50:08 +05:30
Syed Abdul Rahman
71125e2020
fix : Foreign key drawer fixes of text headings and actions dropdown (#9676)
* fix : in actions dropdown from foreign key we make restrict as default options and changes text heading in source and target table

* fix : change of uppercase to lower case for text tile in foreign key drawer
2024-05-10 16:55:24 +05:30
Syed Abdul Rahman
0d45a02d3d
fix : added set null and set default options back to the actions dropdown in foreign key drawer (#9666) 2024-05-09 18:15:15 +05:30