Skip to content

Commit

Permalink
Merging main to codehinter feat branch (#8848)
Browse files Browse the repository at this point in the history
* 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 a0ad3e11473cd2d8926fdd8258dc9d016e09d238.

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

This reverts commit 98892a82629e6f2ccfbbcd66c123d37323a435b7.

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

* Revert "debug commit-3"

This reverts commit d2e440e04bcd6ef043f11305f60c30ffec5cad23.

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

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

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

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

* 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>
  • Loading branch information
Show file tree
Hide file tree
Showing 1,011 changed files with 897,538 additions and 648,524 deletions.
131 changes: 131 additions & 0 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
name: Cypress Code-Coverage

on:
pull_request_target:
types: [labeled, unlabeled, closed]

workflow_dispatch:

env:
PR_NUMBER: ${{ github.event.number }}
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}

jobs:
Cypress-Code-Coverage:
name: Code coverage
runs-on: ubuntu-22.04

if: ${{ github.event.action == 'labeled' && (github.event.label.name == 'check-coverage') }}

steps:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 18.18.2

- name: Set up Docker
uses: docker-practice/actions-setup-docker@master

- name: Run PosgtreSQL Database Docker Container
run: |
sudo docker network create tooljet
sudo docker run -d --name postgres --network tooljet -p 5432:5432 -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres -e POSTGRES_PORT=5432 -d postgres:13
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}

- name: Install and build dependencies
run: |
npm cache clean --force
npm install
npm install --prefix server
npm install --prefix frontend
npm run build:plugins
- name: Set up environment variables
run: |
echo "TOOLJET_HOST=http://localhost:8082" >> .env
echo "LOCKBOX_MASTER_KEY=cd97331a419c09387bef49787f7da8d2a81d30733f0de6bed23ad8356d2068b2" >> .env
echo "SECRET_KEY_BASE=7073b9a35a15dd20914ae17e36a693093f25b74b96517a5fec461fc901c51e011cd142c731bee48c5081ec8bac321c1f259ef097ef2a16f25df17a3798c03426" >> .env
echo "PG_DB=tooljet_development" >> .env
echo "PG_USER=postgres" >> .env
echo "PG_HOST=localhost" >> .env
echo "PG_PASS=postgres" >> .env
echo "PG_PORT=5432" >> .env
echo "ENABLE_TOOLJET_DB=true" >> .env
echo "TOOLJET_DB=tooljet" >> .env
echo "TOOLJET_DB_USER=postgres" >> .env
echo "TOOLJET_DB_HOST=localhost" >> .env
echo "TOOLJET_DB_PASS=postgres" >> .env
echo "PGRST_JWT_SECRET=r9iMKoe5CRMgvJBBtp4HrqN7QiPpUToj" >> .env
echo "PGRST_HOST=localhost:3001" >> .env
echo "NODE_ENV=developement" >> .env
- name: Set up database
run: |
npm run --prefix server db:create
npm run --prefix server db:reset
npm run --prefix server db:seed
- name: sleep 5
run: sleep 5

- name: Run PostgREST Docker Container
run: |
sudo docker run -d --name postgrest --network tooljet -p 3001:3000 \
-e PGRST_DB_URI="postgres://postgres:postgres@postgres:5432/tooljet" -e PGRST_DB_ANON_ROLE="postgres" -e PGRST_JWT_SECRET="r9iMKoe5CRMgvJBBtp4HrqN7QiPpUToj" \
postgrest/postgrest:v10.1.1.20221215
- name: Run plugins compilation in watch mode
run: cd plugins && npm start &

- name: Run the server
run: cd server && npm run start:dev &

- name: Run the client
run: cd frontend && npm start &

- name: Wait for the server to be ready
run: |
timeout 1500 bash -c '
until curl --silent --fail http://localhost:8082; do
sleep 5
done'
- name: docker logs
run: sudo docker logs postgrest

