ToolJet/frontend/src/_components/DynamicForm.jsx

568 lines
19 KiB
React
Raw Normal View History

import React from 'react';
import cx from 'classnames';
import Input from '@/_ui/Input';
import Textarea from '@/_ui/Textarea';
import Select from '@/_ui/Select';
import Headers from '@/_ui/HttpHeaders';
import OAuth from '@/_ui/OAuth';
import Toggle from '@/_ui/Toggle';
Feature: OpenApi import plugin (#2728) * Initialized OpenApi plugin * Added definition field to manifest file * Added an openapi parser * Implemented JSON/YAML resolver - Removed swagger parser lib - Added a field for choosing definition format type - Implemented a resolver for resolving $ref * Implemented a basic operations drop down from spec paths * Added params and body ui * Now, can view general parameters and servers * Added an option to override general params - Resolved a bug * Implemented basic openapi plugin - Added got lib - Tested basic queries * Added one more method * Resolved a common bug * Working on Parsing definition from datasource modal - Created new form component for openapi - Populated select array from security array * Added ui for authentication * Added bearer & basic plugin code * Resolved some ui issues of Apikeys auth option * Added apikey auth * Resolved an issue - Also replaced validate btn with auto validation - Now spec will be added to db from data-source modal * Added error text to show validation error * Now spec will load from props for query manager * Added some padding to operation description * Added ui for openapi oauth2 auth * Implemented oauth2 * Fixed a state issue with a temporary hack * Now we can show multiple same auth types * added the icon * Resolved a bug & improved multiple apikeys process * Resolved some realtime parsing error * Resolved a bug from options fn * Resolved PR changes * Updated documentation with brief details about the open API plugin * Removed unwanted package * Changed if-else to switch * Code changes * added setLoadingSpec fn to catch section * Solved typos and error in doc * Resolved dropdown issue * Resolved a bug * updated openapi icon
2022-04-26 08:44:12 +00:00
import OpenApi from '@/_ui/OpenAPI';
2023-04-24 08:10:58 +00:00
import { Checkbox, CheckboxGroup } from '@/_ui/CheckBox';
[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 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> * Revert "Merging main to codehinter feat branch (#8848)" This reverts commit 5580d5582256d4ac93ca8fd1e2a40a9f7dc7bfe4. * 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-02-29 19:22:58 +00:00
import CodeHinter from '@/Editor/CodeEditor';
2021-09-15 07:40:11 +00:00
import GoogleSheets from '@/_components/Googlesheets';
import Slack from '@/_components/Slack';
import Zendesk from '@/_components/Zendesk';
import { ConditionFilter, CondtionSort, MultiColumn } from '@/_components/MultiConditions';
import Salesforce from '@/_components/Salesforce';
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 b5ce5ed8890056974395750b6e07475390748e3b. * 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-22 20:39:57 +00:00
import ToolJetDbOperations from '@/Editor/QueryManager/QueryEditors/TooljetDatabase/ToolJetDbOperations';
Feature - Workspace environment constants (#6810) * init-- * org constants: controllers, services, module and api for creating new constants * read operation: all constants from all envs and all constants from a env * update and delete operation * updated delete msg * encrypt constant value before saving and decrypt before sending back to controller * adds group permission for org constants and required migrations * adds ability to create constant * adds group permissions and fixes migrations * adds workspace constant permission to workspace settings UI * ToolJetUI - componenst, ref: ee/5c92dc9c03b73d7006562d71d639fe4eb1971dee * Org constants UI * UI updates: display constant value as per enviroment * Added client side pagination * groups without create/edit/delete permission can only view the the constants * group permission: Create and Edit - UI updates * create/update/date flow - UI * extending api support to create constant in multiple environments * UI - add constant for multiple envs * disable name input for update operation * UI fixes and updates * adds deprecating banner to variables dashboard * removes update/create from UI --variables * adding depricating soon alert in codehinter when workspace vars are used * extra check to display the banner in preview of cdehinter * resolves constants for admin in client-side * resolves constants client-side and server side for queries * include grp permission for create/delete for org constants * resolves org constants in runJS and runPY * cleanup * updated the tab UI * fixed: constant pagination footer * fixes client side pagination bug * adds docs link * ui updates and fixes ui flickering on closing the drawer * refactor updating table data * adds error state to constant forms * remove the alert from runJS and runPY after 5s * added max length constraint for constant value * refactor: component form * delete only constant as per environment * remove unwanted logs * resolves constants in gds connection forms * resolve gds source options for testConnections, preview and runQuery * UI style fixes: banner * remove alert banner for runJS and runPY * input text color fixed * style fixes for disabled inputs * Edit constant- Until value is changed- CTA should be disabled * adds tooltip for table name and value * adds tooltip for disbaled input in edit drawer * updated the tooltip position * handle input height on type for large strings * added empty state * adds new badge for workspace constants * substring should be different for viewers * resolve constants in viewer * add support to resolve constants for widgets and queires in public apps * changed the api endpoint for org constant for env * bugfix: handle org constants for encrypted value from source options * add support to resolve app variables and constants in a single single * fixes: multiple multiline and same line variables * refactor * cleanup * remove encryption for ce * remove group permission from permission dashboard * text transform for badge * added padding for each table row * updated alert banner padding * updated alert banner padding * updates width for empty banner * refactor * adds tests for constant api * added validations for constant name * updates textare dynamic form * updates the resolvers for constants * removes decryptiong for source options in services * refactor - frontend * resolved conflicts * fixes: typo-1 ~ workspace variables alert * fixes: inconsistency in alert info icon * fixes: naming convention consistency * fixes: dark theme for confirm box * disable create button for add constant with same name, * adds error state for updating constant with same value * fixes: error message typo * fixes: error message typo * fixes position of tooltip * fixes frontend lint issues * update lock file * UI updates and typos * cleanup-refactor * checking error state before creating * should check all error states * resolving multiple constants and app variables in a single line * reafactore * fixed: depricating icon : codehinter preview box * remove log * remove repeated logic for deleteOrgEnvironmentConstant * only return status code for delete request for org constants * Add data-cy for workspace constants elements (#7251) * updates contants doc link --------- Co-authored-by: Ajith KV <ajith.jaban@gmail.com>
2023-08-14 08:58:51 +00:00
import { orgEnvironmentVariableService, orgEnvironmentConstantService } from '../_services';
import { find, isEmpty } from 'lodash';
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 2150c8ec0ce9cedda4f4676211faa3321d4af7f8. * 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 06:15:48 +00:00
import { ButtonSolid } from './AppButton';
import { useCurrentState } from '@/_stores/currentStateStore';
import { useEditorStore } from '@/_stores/editorStore';
import { shallow } from 'zustand/shallow';
const DynamicForm = ({
schema,
isGDS,
optionchanged,
createDataSource,
options,
isSaving,
selectedDataSource,
isEditMode,
optionsChanged,
queryName,
[ 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 13:08:51 +00:00
computeSelectStyles = false,
Feature - Workspace environment constants (#6810) * init-- * org constants: controllers, services, module and api for creating new constants * read operation: all constants from all envs and all constants from a env * update and delete operation * updated delete msg * encrypt constant value before saving and decrypt before sending back to controller * adds group permission for org constants and required migrations * adds ability to create constant * adds group permissions and fixes migrations * adds workspace constant permission to workspace settings UI * ToolJetUI - componenst, ref: ee/5c92dc9c03b73d7006562d71d639fe4eb1971dee * Org constants UI * UI updates: display constant value as per enviroment * Added client side pagination * groups without create/edit/delete permission can only view the the constants * group permission: Create and Edit - UI updates * create/update/date flow - UI * extending api support to create constant in multiple environments * UI - add constant for multiple envs * disable name input for update operation * UI fixes and updates * adds deprecating banner to variables dashboard * removes update/create from UI --variables * adding depricating soon alert in codehinter when workspace vars are used * extra check to display the banner in preview of cdehinter * resolves constants for admin in client-side * resolves constants client-side and server side for queries * include grp permission for create/delete for org constants * resolves org constants in runJS and runPY * cleanup * updated the tab UI * fixed: constant pagination footer * fixes client side pagination bug * adds docs link * ui updates and fixes ui flickering on closing the drawer * refactor updating table data * adds error state to constant forms * remove the alert from runJS and runPY after 5s * added max length constraint for constant value * refactor: component form * delete only constant as per environment * remove unwanted logs * resolves constants in gds connection forms * resolve gds source options for testConnections, preview and runQuery * UI style fixes: banner * remove alert banner for runJS and runPY * input text color fixed * style fixes for disabled inputs * Edit constant- Until value is changed- CTA should be disabled * adds tooltip for table name and value * adds tooltip for disbaled input in edit drawer * updated the tooltip position * handle input height on type for large strings * added empty state * adds new badge for workspace constants * substring should be different for viewers * resolve constants in viewer * add support to resolve constants for widgets and queires in public apps * changed the api endpoint for org constant for env * bugfix: handle org constants for encrypted value from source options * add support to resolve app variables and constants in a single single * fixes: multiple multiline and same line variables * refactor * cleanup * remove encryption for ce * remove group permission from permission dashboard * text transform for badge * added padding for each table row * updated alert banner padding * updated alert banner padding * updates width for empty banner * refactor * adds tests for constant api * added validations for constant name * updates textare dynamic form * updates the resolvers for constants * removes decryptiong for source options in services * refactor - frontend * resolved conflicts * fixes: typo-1 ~ workspace variables alert * fixes: inconsistency in alert info icon * fixes: naming convention consistency * fixes: dark theme for confirm box * disable create button for add constant with same name, * adds error state for updating constant with same value * fixes: error message typo * fixes: error message typo * fixes position of tooltip * fixes frontend lint issues * update lock file * UI updates and typos * cleanup-refactor * checking error state before creating * should check all error states * resolving multiple constants and app variables in a single line * reafactore * fixed: depricating icon : codehinter preview box * remove log * remove repeated logic for deleteOrgEnvironmentConstant * only return status code for delete request for org constants * Add data-cy for workspace constants elements (#7251) * updates contants doc link --------- Co-authored-by: Ajith KV <ajith.jaban@gmail.com>
2023-08-14 08:58:51 +00:00
currentAppEnvironmentId,
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 12:31:48 +00:00
onBlur,
layout = 'vertical',
}) => {
2022-12-27 14:40:33 +00:00
const [computedProps, setComputedProps] = React.useState({});
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 12:31:48 +00:00
const isHorizontalLayout = layout === 'horizontal';
const currentState = useCurrentState();
Feature - Workspace environment constants (#6810) * init-- * org constants: controllers, services, module and api for creating new constants * read operation: all constants from all envs and all constants from a env * update and delete operation * updated delete msg * encrypt constant value before saving and decrypt before sending back to controller * adds group permission for org constants and required migrations * adds ability to create constant * adds group permissions and fixes migrations * adds workspace constant permission to workspace settings UI * ToolJetUI - componenst, ref: ee/5c92dc9c03b73d7006562d71d639fe4eb1971dee * Org constants UI * UI updates: display constant value as per enviroment * Added client side pagination * groups without create/edit/delete permission can only view the the constants * group permission: Create and Edit - UI updates * create/update/date flow - UI * extending api support to create constant in multiple environments * UI - add constant for multiple envs * disable name input for update operation * UI fixes and updates * adds deprecating banner to variables dashboard * removes update/create from UI --variables * adding depricating soon alert in codehinter when workspace vars are used * extra check to display the banner in preview of cdehinter * resolves constants for admin in client-side * resolves constants client-side and server side for queries * include grp permission for create/delete for org constants * resolves org constants in runJS and runPY * cleanup * updated the tab UI * fixed: constant pagination footer * fixes client side pagination bug * adds docs link * ui updates and fixes ui flickering on closing the drawer * refactor updating table data * adds error state to constant forms * remove the alert from runJS and runPY after 5s * added max length constraint for constant value * refactor: component form * delete only constant as per environment * remove unwanted logs * resolves constants in gds connection forms * resolve gds source options for testConnections, preview and runQuery * UI style fixes: banner * remove alert banner for runJS and runPY * input text color fixed * style fixes for disabled inputs * Edit constant- Until value is changed- CTA should be disabled * adds tooltip for table name and value * adds tooltip for disbaled input in edit drawer * updated the tooltip position * handle input height on type for large strings * added empty state * adds new badge for workspace constants * substring should be different for viewers * resolve constants in viewer * add support to resolve constants for widgets and queires in public apps * changed the api endpoint for org constant for env * bugfix: handle org constants for encrypted value from source options * add support to resolve app variables and constants in a single single * fixes: multiple multiline and same line variables * refactor * cleanup * remove encryption for ce * remove group permission from permission dashboard * text transform for badge * added padding for each table row * updated alert banner padding * updated alert banner padding * updates width for empty banner * refactor * adds tests for constant api * added validations for constant name * updates textare dynamic form * updates the resolvers for constants * removes decryptiong for source options in services * refactor - frontend * resolved conflicts * fixes: typo-1 ~ workspace variables alert * fixes: inconsistency in alert info icon * fixes: naming convention consistency * fixes: dark theme for confirm box * disable create button for add constant with same name, * adds error state for updating constant with same value * fixes: error message typo * fixes: error message typo * fixes position of tooltip * fixes frontend lint issues * update lock file * UI updates and typos * cleanup-refactor * checking error state before creating * should check all error states * resolving multiple constants and app variables in a single line * reafactore * fixed: depricating icon : codehinter preview box * remove log * remove repeated logic for deleteOrgEnvironmentConstant * only return status code for delete request for org constants * Add data-cy for workspace constants elements (#7251) * updates contants doc link --------- Co-authored-by: Ajith KV <ajith.jaban@gmail.com>
2023-08-14 08:58:51 +00:00
const [workspaceVariables, setWorkspaceVariables] = React.useState([]);
const [currentOrgEnvironmentConstants, setCurrentOrgEnvironmentConstants] = React.useState([]);
const { isEditorActive } = useEditorStore(
(state) => ({
isEditorActive: state?.isEditorActive,
}),
shallow
);
// if(schema.properties) todo add empty check
Move plugins to root (#1728) * feat: move plugins to root * modify tsconfig * add .gitignore * delete old plugins file * add parcel * docker compose volume mount * add gcs * add typescript to plugins folder * gcs to ts * add dynamodb * add elastic search * add firestore * add gsheets * add graphql * add mongodb * mssql * add mysql * add postgresql * add redis * add s3 * add slack * add stripe * remove plugin related packages from pkgjson * add lib folder * add gitignore * remove typescript generated files * remove generated file * remove generated files * add twilio * add dist to docker compose cache binding * add dist prefix * cleanup - 1 * delete dist * rename to index.ts + add jest config * add it.todo in tests * test fixes * test file changes * fix type checks * add @tooljet/plugins to server package json * esm vs commonjs bug, reduce got to 11.8.2 from 12.0.0 * docker file npm package version fix * add typesense * cleaup - 2 * add sendgrid * add lerna build and clean script for all packages + tsconfig * cleanup -3 * add plugins build step * add missing plugins build step in npm run build * add mssql, mysql & postgres as singleton classes * add db connection to cache only if datasourceId is available * client: add data source schema/manifest files * add query operations files * logic for wrapping form with schema * add script to create index file * add @tooljet/plugins to frontend folder * cleanup 1 -frontend * cleanup - 2 // frontend // data queries * add client and index to gitignore * update gitignore * fix lint & test * update ci * fix unit, e2e * cleanup -3 * fix test * fix tests * fix indent * try npm ci * fix tests * fix typo * fix * rename file for server entry * heroku fix * add main and types entry points in pkg json * move common to root * cleanup - 4: remove redundant $ sign prefix * cleanup - 4: remove redundant $ sign prefix * update options in-sync before DOM is painted * change type cloud to cloud storage * update readme * update ci.yml * update ci yml * add pkg-lock.json * rename index.ts to server.ts * update lock files * add server package.lock * remove unused import * revert commit: add minio * add root dep * import server.ts * remove plugins build step * add npm shrinkwrap * update version - plugins * add new version - 0.0.8 * upgrade version * move to symlinked package * add lock file * feat: add icon inside package * add plugin creation docs * Remove seed * move icons to plugins folder * install pg dep * add react to packages * add seed cmd * revert change * add plugins build in lint, e2e, unit * e2e, lint use npm ci * update dockerfile for plugins * try combining release with web * limit memory on release * try executing seed script post transpile * try executing seed from server directory * update seed execution * add minio * add correct type * add minio to pkg json * remove old file * fix provider key * add python installable + npm ^7.2.0 (#1752) * add python installable + npm ^7.2.0 * add py to prod file * pin npm version to 7.20.0 * pin npm version to 7.20.0 * split into multi stage build and remove python for buildx * copy plugins from buider stage * update dependencies * add freetds dependency * update server dockerfile * update client dockerfile * update dev dockerfile and compose file * fix entrypoint * fix server dev dockerfile * update docker-compose * remove npm install on root dir on docker build * fix heroku script * make lerna prod dependency to enable prod builds * remove redundant env setup Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com> Co-authored-by: navaneeth <navaneethpk@outlook.com>
2022-01-17 07:08:17 +00:00
React.useLayoutEffect(() => {
if (!isEditMode || isEmpty(options)) {
optionsChanged(schema?.defaults ?? {});
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
React.useEffect(() => {
if (isGDS) {
Feature - Workspace environment constants (#6810) * init-- * org constants: controllers, services, module and api for creating new constants * read operation: all constants from all envs and all constants from a env * update and delete operation * updated delete msg * encrypt constant value before saving and decrypt before sending back to controller * adds group permission for org constants and required migrations * adds ability to create constant * adds group permissions and fixes migrations * adds workspace constant permission to workspace settings UI * ToolJetUI - componenst, ref: ee/5c92dc9c03b73d7006562d71d639fe4eb1971dee * Org constants UI * UI updates: display constant value as per enviroment * Added client side pagination * groups without create/edit/delete permission can only view the the constants * group permission: Create and Edit - UI updates * create/update/date flow - UI * extending api support to create constant in multiple environments * UI - add constant for multiple envs * disable name input for update operation * UI fixes and updates * adds deprecating banner to variables dashboard * removes update/create from UI --variables * adding depricating soon alert in codehinter when workspace vars are used * extra check to display the banner in preview of cdehinter * resolves constants for admin in client-side * resolves constants client-side and server side for queries * include grp permission for create/delete for org constants * resolves org constants in runJS and runPY * cleanup * updated the tab UI * fixed: constant pagination footer * fixes client side pagination bug * adds docs link * ui updates and fixes ui flickering on closing the drawer * refactor updating table data * adds error state to constant forms * remove the alert from runJS and runPY after 5s * added max length constraint for constant value * refactor: component form * delete only constant as per environment * remove unwanted logs * resolves constants in gds connection forms * resolve gds source options for testConnections, preview and runQuery * UI style fixes: banner * remove alert banner for runJS and runPY * input text color fixed * style fixes for disabled inputs * Edit constant- Until value is changed- CTA should be disabled * adds tooltip for table name and value * adds tooltip for disbaled input in edit drawer * updated the tooltip position * handle input height on type for large strings * added empty state * adds new badge for workspace constants * substring should be different for viewers * resolve constants in viewer * add support to resolve constants for widgets and queires in public apps * changed the api endpoint for org constant for env * bugfix: handle org constants for encrypted value from source options * add support to resolve app variables and constants in a single single * fixes: multiple multiline and same line variables * refactor * cleanup * remove encryption for ce * remove group permission from permission dashboard * text transform for badge * added padding for each table row * updated alert banner padding * updated alert banner padding * updates width for empty banner * refactor * adds tests for constant api * added validations for constant name * updates textare dynamic form * updates the resolvers for constants * removes decryptiong for source options in services * refactor - frontend * resolved conflicts * fixes: typo-1 ~ workspace variables alert * fixes: inconsistency in alert info icon * fixes: naming convention consistency * fixes: dark theme for confirm box * disable create button for add constant with same name, * adds error state for updating constant with same value * fixes: error message typo * fixes: error message typo * fixes position of tooltip * fixes frontend lint issues * update lock file * UI updates and typos * cleanup-refactor * checking error state before creating * should check all error states * resolving multiple constants and app variables in a single line * reafactore * fixed: depricating icon : codehinter preview box * remove log * remove repeated logic for deleteOrgEnvironmentConstant * only return status code for delete request for org constants * Add data-cy for workspace constants elements (#7251) * updates contants doc link --------- Co-authored-by: Ajith KV <ajith.jaban@gmail.com>
2023-08-14 08:58:51 +00:00
orgEnvironmentConstantService.getConstantsFromEnvironment(currentAppEnvironmentId).then((data) => {
const constants = {};
data.constants.map((constant) => {
constants[constant.name] = constant.value;
});
setCurrentOrgEnvironmentConstants(constants);
});
orgEnvironmentVariableService.getVariables().then((data) => {
const client_variables = {};
const server_variables = {};
data.variables.map((variable) => {
if (variable.variable_type === 'server') {
server_variables[variable.variable_name] = 'HiddenEnvironmentVariable';
} else {
client_variables[variable.variable_name] = variable.value;
}
});
setWorkspaceVariables({ client: client_variables, server: server_variables });
});
}
return () => {
setWorkspaceVariables([]);
Feature - Workspace environment constants (#6810) * init-- * org constants: controllers, services, module and api for creating new constants * read operation: all constants from all envs and all constants from a env * update and delete operation * updated delete msg * encrypt constant value before saving and decrypt before sending back to controller * adds group permission for org constants and required migrations * adds ability to create constant * adds group permissions and fixes migrations * adds workspace constant permission to workspace settings UI * ToolJetUI - componenst, ref: ee/5c92dc9c03b73d7006562d71d639fe4eb1971dee * Org constants UI * UI updates: display constant value as per enviroment * Added client side pagination * groups without create/edit/delete permission can only view the the constants * group permission: Create and Edit - UI updates * create/update/date flow - UI * extending api support to create constant in multiple environments * UI - add constant for multiple envs * disable name input for update operation * UI fixes and updates * adds deprecating banner to variables dashboard * removes update/create from UI --variables * adding depricating soon alert in codehinter when workspace vars are used * extra check to display the banner in preview of cdehinter * resolves constants for admin in client-side * resolves constants client-side and server side for queries * include grp permission for create/delete for org constants * resolves org constants in runJS and runPY * cleanup * updated the tab UI * fixed: constant pagination footer * fixes client side pagination bug * adds docs link * ui updates and fixes ui flickering on closing the drawer * refactor updating table data * adds error state to constant forms * remove the alert from runJS and runPY after 5s * added max length constraint for constant value * refactor: component form * delete only constant as per environment * remove unwanted logs * resolves constants in gds connection forms * resolve gds source options for testConnections, preview and runQuery * UI style fixes: banner * remove alert banner for runJS and runPY * input text color fixed * style fixes for disabled inputs * Edit constant- Until value is changed- CTA should be disabled * adds tooltip for table name and value * adds tooltip for disbaled input in edit drawer * updated the tooltip position * handle input height on type for large strings * added empty state * adds new badge for workspace constants * substring should be different for viewers * resolve constants in viewer * add support to resolve constants for widgets and queires in public apps * changed the api endpoint for org constant for env * bugfix: handle org constants for encrypted value from source options * add support to resolve app variables and constants in a single single * fixes: multiple multiline and same line variables * refactor * cleanup * remove encryption for ce * remove group permission from permission dashboard * text transform for badge * added padding for each table row * updated alert banner padding * updated alert banner padding * updates width for empty banner * refactor * adds tests for constant api * added validations for constant name * updates textare dynamic form * updates the resolvers for constants * removes decryptiong for source options in services * refactor - frontend * resolved conflicts * fixes: typo-1 ~ workspace variables alert * fixes: inconsistency in alert info icon * fixes: naming convention consistency * fixes: dark theme for confirm box * disable create button for add constant with same name, * adds error state for updating constant with same value * fixes: error message typo * fixes: error message typo * fixes position of tooltip * fixes frontend lint issues * update lock file * UI updates and typos * cleanup-refactor * checking error state before creating * should check all error states * resolving multiple constants and app variables in a single line * reafactore * fixed: depricating icon : codehinter preview box * remove log * remove repeated logic for deleteOrgEnvironmentConstant * only return status code for delete request for org constants * Add data-cy for workspace constants elements (#7251) * updates contants doc link --------- Co-authored-by: Ajith KV <ajith.jaban@gmail.com>
2023-08-14 08:58:51 +00:00
setCurrentOrgEnvironmentConstants([]);
};
// eslint-disable-next-line react-hooks/exhaustive-deps
Feature - Workspace environment constants (#6810) * init-- * org constants: controllers, services, module and api for creating new constants * read operation: all constants from all envs and all constants from a env * update and delete operation * updated delete msg * encrypt constant value before saving and decrypt before sending back to controller * adds group permission for org constants and required migrations * adds ability to create constant * adds group permissions and fixes migrations * adds workspace constant permission to workspace settings UI * ToolJetUI - componenst, ref: ee/5c92dc9c03b73d7006562d71d639fe4eb1971dee * Org constants UI * UI updates: display constant value as per enviroment * Added client side pagination * groups without create/edit/delete permission can only view the the constants * group permission: Create and Edit - UI updates * create/update/date flow - UI * extending api support to create constant in multiple environments * UI - add constant for multiple envs * disable name input for update operation * UI fixes and updates * adds deprecating banner to variables dashboard * removes update/create from UI --variables * adding depricating soon alert in codehinter when workspace vars are used * extra check to display the banner in preview of cdehinter * resolves constants for admin in client-side * resolves constants client-side and server side for queries * include grp permission for create/delete for org constants * resolves org constants in runJS and runPY * cleanup * updated the tab UI * fixed: constant pagination footer * fixes client side pagination bug * adds docs link * ui updates and fixes ui flickering on closing the drawer * refactor updating table data * adds error state to constant forms * remove the alert from runJS and runPY after 5s * added max length constraint for constant value * refactor: component form * delete only constant as per environment * remove unwanted logs * resolves constants in gds connection forms * resolve gds source options for testConnections, preview and runQuery * UI style fixes: banner * remove alert banner for runJS and runPY * input text color fixed * style fixes for disabled inputs * Edit constant- Until value is changed- CTA should be disabled * adds tooltip for table name and value * adds tooltip for disbaled input in edit drawer * updated the tooltip position * handle input height on type for large strings * added empty state * adds new badge for workspace constants * substring should be different for viewers * resolve constants in viewer * add support to resolve constants for widgets and queires in public apps * changed the api endpoint for org constant for env * bugfix: handle org constants for encrypted value from source options * add support to resolve app variables and constants in a single single * fixes: multiple multiline and same line variables * refactor * cleanup * remove encryption for ce * remove group permission from permission dashboard * text transform for badge * added padding for each table row * updated alert banner padding * updated alert banner padding * updates width for empty banner * refactor * adds tests for constant api * added validations for constant name * updates textare dynamic form * updates the resolvers for constants * removes decryptiong for source options in services * refactor - frontend * resolved conflicts * fixes: typo-1 ~ workspace variables alert * fixes: inconsistency in alert info icon * fixes: naming convention consistency * fixes: dark theme for confirm box * disable create button for add constant with same name, * adds error state for updating constant with same value * fixes: error message typo * fixes: error message typo * fixes position of tooltip * fixes frontend lint issues * update lock file * UI updates and typos * cleanup-refactor * checking error state before creating * should check all error states * resolving multiple constants and app variables in a single line * reafactore * fixed: depricating icon : codehinter preview box * remove log * remove repeated logic for deleteOrgEnvironmentConstant * only return status code for delete request for org constants * Add data-cy for workspace constants elements (#7251) * updates contants doc link --------- Co-authored-by: Ajith KV <ajith.jaban@gmail.com>
2023-08-14 08:58:51 +00:00
}, [currentAppEnvironmentId]);
2022-12-27 14:40:33 +00:00
React.useEffect(() => {
const { properties } = schema;
if (!isEmpty(properties)) {
let fields = {};
let encrpytedFieldsProps = {};
const flipComponentDropdown = find(properties, ['type', 'dropdown-component-flip']);
2022-12-27 14:40:33 +00:00
if (flipComponentDropdown) {
const selector = options?.[flipComponentDropdown?.key]?.value;
fields = { ...flipComponentDropdown?.commonFields, ...properties[selector] };
} else {
fields = { ...properties };
}
2022-12-27 14:40:33 +00:00
2023-04-22 21:20:17 +00:00
Object.keys(fields).length > 0 &&
Object.keys(fields).map((key) => {
const { type, encrypted, key: propertyKey } = fields[key];
if ((type === 'password' || encrypted) && !(propertyKey in computedProps)) {
2023-04-22 21:20:17 +00:00
//Editable encrypted fields only if datasource doesn't exists
encrpytedFieldsProps[propertyKey] = {
2023-04-22 21:20:17 +00:00
disabled: !!selectedDataSource?.id,
};
}
});
setComputedProps({ ...computedProps, ...encrpytedFieldsProps });
2022-12-27 14:40:33 +00:00
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [options]);
const getElement = (type) => {
switch (type) {
case 'password':
case 'text':
return Input;
case 'textarea':
return Textarea;
case 'dropdown':
return Select;
case 'toggle':
return Toggle;
2023-04-21 10:05:51 +00:00
case 'checkbox':
return Checkbox;
case 'checkbox-group':
return CheckboxGroup;
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 b5ce5ed8890056974395750b6e07475390748e3b. * 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-22 20:39:57 +00:00
case 'tooljetdb-operations':
return ToolJetDbOperations;
case 'react-component-headers':
return Headers;
case 'react-component-oauth-authentication':
return OAuth;
case 'react-component-google-sheets':
return GoogleSheets;
case 'react-component-slack':
return Slack;
case 'codehinter':
return CodeHinter;
Feature: OpenApi import plugin (#2728) * Initialized OpenApi plugin * Added definition field to manifest file * Added an openapi parser * Implemented JSON/YAML resolver - Removed swagger parser lib - Added a field for choosing definition format type - Implemented a resolver for resolving $ref * Implemented a basic operations drop down from spec paths * Added params and body ui * Now, can view general parameters and servers * Added an option to override general params - Resolved a bug * Implemented basic openapi plugin - Added got lib - Tested basic queries * Added one more method * Resolved a common bug * Working on Parsing definition from datasource modal - Created new form component for openapi - Populated select array from security array * Added ui for authentication * Added bearer & basic plugin code * Resolved some ui issues of Apikeys auth option * Added apikey auth * Resolved an issue - Also replaced validate btn with auto validation - Now spec will be added to db from data-source modal * Added error text to show validation error * Now spec will load from props for query manager * Added some padding to operation description * Added ui for openapi oauth2 auth * Implemented oauth2 * Fixed a state issue with a temporary hack * Now we can show multiple same auth types * added the icon * Resolved a bug & improved multiple apikeys process * Resolved some realtime parsing error * Resolved a bug from options fn * Resolved PR changes * Updated documentation with brief details about the open API plugin * Removed unwanted package * Changed if-else to switch * Code changes * added setLoadingSpec fn to catch section * Solved typos and error in doc * Resolved dropdown issue * Resolved a bug * updated openapi icon
2022-04-26 08:44:12 +00:00
case 'react-component-openapi-validator':
return OpenApi;
case 'react-component-zendesk':
return Zendesk;
case 'columns':
return MultiColumn;
case 'filters':
return ConditionFilter;
case 'sorts':
return CondtionSort;
case 'react-component-salesforce':
return Salesforce;
default:
return <div>Type is invalid</div>;
}
};
const handleToggle = (controller) => {
if (controller) {
return !options?.[controller]?.value ? ' d-none' : '';
} else {
return '';
}
};
const getElementProps = ({
Move plugins to root (#1728) * feat: move plugins to root * modify tsconfig * add .gitignore * delete old plugins file * add parcel * docker compose volume mount * add gcs * add typescript to plugins folder * gcs to ts * add dynamodb * add elastic search * add firestore * add gsheets * add graphql * add mongodb * mssql * add mysql * add postgresql * add redis * add s3 * add slack * add stripe * remove plugin related packages from pkgjson * add lib folder * add gitignore * remove typescript generated files * remove generated file * remove generated files * add twilio * add dist to docker compose cache binding * add dist prefix * cleanup - 1 * delete dist * rename to index.ts + add jest config * add it.todo in tests * test fixes * test file changes * fix type checks * add @tooljet/plugins to server package json * esm vs commonjs bug, reduce got to 11.8.2 from 12.0.0 * docker file npm package version fix * add typesense * cleaup - 2 * add sendgrid * add lerna build and clean script for all packages + tsconfig * cleanup -3 * add plugins build step * add missing plugins build step in npm run build * add mssql, mysql & postgres as singleton classes * add db connection to cache only if datasourceId is available * client: add data source schema/manifest files * add query operations files * logic for wrapping form with schema * add script to create index file * add @tooljet/plugins to frontend folder * cleanup 1 -frontend * cleanup - 2 // frontend // data queries * add client and index to gitignore * update gitignore * fix lint & test * update ci * fix unit, e2e * cleanup -3 * fix test * fix tests * fix indent * try npm ci * fix tests * fix typo * fix * rename file for server entry * heroku fix * add main and types entry points in pkg json * move common to root * cleanup - 4: remove redundant $ sign prefix * cleanup - 4: remove redundant $ sign prefix * update options in-sync before DOM is painted * change type cloud to cloud storage * update readme * update ci.yml * update ci yml * add pkg-lock.json * rename index.ts to server.ts * update lock files * add server package.lock * remove unused import * revert commit: add minio * add root dep * import server.ts * remove plugins build step * add npm shrinkwrap * update version - plugins * add new version - 0.0.8 * upgrade version * move to symlinked package * add lock file * feat: add icon inside package * add plugin creation docs * Remove seed * move icons to plugins folder * install pg dep * add react to packages * add seed cmd * revert change * add plugins build in lint, e2e, unit * e2e, lint use npm ci * update dockerfile for plugins * try combining release with web * limit memory on release * try executing seed script post transpile * try executing seed from server directory * update seed execution * add minio * add correct type * add minio to pkg json * remove old file * fix provider key * add python installable + npm ^7.2.0 (#1752) * add python installable + npm ^7.2.0 * add py to prod file * pin npm version to 7.20.0 * pin npm version to 7.20.0 * split into multi stage build and remove python for buildx * copy plugins from buider stage * update dependencies * add freetds dependency * update server dockerfile * update client dockerfile * update dev dockerfile and compose file * fix entrypoint * fix server dev dockerfile * update docker-compose * remove npm install on root dir on docker build * fix heroku script * make lerna prod dependency to enable prod builds * remove redundant env setup Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com> Co-authored-by: navaneeth <navaneethpk@outlook.com>
2022-01-17 07:08:17 +00:00
key,
list,
rows = 5,
helpText,
description,
type,
placeholder = '',
mode = 'sql',
lineNumbers = true,
initialValue,
height = 'auto',
[improvement] Query panel redesign (#1947) * query panel headers styles * create query button style update * create query button style update * create query button style update: mixins * querypanel header nav-links updated * querypanel header buttons * restapi: url hinter styles * fixes querypane header width, undo prev styles applied * querypanel header icons margin fix * restapi: header tab * restapi: params tab * restapi: body tab * base url style fixed * added alert component to @/_ui * adds margin top to query-panel tabs * bumped font weight of preview * on hover query style updated * selected query style update and along with dark themed * adds new searchbox component, added search queries * fixes query panel query lists icons margin * query selected hover bg * back icon should not be render if callback is a function * airtable: queries redesigned * stripe: queries redesigned * fixed query-pane header responsiveness * fixes tab title typo * undp/redo select datasource only when mode='create' * removes comments * refactor restapi url codehinter styles * fixes white spaces in query pane and query pane header * minor updates for restapi query options styles * removes tool-tip for lens svg icon for search: query-pane header * adds button loading spinner with primary color * fixes hover bg color for queries * update: query hover bg color to lighter tint * update query list icons: trash and play svgs * adds icons to the selection component * fixes tabs alignments restapi * fixes codehonter text margin: restapi url * fixes advanced-options-container margintop * new UI query: dynamodb * new UI query: elasticsearch * new UI query: firestore * new UI query: mongodb * new UI query: mysql * new UI query: psql * new UI query: typesenseapi * new UI query: gsheet * new UI query: sendgrid * new UI query: twillio * new UI query: gcs * new UI query: minio * new UI query: aws * update query bg color and hover bg color * fixes run query icon for dark theme * fixes input query title text alignment * update query header title * adds search queries placeholder and add icon when search box is displayed * updated No results query text * undo/redo rest-api tabs: fixes whote spaces * undo/redo: rest-api tabs conde hinter placeholder paddinleft * adding new queries when search box component is mounted:fix * fixes creating a new query after filtering queries * fixes dark theme for select search components * reverts query pane header search box with add icon * fixes input left margin * fixes bottom padding rest api tabs * fixes toggle button:not selected in dark theme * fixes typos * fixes preview button spinner size * undo/redo: query-trash-icon.svg for queries and trash.svg for components * query icons badge bg update[options] * icon badge fix * move static styles to theme.scss * restapi: url field height increment * fixes query name when adding a new query with filtered querylist * fixes alignment issues of the query header icon * revert back to 32px code hinter height * adds apdding to code mirror line * updates to react-select * remove component unmounts and mounts side effect
2022-02-02 16:59:57 +00:00
width,
ignoreBraces = false,
[improvement] Query panel redesign (#1947) * query panel headers styles * create query button style update * create query button style update * create query button style update: mixins * querypanel header nav-links updated * querypanel header buttons * restapi: url hinter styles * fixes querypane header width, undo prev styles applied * querypanel header icons margin fix * restapi: header tab * restapi: params tab * restapi: body tab * base url style fixed * added alert component to @/_ui * adds margin top to query-panel tabs * bumped font weight of preview * on hover query style updated * selected query style update and along with dark themed * adds new searchbox component, added search queries * fixes query panel query lists icons margin * query selected hover bg * back icon should not be render if callback is a function * airtable: queries redesigned * stripe: queries redesigned * fixed query-pane header responsiveness * fixes tab title typo * undp/redo select datasource only when mode='create' * removes comments * refactor restapi url codehinter styles * fixes white spaces in query pane and query pane header * minor updates for restapi query options styles * removes tool-tip for lens svg icon for search: query-pane header * adds button loading spinner with primary color * fixes hover bg color for queries * update: query hover bg color to lighter tint * update query list icons: trash and play svgs * adds icons to the selection component * fixes tabs alignments restapi * fixes codehonter text margin: restapi url * fixes advanced-options-container margintop * new UI query: dynamodb * new UI query: elasticsearch * new UI query: firestore * new UI query: mongodb * new UI query: mysql * new UI query: psql * new UI query: typesenseapi * new UI query: gsheet * new UI query: sendgrid * new UI query: twillio * new UI query: gcs * new UI query: minio * new UI query: aws * update query bg color and hover bg color * fixes run query icon for dark theme * fixes input query title text alignment * update query header title * adds search queries placeholder and add icon when search box is displayed * updated No results query text * undo/redo rest-api tabs: fixes whote spaces * undo/redo: rest-api tabs conde hinter placeholder paddinleft * adding new queries when search box component is mounted:fix * fixes creating a new query after filtering queries * fixes dark theme for select search components * reverts query pane header search box with add icon * fixes input left margin * fixes bottom padding rest api tabs * fixes toggle button:not selected in dark theme * fixes typos * fixes preview button spinner size * undo/redo: query-trash-icon.svg for queries and trash.svg for components * query icons badge bg update[options] * icon badge fix * move static styles to theme.scss * restapi: url field height increment * fixes query name when adding a new query with filtered querylist * fixes alignment issues of the query header icon * revert back to 32px code hinter height * adds apdding to code mirror line * updates to react-select * remove component unmounts and mounts side effect
2022-02-02 16:59:57 +00:00
className,
controller,
encrypted,
editorType = 'basic',
placeholders = {},
disabled = false,
}) => {
const source = schema?.source?.kind;
const darkMode = localStorage.getItem('darkMode') === 'true';
if (!options) return;
switch (type) {
case 'password':
case 'text':
case 'textarea': {
const useEncrypted =
(options?.[key]?.encrypted !== undefined ? options?.[key].encrypted : encrypted) || type === 'password';
return {
type,
placeholder: useEncrypted ? '**************' : description,
className: `form-control${handleToggle(controller)}`,
value: options?.[key]?.value || '',
Move plugins to root (#1728) * feat: move plugins to root * modify tsconfig * add .gitignore * delete old plugins file * add parcel * docker compose volume mount * add gcs * add typescript to plugins folder * gcs to ts * add dynamodb * add elastic search * add firestore * add gsheets * add graphql * add mongodb * mssql * add mysql * add postgresql * add redis * add s3 * add slack * add stripe * remove plugin related packages from pkgjson * add lib folder * add gitignore * remove typescript generated files * remove generated file * remove generated files * add twilio * add dist to docker compose cache binding * add dist prefix * cleanup - 1 * delete dist * rename to index.ts + add jest config * add it.todo in tests * test fixes * test file changes * fix type checks * add @tooljet/plugins to server package json * esm vs commonjs bug, reduce got to 11.8.2 from 12.0.0 * docker file npm package version fix * add typesense * cleaup - 2 * add sendgrid * add lerna build and clean script for all packages + tsconfig * cleanup -3 * add plugins build step * add missing plugins build step in npm run build * add mssql, mysql & postgres as singleton classes * add db connection to cache only if datasourceId is available * client: add data source schema/manifest files * add query operations files * logic for wrapping form with schema * add script to create index file * add @tooljet/plugins to frontend folder * cleanup 1 -frontend * cleanup - 2 // frontend // data queries * add client and index to gitignore * update gitignore * fix lint & test * update ci * fix unit, e2e * cleanup -3 * fix test * fix tests * fix indent * try npm ci * fix tests * fix typo * fix * rename file for server entry * heroku fix * add main and types entry points in pkg json * move common to root * cleanup - 4: remove redundant $ sign prefix * cleanup - 4: remove redundant $ sign prefix * update options in-sync before DOM is painted * change type cloud to cloud storage * update readme * update ci.yml * update ci yml * add pkg-lock.json * rename index.ts to server.ts * update lock files * add server package.lock * remove unused import * revert commit: add minio * add root dep * import server.ts * remove plugins build step * add npm shrinkwrap * update version - plugins * add new version - 0.0.8 * upgrade version * move to symlinked package * add lock file * feat: add icon inside package * add plugin creation docs * Remove seed * move icons to plugins folder * install pg dep * add react to packages * add seed cmd * revert change * add plugins build in lint, e2e, unit * e2e, lint use npm ci * update dockerfile for plugins * try combining release with web * limit memory on release * try executing seed script post transpile * try executing seed from server directory * update seed execution * add minio * add correct type * add minio to pkg json * remove old file * fix provider key * add python installable + npm ^7.2.0 (#1752) * add python installable + npm ^7.2.0 * add py to prod file * pin npm version to 7.20.0 * pin npm version to 7.20.0 * split into multi stage build and remove python for buildx * copy plugins from buider stage * update dependencies * add freetds dependency * update server dockerfile * update client dockerfile * update dev dockerfile and compose file * fix entrypoint * fix server dev dockerfile * update docker-compose * remove npm install on root dir on docker build * fix heroku script * make lerna prod dependency to enable prod builds * remove redundant env setup Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com> Co-authored-by: navaneeth <navaneethpk@outlook.com>
2022-01-17 07:08:17 +00:00
...(type === 'textarea' && { rows: rows }),
...(helpText && { helpText }),
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 12:31:48 +00:00
onChange: (e) => optionchanged(key, e.target.value, true), //shouldNotAutoSave is true because autosave should occur during onBlur, not after each character change (in optionchanged).
onblur: () => onBlur(),
isGDS,
workspaceVariables,
Feature - Workspace environment constants (#6810) * init-- * org constants: controllers, services, module and api for creating new constants * read operation: all constants from all envs and all constants from a env * update and delete operation * updated delete msg * encrypt constant value before saving and decrypt before sending back to controller * adds group permission for org constants and required migrations * adds ability to create constant * adds group permissions and fixes migrations * adds workspace constant permission to workspace settings UI * ToolJetUI - componenst, ref: ee/5c92dc9c03b73d7006562d71d639fe4eb1971dee * Org constants UI * UI updates: display constant value as per enviroment * Added client side pagination * groups without create/edit/delete permission can only view the the constants * group permission: Create and Edit - UI updates * create/update/date flow - UI * extending api support to create constant in multiple environments * UI - add constant for multiple envs * disable name input for update operation * UI fixes and updates * adds deprecating banner to variables dashboard * removes update/create from UI --variables * adding depricating soon alert in codehinter when workspace vars are used * extra check to display the banner in preview of cdehinter * resolves constants for admin in client-side * resolves constants client-side and server side for queries * include grp permission for create/delete for org constants * resolves org constants in runJS and runPY * cleanup * updated the tab UI * fixed: constant pagination footer * fixes client side pagination bug * adds docs link * ui updates and fixes ui flickering on closing the drawer * refactor updating table data * adds error state to constant forms * remove the alert from runJS and runPY after 5s * added max length constraint for constant value * refactor: component form * delete only constant as per environment * remove unwanted logs * resolves constants in gds connection forms * resolve gds source options for testConnections, preview and runQuery * UI style fixes: banner * remove alert banner for runJS and runPY * input text color fixed * style fixes for disabled inputs * Edit constant- Until value is changed- CTA should be disabled * adds tooltip for table name and value * adds tooltip for disbaled input in edit drawer * updated the tooltip position * handle input height on type for large strings * added empty state * adds new badge for workspace constants * substring should be different for viewers * resolve constants in viewer * add support to resolve constants for widgets and queires in public apps * changed the api endpoint for org constant for env * bugfix: handle org constants for encrypted value from source options * add support to resolve app variables and constants in a single single * fixes: multiple multiline and same line variables * refactor * cleanup * remove encryption for ce * remove group permission from permission dashboard * text transform for badge * added padding for each table row * updated alert banner padding * updated alert banner padding * updates width for empty banner * refactor * adds tests for constant api * added validations for constant name * updates textare dynamic form * updates the resolvers for constants * removes decryptiong for source options in services * refactor - frontend * resolved conflicts * fixes: typo-1 ~ workspace variables alert * fixes: inconsistency in alert info icon * fixes: naming convention consistency * fixes: dark theme for confirm box * disable create button for add constant with same name, * adds error state for updating constant with same value * fixes: error message typo * fixes: error message typo * fixes position of tooltip * fixes frontend lint issues * update lock file * UI updates and typos * cleanup-refactor * checking error state before creating * should check all error states * resolving multiple constants and app variables in a single line * reafactore * fixed: depricating icon : codehinter preview box * remove log * remove repeated logic for deleteOrgEnvironmentConstant * only return status code for delete request for org constants * Add data-cy for workspace constants elements (#7251) * updates contants doc link --------- Co-authored-by: Ajith KV <ajith.jaban@gmail.com>
2023-08-14 08:58:51 +00:00
workspaceConstants: currentOrgEnvironmentConstants,
encrypted: useEncrypted,
};
}
case 'toggle':
return {
defaultChecked: options?.[key],
checked: options?.[key]?.value,
Move plugins to root (#1728) * feat: move plugins to root * modify tsconfig * add .gitignore * delete old plugins file * add parcel * docker compose volume mount * add gcs * add typescript to plugins folder * gcs to ts * add dynamodb * add elastic search * add firestore * add gsheets * add graphql * add mongodb * mssql * add mysql * add postgresql * add redis * add s3 * add slack * add stripe * remove plugin related packages from pkgjson * add lib folder * add gitignore * remove typescript generated files * remove generated file * remove generated files * add twilio * add dist to docker compose cache binding * add dist prefix * cleanup - 1 * delete dist * rename to index.ts + add jest config * add it.todo in tests * test fixes * test file changes * fix type checks * add @tooljet/plugins to server package json * esm vs commonjs bug, reduce got to 11.8.2 from 12.0.0 * docker file npm package version fix * add typesense * cleaup - 2 * add sendgrid * add lerna build and clean script for all packages + tsconfig * cleanup -3 * add plugins build step * add missing plugins build step in npm run build * add mssql, mysql & postgres as singleton classes * add db connection to cache only if datasourceId is available * client: add data source schema/manifest files * add query operations files * logic for wrapping form with schema * add script to create index file * add @tooljet/plugins to frontend folder * cleanup 1 -frontend * cleanup - 2 // frontend // data queries * add client and index to gitignore * update gitignore * fix lint & test * update ci * fix unit, e2e * cleanup -3 * fix test * fix tests * fix indent * try npm ci * fix tests * fix typo * fix * rename file for server entry * heroku fix * add main and types entry points in pkg json * move common to root * cleanup - 4: remove redundant $ sign prefix * cleanup - 4: remove redundant $ sign prefix * update options in-sync before DOM is painted * change type cloud to cloud storage * update readme * update ci.yml * update ci yml * add pkg-lock.json * rename index.ts to server.ts * update lock files * add server package.lock * remove unused import * revert commit: add minio * add root dep * import server.ts * remove plugins build step * add npm shrinkwrap * update version - plugins * add new version - 0.0.8 * upgrade version * move to symlinked package * add lock file * feat: add icon inside package * add plugin creation docs * Remove seed * move icons to plugins folder * install pg dep * add react to packages * add seed cmd * revert change * add plugins build in lint, e2e, unit * e2e, lint use npm ci * update dockerfile for plugins * try combining release with web * limit memory on release * try executing seed script post transpile * try executing seed from server directory * update seed execution * add minio * add correct type * add minio to pkg json * remove old file * fix provider key * add python installable + npm ^7.2.0 (#1752) * add python installable + npm ^7.2.0 * add py to prod file * pin npm version to 7.20.0 * pin npm version to 7.20.0 * split into multi stage build and remove python for buildx * copy plugins from buider stage * update dependencies * add freetds dependency * update server dockerfile * update client dockerfile * update dev dockerfile and compose file * fix entrypoint * fix server dev dockerfile * update docker-compose * remove npm install on root dir on docker build * fix heroku script * make lerna prod dependency to enable prod builds * remove redundant env setup Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com> Co-authored-by: navaneeth <navaneethpk@outlook.com>
2022-01-17 07:08:17 +00:00
onChange: (e) => optionchanged(key, e.target.checked),
};
case 'dropdown':
case 'dropdown-component-flip':
return {
Move plugins to root (#1728) * feat: move plugins to root * modify tsconfig * add .gitignore * delete old plugins file * add parcel * docker compose volume mount * add gcs * add typescript to plugins folder * gcs to ts * add dynamodb * add elastic search * add firestore * add gsheets * add graphql * add mongodb * mssql * add mysql * add postgresql * add redis * add s3 * add slack * add stripe * remove plugin related packages from pkgjson * add lib folder * add gitignore * remove typescript generated files * remove generated file * remove generated files * add twilio * add dist to docker compose cache binding * add dist prefix * cleanup - 1 * delete dist * rename to index.ts + add jest config * add it.todo in tests * test fixes * test file changes * fix type checks * add @tooljet/plugins to server package json * esm vs commonjs bug, reduce got to 11.8.2 from 12.0.0 * docker file npm package version fix * add typesense * cleaup - 2 * add sendgrid * add lerna build and clean script for all packages + tsconfig * cleanup -3 * add plugins build step * add missing plugins build step in npm run build * add mssql, mysql & postgres as singleton classes * add db connection to cache only if datasourceId is available * client: add data source schema/manifest files * add query operations files * logic for wrapping form with schema * add script to create index file * add @tooljet/plugins to frontend folder * cleanup 1 -frontend * cleanup - 2 // frontend // data queries * add client and index to gitignore * update gitignore * fix lint & test * update ci * fix unit, e2e * cleanup -3 * fix test * fix tests * fix indent * try npm ci * fix tests * fix typo * fix * rename file for server entry * heroku fix * add main and types entry points in pkg json * move common to root * cleanup - 4: remove redundant $ sign prefix * cleanup - 4: remove redundant $ sign prefix * update options in-sync before DOM is painted * change type cloud to cloud storage * update readme * update ci.yml * update ci yml * add pkg-lock.json * rename index.ts to server.ts * update lock files * add server package.lock * remove unused import * revert commit: add minio * add root dep * import server.ts * remove plugins build step * add npm shrinkwrap * update version - plugins * add new version - 0.0.8 * upgrade version * move to symlinked package * add lock file * feat: add icon inside package * add plugin creation docs * Remove seed * move icons to plugins folder * install pg dep * add react to packages * add seed cmd * revert change * add plugins build in lint, e2e, unit * e2e, lint use npm ci * update dockerfile for plugins * try combining release with web * limit memory on release * try executing seed script post transpile * try executing seed from server directory * update seed execution * add minio * add correct type * add minio to pkg json * remove old file * fix provider key * add python installable + npm ^7.2.0 (#1752) * add python installable + npm ^7.2.0 * add py to prod file * pin npm version to 7.20.0 * pin npm version to 7.20.0 * split into multi stage build and remove python for buildx * copy plugins from buider stage * update dependencies * add freetds dependency * update server dockerfile * update client dockerfile * update dev dockerfile and compose file * fix entrypoint * fix server dev dockerfile * update docker-compose * remove npm install on root dir on docker build * fix heroku script * make lerna prod dependency to enable prod builds * remove redundant env setup Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com> Co-authored-by: navaneeth <navaneethpk@outlook.com>
2022-01-17 07:08:17 +00:00
options: list,
value: options?.[key]?.value || options?.[key],
Move plugins to root (#1728) * feat: move plugins to root * modify tsconfig * add .gitignore * delete old plugins file * add parcel * docker compose volume mount * add gcs * add typescript to plugins folder * gcs to ts * add dynamodb * add elastic search * add firestore * add gsheets * add graphql * add mongodb * mssql * add mysql * add postgresql * add redis * add s3 * add slack * add stripe * remove plugin related packages from pkgjson * add lib folder * add gitignore * remove typescript generated files * remove generated file * remove generated files * add twilio * add dist to docker compose cache binding * add dist prefix * cleanup - 1 * delete dist * rename to index.ts + add jest config * add it.todo in tests * test fixes * test file changes * fix type checks * add @tooljet/plugins to server package json * esm vs commonjs bug, reduce got to 11.8.2 from 12.0.0 * docker file npm package version fix * add typesense * cleaup - 2 * add sendgrid * add lerna build and clean script for all packages + tsconfig * cleanup -3 * add plugins build step * add missing plugins build step in npm run build * add mssql, mysql & postgres as singleton classes * add db connection to cache only if datasourceId is available * client: add data source schema/manifest files * add query operations files * logic for wrapping form with schema * add script to create index file * add @tooljet/plugins to frontend folder * cleanup 1 -frontend * cleanup - 2 // frontend // data queries * add client and index to gitignore * update gitignore * fix lint & test * update ci * fix unit, e2e * cleanup -3 * fix test * fix tests * fix indent * try npm ci * fix tests * fix typo * fix * rename file for server entry * heroku fix * add main and types entry points in pkg json * move common to root * cleanup - 4: remove redundant $ sign prefix * cleanup - 4: remove redundant $ sign prefix * update options in-sync before DOM is painted * change type cloud to cloud storage * update readme * update ci.yml * update ci yml * add pkg-lock.json * rename index.ts to server.ts * update lock files * add server package.lock * remove unused import * revert commit: add minio * add root dep * import server.ts * remove plugins build step * add npm shrinkwrap * update version - plugins * add new version - 0.0.8 * upgrade version * move to symlinked package * add lock file * feat: add icon inside package * add plugin creation docs * Remove seed * move icons to plugins folder * install pg dep * add react to packages * add seed cmd * revert change * add plugins build in lint, e2e, unit * e2e, lint use npm ci * update dockerfile for plugins * try combining release with web * limit memory on release * try executing seed script post transpile * try executing seed from server directory * update seed execution * add minio * add correct type * add minio to pkg json * remove old file * fix provider key * add python installable + npm ^7.2.0 (#1752) * add python installable + npm ^7.2.0 * add py to prod file * pin npm version to 7.20.0 * pin npm version to 7.20.0 * split into multi stage build and remove python for buildx * copy plugins from buider stage * update dependencies * add freetds dependency * update server dockerfile * update client dockerfile * update dev dockerfile and compose file * fix entrypoint * fix server dev dockerfile * update docker-compose * remove npm install on root dir on docker build * fix heroku script * make lerna prod dependency to enable prod builds * remove redundant env setup Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com> Co-authored-by: navaneeth <navaneethpk@outlook.com>
2022-01-17 07:08:17 +00:00
onChange: (value) => optionchanged(key, value),
width: width || '100%',
useMenuPortal: queryName ? true : false,
[ 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 13:08:51 +00:00
styles: computeSelectStyles ? computeSelectStyles('100%') : {},
useCustomStyles: computeSelectStyles ? true : false,
encrypted: options?.[key]?.encrypted,
};
2023-04-21 10:05:51 +00:00
case 'checkbox-group':
return {
options: list,
2023-04-25 09:38:38 +00:00
values: options?.[key] ?? [],
onChange: (value) => {
optionchanged(key, [...value]);
},
2023-04-21 10:05:51 +00:00
};
case 'react-component-headers': {
let isRenderedAsQueryEditor;
if (isGDS) {
isRenderedAsQueryEditor = false;
} else {
isRenderedAsQueryEditor = !isGDS && currentState != null;
}
return {
Move plugins to root (#1728) * feat: move plugins to root * modify tsconfig * add .gitignore * delete old plugins file * add parcel * docker compose volume mount * add gcs * add typescript to plugins folder * gcs to ts * add dynamodb * add elastic search * add firestore * add gsheets * add graphql * add mongodb * mssql * add mysql * add postgresql * add redis * add s3 * add slack * add stripe * remove plugin related packages from pkgjson * add lib folder * add gitignore * remove typescript generated files * remove generated file * remove generated files * add twilio * add dist to docker compose cache binding * add dist prefix * cleanup - 1 * delete dist * rename to index.ts + add jest config * add it.todo in tests * test fixes * test file changes * fix type checks * add @tooljet/plugins to server package json * esm vs commonjs bug, reduce got to 11.8.2 from 12.0.0 * docker file npm package version fix * add typesense * cleaup - 2 * add sendgrid * add lerna build and clean script for all packages + tsconfig * cleanup -3 * add plugins build step * add missing plugins build step in npm run build * add mssql, mysql & postgres as singleton classes * add db connection to cache only if datasourceId is available * client: add data source schema/manifest files * add query operations files * logic for wrapping form with schema * add script to create index file * add @tooljet/plugins to frontend folder * cleanup 1 -frontend * cleanup - 2 // frontend // data queries * add client and index to gitignore * update gitignore * fix lint & test * update ci * fix unit, e2e * cleanup -3 * fix test * fix tests * fix indent * try npm ci * fix tests * fix typo * fix * rename file for server entry * heroku fix * add main and types entry points in pkg json * move common to root * cleanup - 4: remove redundant $ sign prefix * cleanup - 4: remove redundant $ sign prefix * update options in-sync before DOM is painted * change type cloud to cloud storage * update readme * update ci.yml * update ci yml * add pkg-lock.json * rename index.ts to server.ts * update lock files * add server package.lock * remove unused import * revert commit: add minio * add root dep * import server.ts * remove plugins build step * add npm shrinkwrap * update version - plugins * add new version - 0.0.8 * upgrade version * move to symlinked package * add lock file * feat: add icon inside package * add plugin creation docs * Remove seed * move icons to plugins folder * install pg dep * add react to packages * add seed cmd * revert change * add plugins build in lint, e2e, unit * e2e, lint use npm ci * update dockerfile for plugins * try combining release with web * limit memory on release * try executing seed script post transpile * try executing seed from server directory * update seed execution * add minio * add correct type * add minio to pkg json * remove old file * fix provider key * add python installable + npm ^7.2.0 (#1752) * add python installable + npm ^7.2.0 * add py to prod file * pin npm version to 7.20.0 * pin npm version to 7.20.0 * split into multi stage build and remove python for buildx * copy plugins from buider stage * update dependencies * add freetds dependency * update server dockerfile * update client dockerfile * update dev dockerfile and compose file * fix entrypoint * fix server dev dockerfile * update docker-compose * remove npm install on root dir on docker build * fix heroku script * make lerna prod dependency to enable prod builds * remove redundant env setup Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com> Co-authored-by: navaneeth <navaneethpk@outlook.com>
2022-01-17 07:08:17 +00:00
getter: key,
options: isRenderedAsQueryEditor
? options?.[key] ?? schema?.defaults?.[key]
: options?.[key]?.value ?? schema?.defaults?.[key]?.value,
optionchanged,
currentState,
isRenderedAsQueryEditor,
workspaceConstants: currentOrgEnvironmentConstants,
encrypted: options?.[key]?.encrypted,
};
}
case 'react-component-oauth-authentication':
return {
isGrpc: source === 'grpc',
grant_type: options?.grant_type?.value,
auth_type: options?.auth_type?.value,
add_token_to: options?.add_token_to?.value,
header_prefix: options?.header_prefix?.value,
access_token_url: options?.access_token_url?.value,
access_token_custom_headers: options?.access_token_custom_headers?.value,
client_id: options?.client_id?.value,
client_secret: options?.client_secret?.value,
client_auth: options?.client_auth?.value,
scopes: options?.scopes?.value,
username: options?.username?.value,
password: options?.password?.value,
grpc_apiKey_key: options?.grpc_apikey_key?.value,
grpc_apiKey_value: options?.grpc_apikey_value?.value,
bearer_token: options?.bearer_token?.value,
auth_url: options?.auth_url?.value,
auth_key: options?.auth_key?.value,
custom_auth_params: options?.custom_auth_params?.value,
custom_query_params: options?.custom_query_params?.value,
multiple_auth_enabled: options?.multiple_auth_enabled?.value,
optionchanged,
workspaceConstants: currentOrgEnvironmentConstants,
options,
optionsChanged,
selectedDataSource,
};
case 'react-component-google-sheets':
case 'react-component-slack':
case 'react-component-zendesk':
case 'react-component-salesforce':
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 b5ce5ed8890056974395750b6e07475390748e3b. * 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-22 20:39:57 +00:00
return {
optionchanged,
createDataSource,
options,
isSaving,
selectedDataSource,
workspaceConstants: currentOrgEnvironmentConstants,
optionsChanged,
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 b5ce5ed8890056974395750b6e07475390748e3b. * 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-22 20:39:57 +00:00
};
case 'tooljetdb-operations':
return {
currentState,
optionchanged,
createDataSource,
options,
isSaving,
selectedDataSource,
darkMode,
};
case 'codehinter':
return {
type: editorType,
currentState,
Move plugins to root (#1728) * feat: move plugins to root * modify tsconfig * add .gitignore * delete old plugins file * add parcel * docker compose volume mount * add gcs * add typescript to plugins folder * gcs to ts * add dynamodb * add elastic search * add firestore * add gsheets * add graphql * add mongodb * mssql * add mysql * add postgresql * add redis * add s3 * add slack * add stripe * remove plugin related packages from pkgjson * add lib folder * add gitignore * remove typescript generated files * remove generated file * remove generated files * add twilio * add dist to docker compose cache binding * add dist prefix * cleanup - 1 * delete dist * rename to index.ts + add jest config * add it.todo in tests * test fixes * test file changes * fix type checks * add @tooljet/plugins to server package json * esm vs commonjs bug, reduce got to 11.8.2 from 12.0.0 * docker file npm package version fix * add typesense * cleaup - 2 * add sendgrid * add lerna build and clean script for all packages + tsconfig * cleanup -3 * add plugins build step * add missing plugins build step in npm run build * add mssql, mysql & postgres as singleton classes * add db connection to cache only if datasourceId is available * client: add data source schema/manifest files * add query operations files * logic for wrapping form with schema * add script to create index file * add @tooljet/plugins to frontend folder * cleanup 1 -frontend * cleanup - 2 // frontend // data queries * add client and index to gitignore * update gitignore * fix lint & test * update ci * fix unit, e2e * cleanup -3 * fix test * fix tests * fix indent * try npm ci * fix tests * fix typo * fix * rename file for server entry * heroku fix * add main and types entry points in pkg json * move common to root * cleanup - 4: remove redundant $ sign prefix * cleanup - 4: remove redundant $ sign prefix * update options in-sync before DOM is painted * change type cloud to cloud storage * update readme * update ci.yml * update ci yml * add pkg-lock.json * rename index.ts to server.ts * update lock files * add server package.lock * remove unused import * revert commit: add minio * add root dep * import server.ts * remove plugins build step * add npm shrinkwrap * update version - plugins * add new version - 0.0.8 * upgrade version * move to symlinked package * add lock file * feat: add icon inside package * add plugin creation docs * Remove seed * move icons to plugins folder * install pg dep * add react to packages * add seed cmd * revert change * add plugins build in lint, e2e, unit * e2e, lint use npm ci * update dockerfile for plugins * try combining release with web * limit memory on release * try executing seed script post transpile * try executing seed from server directory * update seed execution * add minio * add correct type * add minio to pkg json * remove old file * fix provider key * add python installable + npm ^7.2.0 (#1752) * add python installable + npm ^7.2.0 * add py to prod file * pin npm version to 7.20.0 * pin npm version to 7.20.0 * split into multi stage build and remove python for buildx * copy plugins from buider stage * update dependencies * add freetds dependency * update server dockerfile * update client dockerfile * update dev dockerfile and compose file * fix entrypoint * fix server dev dockerfile * update docker-compose * remove npm install on root dir on docker build * fix heroku script * make lerna prod dependency to enable prod builds * remove redundant env setup Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com> Co-authored-by: navaneeth <navaneethpk@outlook.com>
2022-01-17 07:08:17 +00:00
initialValue: options[key]
? typeof options[key] === 'string'
? options[key]
: JSON.stringify(options[key])
: initialValue,
[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 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> * Revert "Merging main to codehinter feat branch (#8848)" This reverts commit 5580d5582256d4ac93ca8fd1e2a40a9f7dc7bfe4. * 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-02-29 19:22:58 +00:00
lang: mode,
lineNumbers,
[improvement] Query panel redesign (#1947) * query panel headers styles * create query button style update * create query button style update * create query button style update: mixins * querypanel header nav-links updated * querypanel header buttons * restapi: url hinter styles * fixes querypane header width, undo prev styles applied * querypanel header icons margin fix * restapi: header tab * restapi: params tab * restapi: body tab * base url style fixed * added alert component to @/_ui * adds margin top to query-panel tabs * bumped font weight of preview * on hover query style updated * selected query style update and along with dark themed * adds new searchbox component, added search queries * fixes query panel query lists icons margin * query selected hover bg * back icon should not be render if callback is a function * airtable: queries redesigned * stripe: queries redesigned * fixed query-pane header responsiveness * fixes tab title typo * undp/redo select datasource only when mode='create' * removes comments * refactor restapi url codehinter styles * fixes white spaces in query pane and query pane header * minor updates for restapi query options styles * removes tool-tip for lens svg icon for search: query-pane header * adds button loading spinner with primary color * fixes hover bg color for queries * update: query hover bg color to lighter tint * update query list icons: trash and play svgs * adds icons to the selection component * fixes tabs alignments restapi * fixes codehonter text margin: restapi url * fixes advanced-options-container margintop * new UI query: dynamodb * new UI query: elasticsearch * new UI query: firestore * new UI query: mongodb * new UI query: mysql * new UI query: psql * new UI query: typesenseapi * new UI query: gsheet * new UI query: sendgrid * new UI query: twillio * new UI query: gcs * new UI query: minio * new UI query: aws * update query bg color and hover bg color * fixes run query icon for dark theme * fixes input query title text alignment * update query header title * adds search queries placeholder and add icon when search box is displayed * updated No results query text * undo/redo rest-api tabs: fixes whote spaces * undo/redo: rest-api tabs conde hinter placeholder paddinleft * adding new queries when search box component is mounted:fix * fixes creating a new query after filtering queries * fixes dark theme for select search components * reverts query pane header search box with add icon * fixes input left margin * fixes bottom padding rest api tabs * fixes toggle button:not selected in dark theme * fixes typos * fixes preview button spinner size * undo/redo: query-trash-icon.svg for queries and trash.svg for components * query icons badge bg update[options] * icon badge fix * move static styles to theme.scss * restapi: url field height increment * fixes query name when adding a new query with filtered querylist * fixes alignment issues of the query header icon * revert back to 32px code hinter height * adds apdding to code mirror line * updates to react-select * remove component unmounts and mounts side effect
2022-02-02 16:59:57 +00:00
className: className ? className : lineNumbers ? 'query-hinter' : 'codehinter-query-editor-input',
Move plugins to root (#1728) * feat: move plugins to root * modify tsconfig * add .gitignore * delete old plugins file * add parcel * docker compose volume mount * add gcs * add typescript to plugins folder * gcs to ts * add dynamodb * add elastic search * add firestore * add gsheets * add graphql * add mongodb * mssql * add mysql * add postgresql * add redis * add s3 * add slack * add stripe * remove plugin related packages from pkgjson * add lib folder * add gitignore * remove typescript generated files * remove generated file * remove generated files * add twilio * add dist to docker compose cache binding * add dist prefix * cleanup - 1 * delete dist * rename to index.ts + add jest config * add it.todo in tests * test fixes * test file changes * fix type checks * add @tooljet/plugins to server package json * esm vs commonjs bug, reduce got to 11.8.2 from 12.0.0 * docker file npm package version fix * add typesense * cleaup - 2 * add sendgrid * add lerna build and clean script for all packages + tsconfig * cleanup -3 * add plugins build step * add missing plugins build step in npm run build * add mssql, mysql & postgres as singleton classes * add db connection to cache only if datasourceId is available * client: add data source schema/manifest files * add query operations files * logic for wrapping form with schema * add script to create index file * add @tooljet/plugins to frontend folder * cleanup 1 -frontend * cleanup - 2 // frontend // data queries * add client and index to gitignore * update gitignore * fix lint & test * update ci * fix unit, e2e * cleanup -3 * fix test * fix tests * fix indent * try npm ci * fix tests * fix typo * fix * rename file for server entry * heroku fix * add main and types entry points in pkg json * move common to root * cleanup - 4: remove redundant $ sign prefix * cleanup - 4: remove redundant $ sign prefix * update options in-sync before DOM is painted * change type cloud to cloud storage * update readme * update ci.yml * update ci yml * add pkg-lock.json * rename index.ts to server.ts * update lock files * add server package.lock * remove unused import * revert commit: add minio * add root dep * import server.ts * remove plugins build step * add npm shrinkwrap * update version - plugins * add new version - 0.0.8 * upgrade version * move to symlinked package * add lock file * feat: add icon inside package * add plugin creation docs * Remove seed * move icons to plugins folder * install pg dep * add react to packages * add seed cmd * revert change * add plugins build in lint, e2e, unit * e2e, lint use npm ci * update dockerfile for plugins * try combining release with web * limit memory on release * try executing seed script post transpile * try executing seed from server directory * update seed execution * add minio * add correct type * add minio to pkg json * remove old file * fix provider key * add python installable + npm ^7.2.0 (#1752) * add python installable + npm ^7.2.0 * add py to prod file * pin npm version to 7.20.0 * pin npm version to 7.20.0 * split into multi stage build and remove python for buildx * copy plugins from buider stage * update dependencies * add freetds dependency * update server dockerfile * update client dockerfile * update dev dockerfile and compose file * fix entrypoint * fix server dev dockerfile * update docker-compose * remove npm install on root dir on docker build * fix heroku script * make lerna prod dependency to enable prod builds * remove redundant env setup Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com> Co-authored-by: navaneeth <navaneethpk@outlook.com>
2022-01-17 07:08:17 +00:00
onChange: (value) => optionchanged(key, value),
placeholder,
height,
[improvement] Query panel redesign (#1947) * query panel headers styles * create query button style update * create query button style update * create query button style update: mixins * querypanel header nav-links updated * querypanel header buttons * restapi: url hinter styles * fixes querypane header width, undo prev styles applied * querypanel header icons margin fix * restapi: header tab * restapi: params tab * restapi: body tab * base url style fixed * added alert component to @/_ui * adds margin top to query-panel tabs * bumped font weight of preview * on hover query style updated * selected query style update and along with dark themed * adds new searchbox component, added search queries * fixes query panel query lists icons margin * query selected hover bg * back icon should not be render if callback is a function * airtable: queries redesigned * stripe: queries redesigned * fixed query-pane header responsiveness * fixes tab title typo * undp/redo select datasource only when mode='create' * removes comments * refactor restapi url codehinter styles * fixes white spaces in query pane and query pane header * minor updates for restapi query options styles * removes tool-tip for lens svg icon for search: query-pane header * adds button loading spinner with primary color * fixes hover bg color for queries * update: query hover bg color to lighter tint * update query list icons: trash and play svgs * adds icons to the selection component * fixes tabs alignments restapi * fixes codehonter text margin: restapi url * fixes advanced-options-container margintop * new UI query: dynamodb * new UI query: elasticsearch * new UI query: firestore * new UI query: mongodb * new UI query: mysql * new UI query: psql * new UI query: typesenseapi * new UI query: gsheet * new UI query: sendgrid * new UI query: twillio * new UI query: gcs * new UI query: minio * new UI query: aws * update query bg color and hover bg color * fixes run query icon for dark theme * fixes input query title text alignment * update query header title * adds search queries placeholder and add icon when search box is displayed * updated No results query text * undo/redo rest-api tabs: fixes whote spaces * undo/redo: rest-api tabs conde hinter placeholder paddinleft * adding new queries when search box component is mounted:fix * fixes creating a new query after filtering queries * fixes dark theme for select search components * reverts query pane header search box with add icon * fixes input left margin * fixes bottom padding rest api tabs * fixes toggle button:not selected in dark theme * fixes typos * fixes preview button spinner size * undo/redo: query-trash-icon.svg for queries and trash.svg for components * query icons badge bg update[options] * icon badge fix * move static styles to theme.scss * restapi: url field height increment * fixes query name when adding a new query with filtered querylist * fixes alignment issues of the query header icon * revert back to 32px code hinter height * adds apdding to code mirror line * updates to react-select * remove component unmounts and mounts side effect
2022-02-02 16:59:57 +00:00
width,
Move plugins to root (#1728) * feat: move plugins to root * modify tsconfig * add .gitignore * delete old plugins file * add parcel * docker compose volume mount * add gcs * add typescript to plugins folder * gcs to ts * add dynamodb * add elastic search * add firestore * add gsheets * add graphql * add mongodb * mssql * add mysql * add postgresql * add redis * add s3 * add slack * add stripe * remove plugin related packages from pkgjson * add lib folder * add gitignore * remove typescript generated files * remove generated file * remove generated files * add twilio * add dist to docker compose cache binding * add dist prefix * cleanup - 1 * delete dist * rename to index.ts + add jest config * add it.todo in tests * test fixes * test file changes * fix type checks * add @tooljet/plugins to server package json * esm vs commonjs bug, reduce got to 11.8.2 from 12.0.0 * docker file npm package version fix * add typesense * cleaup - 2 * add sendgrid * add lerna build and clean script for all packages + tsconfig * cleanup -3 * add plugins build step * add missing plugins build step in npm run build * add mssql, mysql & postgres as singleton classes * add db connection to cache only if datasourceId is available * client: add data source schema/manifest files * add query operations files * logic for wrapping form with schema * add script to create index file * add @tooljet/plugins to frontend folder * cleanup 1 -frontend * cleanup - 2 // frontend // data queries * add client and index to gitignore * update gitignore * fix lint & test * update ci * fix unit, e2e * cleanup -3 * fix test * fix tests * fix indent * try npm ci * fix tests * fix typo * fix * rename file for server entry * heroku fix * add main and types entry points in pkg json * move common to root * cleanup - 4: remove redundant $ sign prefix * cleanup - 4: remove redundant $ sign prefix * update options in-sync before DOM is painted * change type cloud to cloud storage * update readme * update ci.yml * update ci yml * add pkg-lock.json * rename index.ts to server.ts * update lock files * add server package.lock * remove unused import * revert commit: add minio * add root dep * import server.ts * remove plugins build step * add npm shrinkwrap * update version - plugins * add new version - 0.0.8 * upgrade version * move to symlinked package * add lock file * feat: add icon inside package * add plugin creation docs * Remove seed * move icons to plugins folder * install pg dep * add react to packages * add seed cmd * revert change * add plugins build in lint, e2e, unit * e2e, lint use npm ci * update dockerfile for plugins * try combining release with web * limit memory on release * try executing seed script post transpile * try executing seed from server directory * update seed execution * add minio * add correct type * add minio to pkg json * remove old file * fix provider key * add python installable + npm ^7.2.0 (#1752) * add python installable + npm ^7.2.0 * add py to prod file * pin npm version to 7.20.0 * pin npm version to 7.20.0 * split into multi stage build and remove python for buildx * copy plugins from buider stage * update dependencies * add freetds dependency * update server dockerfile * update client dockerfile * update dev dockerfile and compose file * fix entrypoint * fix server dev dockerfile * update docker-compose * remove npm install on root dir on docker build * fix heroku script * make lerna prod dependency to enable prod builds * remove redundant env setup Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com> Co-authored-by: navaneeth <navaneethpk@outlook.com>
2022-01-17 07:08:17 +00:00
componentName: queryName ? `${queryName}::${key ?? ''}` : null,
cyLabel: key ? `${String(key).toLocaleLowerCase().replace(/\s+/g, '-')}` : '',
delayOnChange: false,
disabled,
};
Feature: OpenApi import plugin (#2728) * Initialized OpenApi plugin * Added definition field to manifest file * Added an openapi parser * Implemented JSON/YAML resolver - Removed swagger parser lib - Added a field for choosing definition format type - Implemented a resolver for resolving $ref * Implemented a basic operations drop down from spec paths * Added params and body ui * Now, can view general parameters and servers * Added an option to override general params - Resolved a bug * Implemented basic openapi plugin - Added got lib - Tested basic queries * Added one more method * Resolved a common bug * Working on Parsing definition from datasource modal - Created new form component for openapi - Populated select array from security array * Added ui for authentication * Added bearer & basic plugin code * Resolved some ui issues of Apikeys auth option * Added apikey auth * Resolved an issue - Also replaced validate btn with auto validation - Now spec will be added to db from data-source modal * Added error text to show validation error * Now spec will load from props for query manager * Added some padding to operation description * Added ui for openapi oauth2 auth * Implemented oauth2 * Fixed a state issue with a temporary hack * Now we can show multiple same auth types * added the icon * Resolved a bug & improved multiple apikeys process * Resolved some realtime parsing error * Resolved a bug from options fn * Resolved PR changes * Updated documentation with brief details about the open API plugin * Removed unwanted package * Changed if-else to switch * Code changes * added setLoadingSpec fn to catch section * Solved typos and error in doc * Resolved dropdown issue * Resolved a bug * updated openapi icon
2022-04-26 08:44:12 +00:00
case 'react-component-openapi-validator':
return {
format: options.format?.value,
definition: options.definition?.value,
auth_type: options.auth_type?.value,
auth_key: options.auth_key?.value,
username: options.username?.value,
password: options.password?.value,
bearer_token: options.bearer_token?.value,
api_keys: options.api_keys?.value,
optionchanged,
grant_type: options.grant_type?.value,
add_token_to: options.add_token_to?.value,
header_prefix: options.header_prefix?.value,
access_token_url: options.access_token_url?.value,
access_token_custom_headers: options.access_token_custom_headers?.value,
Feature: OpenApi import plugin (#2728) * Initialized OpenApi plugin * Added definition field to manifest file * Added an openapi parser * Implemented JSON/YAML resolver - Removed swagger parser lib - Added a field for choosing definition format type - Implemented a resolver for resolving $ref * Implemented a basic operations drop down from spec paths * Added params and body ui * Now, can view general parameters and servers * Added an option to override general params - Resolved a bug * Implemented basic openapi plugin - Added got lib - Tested basic queries * Added one more method * Resolved a common bug * Working on Parsing definition from datasource modal - Created new form component for openapi - Populated select array from security array * Added ui for authentication * Added bearer & basic plugin code * Resolved some ui issues of Apikeys auth option * Added apikey auth * Resolved an issue - Also replaced validate btn with auto validation - Now spec will be added to db from data-source modal * Added error text to show validation error * Now spec will load from props for query manager * Added some padding to operation description * Added ui for openapi oauth2 auth * Implemented oauth2 * Fixed a state issue with a temporary hack * Now we can show multiple same auth types * added the icon * Resolved a bug & improved multiple apikeys process * Resolved some realtime parsing error * Resolved a bug from options fn * Resolved PR changes * Updated documentation with brief details about the open API plugin * Removed unwanted package * Changed if-else to switch * Code changes * added setLoadingSpec fn to catch section * Solved typos and error in doc * Resolved dropdown issue * Resolved a bug * updated openapi icon
2022-04-26 08:44:12 +00:00
client_id: options.client_id?.value,
client_secret: options.client_secret?.value,
client_auth: options.client_auth?.value,
scopes: options.scopes?.value,
auth_url: options.auth_url?.value,
custom_auth_params: options.custom_auth_params?.value,
custom_query_params: options.custom_query_params?.value,
[Feature] :: Global datasources (#5504) * add: columns and migrations for data queries and sources * add: migrations for app environments * fix: datasources and queries api * fix: import apis * add: radixui colors * create: global datasource page * fix: version creation not including global datasources queries * fix: version deletion failure * fix: ui and other bugs * add: check for abilities on global ds * fix: bugs * fix: existing test cases * fix: migration and bugs * fix: rest api oauthorize bugs * hide: add button for local ds * fix: query bugs * fix: new organization environment creation * fix: local ds label showing for new apps * fix: on page load queries for preview app and published app * fix: import bugs from v1 * fix: merge conflicts * fix: import apis * fix: apss with mulit envs * fix: ui bugs * fix: environments not being created on db:seed * fix: ui bugs * fix: route settings for global datasources * fix: customer dashboard template * fix: local ds queries not being saved * fix: runpy issues * changes: ui * fix: migration issues * fix: ui * hide datasources when no local datasources * fix: test cases * fix: unit test cases and global queries on app import/export * cleanup * add: package-lock file * undo: migration rename * cleanup * fix: ui bugs * migration fixes * fix: dark mode issues * fix: change datasource failing on query create mode * fix: workspace selector issues * fix: clickoutside for change scope option * migration changes * fix: open api issue * reverting configs changes * [Fix] Global datasources & Environment Id issue (#5830) * fix: oauth env id issue * code changes --------- Co-authored-by: gsmithun4 <gsmithun4@gmail.com> Co-authored-by: Muhsin Shah <muhsinshah21@gmail.com>
2023-03-24 16:11:21 +00:00
spec: options.spec?.value,
workspaceConstants: currentOrgEnvironmentConstants,
Feature: OpenApi import plugin (#2728) * Initialized OpenApi plugin * Added definition field to manifest file * Added an openapi parser * Implemented JSON/YAML resolver - Removed swagger parser lib - Added a field for choosing definition format type - Implemented a resolver for resolving $ref * Implemented a basic operations drop down from spec paths * Added params and body ui * Now, can view general parameters and servers * Added an option to override general params - Resolved a bug * Implemented basic openapi plugin - Added got lib - Tested basic queries * Added one more method * Resolved a common bug * Working on Parsing definition from datasource modal - Created new form component for openapi - Populated select array from security array * Added ui for authentication * Added bearer & basic plugin code * Resolved some ui issues of Apikeys auth option * Added apikey auth * Resolved an issue - Also replaced validate btn with auto validation - Now spec will be added to db from data-source modal * Added error text to show validation error * Now spec will load from props for query manager * Added some padding to operation description * Added ui for openapi oauth2 auth * Implemented oauth2 * Fixed a state issue with a temporary hack * Now we can show multiple same auth types * added the icon * Resolved a bug & improved multiple apikeys process * Resolved some realtime parsing error * Resolved a bug from options fn * Resolved PR changes * Updated documentation with brief details about the open API plugin * Removed unwanted package * Changed if-else to switch * Code changes * added setLoadingSpec fn to catch section * Solved typos and error in doc * Resolved dropdown issue * Resolved a bug * updated openapi icon
2022-04-26 08:44:12 +00:00
};
case 'filters':
return {
operators: list || [],
value: options?.[key] ?? {},
onChange: (value) => optionchanged(key, value),
placeholders,
};
case 'sorts':
return {
orders: list || [],
value: options?.[key] ?? {},
onChange: (value) => optionchanged(key, value),
placeholders,
};
case 'columns':
return {
value: options?.[key] ?? {},
onChange: (value) => optionchanged(key, value),
placeholders,
};
default:
return {};
}
};
const getLayout = (obj) => {
if (isEmpty(obj)) return null;
const flipComponentDropdown = isFlipComponentDropdown(obj);
if (flipComponentDropdown) {
return flipComponentDropdown;
}
2022-12-27 14:40:33 +00:00
const handleEncryptedFieldsToggle = (event, field) => {
const isEditing = computedProps[field]['disabled'];
if (isEditing) {
optionchanged(field, '');
} else {
//Send old field value if editing mode disabled for encrypted fields
const newOptions = { ...options };
const oldFieldValue = selectedDataSource?.['options']?.[field];
if (oldFieldValue) {
optionsChanged({ ...newOptions, [field]: oldFieldValue });
} else {
delete newOptions[field];
optionsChanged({ ...newOptions });
}
2022-12-27 14:40:33 +00:00
}
setComputedProps({
...computedProps,
[field]: {
...computedProps[field],
disabled: !isEditing,
},
});
2022-12-27 14:40:33 +00:00
};
return (
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 12:31:48 +00:00
<div className={`${isHorizontalLayout ? '' : 'row'}`}>
{Object.keys(obj).map((key) => {
const { label, type, encrypted, className, key: propertyKey } = obj[key];
const Element = getElement(type);
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 12:31:48 +00:00
const isSpecificComponent = ['tooljetdb-operations'].includes(type);
return (
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 12:31:48 +00:00
<div
className={cx('my-2', {
'col-md-12': !className && !isHorizontalLayout,
[className]: !!className,
'd-flex': isHorizontalLayout,
'dynamic-form-row': isHorizontalLayout,
})}
key={key}
>
{!isSpecificComponent && (
<div
className={cx('d-flex', {
'form-label': isHorizontalLayout,
'align-items-center': !isHorizontalLayout,
})}
>
{label && (
<label
className="form-label"
data-cy={`label-${String(label).toLocaleLowerCase().replace(/\s+/g, '-')}`}
2022-12-27 14:40:33 +00:00
>
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 12:31:48 +00:00
{label}
</label>
)}
{(type === 'password' || encrypted) && selectedDataSource?.id && (
<div className="mx-1 col">
<ButtonSolid
className="datasource-edit-btn mb-2"
type="a"
variant="tertiary"
target="_blank"
rel="noreferrer"
onClick={(event) => handleEncryptedFieldsToggle(event, propertyKey)}
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 12:31:48 +00:00
>
{computedProps?.[propertyKey]?.['disabled'] ? 'Edit' : 'Cancel'}
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 12:31:48 +00:00
</ButtonSolid>
</div>
)}
{(type === 'password' || encrypted) && (
<div className="col-auto mb-2">
<small className="text-green">
<img
className="mx-2 encrypted-icon"
src="assets/images/icons/padlock.svg"
width="12"
height="12"
/>
Encrypted
</small>
</div>
)}
</div>
)}
<div
className={cx({
'flex-grow-1': isHorizontalLayout && !isSpecificComponent,
'w-100': isHorizontalLayout && type !== 'codehinter',
})}
style={{ width: '100%' }}
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 12:31:48 +00:00
>
<Element
{...getElementProps(obj[key])}
{...computedProps[propertyKey]}
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 12:31:48 +00:00
data-cy={`${String(label).toLocaleLowerCase().replace(/\s+/g, '-')}-text-field`}
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 b18abe19fbd82246611153634c79934ad9012101. * 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 08:00:39 +00:00
//to be removed after whole ui is same
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 12:31:48 +00:00
isHorizontalLayout={isHorizontalLayout}
/>
2022-12-27 14:40:33 +00:00
</div>
</div>
);
})}
</div>
);
};
const isFlipComponentDropdown = (obj) => {
const flipComponentDropdown = find(obj, ['type', 'dropdown-component-flip']);
if (flipComponentDropdown) {
// options[key].value for datasource
// options[key] for dataquery
const selector = options?.[flipComponentDropdown?.key]?.value || options?.[flipComponentDropdown?.key];
return (
<>
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 12:31:48 +00:00
<div className={`${isHorizontalLayout ? '' : 'row'}`}>
{flipComponentDropdown.commonFields && getLayout(flipComponentDropdown.commonFields)}
<div
className={cx('my-2', {
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 12:31:48 +00:00
'col-md-12': !flipComponentDropdown.className && !isHorizontalLayout,
'd-flex': isHorizontalLayout,
'dynamic-form-row': isHorizontalLayout,
[flipComponentDropdown.className]: !!flipComponentDropdown.className,
})}
>
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 12:31:48 +00:00
{(flipComponentDropdown.label || isHorizontalLayout) && (
<label
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 12:31:48 +00:00
className={cx('form-label')}
data-cy={`${String(flipComponentDropdown.label)
.toLocaleLowerCase()
.replace(/\s+/g, '-')}-dropdown-label`}
>
{flipComponentDropdown.label}
</label>
)}
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 12:31:48 +00:00
<div data-cy={'query-select-dropdown'} className={cx({ 'flex-grow-1': isHorizontalLayout })}>
[ 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 13:08:51 +00:00
<Select
{...getElementProps(flipComponentDropdown)}
styles={computeSelectStyles ? computeSelectStyles('100%') : {}}
useCustomStyles={computeSelectStyles ? true : false}
[ 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 13:08:51 +00:00
/>
</div>
{flipComponentDropdown.helpText && (
<span className="flip-dropdown-help-text">{flipComponentDropdown.helpText}</span>
)}
</div>
</div>
{getLayout(obj[selector])}
</>
);
}
};
const flipComponentDropdown = isFlipComponentDropdown(schema.properties);
if (flipComponentDropdown) {
return flipComponentDropdown;
}
return getLayout(schema.properties);
};
export default DynamicForm;