Commit graph

101 commits

Author SHA1 Message Date
Syed Abdul Rahman
c8a5d3b5aa
fix : In edit and create row the null tag's height is greater than the input field in ToolJet database (#9656)
* fix : null tag's height is greater than the parent input in create and edit row

* fix : tjdb column header gap between icons

* fix : showing tooltip on join constraint and showing options as restrict and cascade only in action in foreign key dropdown
2024-05-09 17:41:28 +05:30
Syed Abdul Rahman
3b29d03d22
fix : tooltip width issue, padding issue in foreign key relation drodpwn and fix of undefined error check (#9652) 2024-05-08 20:29:27 +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
Akshay Sasidharan
b40694c636 Merge branch 'develop' into release/database-1.1 2024-05-07 14:23:04 +05:30
Parth
1385a186ef
TJDB: Fix capitalization issue in dashboard drawer column names (#9409)
* Fix capitalization issue in TJDB drawer column names

* Change text colour in darkmode
2024-05-06 13:58:30 +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
Ganesh Kumar
4e0facbdd7
Fix: Column header rows should cover the whole width of the dashboard (#9108)
* fix: tjdb table header column background will be 100%

* chore: mariadb plugin latest version installed

* stylefix: bgcolor of add column button changed to variable and border line mis-alignment in add column header button fixed
2024-05-01 11:48:05 +05:30
Syed Abdul Rahman
1e66b1be7b
Fix : cell select focus border issue in ToolJet database (#9106)
* fix : cell select focus border issue

* checked edge case for boolean and fixed cell select focus border for boolean

* checked for error state as well
2024-04-30 19:54:44 +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
parthy
6462d458cb
Feature: Preselect Default Values in Create New Row Form on TJDB Dashboard (Issue: #9332) (#9341)
* Preselect default values while creating new row

* Toggle checkbox for default boolean datatype

* Select custom tab if default it null

* Toggle bool input while custom tab is selected

* Revert "Toggle bool input while custom tab is selected"

This reverts commit 25819a45f5.

* Toggle and save custom values along with default values

* Fix checkbox value conversion on tab switch
2024-04-16 00:23:53 +05:30
parthy
f3014a95b6
Fix: Dark mode inconsistencies in TJDB dashboard (#9311)
* Add new class table-cell-dark

* Revert "Add new class table-cell-dark"

This reverts commit 82ed7bec2a.

* Added new darkmode class

* Add new darkmode class

* Add styles change for darkmode

* Applied colour changes

* Applied changes to svg bg-colour

* Changing button style variant

* Adding new btn variant class

* Adding styles to new btn variant

* Changing styles for lightmode svg

* Adding warning svg for darkmode

* Adding warning styles for darkmode

* Adding btn styles for darkmode

* Changing styles for collapse btn in darkmode

* Changing styles for opening sidebar btn in darkmode

* Remove extra space and console.log()

* Change collapse & open sidebar btn

* Simplify warning icon background styles

* Change the border-colour of add-row btn

* Change border-colour for bottom row-creation btn
2024-04-11 13:27:30 +05:30
Akshay
7b79916903
Merge pull request #9132 from ToolJet/fix/dropdown-overlap
Fix : table creation datatype dropdown is overlapping
2024-03-20 11:50:31 +05:30
Abd-Rahman-1999
fc297be73d fix : while table create datatype dropdown is overlapping 2024-03-19 17:05:57 +05:30
Syed Abdul Rahman
53a72f7ea6
Fix : null value cell selection is not working (#9100) 2024-03-15 15:18:58 +05:30
Syed Abdul Rahman
4e68a672d6
fix : alignment of cell edit popover (#9101) 2024-03-15 15:13:53 +05:30
Syed Abdul Rahman
5cd6ffd766
fix: ToolJet databse id drop-down field in the edit row operation should be an input field (#8932)
* changed the dropdown to the input field with disabled for the Id field only

* docker update
2024-03-15 15:08:20 +05:30
Syed Abdul Rahman
075ed4259e
Fix : bulk upload progress bar and upload button fix in ToolJet databse (#8986)
* Added progress bar for bulk upload and fixed the button disabled issue

* ux improvements

* Added 2 space indent in css file
2024-03-12 11:57:57 +05:30
Ganesh Kumar
6352aae143
fix: ToolJet database column now allows special characters in the default value. (#8998)
* fix: create new table query parameterised and default value of a column now allows special character

* fix: tjdb add-column operation allows special characters in default values

* fix: tjdb edit-column operation allows special characters in default values

* fix: removed validators for special characters

* fix: quotes will be added to default values only if its a character varying datatype
2024-03-11 15:28:28 +05:30
Syed Abdul Rahman
7b9bfe687c
Fix : allowed removal of default value after column creation with not null constraint in ToolJet database (#9017)
* Fix : default value is necessary only if there is one or more rows and NOT NULL constraint is added

* changed the error message text for edit and create column

* revert back change in EditColumnForm.jsx file for some enhancements

* removed validation for default value for edit column as well as added one helper text for changing  already existing default value

* Fix : unable to open a create column drawer
2024-03-11 08:31:28 +05:30
Syed Abdul Rahman
79b4d60511
Fix : remove default value when not null constraint is added and table is empty in ToolJet database (#9005)
* Fix : default value is necessary only if there is one or more rows and NOT NULL constraint is added

* changed the error message text for edit and create column

* revert back change in EditColumnForm.jsx file for some enhancements

* Fix : unable to open create column drawer
2024-03-08 15:59:05 +05:30
Syed Abdul Rahman
53567af03e
ToolJet database empty and loading state design (#8823)
* ToolJet database empty state design draft

* Added loading state for ToolJet database

* Fixed stylings

* completed loading and empty state and as well as added proper text for empty state and for filtered results empty state as well

* Fixed the create new table drawer transition issue

* docker update
2024-03-08 12:48:15 +05:30
Syed Abdul Rahman
8cb0920c26
fix : Default value state update issue in ToolJet database (#8879)
* Fixed the default value state update issue

* Added missed edgecases for the data types except varchar

* Fixed nested logic issues

* docker update
2024-03-07 20:13:13 +05:30
Syed Abdul Rahman
cfe25a255e
fix : Active tab issue for default value in ToolJet database when editing a row (#8883)
* Fixed active tab for default value in ToolJe database edit row

* Added missed edgecases for the data types except varchar

* docker update

* fixed the edit row button issue

---------

Co-authored-by: Ganesh Kumar <ganesh8056234@gmail.com>
2024-03-07 20:09:18 +05:30
Syed Abdul Rahman
19cfa5b47a
Change of serial datatype icon in ToolJet database (#8994)
* added serial datatype icon

* Added serial datatype icon

* checked with serial dattype condition function

* Added serial datatype icon in create table component as well

* removed console logs
2024-03-07 19:43:21 +05:30
Ganesh Kumar
0c4ff55dc0
fix: tjdb scroll left calculation updated (#9019) 2024-03-07 17:33:53 +05:30
Ganesh Kumar
2dc05b1581
fix: cell edit modal closes when "enter" key is pressed for number fields (#8878)
* fix: save event is triggered even when we dont change the values of a cell

* fix: tjdb table column header name transformation is removed

* fix: Add ability to remove default value of a new column that is created after n rows were present in the table

* removed the code comments
2024-03-05 18:31:16 +05:30
Ganesh Kumar
3b93e07415
fix: Adding a large number of data resulted in the page unresponsive issue (#8964) 2024-03-05 18:16:51 +05:30
Ganesh Kumar
3a3d85d226
fix: serial datatype column width has been reduced (#8910) 2024-03-04 16:16:52 +05:30
Syed Abdul Rahman
322c15b154
fix : Close icon issue in ToolJet database search bar (#8875)
* Fixed close icon issue in ToolJet database

* docker update

* fixed missed edgecases
2024-03-04 16:10:22 +05:30
Ganesh Kumar
e433b1b778
fix: The scrolling speed of the viewport is faster than that of the cell navigation (#8866) 2024-03-04 15:46:53 +05:30
Syed Abdul Rahman
8f3799fca6
fix : ToolJet database cell edit progress bar issue in firefox (#8928)
* Fixed the progress bar issue which is not showing in firefox only
2024-03-04 12:37:45 +05:30
Akshay Sasidharan
d5709d315e Merge branch 'main' into release/marketplace-1.7 2024-02-28 18:04:08 +05:30
Mekhla Asopa
517c64a2c3 added data-cy for template and database 2024-02-27 17:28:59 +05:30
Ganesh Kumar
e22527ebc3 tjdb table header row selection checkbox deselect functionality fixed 2024-02-21 13:45:46 +05:30
Ganesh Kumar
b3479921a6
Bugfix/marketplace 1.6 release (#8760)
* fix: dashboard section header was not updated

* fix: tooltip will not be shown for null boolean and empty strings

* fix: sort and filter condition menu will be closed on clickaway

* fix: when creating new row input field text is overlapped by null value

* fix: table rename form keypress triggers create table api

* fix: null toggle of cell edit menu doesnt seem to work properly after cell error state

* fix: null toggle were disabled when you update a cell with null value in cell edit menu
2024-02-13 17:38:17 +05:30
Akshay
ba7a2d6da9
Feature: TJDB UX Revamp (#8538)
* Added Edit column functionality in ToolJet Database Table

* feat: null constraint support for create_table add_column edit_column

* fix: default data-type validation has been added

* completed column header revamp

* feat: added not null toggle in create new table drawer

* feat: on toggle not null constraint value will be persisted

* fix: loads label for not null toggle dynamically

* feat: add new column to tjdb null constraint support

* new datatype dropdown design implemented

* added new icon for delete column

* added delete icon for column

* added delete icon for column

* fix: when table name is empty create button will be disabled

* fix: datatype dropdown height fix

* fix: datatype drop down issue fix

* fix: datatype dropdown alignment fix

* fix: delete icon changed to new theme

* fix: delete icon changed to new one

* fix: create new column column name and datatype mandatory validation added

* fixed styling issues

* Added 2 space indentation for css

* inline css moved to css files as well as added 2 space indentation

* fix: createTable addColumn editColumn api payload structure change to incorporate constraint changes

* fix: error handling added for editColumn api

* added 2 space indentation

* fix: create table API payload structure changes

* added 2 space indentation and applied styles for dark mode as well

* disabled the existing column's dataType

* fix: create new column payload updated

* renamed columnIndex to columnSelection and fixed the plus column creator button position issue

* renamed columnIndex to columnSelection and added text visiblity for dropdown in dark and light mode

* moved the react-select's new styles to constants.js file as function

* react select's css moved to constants.js file

* fix: review comments has been fixed

* added edit column warning UI

* completed edit column new flow

* remove Please wait for ToolJet to update..this line from edit column warning message

* increased height for add column + button

* fix: create table will not accept empty values for mandatory fields like tablename column_name datatype

* fix: custom error message for tjdb add row operation

* stylefix: table footer page info section realignment changes

* fix: moved addNewColumn btn to dropdown on clicking table in sidebar

* feat: bulk update and add row option is moved to drop down

* add ability to collapse sidebar

* add tooltip

* fiexed the tooltip issue in collapsible sidebar

* fix background on blank slate

* fix: layout changes for tjdb table header section

* stylefix: tjdb table menu bar style fixes

* stylefix: header btn gap has been reduced

* fix: edit row data populated into the form

* adjusted height

* added small alignment changes

* pagination-rewamp

* adjusted footer style when we collapse the sidebar

* fixed the pagination issue when we add new row

* feat : sticky column header

* feat: expandable row with menu bar flaky issue

* fix: on row hover expand icon will now be visible

* stylefix: added bg color for row hover and cell hover

* stylefix: adjusted expand icon sise

* feature : cell navigation

* fix: flaky issue on tjdb menu bar while expanding row has been fixed

* added naviagation function for table cells

* fix: edit row drawer variable name fixes

* added cell edit option in table cell

* feat: tjdb cell edit dropdown menu completed

* fix merge

* updates node version

* fix: sticky column to left

* feature : cell navigation

* add support for null values on tjdb bulk upload

* stylefix: table background for dark mode fixed

* feature : cell edit implementation

* feat: progress bar for cell edit

* feature : cell edit implementation on boolean datatye

* bug fixes

* toggle implementation

* fix: removed duplicate not null constraint toggle in edit column form

* fix: when last filter is deleter in tjdb dashboard filter drop down will be closed

* feat : cell edit implementation completed

* removed console logs

* fix: edit column onclick not null toggle crash issue fixed

* solved bugs

* added border 2px for selected cells

* added cellvalue in cell input if  it have not null constraint

* stylefix: css value for cell hover has been updated

* fix: table header sticky

* stylefix: row hover background color for dark mode

* fix: autocomplete is off for cell edit input field

* fix: null tag was shown when we focus on the input field as well

* fix: in cell edit menu either null or default can be choosen

* fix: cell edit menu null toggle value sync and edit menu not opening issue

* stylefix: row hover bg color was broken

* fix: cell navigation flaky issue

* stylefix: progress bar attached to the bottom of the cell

* fix: tooljetdb collapsible side bar style changes has been fixed

* fix: added infor for cell edit menu navigation

* fix: cell navigation and cell edit menu boolean view arrow navigation

* fix: flow issues in cell navigation has been fixed

* fix: backspace key will remove null values and open cell edit mode

* fix: updated icon for openai datasource

* fix: when we update or delete record pagesize has been modified but it should remain same

* feat: typing on selected field inserts value and enable edit menu and removes null value if exist

* stylefix: table checkbox styling updated

* stylefix: tooljetdb table checkbox indeterminate mode style fixes

* stylefix: row selection background color

* fix: table first column can be selected but not edited

* fix: tooljetDB delete row btn text should be in plural when multiple rows are selected

* fix: when column header menu is opened and closed cell click was not working it is fixed now

* fix null value on id column on row insert

* fix: cell text overlfow will truncate

* fix: in tooljetdb while creating new row filters and sorts which were selected will be made default

* fix: tooljetdb table cell tooltip design change

* fix: on column select and hover entire column was flaky issue fixed

* fix: on edit cell and delete row filter-sort-page-pagesize will be retained

* fix: text info for multiple records selected was wrong

* fix: In tooljetdb tooltip on cell hover wasnt shown for cells pertaining to selected column

* fix: tooljetdb on create row operation scroll will be moved to top

* stylefix: in dark mode on hovering selected row cell background color was wrong

---------

Co-authored-by: Abd-Rahman-1999 <s.rahmanabd1999@gmail.com>
Co-authored-by: Ganesh Kumar <ganesh8056234@gmail.com>
2024-02-08 15:05:26 +05:30
Akshay Sasidharan
a2b891d692 Merge branch 'develop' into release/marketplace-1.6 2024-02-08 12:34:12 +05:30
Akshay
8b10c8007f
Feature: Nullable fields (#8427)
* Added Edit column functionality in ToolJet Database Table

* feat: null constraint support for create_table add_column edit_column

* fix: default data-type validation has been added

* completed column header revamp

* feat: added not null toggle in create new table drawer

* feat: on toggle not null constraint value will be persisted

* fix: loads label for not null toggle dynamically

* feat: add new column to tjdb null constraint support

* new datatype dropdown design implemented

* added new icon for delete column

* added delete icon for column

* added delete icon for column

* fix: when table name is empty create button will be disabled

* fix: datatype dropdown height fix

* fix: datatype drop down issue fix

* fix: datatype dropdown alignment fix

* fix: delete icon changed to new theme

* fix: delete icon changed to new one

* fix: create new column column name and datatype mandatory validation added

* fixed styling issues

* Added 2 space indentation for css

* inline css moved to css files as well as added 2 space indentation

* fix: createTable addColumn editColumn api payload structure change to incorporate constraint changes

* fix: error handling added for editColumn api

* added 2 space indentation

* fix: create table API payload structure changes

* added 2 space indentation and applied styles for dark mode as well

* disabled the existing column's dataType

* fix: create new column payload updated

* renamed columnIndex to columnSelection and fixed the plus column creator button position issue

* renamed columnIndex to columnSelection and added text visiblity for dropdown in dark and light mode

* moved the react-select's new styles to constants.js file as function

* react select's css moved to constants.js file

* fix: review comments has been fixed

* added edit column warning UI

* completed edit column new flow

* remove Please wait for ToolJet to update..this line from edit column warning message

* increased height for add column + button

* fix: create table will not accept empty values for mandatory fields like tablename column_name datatype

* fix: custom error message for tjdb add row operation

* new design implemented for creating a new row in ToolJet database

* added darkmode design as well for the create row disabled fields

* added hover effects for disabled fields

* added text color for disabled state

* added toast message for handling errors

* added some changes in edit row file

* added some changes in create row file

* added styles for the edit row fields according to new design

* added stylings for react select in edit row

* disabled create button

* disabled save button

* added null tag inside the input field

* add versioned transformations for tjdb import dto

* update view table query

* update tjdb forms for constraints changes

* added all operators list in constants file

* fix primary key check

* added sticky style for column and row creator

* added null tag inside the cell if the value is null

* resolved bugs in nullable fields

* added functionality for allowing empty string for datatype character only for edit row and create row

* added functionality for allowing empty string for datatype character only for edit row and create row

* removed console logs

* fixed bugs

* fixed bugs in editrow

* fix: create table datatype dropdown tick icon for respective datatype selected

* fix: default value is not updating while edit a column after change it to null constraint

* fix: create-row and edit-row boolean field toggle on default value selection color was missing

* fixed bugs

* wip sticky button

* added styles for sticky column creator and row creator

---------

Co-authored-by: Abd-Rahman-1999 <s.rahmanabd1999@gmail.com>
Co-authored-by: Ganesh Kumar <ganesh8056234@gmail.com>
2024-01-22 20:29:51 +05:30
vjaris42
980328e063
Revamp users table and edit organization users drawer (#8329)
* setup user tables and edit user drawer

* fix states on user edit and ui fixes

* fixes

* fix: user update

* remove: disable editing of full name while editing user

* bug fixes

* bug fixes
2024-01-19 16:53:40 +05:30
Anantshree Chandola
00a2e0b2d6
Added window titles according to pages (#8553)
* window titles acc to pages

* correct import

* update

* update

* update

* update

* rafactoring

* updates

* remove comment

* add string constants

* add string const

* Update frontend/src/Editor/Viewer.jsx

Co-authored-by: Muhsin Shah C P  <muhsinshah21@gmail.com>

* handle app versions

* small update

* add checks

---------

Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
2024-01-15 20:01:45 +05:30
Akshay Sasidharan
facd10d0d2 Merge branch 'develop' into release/marketplace-1.6 2024-01-05 15:44:41 +05:30
Akshay
714c8b0fdc
Merge pull request #8181 from ToolJet/pagination-issue
Pagination issue with filter/sort.
2024-01-02 17:28:58 +05:30
Qayyum Siddiqui
3d0b40daee
Fix : Added handleKeyPress function to handle enter key event. (#7724)
* Added handleKeyPress function to handle enter key event.

* 7196 - Added handleKeyPress function to handle enter key event

* Added handleKeyPress function to handle enter key event.
2023-12-29 16:40:28 +05:30
Abd-Rahman-1999
328b3b7193 fixed flickering issue while filtering 2023-12-04 15:06:52 +05:30
Abd-Rahman-1999
9c1cd8c175 fixed equal opearator issue 2023-11-30 15:34:58 +05:30
Abd-Rahman-1999
cc0432526c added offset to query params 2023-11-27 18:41:22 +05:30
Abd-Rahman-1999
c594a36932 added pagecount when deleting a filter query in ToolJet database 2023-11-27 18:05:10 +05:30
Abd-Rahman-1999
14de7eb747 fixed pagination issue as well as filter/sort issue 2023-11-27 17:56:49 +05:30
Abd-Rahman-1999
2d74db5742 fixed the pagination issue in ToolJet database 2023-11-27 14:26:41 +05:30