- name: Create Cypress environment file
id: create-json
uses: jsdaniell/create-json@1.1.2
with:
name: "cypress.env.json"
json: ${{ secrets.CYPRESS_SECRETS }}
dir: "./cypress-tests"

- name: Install Cypress
working-directory: ./cypress-tests
run: |
npm install
- name: Run Cypress tests
working-directory: ./cypress-tests
run: |
npm run cy:run
- name: Debugging
run: |
ls -R cypress-tests
ls -R /home/runner/work/ToolJet/ToolJet/cypress-tests
cat /home/runner/work/ToolJet/ToolJet/cypress-tests/.nyc_output/out.json
- name: Upload Coverage Report
uses: actions/upload-artifact@v3
if: always()
with:
name: coverage
path: cypress-tests/coverage
1 change: 1 addition & 0 deletions .github/workflows/cypress-appbuilder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ jobs:
echo "SUB_PATH=/apps/tooljet/" >> .env
echo "NODE_ENV=production" >> .env
echo "SERVE_CLIENT=true" >> .env
echo "ENABLE_PRIVATE_APP_EMBED=true" >> .env
- name: Pulling the docker-compose file
run: curl -LO https://tooljet-test.s3.us-west-1.amazonaws.com/docker-compose.yaml && mkdir postgres_data
Expand Down
37 changes: 32 additions & 5 deletions .github/workflows/cypress-marketplace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,26 @@ jobs:
- name: use mybuilder buildx
run: docker buildx use mybuilder

- name: Build docker image
run: docker buildx build --platform=linux/amd64 -f docker/production.Dockerfile . -t tooljet/tj-osv:cypressplaform
- name: Docker Login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Set SAFE_BRANCH_NAME
run: echo "SAFE_BRANCH_NAME=$(echo ${{ env.BRANCH_NAME }} | tr '/' '-')" >> $GITHUB_ENV

- name: Build and Push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: docker/production.Dockerfile
push: true
tags: tooljet/tj-osv:${{ env.SAFE_BRANCH_NAME }}
platforms: linux/amd64
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

- name: Set up environment variables
run: |
Expand All @@ -62,10 +80,18 @@ jobs:
echo "SSO_GIT_OAUTH2_CLIENT_SECRET=dummy" >> .env
echo "SSO_GIT_OAUTH2_HOST=dummy" >> .env
echo "SSO_GOOGLE_OAUTH2_CLIENT_ID=dummy" >> .env
echo "ENABLE_MARKETPLACE_FEATURE=true" >> .env
- name: Pulling the docker-compose file
run: curl -LO https://tooljet-test.s3.us-west-1.amazonaws.com/docker-compose.yaml && mkdir postgres_data


- name: Update docker-compose file
run: |
# Update docker-compose.yaml with the new image
sed -i '/^[[:space:]]*tooljet:/,/^$/ s|^\([[:space:]]*image:[[:space:]]*\).*|\1tooljet/tj-osv:${{ env.SAFE_BRANCH_NAME }}|' docker-compose.yaml
- name: Run docker-compose file
run: docker-compose up -d

Expand All @@ -78,7 +104,7 @@ jobs:
- name: Wait for the server to be ready
run: |
timeout 1500 bash -c '
until curl --silent --fail http://localhost:80; do
until curl --silent --fail http://localhost:3000; do
sleep 5
done'
Expand All @@ -97,7 +123,7 @@ jobs:
uses: cypress-io/github-action@v5
with:
working-directory: ./cypress-tests
config: "baseUrl=http://localhost:80"
config: "baseUrl=http://localhost:3000"
config-file: cypress-marketplace.config.js

- name: Capture Screenshots
Expand All @@ -107,6 +133,7 @@ jobs:
name: screenshots
path: cypress-tests/cypress/screenshots


Cypress-Marketplace-Subpath:
runs-on: ubuntu-22.04

Expand Down Expand Up @@ -138,7 +165,7 @@ jobs:

