Commit graph

38 commits

Author SHA1 Message Date
gsmithun4
3513c3f6fa merge 3.16.0 changes to develop 2025-08-03 12:39:18 +05:30
Manish Kushare
5f416a31bf
[Fix] - TJDB bug fixes in modularisation (#12112)
* The space is required in between the primary column's name

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

* Filter label update with value 2 without apply 2 conditions

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

* There is a blank space in the json code hinter

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

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

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

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

* Fix bulk update primary key CodeHinter initialization
2025-03-07 18:11:18 +05:30
gsmithun4
269ec56455 Initial commit 2025-02-25 12:22:50 +05:30
Akshay
7aa2a6880e Feature: Stripe plugin UI fixes with OpenAPI endpoint as source (#2725)
* Fixed GET and DELETE request input renders and added all UX fixes (#9498)

* fixed get and delete request input renders and added all UX fixes

* Extracted Stripe plugin component as a separate component for Dynamic Form.

* Resolved PR review comments and fixed issue where rendering path input field crashed the app.

* Changed param name underline to dashed for tooltip and revamped input field clear button

* Fixed a few sonarlint issues.

* Removed the duplicate code by creating a separate function named RenderParameterFields.

* Refactored computeOperationSelectionOptions function to not nest functions more than 4 levels deep.

* Refactored RenderParameterFields function to reduce its Cognitive Complexity.

* Made span tag with the 'button' interactive role focusable.

* Inside switch case for codehinter in DynamicForm > getElementProps, Extracted nested ternary operation for theme into an independent statement.

* Added keyboard listener to the clear button.

* Removed opacity from select dropdown and operation from operation select dropdown UI.

* Fixed syntax error in clearButton function.

* Removed the package @nrwl/nx-linux-x64-gnu from marketplace dependencies.

---------

Co-authored-by: Mansukh Kaur <mansukhkaur@Mansukhs-MacBook-Pro.local>
Co-authored-by: Devanshu Rastogi <devanshu.rastogi05@gmail.com>

* Made changes according to new app builder architecture in v3.

* Fixed import issue for codehintor

* Fixed issue where due to incorrect value, stripe queries crashed the entire app.

---------

Co-authored-by: Mansukh Kaur <mansukhkaur@Mansukhs-MacBook-Pro.local>
Co-authored-by: Devanshu Rastogi <devanshu.rastogi05@gmail.com>
2024-11-22 12:52:39 +05:30
Shaurya Sharma
28b085190c Fixed missing css for query panel 2024-10-30 01:39:06 +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
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
1cc99a86c1 Merge branch 'main' of https://github.com/ToolJet/ToolJet into feat/grid-appbuilder-improvement 2024-05-20 10:46:19 +05:30
Akshay Sasidharan
6b8bd98fd3 Merge branch 'main' into release/database-1.1 2024-05-17 13:20:31 +05:30
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
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
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
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
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
stepinfwd
4469b1ef06 cleanup 2024-04-30 13:09:39 +05:30
stepinfwd
2ef1e48e48 fix : design review changes 2024-04-30 13:09:05 +05:30
Arpit
4b27ec0d4a
[improvement] Revamping CodeHinter: Enhanced Single-Line and Multi-Line Code Editing Support (#8852)
* Coerce invalid values to empty state values for properties/styles

* Display strings inside "" in codehinter preview

* Show undefined values always as erroneous values

* Make table component's data property not optional

* Remove unnecessary union validations

* init--

* New Single Line Code resolve and Hints popup (basic setup)

* fixes: padding for popover hint list

* update hint to current value

* Implement Enhanced Lookup Table Functionality

* adds resolved preview box

* basic error preview box

* preview box

* Detect arrays as arrays instead of objects in coercion

* Support passing default values from validation schema

* Coerce non-boolean values to boolean on boolean properties

* Add custom validation error

* app suggestions and js suggestions as field validations on order, autocomplete with codemirror

* Dynimcally checking fx types and fixes bottlenecks with rendering and resolving code

* update should only fire on blur

* added error handling as per expected type

* replaces all code hinters to new hinters

* single line codehinter adapts to content and max height

* cleanup

* do not update the value if validation fails

* update should check param type

* adds error state styles to hinter border

* adds custom pickedCompletions anotations

* adds support of app hints and js hints to multi editor

* improved js hints as per type on multi-editor

* suggestion fixes: darkmode

* multiline suggestions improved

* dark theme for single line hinter suggestions

* Enhance hint filtering for depth-specific suggestions

* adds error boundary

* fixes: crash for query not being a string

* fixes: hinter inital value not getting updated on component selection updates

* fixes: multiline border

* adding portal support for expanding the hinter to a new window

* fixes the portal hinter header component name/title

* adds portal support to multiline hinters

* css fixes

* adds y scroll

* adds custom variables

* handle click outside for closing the preview box

* cleanup

* fixes: coersion error

* added workspace variables resolving

* comment for removing workspace resolvers

* adds a check for circular deps

* deleting old codehinter and all its references

* adds data to completion hint

* removes run() from single line hinter suggestions

* removing the import causing zustland issue

* improves: js hint suggestion selection

* fx editor should not use {{}} to resolve code

* query upates to current state

* resolve fx code

* fixes: widget crash

* fixes: Backspace should already leave existing completion dialogs open

* fixes: replaceable hint for selected hint

* 1. fixes: context variables should also be available as hints and other language specefic hints
2. fixes: on cursor postion also re-updates the hints

* fixes: replaces previous value on selection

* fixes: styles issues
single line hinter x-axis not scrollable

* fixes: multiline suggestions postion on cursor

* fixes:  user selects query name should also complete data

* removes root key from preview query

* reduce and fix fontsize and padding

* trigger hints on .

* fixes: error from custom component crashes the app

* style updates
- updates color of the popup svg
- fixes and adds border and position of the popup-icon

* cleanup

* vertical scroll option on hitting the max height for single line editor

* line gutter widget updated

* adapt popup icon to the hinter height

* New Preview UI

* create default component values from component meta and update to the resolve store, which could be fetched and rendered as in the preview box of the code hinter which supports validation

* fixes: on click event from popover preview block should not close the preview

* updates error msg details and type

* updates: json object tree as a code viewer for resolved value

* selecting a suggestion should positon the cursor afterit

* change focus box shadow

* Changing height of delete button in tab content

Removing box shadow property for tab content

* fixes: coersion preview

* fixes: dont update the coersioned value

* cleanup

* improved resolver for single line preview hinter

* fixes string icon in suggestio size

* fixes: (#8800)

filtering of suggestions as per depth should only computed on user types.
for inital suggestions rendered the top pick should be as per accepted type

* fixess: (#8824)

on selecting partial hint from the suggestions, inserts the complete hint and appends to the current input

* fixes: cursor postion for js methods

* fixes: suggestions should be available for composite references also

* fixes: circular deps crashes

* fixes: re-computations of hints on selection change
trying to select a method, if I wait for a second, the selection goes back to the first option.

* adds custom keymaping for single and multi-line editors
with Tab key: Accept the current completion

* Merging main to codehinter feat branch (#8848)

* fixed the pagination issue in ToolJet database

* fixed pagination issue as well as filter/sort issue

* added pagecount when deleting a filter query in ToolJet database

* added offset to query params

* fixed equal opearator issue

* fixed flickering issue while filtering

* add automation for deltion of component from inspector

* [docs]:update how to on cellvalue color changes (#8348)

* update how to on cellvalue color changes

* add one line for rowdata explanation

* Revert "add one line for rowdata explanation"

This reverts commit a0ad3e1147.

* Revert "Revert "add one line for rowdata explanation""

This reverts commit 98892a8262.

* add one line for rowdata explanation

* [doc]updates in gitsync doc (#8358)

* add tracking link (#8362)

* [docs] added how-to: use events on chart (#8323)

* [docs]added how-to: use events on chart

* removed console statement

* updated the data for custom componentand other changes in guide

* To execute aws lambdas from Tooljet (#8265)

Co-authored-by: rene osborne <rene.garcia@clara.team>

* [docs]:file upload and display guide (#8375)

* revamp the tutorial for pdf and image uploads and retreival

* changes based on the new UI

* add an image and enhance the add more explanations for code

* update the tutorial as per the latest UI

* update the doc and add it to the previous verion

* fix proofreading issues

* minor typo causing build issues (#8397)

* minor typo causing build issues

changed
npm run --prefix server db:mirgate

to npm run --prefix server db:migrate

You can ignore this PR. raising this so that if accepted then other contributors wont face this minor issue

* Update codespaces.md

* added paid label on gitsync (#8411)

* Update dropdown.md (#7472)

fix Typo: the action name to control the dropdown should be selectOption.

* Update README.md (#7981)

Co-authored-by: Shubhendra Singh Chauhan <withshubh@gmail.com>

* Update file-picker.md - Add filetype example (#8095)

* Update file-picker.md - Add filetype example

* Update docs/versioned_docs/version-2.22.0/widgets/file-picker.md

---------

Co-authored-by: Shubhendra Singh Chauhan <withshubh@gmail.com>

* Deploy latest docs on Render (#8401)

* fix typos (#8076)

* fix typos

* Update docs/docs/data-sources/restapi.md

---------

Co-authored-by: Shubhendra Singh Chauhan <withshubh@gmail.com>

* Updated TreeSelect Component in widgetConfig.js (#8035)

Co-authored-by: Harsimran-19 <harsimran1869@gmail.com>

* [docs] Platform 10.x - docs v2.27.0 (#8359)

* Delete message for component changed (#8399)

* added missing label on gitsync 2.27 (#8424)

* Added code coverage for cypress (#8234)

* Frontend: Add new plugin babel-plugin-istanbul

* Frontend: Add plugin to babel config

* Cypress: Add new plugin code-coverage

* Cypress: Add plugin to common  cypress suite

* Cypress: Add reports to .gitignore

* Actions: Add new action to check coverage

* Cypress: minor config changes

* test

* test-2

* Action: Add verification for generated coverage files

* Modify action file

* Modify action file with command changes

* debug commit

* debug commit-2

* debug commit-3

* Update runjsHappyPath.cy.js

* debug commit-4

* Revert "debug commit-5"

This reverts commit 8b795d86ae.

* Revert "debug commit-3"

This reverts commit d2e440e04b.

* Add action name

* Fix marketplace specs

* Fix query failures

* Add review changes

* Add cypress package.lock changes

* Add frontend package.lock changes

* Add cypress minor  package.lock changes

* Minor action changes

* [hotfix] CE fixes (#8395)

* events should be synced for multi-edit

* remove console

* removes db constrainsts for layouts and handles corrupeted apps created from prev migrations

* Revert "removes db constrainsts for layouts and handles corrupeted apps created from prev migrations"

This reverts commit 10a307118b.

* removing constrainsts fro CE

* bumped the patched version ~ 2.26.3

* fixes: import/export general styles for components

* fixes: viewer crash on adding plugin as gds due to accessing camalised data

* fixes: plugin queries gds

* preserve duplicate search params on restapi

* preserve duplicate params in query manager params fields

* fixes: edge cases where undo of some components crashes thew widget

---------

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>

* Test system automation (#8422)

* fix: resolved edit workspace issue (#8426)

* Fixed Page name to be restricted to less than 50 characters (#7562)

* test system automation main

* 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.

* Update tooljetcli.md (#8452)

Updated the headers to proper casing

* Update dashboard.md (#8457)

replace conditions for workspace slug.

* fix: #8433 Change labels to sentence case for Kanban component (#8450)

Co-authored-by: ayushjha119 <ayush.jha.it23@heritageit.edu.in>

* update 3 how-to guides (#8468)

* Change Image Component label to sentence case (#8412)

* fix edit table name (#8419)

* [docs]:update how to guides v2 (#8478)

* update 3 how-to guides

* add the changes to ver 27 and fix titles

* update a title

* added robots.txt and ignorepattern in sitemap (#8453)

* [Hotfix]: Action button event is not getting triggered (#8480)

* hotfix : action button event is not getting triggered

* removing .then for setExposedvariables and setExposedVariable

* bump version

* Revert "bump version"

This reverts commit 5e9df4825f.

* bump version

* adding .then to onComponentOptionChanged  function in global filters

* making on search event fire upon searching

* fixed lint issues

* New env for cypress workflow

* fix:resolve comments

* fixes: verifying deletion toast & verifying component not exist on version creation

* fixed sentence case for form component #7799 (#8465)

* added specs for deletion of compponent from right side panel & keyboard action

* Add new templates and remove old templates (#8490)

* bugfix: airtable plugin support for personal access token (#8295)

* fix: airtable plugin support for personal access token

* fix: review comments fixed

* Add new templates and remove old templates

* Change onboarding page templates and fix CSS

* Change Job application tracker template images

* Implement dark mode for onbarding page templates

* Fix templates with query issues

* fix template creation

* Remove redundant datasource options from templates

---------

Co-authored-by: Ganesh Kumar <40178541+ganesh8056@users.noreply.github.com>
Co-authored-by: Akshay <akshaysasidharan93@gmail.com>

* fix duplicate queries on templates

* bump to v2.27.1

* changed to sentence case (#8515)

Signed-off-by: Aarav Shukla <aarav8090shukla@gmail.com>

* 8500: Update the User label in Groups under Workspace Settings (#8513)

* [hotfix] fixes: ordering of event execution & Table switch (#8509)

* fixes: ordering of event execution

* Fix switch group not updating default value

* bumped up the version

* bumped up the version 2.27.4

---------

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

* fix db url parse

* git commit -m "Fix: Change labels to sentence case (#8434)" (#8461)

* minor update in gitsync doc (#8529)

* fixed lint errors (#8532)

* [docs]fixed robots and sitemap

* [docs]minor update in codespaces setup guide

* bump version

* bump version

* bump version

* Fix: #8423 Link pricing page with badges (#8466)

Co-authored-by: ayushjha119 <ayush.jha.it23@heritageit.edu.in>

* [hotfix]: Prevent Autosave on Client Updates Received via Websockets for MultiEditing (#8549)

* Prevent Autosave on Client Updates Received via Websockets for MultiEditing

* bumped up the version 2.27.6

* [docs] minor correction in smtp doc (#8554)

* minor correction in smtp doc

* fix in smtp

* update bulk update, bulk delete, axios and python library how-tos (#8543)

* remove auto-generated overview pages (#8544)

* fix duplicate template modal for blank page

* bump version

* [fix] Export modal is showing wrong date for some versions (#8484)

* fix:export version date issue

* Updated the date fix

* 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>

* update contributing guide for macOS for the latest two versions

* Add null check in modal when clicked outside (#8582)

* Rearranges crucial entry points for navigation inside editor and dasbhoard (#8540)

* fixed sentence case for form component #7799 (#8465)

* revamp: navigation and dashboard

* change ds icon

* fix: design reveiws

* fix layout header border

* bug fixes

* bug fixes

* cleanup

---------

Co-authored-by: Sufiyan <84285133+Sufiyan-dev@users.noreply.github.com>
Co-authored-by: Akshay <akshaysasidharan93@gmail.com>

* Fixed sentence case for dropdown components #8430 (#8462)

* [docs]fixed broken links (#8598)

* Release group duplication feature (#8575)

* [hotfix]: Prevent Autosave on Client Updates Received via Websockets for MultiEditing (#8549)

* Prevent Autosave on Client Updates Received via Websockets for MultiEditing

* bumped up the version 2.27.6

* created backedn for group duplication

* created group duplication feature

* Added overflow tooltip

* Code sanity improved

* Fixes:CE

* fix

* overlapping issue fx

---------

Co-authored-by: Arpit <arpitnath42@gmail.com>
Co-authored-by: Kritagya <kriks.iitk@.com>
Co-authored-by: Midhun G S <gsmithun4@gmail.com>

* Added fix for resend button click causing white page issue (#8599)

* Sign up page button width fix (#8601)

* 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

* [docs] add more topics to tooljet concepts and update formatting (#8594)

* add more topics to ToolJet concepts

* add more tooljet concepts topic

* remove padding from images

* Add title for workspace constants page (#8602)

* bug fixes (#8603)

* [docs]:update sidebar (#8565)

* update sidebar

* keep all items in sidebars collapsed

* Remove redundant dataSourceOptions from app export (#8521)

* 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>

* Fix:#8595 Text formatted for marketplacce plugins (#8609)

* fix: noOptionsMessage is a function, not a string (#8619)

* Add data-cy for new componets (#8618)

* [docs]updated ssoUserInfo (#8610)

* Modified platform cypress test cases for dashboard revamp (#8621)

* Modify platform cypress test cases for dashboard revamp

* Modify cypress test cases

* Modify failed test cases

* Update failed test cases

* Fix failing flaky specs (#8624)

* updated spec with back to app method (#8628)

* [docs]gitsync guide for gitlab (#8636)

* [docs]:add doc for import and export of apps (#8615)

* add doc for import and export of apps

* revert changes in config and version files

* [docs]whitelabel cloud (#8645)

* app could not save error on resizing column width fixed (#8635)

* Add data-cy for group duplication modal (#8644)

* Add cypress test cases for group duplication (#8646)

* Add cypress test cases for group duplication (#8651)

* [hotfix] fixes: auto save is triggered on key press without any changes (#8639)

* fixes: auto save is triggered on key press without any changes

* bumped up the version

* fixes: runQuery should be able to fire fromcustom component (#8652)

* [docs]how-to: conditionally format cells in table (#8656)

* [docs]airtable data source (#8657)

* [docs]how-to: setup log file generation(rsyslog) (#8661)

* [docs] how-to:print data from multiple tabs (#8576)

* [docs]how-to:print data from multiple tabs

* [docs] how-to: print multi tabs data

* typo fix

* changes after review

* fixes: app versioning with kannban children and import export apps (#8407)

* Add marketplace env var in cypress action

* test: Add automation for text-input revamp. (#8671)

* 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

* fix :: icons position

* updates

* cleanup

* updates events , csa

* backward compatibility

* clean

* feat :: change validation from properties

* ui fixes

* icon name

* 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

* Add common utils

* Modify helpers

* Add text input spec

* Add utils for field validation

* Minor spec updates

* Fix for password  basic automation cases

---------

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

* feat: Getter functions for query data and variables (#8241)

* Introduce getVariable and getPageVariable actions

* Introduce getData, getRawData and getLoadingState for queries

* Fix : All fx code blocks are getting active when fxActive is true for a table column (#8664)

* bug fixed - all fx code blocks are getting active when fxActive is true

* removed consoles

* added error handling mechanism for fxActiveFields

created a function to improve readability of onFxPress callback function

* feat: Add transformations feature to table columns (#8287)

* Add transformations feature to table columns

* Make table transformations listen to current state

* Move column transformation to below "key" in column properties

* Properly exposed currentData and currentPageData of table alongwith transformations

* Allow custom id for dynamically generated columns (#8525)

* fix: Only one of the events trigger when multiple events with debounce is created (#8163)

* fix :: events with multiple debounce not triggering

* check and remove debounvce key if not required

* update as uuid

* revert

* revert

* Fire row click event on checkbox click in table (#8616)

* Add loader when creating and updating events (#8588)

* feat: Textinput , Passwordinput , Numberinput revamp (#8079)

* 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

* fix :: icons position

* updates

* cleanup

* updates events , csa

* backward compatibility

* clean

* feat :: change validation from properties

* ui fixes

* icon name

* 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

* fix auto widh bug

* updae margin

* few fixes renamed style ppts

* stylefix

* fix :: config handled not getting focused on hover of the component

* typo

* fix :: side dragging got disabled

* changing everything to sentence case

* removing unwanted exposed vars

* expose labels

* typo

* fix mandatory position

* fix :: for warning icon for deprecated csa's

* fix :: when switching layouts box size is not updated

* feat: Add setFilters and clearFilters CSA in table (#8637)

* Add setFilters and clearFilters CSA in table

* Remove console log

* Add this CSA in component actions

* Resolve code comments

* Feat: query parameters for all queries (#8347)

* Extend parameter support to all query types

* Use query manager state for RestAPI options

* Put parameter list on query manager header

* Make parameter list adapt to available space in header

* Update codehinter preview when parameters are updated

* Update styling of query parameters towards design

* Support parameters in all queries if builder has added it

* Avoid using query parameters argument for other internal data relay

* Rename parameters to userSuppliedParameters

* Resolve the bug that caused codehinter schema validation to not work

* ui fixes

* review fix

* Do not show number of parameters

* import current state instead of store in codehinter

* Import using @ prefix in codehinter

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

* Remove unnecessary css comment

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

* Resolve import error in query manager

* design fixes

* fix :: colors

* fix :: pill color

* review fixes

* fix bg color

---------

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

* feat: enable or disable row selection on click of cell using property (#8581)

* enable or disable row selection on click of cell using prop

* Changed allowRowSelectionOnClick property name to selectRowOnCellEdit

* Not showing fx button for selectRowOnCellEdit property

* avoiding event getting propagated for action button when select row on edit cell is false

* code refactor - removing unwanted code

* code refactor - removing unwanted code

* feat: CSA to select  and deselect all rows in the table component (#8674)

* Added csa to select rows in bulk

* empty dependency array

* added csa to deselect all rows

* Avoided using of two different use effects for selecting and deselecting all rows

* added property to dependency array

* Add marketplace env var in cypress action

* feat: Preview App header revamp (#8384)

* Preview App header revamp

* Fixes as per new design

* fixes

* Fix

* commit

* Add mobile mode in viewer

* Add on banner click redirecting to tooljet website

* fixes

* Hide scrollbar in viewer mobile

* Change text to built with

* Design feedback

* Fix design feedback

* Resolve code comments

* Remove consoles

* Remove file

* Resolve code comments

* fix

* Fix on launching from dashboard preview settings still available

* Fix tooltip placement

* Fix QA bugs

* Added mobile preview mode

* Modified platfrom cypress test cases (#8709)

* Modify platfrom cypress test cases

* Modify manage groups test case

* fix: In mobile view components are not showing up for the launched apps (#8705)

* Fixed : components are not visible in the launched app mobile view

* refactored the code

* removing unwanted code change

* fix: Maintained pages order in viewer same as editor (#8701)

* Fixes pages not as per same order as in editor.

* Fix

* feat: Text component revamp (#8097)

* 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

* migration to move visibility and disabled state from properties to styles in appdefinition

* Migration changes

* Fix exposed variables

* Fix styles and add extra properties

* Merge fixes

* Add support for onHover show fx btn

* Fixes

* Migration move box shadow from general styles to styles

* Resolve  merge issues

* Add padding and fix background color not working

* 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

* fix merge issue

* 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

* Add deprecated tooltip for exposed variable tooltip

* fixing edge cases

* removing resize

* backward compatibility height

* backward compatibility

* number input review fixes

* added exposed items

* fixing csa

* Add scroll property

* 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

* Update default size

* fix :: password input

* Fix styling in toggle item

* Fix toogleItem padding

* Fix depreacted tag styling

* Fix scroll

* cleanup and fixes

* fixes

* cleanup

* fixes

* review fixes

* review fixes

* typo fix

* fix padding

* review fixes styles component panel

* fix naming

* fix padding

* fix :: icons position

* updates

* cleanup

* updates events , csa

* backward compatibility

* clean

* Fix

* feat :: change validation from properties

* ui fixes

* icon name

* hide scroll when style scroll property is disabled

* Fixes

* 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

* Resolve code comments

* fix

* label issue + restricted side handler

* Resolve code comments

* Fix

* fix :: box shadow bug

* Fix tooltip

* 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

* fix auto widh bug

* updae margin

* few fixes renamed style ppts

* stylefix

* Fix QA comments

* Border color in form keep blank

* Add empty string as or condition.

* fix :: config handled not getting focused on hover of the component

* Fix QA comments

* typo

* Fixes

* Fix QA bugs

* CSA names fix

* Fix cases CSA actions

* Fix tooltips

* Fix loader styles

* Fix merge conflict issue

* fix

---------

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

* feat: Small revamp on Chart component (#8683)

* Added onClick event to chart component

* Updated event name

* Resolved review comments

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>

* Resolved review comments

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>

* Add CSA to clear out clickedDataPoint of chart

* Exposed chart titles

* Removed the double click delay

* Reverted the title change

* Added bgColor & double click event

* Added border radius for chart component

* Added support of object values in JSON schema

---------

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>

* [hotfix] : import/export api not picking display preferences of widgets (#8673)

* fixes: importing apps should pick up options from exported display preferences

* bumped up the version

* fix: query details are not available in the current state before the query is  run (#8717)

* Restored query details to current state.

* use getCurrentState instead of getting the entire state of the current state store, as we dont want to expose the actions

* bump version

* added: checks for oauth credentials (#8722)

* feat: Added a scrollbar on pages menu in viewer (#8715)

* Added a scrollbar on pages menu in viewer

* Add overflow

* Fix last page not visible

---------

Co-authored-by: Nakul Nagargade <nakul@tooljet.com>

* fix: Modal crashing , fixes in form with custom schema (#8719)

* fix :: for modal crashing , custom form showing labels for input

* removing validation as there is no fx

* alignment and fixing resize issue in form with custom schema

* fix : center modal

* feat : New dropdown revamp (#8160)

* init textinput revamp

* updated styles panel

* bugfix

* updates

* fix :: accordion

* fix :: styling

* add box shadow , additional property,tooltip

* fix conditional render for styles

* redesign cell of dropdown column type

* redesign down arrow in the value container

* making down arrow display none when select element is focused

* feat :: fixed order of each property and styles

* feat :: styling input

* bugfix

* migration to move visibility and disabled state from properties to styles in appdefinition

* Migration changes

* Fix exposed variables

* Fix styles and add extra properties

* Merge fixes

* Add support for onHover show fx btn

* Fixes

* Migration move box shadow from general styles to styles

* Resolve  merge issues

* Add padding and fix background color not working

* 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

* initial commit

* fix :: added loader

* redesign select column type in table

* stopping event propagation upon clicking menu list to avoid row selection

* Revamp options UI

* updated :: few detailing

* few bugfixes

* fix :: for form widget label

* Add Dropdown styles

* Fix box shadow not changing

* bug fixes

* Fix styles

* Fix param updated not updating app def correctly when called twice

* fix checkmark

* fix merge issue

* fixes

* added option to add icon color

* Hide loading state when dynamic options are not enabled

* 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

* Add deprecated tooltip for exposed variable tooltip

* fixing edge cases

* removing resize

* backward compatibility height

* backward compatibility

* number input review fixes

* added exposed items

* fixing csa

* Add scroll property

* 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

* Update default size

* fix :: password input

* Fix styling in toggle item

* Fix toogleItem padding

* Fix depreacted tag styling

* Fix scroll

* Fix autoWidth

* cleanup and fixes

* Add new option capability

* fixes

* cleanup

* Fix bugs

* fix height

* fixes

* Fixes

* Remove commented code

* Fix validation error

* review fixes

* review fixes

* typo fix

* fix padding

* review fixes styles component panel

* fix naming

* fix padding

* fix :: icons position

* updates

* cleanup

* updates events , csa

* backward compatibility

* clean

* Fix

* feat :: change validation from properties

* ui fixes

* icon name

* hide scroll when style scroll property is disabled

* Add icon colour

* Fixes

* Fixes

* fix

* 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

* Resolve code comments

* fix

* label issue + restricted side handler

* Resolve code comments

* Fix

* fix :: box shadow bug

* fixes after merge

* Fix tooltip

* on change event doesnt propagate exposed vars correctly

* adding debounce for slider value change

* Resolve code comments

* fix :: for modal ooen bug during onfocus event

* test slider

* Resolve code comments

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

* update slider with radix slider

* bugfix

* fix auto widh bug

* updae margin

* few fixes renamed style ppts

* stylefix

* Fix QA comments

* Border color in form keep blank

* Fix padding issue

* Add empty string as or condition.

* Fixes

* fixes

* console commit remove after

* fixes

* fix

* Fixes

* Fix QA comments

* fix :: config handled not getting focused on hover of the component

* Fix QA comments

* typo

* Fixes

* Fix QA bugs

* CSA names fix

* Fix cases CSA actions

* changing to running

* Fix bugs

* Fix bugs

* Fix tooltips

* Fix tooltips

* Fix loader styles

* Fixes

* Fix merge conflict issue

* fix QA bugs

* Fixes

* Fixes

* fix

* Remove validation

* expose input value for search text

* Fixes

* Remove table changes

* migration: Move visibility and disabled states from style to properties (#8638)

* Move visibility and disabled states from style to properties

* Add tooltip in general

* Adding batching

* Fix migration

* Remove unnecassary comments

---------

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

* Fixes sentry issues (#8734)

* review fixes (#8714)

* [docs]version fixes in setup guides

* Add automation for dropdown -specefic cases (#8738)

* Upgrade sentry packages

* Add automation for editor titles (#8577)

* Add data-cy to support dropdown automation (#8739)

* Add basic automation cases (#8697)

* data-cy: Add data-cy for component revamp (#8686)

* Add basic automation cases

* Add data-cy for common elements and input components

* fix: removed loader for preview when run button is clicked (#8740)

* 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>

* chore: Disable console.logs in production (#8497)

* Added code to block all console.logs in prod

* Removed console using Terser plugin

* Revert "feat : New dropdown revamp (#8160)" (#8756)

This reverts commit 1831b77f3b.

* Fixes Border Radius and Box Shadow to sentence case (#8759)

* Fix: overlay of nav dropdown on pinned sidebar (#8758)

* fix: overlay of nav dropdown on pinned sidebar

* add changes to scss

* Fix react markdown applying margin bottom (#8761)

* migration: Move visibility, disabled, and tooltip to properties (#8757)

* Revert "feat : New dropdown revamp (#8160)"

This reverts commit 1831b77f3b.

* Move visibility, disabled state and tooltip to properties

* Add loader when deleting a event in inspector (#8741)

* Fix lint issues on migration (#8767)

* fix: Move visibility, disabled and tooltip from styles to properties in import export (#8750)

* Move visibility, disabled and tooltip from properties to styles.

* Adds a generic function to move properties in component

* updating app state on renaming

* Inspector is not positioned properly in firefox (#8776)

* app organization id decamalization issue (#8768)

* test: Fixed automation failures of appbuilder-1.5 (#8753)

* Fix type on commands

* Fix hover issue on colorpicker fx

* Fix event wait

* Fix spec for text input

* Modified automation case for CSA

* Add preview validation for properties

* Add preview validation for styles

* Skip preview it block

* Add automation for pasword Input

* Add automation for nimber Input

* Add missing specs to the suite

* [hotfix] fixes: mobile view rendering of components  (#8778)

* fixes: mobile view rendering of components

* fixes: current layout selection on mount

* fixes: fixes: mobile view rendering of components

* bumping version

* 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

* bump to v2.29.0

* updated file path (#8781)

* Make label as empty string for older text, password and number input components while importing and exporting (#8774)

* fix: Integration fixes for inputs  ( Alignment issues ) (#8737)

* fix :: bottom resizer not showing

* fix :: issue with auto width not getting applied

* fix :: size diff updated btw dropdown and developed components

* remove default value migration

* update border color , fix for width resize during auto

* make label as a separate component

* updated text input

* updated every input to make it consistent

* make label as a separate component

* removed unwanted code

* fix :: added datacy

* padding fix

* check padding

* updating padding as 0px for none and 1px for default and other

* fixes for maigration and resizer alignment issue

* updates

* size fix

* lint fixes

* fix migration

* text loader fix

* migration for older text component alignment

* fix :: migration and number input arrows

* fix :: custom schema form

* fix :: custom schema for text

* migration for vertically aligning text

* migration update

* changed vertical alignment to center default

* asterisk fix , mozilla number input ui issue

* fix :: icon issue

* fix number input

* bugfix

* remove unwanted code

* fix :: asterisk

* remove older migration file (#8792)

* fix: Add scroll on hoverin text component (#8785)

* Add scroll on hover

* Add optional check

* Add firefox styles

* Hide horizantal scroll

* Fix scollbar width

* fix: Fix import export issue on migrating revamped components (#8794)

* Fix import export for newly revamped widgets

* Add boxshadow and number input min and max migration

* fix: Loader position in text widget , migration fixes (#8793)

* fix :: loader position in text widget

* removing default value migration

* fixed :: fallback default value of border radius to 4px itself

* fix failures (#8797)

* Bumped version

* Fixed lint issue

* Fix marketplace workflow

* bump to v2.30.0

* Fixed datasource cypress failure specs (#8763)

* updated text value

* update export import specs with api login

* skip database spec

* Fix: Dark mode issues across the app (#8744)

* fixes: dark mode issues accros the app

* fix: username visibility on dark mode

* dark mode from grup duplication

---------

Co-authored-by: Kritagya <kriks.iitk@.com>

* Fix: app loader state in dark mode (#8784)

* fix: app loader state in dark mode

* fixes

* Fixed pagination broken issue in App dashboard (#8809)

* Fix for marketplace cypress workflow

* Fix for marketplace cypress host-url

* Fix for marketplace cypress host-url

* fix: set preview data after transformation in query panel run button click (#8817)

* updated spec (#8818)

* fix : inspector icon alignment (#8843)

---------

Signed-off-by: Aarav Shukla <aarav8090shukla@gmail.com>
Co-authored-by: Abd-Rahman-1999 <s.rahmanabd1999@gmail.com>
Co-authored-by: nandinisaha13 <nandinisaha13@gmail.com>
Co-authored-by: Karan Rathod <karan.altcampus@gmail.com>
Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>
Co-authored-by: Shubhendra Singh Chauhan <withshubh@gmail.com>
Co-authored-by: Antraxa <antraxa@gmail.com>
Co-authored-by: rene osborne <rene.garcia@clara.team>
Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
Co-authored-by: Yash Hegde <yash4success@gmail.com>
Co-authored-by: Tuutoo <9068314+tuutoo@users.noreply.github.com>
Co-authored-by: Farookh Zaheer Siddiqui <129654632+FarukhS52@users.noreply.github.com>
Co-authored-by: russell-hutson-jp <102313014+russell-hutson-jp@users.noreply.github.com>
Co-authored-by: Adish M <44204658+adishM98@users.noreply.github.com>
Co-authored-by: Ayaan B. Bordoloi <ayaanbordoloi25@gmail.com>
Co-authored-by: Harsimran-19 <103135191+Harsimran-19@users.noreply.github.com>
Co-authored-by: Harsimran-19 <harsimran1869@gmail.com>
Co-authored-by: lukas-mar <147140258+lukas-mar@users.noreply.github.com>
Co-authored-by: Midhun Kumar E <midhun752@gmail.com>
Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
Co-authored-by: Jaswanth T R <86149404+JaswanthJeethu18@users.noreply.github.com>
Co-authored-by: Adish M <adish.madhu@gmail.com>
Co-authored-by: Qayyum Siddiqui <54232882+qayyum22@users.noreply.github.com>
Co-authored-by: Allen Joseph <allenxavier45@gmail.com>
Co-authored-by: Raghuram Bachu <1993raghuram@gmail.com>
Co-authored-by: Ayush Jha <73348925+ayushjha119@users.noreply.github.com>
Co-authored-by: ayushjha119 <ayush.jha.it23@heritageit.edu.in>
Co-authored-by: Raj Anand <58350132+Just-A-Pixel@users.noreply.github.com>
Co-authored-by: Manish Kushare <37823141+manishkushare@users.noreply.github.com>
Co-authored-by: Sufiyan <84285133+Sufiyan-dev@users.noreply.github.com>
Co-authored-by: Abhinaba Adhikari <79746925+abhinabaadhikari@users.noreply.github.com>
Co-authored-by: Ganesh Kumar <40178541+ganesh8056@users.noreply.github.com>
Co-authored-by: Aarav Shukla <aarav8090shukla@gmail.com>
Co-authored-by: Abhi Rana <63769307+Avon11@users.noreply.github.com>
Co-authored-by: Nakul Nagargade <nakul@tooljet.com>
Co-authored-by: Achint Jain <119395483+16achint@users.noreply.github.com>
Co-authored-by: Anantshree Chandola <anantshreechandola23@gmail.com>
Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com>
Co-authored-by: vjaris42 <vjy239@gmail.com>
Co-authored-by: kriks7iitk <34170719+kriks7iitk@users.noreply.github.com>
Co-authored-by: Kritagya <kriks.iitk@.com>
Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com>
Co-authored-by: Ganesh Kumar <ganesh8056234@gmail.com>
Co-authored-by: ajarai ayoub <113044987+ajAYB-code@users.noreply.github.com>
Co-authored-by: Ajith KV <ajith.jaban@gmail.com>
Co-authored-by: Mekhla Asopa <59684099+Mekhla-Asopa@users.noreply.github.com>
Co-authored-by: stepinfwd <stepinfwd@gmail.com>
Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
Co-authored-by: manishkushare <kushare.manish9@gmail.com>
Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com>
Co-authored-by: Syed Abdul Rahman <137684137+S-Abdul-Rahman@users.noreply.github.com>

* Revert "Merging main to codehinter feat branch (#8848)"

This reverts commit 5580d55822.

* fixes: CodeHinter compoennt pathfrom param form

* fixes: merge conflits with appbuilder-1.5

* fix: Codehinter revamp ui fixes (#8862)

* fix : font size on preview box

* fix :: consistency of braces in single line JS in components, queries, transformations and RUNJS

* cleanup

* fix : delay in cursor when focussing an input.

* fix : For hinters where validations is not found we need to show only the resolved value

* fix :: copy icon svg

* fix : codehinter width needs auto adjust for longer string in query managr

* removed unwanted import

* fixes: (#8863)

truncate chars from start of the suggestion instead from the end

* icon should adpat to line number

* refactor

* fixes crashes due to cmds for search

* adding support of suggestions from query params

* removing default values from resolver store
adding default values as part of validations schema of widegts

* Refactor: Modularized widget configurations for improved maintainability

* removing support for completion of tab key

* adding support to app hints to python and sql editors

* fixes: transformations width on context updateds

* fix : Adapt current component properties update to codhinter improvements (#8911)

* fix : remove vertical line from components ui

* fix : zindex preview box

* fix :: switch breaking in inspector

* fix : hover for properties and style panel items

* fix : init fx hidden for certain properties

* fixes : adding fx not required field , label hidden fields and fix revamped compoents

* fix : ui issues

* cleanup

* style: Codehinter popover made to take full height of the popover (#8942)

* fix: codehinter draggable popover ui

* popup icon position

* revert codehinter popup icon placement

* fixes: adapt to cursor postion to current head of the input

* fixes: on selection of input inside cm editor, the widget of the line changes to 40% of the actual width

* adds ability to search relative hints for 0 depth

* (wip) [improvement] Implementation of a Mapping Table for Seamless client-server Interaction (#8769)

* Implemented DFS traversal to update references throughout the editor efficiently. DFS was chosen over BFS due to its ability to traverse deeply nested structures effectively. This approach ensures that all references are updated accurately. Time complexity analysis shows that DFS performs efficiently for our use case. Ready to push changes.

* on references upate to the client-side, trigger the update request

* updated references saved to db

* adds: new api for bulk updating query options
handle: on component references used in query options -- should be update with sync

* updating references within strings

* updates references through out all events

* cleanup
deleting entries/nodes from the mapp

* refactored

* adds support: updating all references of data queries at once
code cleanup and refactoring

* de select components on query name update

* re-render or update the local state of the codehinter which holds the reference as its current value

* Changes Made:
- Added transaction management to handleReferenceTransactions function
- Implemented start, update, error handling, and commit phases of the transaction
- Rollback changes to the initial snapshot in case of errors during the transaction

* Implemented efficient reference handling:
- Stored new references as entity IDs in the database for improved server performance.
- Enabled client-side transformation for UI updates, eliminating server dependencies.
- Maintained security by avoiding exposure of sensitive data.
- Preserved security of constants used as references.
- Older app versions retain existing definitions, with dynamic updates to references as needed.

* Implemented DFS traversal to update references throughout the editor efficiently. DFS was chosen over BFS due to its ability to traverse deeply nested structures effectively. This approach ensures that all references are updated accurately. Time complexity analysis shows that DFS performs efficiently for our use case. Ready to push changes.

* on references upate to the client-side, trigger the update request

* updated references saved to db

* adds: new api for bulk updating query options
handle: on component references used in query options -- should be update with sync

* updating references within strings

* updates references through out all events

* cleanup
deleting entries/nodes from the mapp

* refactored

* adds support: updating all references of data queries at once
code cleanup and refactoring

* de select components on query name update

* re-render or update the local state of the codehinter which holds the reference as its current value

* Changes Made:
- Added transaction management to handleReferenceTransactions function
- Implemented start, update, error handling, and commit phases of the transaction
- Rollback changes to the initial snapshot in case of errors during the transaction

* Implemented efficient reference handling:
- Stored new references as entity IDs in the database for improved server performance.
- Enabled client-side transformation for UI updates, eliminating server dependencies.
- Maintained security by avoiding exposure of sensitive data.
- Preserved security of constants used as references.
- Older app versions retain existing definitions, with dynamic updates to references as needed.

---------

Signed-off-by: Aarav Shukla <aarav8090shukla@gmail.com>
Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
Co-authored-by: manishkushare <kushare.manish9@gmail.com>
Co-authored-by: Abd-Rahman-1999 <s.rahmanabd1999@gmail.com>
Co-authored-by: nandinisaha13 <nandinisaha13@gmail.com>
Co-authored-by: Karan Rathod <karan.altcampus@gmail.com>
Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>
Co-authored-by: Shubhendra Singh Chauhan <withshubh@gmail.com>
Co-authored-by: Antraxa <antraxa@gmail.com>
Co-authored-by: rene osborne <rene.garcia@clara.team>
Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
Co-authored-by: Yash Hegde <yash4success@gmail.com>
Co-authored-by: Tuutoo <9068314+tuutoo@users.noreply.github.com>
Co-authored-by: Farookh Zaheer Siddiqui <129654632+FarukhS52@users.noreply.github.com>
Co-authored-by: russell-hutson-jp <102313014+russell-hutson-jp@users.noreply.github.com>
Co-authored-by: Adish M <44204658+adishM98@users.noreply.github.com>
Co-authored-by: Ayaan B. Bordoloi <ayaanbordoloi25@gmail.com>
Co-authored-by: Harsimran-19 <103135191+Harsimran-19@users.noreply.github.com>
Co-authored-by: Harsimran-19 <harsimran1869@gmail.com>
Co-authored-by: lukas-mar <147140258+lukas-mar@users.noreply.github.com>
Co-authored-by: Midhun Kumar E <midhun752@gmail.com>
Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
Co-authored-by: Jaswanth T R <86149404+JaswanthJeethu18@users.noreply.github.com>
Co-authored-by: Adish M <adish.madhu@gmail.com>
Co-authored-by: Qayyum Siddiqui <54232882+qayyum22@users.noreply.github.com>
Co-authored-by: Allen Joseph <allenxavier45@gmail.com>
Co-authored-by: Raghuram Bachu <1993raghuram@gmail.com>
Co-authored-by: Ayush Jha <73348925+ayushjha119@users.noreply.github.com>
Co-authored-by: ayushjha119 <ayush.jha.it23@heritageit.edu.in>
Co-authored-by: Raj Anand <58350132+Just-A-Pixel@users.noreply.github.com>
Co-authored-by: Manish Kushare <37823141+manishkushare@users.noreply.github.com>
Co-authored-by: Sufiyan <84285133+Sufiyan-dev@users.noreply.github.com>
Co-authored-by: Abhinaba Adhikari <79746925+abhinabaadhikari@users.noreply.github.com>
Co-authored-by: Ganesh Kumar <40178541+ganesh8056@users.noreply.github.com>
Co-authored-by: Aarav Shukla <aarav8090shukla@gmail.com>
Co-authored-by: Abhi Rana <63769307+Avon11@users.noreply.github.com>
Co-authored-by: Nakul Nagargade <nakul@tooljet.com>
Co-authored-by: Achint Jain <119395483+16achint@users.noreply.github.com>
Co-authored-by: Anantshree Chandola <anantshreechandola23@gmail.com>
Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com>
Co-authored-by: vjaris42 <vjy239@gmail.com>
Co-authored-by: kriks7iitk <34170719+kriks7iitk@users.noreply.github.com>
Co-authored-by: Kritagya <kriks.iitk@.com>
Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com>
Co-authored-by: Ganesh Kumar <ganesh8056234@gmail.com>
Co-authored-by: ajarai ayoub <113044987+ajAYB-code@users.noreply.github.com>
Co-authored-by: Ajith KV <ajith.jaban@gmail.com>
Co-authored-by: Mekhla Asopa <59684099+Mekhla-Asopa@users.noreply.github.com>
Co-authored-by: stepinfwd <stepinfwd@gmail.com>
Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com>
Co-authored-by: Syed Abdul Rahman <137684137+S-Abdul-Rahman@users.noreply.github.com>
2024-03-01 00:52:58 +05:30
Sherfin Shamsudeen
213b94b803
Feat: query parameters for all queries (#8347)
* Extend parameter support to all query types

* Use query manager state for RestAPI options

* Put parameter list on query manager header

* Make parameter list adapt to available space in header

* Update codehinter preview when parameters are updated

* Update styling of query parameters towards design

* Support parameters in all queries if builder has added it

* Avoid using query parameters argument for other internal data relay

* Rename parameters to userSuppliedParameters

* Resolve the bug that caused codehinter schema validation to not work

* ui fixes

* review fix

* Do not show number of parameters

* import current state instead of store in codehinter

* Import using @ prefix in codehinter

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

* Remove unnecessary css comment

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

* Resolve import error in query manager

* design fixes

* fix :: colors

* fix :: pill color

* review fixes

* fix bg color

---------

Co-authored-by: stepinfwd <stepinfwd@gmail.com>
Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>
2024-02-06 14:02:36 +05:30
Ganesh Kumar
a03b73d4a8
Bugfix/App export should also export tables in join query - Design Review Changes (#7806)
* basic and static join query executed

* tooljetDB Join operation flow - work inprogress

* complete flow for tooljetdb join pending testing and minor changes

* updated constructHavingStatement method logic to support aggregation function and added comments

* worki in progress tooljetDB Join

* feat: added basic layout for tjdb join fields

* feat: dropdown support for icons

* feat: working on where condition ui in join

* feat: added base layout for filter and sort in tooljetdb join

* feat: added multi select support and minor style changes

* feat: support default value for selectbox

* feat: dd select styling added

* style: override vanilla  dd select styles with tj styles

* fix: fixed minor UI issues in select box

* feat: added select section layout

* feat: added hooks state for join options

* feat: load all added tables columns

* feat: working on where section logic

* feat: join constraints UI

* feat: filter condition dropdowns added

* feat: join widget for join query op in tjdb

* feat: sort section base UI

* feat: select widget for join query in tjdb

* feat: filter section add option and delete option done

* feat: update filter condition logic added

* feat: added onchange event for operator and rhs values update

* feat: added sort dropdown for tjdb join

* feat: base logic for Filters in join query

* fix: removed comments and added validation for fetching table details

* feat: add limit option logic

* feat: backend api has been integrated for tooljetdb joins

* added icons to solid icons

* fix: jsconfig auto save lint fix

* fix: update from table when selected table changes

* feat: added from to join table options in tjdb dq

* fix: added fetching tables list for JSON in backend

* fix: fixed json data for join query

* fix: temp fix for fields with empty object

* feat: added icon support for dd select

* fix: added default state to avoid error in conditionlist

* fix: limit tables selection to already joined tables in tjdb join

* fix: empty values to orderBy, filters and limit will remove the option from json

* fix: in json first level empty value scenario has been handled

* fix: select in tooljetdb join query can have multiple columns with same name handled by adding prefix tablename_ to the column name

* fix: restrict selectable tables in join contraints

* feat: reset join constraints when invlaid joins added

* fix: empty values will not be allowed UI validation

* fix: codehinter border has been removed

* fix: recalculate join data when join tables change

* fix: corrected options length calc for showing search box

* fix: filter table dropdown must contain only selected tables from join section

* fix: empty values validation has been removed

* fix: add from attribute to join options

* fix: alias is added to all the table column

* feat: selected option in Select section will be at the top

* fix: reset joins when selected table changed

* fix: drop down focus ui

* feat: autoselect all columns by defualt for join select

* feat: restrict column selection to same datatype

* fix: removed blank table names from select

* feat: added tooltip for info

* fix: removed duplicate tooltip

* fix: add button in table dropdown

* fix: added from table object back

* feat: tjdb join select dropdown select all cols by default

* fix: add new table button name corrected

* feat: no table selected error message

* feat: add select style for select dropdown

* style: updated dropdown select style to match new theme

* feat: added alert modal for deleting joins

* feat: hardcode operator since once one option available at the moment

* style: fix icon styles for dropdown

* feat: created reusable confirm dialogue

* fix: fixed bug for nested dropdowns

* fix; cache select components to prevent unnecessory rerenders

* feat: reused the common popup on updating the tables

* fix: info popup will trigger only if table is already exists

* fix: fixed bug that caused edit to break for tjdb join

* style: fixed spacing for tjdb join components

* fix: select section all options cant be deselected issue fixed

* fix: add info icon for empty filter and sort component

* feat: offset fature for joins has been added

* fix: layout fixed to incorporate filter dropdown with text

* fix: basic validation in UI for mandatory and non-mandatory fields

* feat: more options added for filter in joins

* fix: added filter option for regular expression

* fix: fixed wrong autoupdate of join fields

* style: updated badge color w.r.t theme

* fix: removed the commented code

* style fixes

* refactor: changed tooljetdb join logic based on tableId instead of name

* fix: joins table value is not been shown after save

* fix: CSS design fix and removed not required commented codes

* feat: tableid to table name mapping in error

* fix: errors will be shown in the debugger for tooljetdb join

* stylefix: container for join sort and select made full width

* stylefix: changed CTA test in popup spacing issue adjusted

* fix: few PR review comments to refactor has been done

* fix:random id generator has been removed and uuid has been used

* feat: Select all functionality in Select Drop down has been added

* fix: first time AND operator has been removed

* fix:Sort Section - Removed table were listed in the drop down

* fix: add more in join section deleting newly created joins

* fix: select section total selected count was wrong

* stylefix: dropdown menu height has been reduced

* fix: sort section on join query will have prefix table name along with column name

* feat: changed the select drop down with add new table option

* fix: center align text only for join operator drop down

* fix join icons to be centred

* reduce chevron icon size

* fix:error handling by status code

* feat: added placeholder for empty select box

* fix: fixed the PR comments

* stylefix:multi select with checkbox will not have tick and bgcolor

* stylefix: codehinter doesnt expand entire row content

* stylefix: codehinter placeholder is center aligned scroll has been removed and overflow content has been handled

* stylefix: codehinter font size made to 12

* feat: offset option for list rows in tjdb query

* inprogress: tjdb joins tables must be exported

* Updated cypess mysql spec (#7717)

* fix: import app missed the tjdb tables in join query

---------

Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com>
Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
Co-authored-by: Mekhla Asopa <59684099+Mekhla-Asopa@users.noreply.github.com>
2023-11-16 12:12:57 +05:30
Ganesh Kumar
72147a0fda
Feature: Tooljetdb join operations (#7263)
* basic and static join query executed

* tooljetDB Join operation flow - work inprogress

* complete flow for tooljetdb join pending testing and minor changes

* updated constructHavingStatement method logic to support aggregation function and added comments

* worki in progress tooljetDB Join

* feat: added basic layout for tjdb join fields

* feat: dropdown support for icons

* feat: working on where condition ui in join

* feat: added base layout for filter and sort in tooljetdb join

* feat: added multi select support and minor style changes

* feat: support default value for selectbox

* feat: dd select styling added

* style: override vanilla  dd select styles with tj styles

* fix: fixed minor UI issues in select box

* feat: added select section layout

* feat: added hooks state for join options

* feat: load all added tables columns

* feat: working on where section logic

* feat: join constraints UI

* feat: filter condition dropdowns added

* feat: join widget for join query op in tjdb

* feat: sort section base UI

* feat: select widget for join query in tjdb

* feat: filter section add option and delete option done

* feat: update filter condition logic added

* feat: added onchange event for operator and rhs values update

* feat: added sort dropdown for tjdb join

* feat: base logic for Filters in join query

* fix: removed comments and added validation for fetching table details

* feat: add limit option logic

* feat: backend api has been integrated for tooljetdb joins

* added icons to solid icons

* fix: jsconfig auto save lint fix

* fix: update from table when selected table changes

* feat: added from to join table options in tjdb dq

* fix: added fetching tables list for JSON in backend

* fix: fixed json data for join query

* fix: temp fix for fields with empty object

* feat: added icon support for dd select

* fix: added default state to avoid error in conditionlist

* fix: limit tables selection to already joined tables in tjdb join

* fix: empty values to orderBy, filters and limit will remove the option from json

* fix: in json first level empty value scenario has been handled

* fix: select in tooljetdb join query can have multiple columns with same name handled by adding prefix tablename_ to the column name

* fix: restrict selectable tables in join contraints

* feat: reset join constraints when invlaid joins added

* fix: empty values will not be allowed UI validation

* fix: codehinter border has been removed

* fix: recalculate join data when join tables change

* fix: corrected options length calc for showing search box

* fix: filter table dropdown must contain only selected tables from join section

* fix: empty values validation has been removed

* fix: add from attribute to join options

* fix: alias is added to all the table column

* feat: selected option in Select section will be at the top

* fix: reset joins when selected table changed

* fix: drop down focus ui

* feat: autoselect all columns by defualt for join select

* feat: restrict column selection to same datatype

* fix: removed blank table names from select

* feat: added tooltip for info

* fix: removed duplicate tooltip

* fix: add button in table dropdown

* fix: added from table object back

* feat: tjdb join select dropdown select all cols by default

* fix: add new table button name corrected

* feat: no table selected error message

* feat: add select style for select dropdown

* style: updated dropdown select style to match new theme

* feat: added alert modal for deleting joins

* feat: hardcode operator since once one option available at the moment

* style: fix icon styles for dropdown

* feat: created reusable confirm dialogue

* fix: fixed bug for nested dropdowns

* fix; cache select components to prevent unnecessory rerenders

* feat: reused the common popup on updating the tables

* fix: info popup will trigger only if table is already exists

* fix: fixed bug that caused edit to break for tjdb join

* style: fixed spacing for tjdb join components

* fix: select section all options cant be deselected issue fixed

* fix: add info icon for empty filter and sort component

* feat: offset fature for joins has been added

* fix: layout fixed to incorporate filter dropdown with text

* fix: basic validation in UI for mandatory and non-mandatory fields

* feat: more options added for filter in joins

* fix: added filter option for regular expression

* fix: fixed wrong autoupdate of join fields

* style: updated badge color w.r.t theme

* fix: removed the commented code

* style fixes

* refactor: changed tooljetdb join logic based on tableId instead of name

* fix: joins table value is not been shown after save

* fix: CSS design fix and removed not required commented codes

* feat: tableid to table name mapping in error

* fix: errors will be shown in the debugger for tooljetdb join

* stylefix: container for join sort and select made full width

* stylefix: changed CTA test in popup spacing issue adjusted

* fix: few PR review comments to refactor has been done

* fix:random id generator has been removed and uuid has been used

* feat: Select all functionality in Select Drop down has been added

* fix: first time AND operator has been removed

* fix:Sort Section - Removed table were listed in the drop down

* fix: add more in join section deleting newly created joins

* fix: select section total selected count was wrong

* stylefix: dropdown menu height has been reduced

* fix: sort section on join query will have prefix table name along with column name

* feat: changed the select drop down with add new table option

* fix: center align text only for join operator drop down

* fix join icons to be centred

* reduce chevron icon size

* fix:error handling by status code

* feat: added placeholder for empty select box

* fix: fixed the PR comments

---------

Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com>
Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
2023-09-28 19:58:47 +05:30
Kiran Ashok
c857ae1b33
fix leftsidebar popovers in mozilla (#7452) 2023-09-18 16:13:25 +05:30
Kiran Ashok
e5d75bd4cf
Feat :: Editor UI revamp (#7275)
* temp commit ::  editor redesign

* fix :: components panel ui

* style updates

* fix :: arrangement widget list

* fix :: light mode widget list

* style fixes query manager

* updates

* updates heaer styles

* global settings fix

* left sidebar states and icon change

* cleanup

* minor fixes :: review

* fix opacity mode toggle

* detailing in hover states , bugfixes

* fix :: coloring whole app , debugger ui

* cleanup

* fix :: revert some changes , fix statistics widget

* feat :: navbar with new layout

* fix :: lint warnings

* cleanup

* cleanup

* minor fixes

* fix :: reusing serchbox

* removed unwanted prop

* Revert "cleanup"

This reverts commit b18abe19fb.

* fix :: icons sidebar

* fix :: padding searchbar

* style fix

* radix :: dark theme for portals

* fix :: icon styles

* fix :: all codehinter styles

* update :: base bg color app

* fix :: viewer color

* minor fixes :: icon left sidebar

* typo

* fix :: styling save message header

* icon :: fix for layout and inspector queries

* fix :: canvas and editor bg

* fix :: release btn style

* fix :: navbar border

* undo redo tooltip

* fix :: page input

* remove released btn icon

* fix :: for icon not loading proper in inspector

* fix :: dark mode toggle icon size

* fix :: share  app ui

* fix :: style fixes , inspector runpy icon

* fix :: ui runpy codehinter

* fix :: inputs in gds connection

* cleanup

* fix :: copilot codehinter ui

* fix :: share modal button

* fix :: canvas bg text

* style fix debugger

* fix :: whole dahsboard layout and border for all codehinters

* fix :: icon fills

* fix :: icon fill color sidebar

* darkmode fill color

* minor style fix

* Widget inspector redesign (#7355)

* Setup Storybook

* Update storybook config

* Add tab and toggle group component

* Created list component

* Properties tab

* update codehinter dropdown components

* Refactor styling

* Inspector header changes

* Fix es lint issue

* Fix

* feat :: styling color picker styles panel

* Fix color picker alignment

* feat :: remove alpha

* Fix UI bugs

* fix :: color picker

* Ui fix

* Backward compatible pagination changes

* fix

* Feedback changes

* UI feedback

* Check fix

* Fix

* fix :: canvas bg popover

* Styles fix

* Fix conflct issues

* minor style fix style tab

* Fix

* review comments fix :: hovering in color picker

* Code review and design feedback

* UI feedback

* Fix UI styles

* Fix pagination issue

* fix :: dark mode issues in select , number input

* fix :: remove extra boreder

* fix :: table column popover ui and component popover inspector

* fix :: datepickre input table column

* fix :: colopicker in table column inspector

* fix :: link column type ui in table

* fix :: column delete ui and delete not triggering

* Fix list item not dragging

* fix :: closing of popover on link column select

* style fix table popover

* Pass dark mode to Event manager button

* fix :: ux event manager

* cleanup

* cleanup

* fix :: delete page modal ui

---------

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

* style fixes

---------

Co-authored-by: Nakul Nagargade <133095394+nakulnagargade@users.noreply.github.com>
2023-09-04 13:30:39 +05:30
Johnson Cherian
55cdc7a0b5
Query manager revamp (#6680)
* global store init

* Moved query data to new component

* Removed unwanted code

* Removed data queries prop drilling

* Moved query state out of editor

* Added unsafe to componentWillReceiveProps

* Selected first query when the version is changed

* Fixed bug on renaming query

* Fixed issue on dark theme

* Fixed running query on page load in viewer

* Query manager refactor init

* Added global data source in store

* Disabled devtools on production

* Fixed bug on selecting query after deletion

* Reset store when editor is loaded

* Moved query manager to functional component

* Fixed conflict issues

* Fixed infinite loop on tooljetDB

* Set the store name and updated devtools logic

* Fixed issue on displaying draft query from data sources

* Updated comments on the store

* Fixed bug on changing data source and creating query from data source

* Fixed bug on showing unsaved changes popup

* Fixed issue on showing confirmation modal everytime without any changes

* feat: autosave data query functionality

* feat: show publish button only when the status in draft state

* Fixed issues on query renaming

* feat: removed discard popup for data query create/edit widget

* stye: reduced autosave api call timeout and added draft tag

* feat: added minor style changes

* feat: fixed issues with restapi plugin, removed unused api calls

* fix: fixed issue that breaks restapi creation

* fix: reload selected query details after update query

* perf: reduced debounce time for data query update apis

* feat: removed full reloading of query list on query renaming

* feat: duplicate data query feature added

* Fixed issue on creating restAPI query

* fix: fixed issue in transforming response from update queyr api

* fix: refresh selected query details when the selected query is updated

* fix: rename query on click enter

* fix: full refresh of query list on update

* fix: style changes

* fix: subscribing to state to autsave

* feat: updated the query manager styles to new design

* feat: revamped the querypane header buttons

* fix: fixed the padding for query panel maximize button

* feat: updated search box style

* refactor: moved function to render data source icon to its own component

* fix: fixed querymanager widget breaking issue

* merged with feat/query-manager-autosave

* refactor: removed unused consoles

* refactor: removed unused consoles

* refactor: removed unused consoles

* fix: removed commented code

* fix: removed unused code

* refactor: removed unused comments

* fix: show change datasource select only if valid ds available

* Update frontend/src/Editor/Inspector/EventManager.jsx

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

* Update frontend/src/Editor/QueryManager/Components/DataSourceLister.jsx

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

* Update frontend/src/Editor/QueryManager/Components/DataSourceLister.jsx

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

* Update frontend/src/Editor/QueryManager/Components/QueryManagerBody.jsx

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

* feat: modify behaviour of search icon in query panel

* fix: fixed theme color mismatch in query manager

* refactor: remove dead code

* refactor: updated theme for data source listner

* fix: theming in filter and sort popup

* refactor: remove unused variables

* fix: removed draftQuery logic from query manager

* refactor: removed unused varibales

* Update frontend/src/Editor/QueryManager/QueryEditors/Restapi/TabParams.jsx

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

* Update frontend/src/Editor/QueryPanel/QueryCard.jsx

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

* feat: diable preview for draft queries

* fix: added tooltip for query panel button

* fix: fixed issues in saving query manager events

* fix: moved query save subscriber to QuerPanel component

* feat: converted query run api to save and run

* fix: made varibale an optional param in updateDataQuery dto

* refactor: cleanup update dataquery status api response

* refactor: moved query status to constants file

* feat: prompt for queryname when creating new query

* fix: store new queryname in state on create query pageload

* fix: fixed alignment of Tooljet db component form

* fix: correct translation and format file

* refactor: removed consoles

* merge: merge appbuilder-1.2

* style: updated rename input/button UX

* style: revamped dataquery create widget styles

* style: revamped data source selector styles

* fix: removed code added for debugging

* style: updated data query filter design

* style: Add prop to control visibility of clear button in search box

* style: implement new style for query filter

* merge appbuilder-1.2 to feat/query-manager-sort-filter

* refactor: remove unintended file change

* fix: set default value for method in respapi

* style: updated copilot info popup style

* style: updated quer panel header icons

* style: updated button styles

* style: fixed query manager button styles

* style: smoothened query preview modal view

* fix: correct import for some funs

* fix: fixed minor UX bugs

* style: fixed styling of REST api GDS

* style: fixed styleing of sort and filter popup

* style: improved data queries sort filter UI/UX

* fix: remove click listner when overlay is closed

* fix: moved component declaration out of parent component

* fix: set selected datasource for default sources

* fix: filter DS based on saerch in create dropdown

* fix: restrict draft query running to preview mode

* fix: query renamed on input change in create screen

* fix: set name to state as soon as user renames query

* fix: make query notification message consistent

* style: correct s3 bucket plugin layout config

* fix: fixed issues with cloning of Static DS queries

* fix: made change so that newly created query is reflected immediatly

* style: updated spacing for query manager components

* fix: hide rename input when no query selected

* fix: check bothe selected query and DS before rendering query manager

* fix: set isSaving to true only for api calls in querymanager

* fix: added success message form in qm

* fix: filter out draft queries from viewer on running

* fix: fixed inconsistent gutter for runpy and runjs editors

* fix: reload dataqueris on LDS deletion

* fix: redesigned filter/sort popup

* fix: fixed issue that resets filter on search

* fix: fixed query manager breaking on plugin select

* fix: diable json preview for text output

* fix: reset to filter and sort main menu on close filter popup

* refactor: rename varibales

* stye: redesigned query create panel

* feat: revert data query status column from backend

* style: redesign query picker section

* refactor: removed dead code

* style: querypanel expand/collapse btn style

* style: add query select and query filter popup style redesign

* style: updated filter popup style

* feat: removed draft query checks everywhere

* style: empty dataqueries style changed

* style: updated query selector popup and rest options styles

* style: removed 100% height to query option remove btn

* feat: added the query runnable status check

* style: updated query manager footer style

* feat: changed DS filter from kind to DS ID

* style: minor ui tweaks in filter popup

* style: disable DS filter if no DQs created

* style: minor ui change

* fix: rerender filter popup post DS api call. fixed rest api copy feature

* fix: add local DS to filter popup

* refactor: removed dead code/comments

* add new row is crashing when no data is fed to table (#7102)

* fix: fixed condition that blocked GDS run on load

* fix: revert name back to og name if update fails in rename query

* feat: added tooltip for show query btn

* fix: added click interaction for pill btn as well

* fix: minor UI tweaks to make UX better

* style: fixed the styling of filter popup

* style: minor UI tweaks in query filter popup

* fix: fixed minor css issue in ds picker

* style: wrap overflowing text in queryname

* fix: update updated_at after query update api call success

* fix: update remove the caller query from event query dropdown

* style: minor ui spacing tweaks

* fix: fix issue that cuased app crash when tjdb opened

* fix: fixed update row styles

* fix: fixed info popup dark theme bg

* fix: fixed headers styling according to general QM styles

* style: fixed stripe QM UI

* fix: added tooltip for quernames

* feat: add tooltip for select ds options

* added consoles to debug debugger issue

* fix: fixed :active style of ds select dropdown in QM

* fix: fixed DS kind name in data source selector in QM

* fix: fixed border color mismatch for ds select dd

* fix: change tooltip msg for maximize/minize QM

* Fix automation for query manager revamp. (#7223)

* Add data-cy to support modified specs

* Fix event handler

* Fix RunPy and RunJS specs

* Fix event handler label

* Fix basic components spec

* Fix basic components failure

* Fix tabel spec failure.

* Fix runjs and runpy actions

* Fix table column options

* Add data-cy

* version: version updated to 2.13.0

* Version bump

---------

Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com>
Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>
Co-authored-by: Manish Kushare <37823141+manishkushare@users.noreply.github.com>
Co-authored-by: Midhun Kumar E <midhun752@gmail.com>
2023-08-09 18:01:48 +05:30
Akshay
82259600e2
Hotfix: Setup local static assets (#6960)
* add fonts to be served locally

* remove external font usages in stylesheet

* explicitly add font face for code mirror

* remove font link

* add readable error message on pyodide load error

* bump up version
2023-07-13 12:50:58 +05:30
Kavin Venkatachalam
50323bf35c
Query Manager Refactor (#6279)
* global store init

* Moved query data to new component

* Removed unwanted code

* Removed data queries prop drilling

* Moved query state out of editor

* Added unsafe to componentWillReceiveProps

* Selected first query when the version is changed

* Fixed bug on renaming query

* Fixed issue on dark theme

* Fixed running query on page load in viewer

* Query manager refactor init

* Added global data source in store

* Disabled devtools on production

* Fixed bug on selecting query after deletion

* Reset store when editor is loaded

* Moved query manager to functional component

* Fixed conflict issues

* Fixed infinite loop on tooljetDB

* Set the store name and updated devtools logic

* Fixed issue on displaying draft query from data sources

* Updated comments on the store

* Fixed bug on changing data source and creating query from data source

* Fixed bug on showing unsaved changes popup

* Fixed issue on showing confirmation modal everytime without any changes

* Fixed issues on query renaming

* Fixed issue on creating restAPI query

* Fixed issue on running runJS, runPY

* Fixed toast bug on running query after renaming it

* Fallback - toast bug on running query after renaming it

* Fixed issue on running query after app switch

* Fixed bug on running query with save button click

* Fixed bugs on displaying query notifications

* Hidden the copilot tooltip on the toggles
2023-06-06 10:24:54 +05:30
Arpit
2ddbd3309e
Feature - ToolJet Copilot 🚀 (#6074)
* add support for Copilot assistance

* clean up

* fixes workspace settings crash

* refactor and resolved review comments

* api endpoint should be inferred from env

* copilot style fixes

* copilot style fixed

* beta tag fro copilot settings: workspace

* fire toast for unauthorised recommendation request

* include the previous code with the newly generated response

* scoping apikeys to orgs

* controller updates for copilot

* copilot org key updated

* disable toggle for new workspaces

* disable toggle for new workspaces

* fixes: multi-workspace toggle updates

* uninstall unsued packages

* fixes button state for copilot in transformations

* updated the urls
2023-05-11 15:04:48 +05:30
vjaris42
d7695a6cb9
Adds an entry point to Global datasource page from Query Manager (#6092)
* add: global ds entry point on query panel

* cleanup
2023-05-11 10:57:33 +05:30
Kiran Ashok
65259afeb2
Feature Homepage and settings redesign (#5763)
* adding colors

* feat :: add button

* feat :: added typography

* feat: init storybook

* removes browserlist

* feat :: adding button styles and button component

* feat :: added sass addon

* stories update

* feat :: replacing with radix colors

* danger variants

* updates buttin story

* fix :: removing default items

* cleanup

* fix icons update

* feat :: folder list component

* fix :: naming

* icon and split button :: init

* intermediate save :: app card component

* renaming

* updates

* update for module imports

* updates icon

* update :: homepage design updates

* design changes dashboard

* updates :: apps section

* workspace stting new design upate

* updates dasboard design

* style :: fixes

* feat :: added context for sidebar nav breadcrumb

* added all solid icons

* intermediate update

* change: conditions for fetching users

* sorybook updates

* design updates :: workspace settings page

* manage users page

* lint fixes

* fix :: styling

* stle fixes :: workspace settings

* homepage redesign

* fix :: all drawer colors and position ,teplate page revamp , database page header fixes

* imported all bulk icons

* svg to jsx : bulk icons

* minor :: cleanup

* fix :: manage users drawer

* fix :: searchboxes , userspage fixes

* fix :: all inputs and minor ui fixes

* database page ui fixes

* fix :: database and folder search functionality and iconlist in homecard

* fixed some db functionality and edge cases for longer texts

* fix :: user addition manage user page

* self review cleanup and change in bulk icon fill state

* fix :: homepage seacbar

* merging develop and resolving conflicts

* remove unwanted stories

* reverting merge with develop

* Revert "reverting merge with develop"

This reverts commit 2150c8ec0c.

* clearing out warnings

* lint fixes

* feat :: added org modal in database page

* fix :: sso loader theme

* fix :: broken styles select

* fixed icon warning and select ui

* fix :: upload bulk and user select dark mode

* merge styles  with develop

* feat :: integrated new ui for database

* removing storybook files

* fix :: all bugs related to users dropdown and cleanup

* fix: user search api for organization page

* cleanup and splitting dropzone component

* fix :: overflow issue in app card time

* fix for scrollbars in homepage

* PR review fixes

* updates :: fix d=global datasource design issues , homepage responsiveness

* tj db operations

* breadcrumb bug fixes

* lint fixes

* removing logs , removed fade in in datasource and database page

* marketplace page ui fix

* removing inital users table fetch

* Pr :: review changes

* remove logs

* fix :: popover bug

* minot style fix

* fix :: remove arrow from all popovers

* fix :: for loading states

* ux :: sidebar items reorder

* style :: fix

* style fix :: templates

* fix :: qa bugs

* fix :: Qa reported bugs

* removes :: folder fetch bug

* share link and datsource bg color fix

* fixes :: rename group ,

* removed logs

* pages popover background fix

* fix :: tj db table addition ui bug

* fix :: ui bug confirm modal password disable

* modal , revert name capitalize in lists, typos fix

* typos , users page route bugfix

* users page header bugfix

* workspace archive btn , datasources form style for select

* groups updated , delete, create flow updated

* avatar bug in profile page fix

* revert styles

* fix :: for create new table nav breadcrumb not being updated

* click state bug fix in avatar

* fix bug with appcard popover

* fix :: text capitalize issue

* fix :: lints and updated icon for filter delete

* fix warnings

---------

Co-authored-by: gandharv <gandharvkumargarg@gmail.com>
Co-authored-by: Vijaykant Yadav <vjy239@gmail.com>
2023-04-21 11:45:48 +05:30
Arpit
f1f47f298a
fixes: On Database queries clickable area to add condition is more that expect (#5372) 2023-01-25 12:13:46 +05:30
Manish Kushare
6e914e26eb
spacing between method and url in restapi (#5162) 2023-01-04 13:41:10 +05:30
Gandharv
2f025d11d3
Update homepage design (#5121)
* move all apps link under folders

* home page changes

* css changes

* fix

* fix comments icon

* breadcrumb fix

* change logo

* css fixes

* icon

* fix: comment notifications page id param addition

* loader heights change

* fix spacing

* update scroll

* delete unused file

* theme dark fix

* fix cursor

* css changes

* exp: removes skeleton

* exp: update apploader

* hide selector if single workspace

* keep search icon while searching pages

* update apploader

* use ui/select

* update plugin icons

* modal css changes

* css changes

* show delete, edit on hover only - querymanager

* update sidebaritem to use svg directly instead of img tag

* use svg for appicon
2023-01-04 13:28:55 +05:30
Kavin Venkatachalam
fe4ba616a5
[Bug]: Query Manager Bugfixes (#5089)
* Fixes draft query & name issues on query manager

* Fixes textarea showing in RunJS while switching queries

* Fixes clearing unsaved values while resizing the query panel

* Fixes showing confirmation popup on tooljetdb without any changes

* Removed unwanted changes

* Fixes toggling off the raw JSON on body brings you back to header in REST API

* Fixed modal showing on tooljetDB
2023-01-03 15:59:31 +05:30
Manish Kushare
b0d401df36
[ Bug fixed ] : UI is not consistent when query name is large in query panel header (#5098)
* truncate the query name excedding 20 letters in the query panel header

* made the suggested changes

* bug fixed
2023-01-03 15:04:49 +05:30
Manish Kushare
cfcb108b7d
[ Bug fixed ] : input field width is not fixed (#5057)
* bug fixed : codehinter width is not fixed

* fixed spacing issue in the rest api input url field

* bug fixed : minor shift in the content in the input field
2023-01-02 17:30:38 +05:30
Gandharv
f9aa596994
feat: app builder design changes (#5041)
* feat: version manager, realtime avatars + popover addition
2022-12-29 17:18:24 +05:30
Sherfin Shamsudeen
c5db1e8c95
Remove border-width for code hinter inside rest-methods-url div (#5054) 2022-12-26 18:46:41 +05:30
Akshay
602b1b4ad3
Feature: Tooljet Database (#4951)
* wip

* internal db per workspace

* fix async query

* feat: add storage layer route

* feat: add drawer component

* feat: add react-table to load data

* feat: add columns form

* feat: add create column form, create row form

* feat: add postgrest js

* add tooljet db controller to proxy requests to postgrest

* util: add postgrest filter builder helper utility

* feat: add filter popover

* use helper utility for building query

* add sortable filters

* add box shadow for filter popup

* use overlay trigger

* use react select

* add new column addition

* add dropdown for table header, table list

* Move filter.jsx

* feat: add sort popover

* feat: add postgrest js .order fn

* setup tooljetdb with restricted grants for users

* make db schemas added loaded dynamically on postgrest server

* fix query

* sign jwt token to auth user at postgrest

* update db schema user with workspace

* chore: add table listing

* update data and columns from api

* feat: add context api for sharing data

* add ability to create table, view tables and add columns

* use columns for sort from context api

* fix ormconfig

* feat: add table listing integration

* feat: add create table integration

* fix for rds deployment

* add internal table translation instead of schema

* remove tooljetdb as a datasource

* wrap placeholder on proxy query

* add active workspace guard

* scope tooljetdb by workspace

* update active workspace guard

* seperate proxy related concerns to different service

* make use of org id param

* rename storage layer to tooljet databse

* update specs

* feat: Update list when new table added

* feat: add create column

* chore: add orgId to url + misc changes

* chore: move popover to separate file

* remove unused var

* rename files

* feat: add multiple columns

* feat: add new row

* removes postgrest-js from pkg lock

* feat: add row data

* feat: add sorting

* feat: allow row deletion

* feat: add search

* feat: add filtering

* feat: add edit mode

* feat: add columns while edit table

* add view table action

* update setup for column constraint

* fix query

* integrate view_table, primary key field

* render toogle for boolean data type

* update view table query for primary key

* fetch metadata refactor

* add capability to set default values

* feat: allow deletion of record based on primary key

* feat: add default value while creating column

* send query from sort & filter component

* css changes

* allow empty data

* add requested changes

* add err message

* add common fn

* allow sort + filter

* remove unwanted defaults key

* css changes

* add more operators

* dark mode fixes

* add drawer footer

* add loader for list tables

* add dashboard design changes

* design changes

* add capability to drop table and delete column

* add breadcrumbs

* design changes

* add profile

* refactor tooljetdb controller

* update routes

* add empty page changes

* delete column fix

* fix delete column

* design changes

* fetch tables post delete

* homepage changes

* hide ellipsis on hover

* add org settings page

* add edit + create org

* add notification center

* fix: group permissions switch issue

* add logo

* remove anchor tag

* fix merge conflicts

* css changes

* add err boundary

* setup query editor

* css changes

* fix: merge conflicts

* add menuPortal prop to filterform and sort form

* fix seed

* fix: build

* design changes

* design changes + refactor code

* fix imports

* fix: drawer issue on delete table

* add search box changes

* fix: tablename max-length 255

* fix: set newly created table as selected item

* remove edit column option

* added badges to enterprise only features

* disable edit column

* table styles

* fix: popover position, placeholder default

* fix: display boolean values in table

* fix: tooljet database default type values

* css changes

* add query manager for tooljet db with create and list row

* dark mode fixes

* remove Header component

* add ability to delete tooljetdb rows from query manager

* add ability to update tooljetdb rows

* dark mode fixes

* css changes

* display actions icon on hover

* folder onclick change

* add empty page styles

* fix proxy requests

* feat: randomize icon creation

* add max items per page prop for pagination

* removes unwanted position attr

* add table name validation + disable submit btn while api fetch

* [Bugfix] internal storage toast  | trigger toasts for running preview db queries (#5019)

* resolves: no toasts are fired when preview query is run for db queries

* fire success toast for created and no content status text for query success

* remove invalid migration

* skip migration if tooljet db already created

* fix: app clone icon param

* fix: show confirmation box if filter options are empty in query (#5021)

* for now: show native confirmation box of the brower to confirm the delete all query

* typo

* Revert "typo"

This reverts commit b5ce5ed889.

* cleaned

* cleaned

* show confirmation box if filter options are empty in query

* [Refactor/Bugfix] database query (#5028)

* refactored list rows operations

* remove unwanted cls

* refactor create row

* reafactored update rows

* refactored delete rows

* padding fix for tj-query

* add static templates

* review changes

* remove unused file

* Chore: tooljetdb render setup (#5033)

* add postgrest for render preview deploy

* pin version

* add healthCheckPath

* remove health check

* handle database url parsing db params

* add defaults for tooljetdb env

* fix hostname

* handle env in migration files

* refactor dbconfig build

* fix pg db usage

* add parsed env context

* add tooljetdb env

* refactor db config utils

Co-authored-by: gandharv <gandharvkumargarg@gmail.com>
Co-authored-by: Shubhendra <withshubh@gmail.com>
Co-authored-by: Arpit <arpitnath42@gmail.com>
2022-12-23 02:09:57 +05:30
Manish Kushare
ba7e38b7d9
[ Enhancement ] : Query panel UI design (#4757)
* added colors variable in color.scss

* made left side bar of query panel width fixed to 249px and main container width to grow accoding to available width of query panel

* made UI updates in query container - left sidebar of query panel

* set query name font weight to 400

change the border color of left sidebar of query panel

added colors in colors.scss

commented unused variable

* UI update for header in the leftsidebar of the query panel

* updated width of the primary default secondary button

* Updated UI for query panel header

* draf : tranfomration UI update

* draft - preview section UI update

* draft : query manager advance options UI update

* draft : UI update for restApi query editor

* update

* femoved disable save button logic

* small updates

removing box shadow for rest api options button

adjusted spacing for data source selectionn div

* reverting changes in _ui/Search component

* bug fixed : Query Panel header spacing and alignment issues

dark theme update

* spacing and dark theme update in query container

* bug fixed : transition issue in tabs

* dark theme updates and bug fixes

* input checkbox update

* added cursor pointer to input checkbox

* updates

* updates

* bug fixed : removed typo error from last commit

* update

* added 3 rows in rest api tab content by default

* update spacing between datasource picker and element to render div

* spacing top for event manager section

* removed inline style from preview component

* data source lister font size update

* removed inline style from editor component and added style in css

* small updates

* applied color theme for dropdown options in the query manager

* added cursor pointer to control section of dropdown

* updated select data source section in query manager

* dynamic form bug fixed

* bug fixed : breadcrum

* bug fixed : toggle in GroupHeaders is not consistent with the dark theme

* bug fixed : clear icon in searchbox in query manager

* bug fixed : color in rest api in request url

* search box query manager final design

* small update

* made suggested changes

* query editor design for stripe query

* made changes in stripe

* updated the files with minor changes

* made minor updates in stripe

* set Get as default method in rest api

* add functionality to update query name from query panel header as well

* change the width of list data queries section

change size of icon to 20px

* updated changes

* created queryManager.scss file

* added default value to input text box in the query panel header

* bug fixed

* fixed minor bugs

* moved custom-toggle css in queryManager.scss

added on focus css for ternary button

* removed unsued lines from queryManager.jsx

* bug fixed: spacing in search box

* bug fixed: spacing in search box

* code enhancement as per changes requested

* fixed : search box component breaking inside DataSourceManager component

* made a function to style select component in query manager

* styles select component in rest api and transformation using common method

* chnaged run query on page load to application load
2022-12-20 18:38:51 +05:30