- name: Set up environment variables
run: |
echo "TOOLJET_HOST=http://localhost:3000" >> .env
echo "TOOLJET_HOST=http://localhost:80" >> .env
echo "LOCKBOX_MASTER_KEY=cd97331a419c09387bef49787f7da8d2a81d30733f0de6bed23ad8356d2068b2" >> .env
echo "SECRET_KEY_BASE=7073b9a35a15dd20914ae17e36a693093f25b74b96517a5fec461fc901c51e011cd142c731bee48c5081ec8bac321c1f259ef097ef2a16f25df17a3798c03426" >> .env
echo "PG_DB=tooljet_development" >> .env
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/cypress-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,15 @@ jobs:
echo "TOOLJET_DB_HOST=localhost" >> .env
echo "TOOLJET_DB_PASS=postgres" >> .env
echo "PGRST_JWT_SECRET=r9iMKoe5CRMgvJBBtp4HrqN7QiPpUToj" >> .env
echo "ENABLE_ONBOARDING_QUESTIONS_FOR_ALL_SIGN_UPS=true" >> .env
echo "PGRST_HOST=localhost:3001" >> .env
echo "SSO_GIT_OAUTH2_CLIENT_ID=dummy" >> .env
echo "SSO_GIT_OAUTH2_CLIENT_SECRET=dummy" >> .env
echo "SSO_GIT_OAUTH2_HOST=dummy" >> .env
echo "SSO_GOOGLE_OAUTH2_CLIENT_ID=dummy" >> .env
echo "ENABLE_PRIVATE_APP_EMBED=true" >> .env
echo "ENABLE_MARKETPLACE_FEATURE=true" >> .env
echo "ENABLE_MARKETPLACE_DEV_MODE=true" >> .env
- name: Set up database
run: |
Expand Down Expand Up @@ -152,7 +156,7 @@ jobs:

- name: Set up environment variables
run: |
echo "TOOLJET_HOST=http://localhost:3000" >> .env
echo "TOOLJET_HOST=http://localhost:80" >> .env
echo "LOCKBOX_MASTER_KEY=cd97331a419c09387bef49787f7da8d2a81d30733f0de6bed23ad8356d2068b2" >> .env
echo "SECRET_KEY_BASE=7073b9a35a15dd20914ae17e36a693093f25b74b96517a5fec461fc901c51e011cd142c731bee48c5081ec8bac321c1f259ef097ef2a16f25df17a3798c03426" >> .env
echo "PG_DB=tooljet_development" >> .env
Expand All @@ -168,13 +172,16 @@ jobs:
echo "PGRST_JWT_SECRET=r9iMKoe5CRMgvJBBtp4HrqN7QiPpUToj" >> .env
echo "PGRST_HOST=postgrest" >> .env
echo "PGRST_DB_URI=postgres://postgres:postgres@postgres/tooljet_db" >> .env
echo "ENABLE_ONBOARDING_QUESTIONS_FOR_ALL_SIGN_UPS=true" >> .env
echo "SSO_GIT_OAUTH2_CLIENT_ID=dummy" >> .env
echo "SSO_GIT_OAUTH2_CLIENT_SECRET=dummy" >> .env
echo "SSO_GIT_OAUTH2_HOST=dummy" >> .env
echo "SSO_GOOGLE_OAUTH2_CLIENT_ID=dummy" >> .env
echo "SUB_PATH=/apps/tooljet/" >> .env
echo "NODE_ENV=production" >> .env
echo "SERVE_CLIENT=true" >> .env
echo "ENABLE_MARKETPLACE_FEATURE=true" >> .env
echo "ENABLE_MARKETPLACE_DEV_MODE=true" >> .env
- name: Pulling the docker-compose file
run: curl -LO https://tooljet-test.s3.us-west-1.amazonaws.com/docker-compose.yaml && mkdir postgres_data
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs-pr-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
],
"serviceDetails": {
"pullRequestPreviewsEnabled": "no",
"buildCommand": "npm i && npm run build",
"buildCommand": "bash build-latest-version.sh",
"publishPath": "build/",
"url": "https://tooljet-pr-${{ env.PR_NUMBER }}.onrender.com"
}
Expand Down
109 changes: 109 additions & 0 deletions .github/workflows/update-test-system.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
name: Test system deploy

on:
pull_request_target:
types: [labeled, unlabeled, closed]

workflow_dispatch:


env:
PR_NUMBER: ${{ github.event.number }}
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}

jobs:
Build-and-update-image:
runs-on: ubuntu-22.04

if: ${{ github.event.action == 'labeled' && github.event.label.name == 'test-system-deploy' }}

steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}

# Create Docker Buildx builder with platform configuration
- name: Set up Docker Buildx
run: |
mkdir -p ~/.docker/cli-plugins
curl -SL https://github.com/docker/buildx/releases/download/v0.11.0/buildx-v0.11.0.linux-amd64 -o ~/.docker/cli-plugins/docker-buildx
chmod a+x ~/.docker/cli-plugins/docker-buildx
docker buildx create --name mybuilder --platform linux/arm64,linux/amd64,linux/amd64/v2,linux/riscv64,linux/ppc64le,linux/s390x,linux/386,linux/mips64le,linux/mips64,linux/arm/v7,linux/arm/v6
docker buildx use mybuilder
- name: Set DOCKER_CLI_EXPERIMENTAL
run: echo "DOCKER_CLI_EXPERIMENTAL=enabled" >> $GITHUB_ENV

- name: use mybuilder buildx
run: docker buildx use mybuilder

- name: Docker Login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Set SAFE_BRANCH_NAME
run: echo "SAFE_BRANCH_NAME=$(echo ${{ env.BRANCH_NAME }} | tr '/' '-')" >> $GITHUB_ENV

- name: Build and Push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: docker/production.Dockerfile
push: true
tags: tooljet/tj-osv:${{ env.SAFE_BRANCH_NAME }}
platforms: linux/amd64
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

- name: SSH into EC2 instance
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.EC2_INSTANCE_IP }}
username: admin
key: ${{ secrets.EC2_INSTANCE_SSH_KEY }}
script: |
ls -lah
# Stop the Docker containers
sudo docker-compose down
# Remove the existing tooljet/* images
sudo docker images -a | grep 'tooljet/' | awk '{print $3}' | xargs sudo docker rmi -f
#checking images
sudo docker images
# Update docker-compose.yml with the new image
sed -i '/^[[:space:]]*tooljet:/,/^$/ s|^\([[:space:]]*image:[[:space:]]*\).*|\1tooljet/tj-osv:${{ env.SAFE_BRANCH_NAME }}|' docker-compose.yaml
# Start the Docker containers
cat docker-compose.yaml
sudo docker-compose up -d
#View containers
sudo docker ps
- uses: actions/github-script@v6
with:
script: |
try {
await github.rest.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: 'test-system-deploy'
})
} catch (e) {
console.log(e)
}
await github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['test-system-deployed']
})
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.27.0
2.30.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ ToolJet is an **open-source low-code framework** to build and deploy internal to
## Quickstart
The easiest way to get started with ToolJet is by creating a [ToolJet Cloud](https://tooljet.com) account. ToolJet Cloud offers a hosted solution of ToolJet. If you want to self-host ToolJet, kindly proceed to [deployment documentation](https://docs.tooljet.com/docs/setup/).

You can deploy ToolJet on Heroku using one-click deployment.
You can deploy ToolJet on Heroku and DigitalOcean using one-click-deployment.

<p align="center">
<a href="https://heroku.com/deploy?template=https://github.com/tooljet/tooljet/tree/main"><img src="https://www.herokucdn.com/deploy/button.svg" alt="Deploy to Heroku" height=32></a>
Expand Down
Loading

0 comments on commit 5580d55

Please sign in to comment.