renaming entities sets the references component value to default value
current state was not updating to latest state
removed/deleted render count hook [dev-testing purpose]
* performance -init
* fixes: child components getting replaced
* child components should be able to added to target containers
* feat: reduce rerender of Dragcontainer (#9217)
* fixes component crash for height incremental
* clean up
* clean up
* clean up
* removes debouncing of currentState updater
* cleanup
* controls update on components' referenced changed
* fixes: widget crash if references are found
* Reduced the load time by combining the appLoad queries loading state
* Debounced initial currentState updates
* reduce debounced time for updating current state
* clean up
* on events updation, referenced component via source id or csa would undergo a new re-render
* Optimize tab navigation by asynchronously handling event, reducing UI blockage
* off load updating app suggestions until UI renders
* off load app load an page load event to low priority tasks list, resulting in faster app load
* Added blocking updates to macrotask queue and changed Leftsidebar
* Revert "Merge branch 'feat/grid-appbuilder-improvement' into core-performance/appbuilder"
This reverts commit 2e8374ac31, reversing
changes made to 23a86bfe6e.
* fixes: component -extra re-rendering issue on current state changes.
* fixes: extra re-render for each compoennt dnd updates
* reverting computeComponentState back to autoSave callaback
* Fixed showing default children
* Reverted commit 9b88e9f which causes infinite loop
* Removed debuggerStore & unwanted props
* Added profiler hoc
* Implement batch processing and selective flushing for efficient state… (#9278)
* Implement batch processing and selective flushing for efficient state updates in React components, optimizing performance for large-scale applications.
* clean up
* fix: fixed issues with delay of rerender (#9291)
* fix: fixed issues with delay of rerender
* fix: removed unused logs
* fix: removed unused logs
* fix: removed unused logs
* clean up
---------
Co-authored-by: arpitnath <arpitnath42@gmail.com>
---------
Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com>
* clean up
* Fixed the crash on Form component
* Optimize reference update tracking by sourcing from direct modifications rather than state diff comparisons.
* clean up
* fix: update appdefinition to editorstore in viewert (#9297)
* removing current state deps from editor and processing re-renders. and use new resolver inside components (#9298)
* removing current state deps from editor and processing re-renders. Also use new resolver inside components
* perf: update position before state update on dnd (#9301)
---------
Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com>
---------
Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com>
Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com>
* feat :: exposing child widget of form and listview , removing register action
* feat :: exposing only components and not child items
* fix :: removing value of funcation info
* lint fixes
* reverted
* test commit :: lint fix
* fix :: initial render showing all components
* fix :: data and children values are same
* kanban breaking fix
* fix for exposed variable not being accessible in initial render
* comments
* fix :: all components showing up in inspector during initial render for form and listview widget
* reduce rerenders in button due to exposed vars
* combining useeffects for lesser rerenders
* fix showing of child widgets of list and form in inspector during intial render
* fix :: ui break
* combining useeffects in form
* test commit :: reducing rerenders fromsetexposed variable called multipole time
* fix :: reduce rerenders by combining multiple setExosedvariable calls
* Revert "fix :: reduce rerenders by combining multiple setExosedvariable calls"
This reverts commit 78c9e46944.
* bugfix
* bugfix :: events not firing
* fixes and revertions
* fix :: perf checking for parent in box in case of form and listview
* fix :: initial render bug
* fix :: removed csa functions from listview data key
* fix bugs , actions not working
* fix :: dependencies
* fix :: testing bugs
* tabs:: event firing bug
* fix :: multiselect not firing event
* bugfix :: multiselect csa not triggering
* fix :: kanban csa
* fix :: table csa , kanban move card
* fix :: bug filepicker csa
* 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>
* json form init
* adding conditional render for dynamic props
* adding conditional render and check input is valid array for not throwing error
* updating init schema
* temp commit :: advanced data exposing
* theme udpate
* schema update
* temp commit :: tested text input and dropdown widget
* showAllOption default value in multiselect component is not added in component definition
* feat :: All form widgets added
* added form widget schema as a conditional render
* feat :: handle submit button
* fix ::validation and submit button
* fix :: filepicker ui break
* cleanup , check for ui break
* fix :: default items
* fix typo
* seperating logic to util file , fix issue in exposed variable key
* revert unwanted change
* ux improvements in schema
* fix :: backward compatibility and reset/submit button
* review changes
* review changes
* fix :: circular dependency removal
* typo
* type fixes
* fix :: naming conventions for schema types
* fix key
* updating schema
* fix :: some widgets having label key , removing this as label is added through json
* fix :: make labels hidden if present in widgets
* fix :: labels for widgets which have inbuilt ones
* logs
* fix :: for keys not gettting updated on type change
* fix :: breaking of apps when giving non boolean values
* fix :: making a common function for checking valid boolean types
* Fix:Show popover in calnder in editor mode when clicked outside the editor
* Fix:Show popover in calnder in editor mode when clicked outside the editor, replace variable
* Fix:Show popover in calnder in editor mode when clicked outside the editor
* Fix:Show popover in calnder in editor mode when clicked outside the editor, replace variable
* Merge develop.
* Fix:Show popover in calnder in editor mode when clicked outside the editor, replace variable
* bug fixed
---------
Co-authored-by: manishkushare <kushare.manish9@gmail.com>
* Created form widget
* Fixed the same name issue in defaultChildren
* Dynamically added buttons to the form inspector
* Added data to exposed variable and handled button click
* Added Reset functionality, CSA to the form widget
* Added Form widget icon
* form component docs
Co-authored-by: Shubhendra <withshubh@gmail.com>
* chore: apply primary-color in more places, ensure svg use currentColor too
* fix: remove hard-coded colors to use defaults
* fix: those images were intruducing noise when switch to dark-mode
* fix: setup colors for rc-slider
* fix: empty all predefined-colors to use defaults
* Use primary-rgb-darker
* moved disbale and visible state to properties tab from styles and made fx default for each
* added hover event
* added loading,visible, and disable csa props and handled them in widget
* made General and layout menus open by default in widget inspector
* added migration for visibility and disabled prop
* removed unwanted visible prop in the properties object
* made fxActive true in migration file
* added loadingState active fx in migration
* refactored widget
* refactored button widget
* bug fixed
* bug fixed
* bug fixes
* replaced onMouseMove with onMouseOver event
* changed the type of action for loading, visibility and disable to toggle
* moved all register action inside useEffect
* removed register action function from useEffect and made the requested changes
* fixed visibility bug
* avoiding extra render
* made changes for better readability
* removed unused import
* Add and modify data-cy attribute for elements
* Modify faker file for random rgba hex code
* Add methods specific for button widget
* Add and modify common selector and text file
* Add and modify common widget methods
* Modify button text file
* Modify button widget happy path file
* Remove button selector file
* Modify multiselect widget happy with new methods
* Modify verify box shadow css method
* Add and modify common selector file
* Modify button text file
* add and modify specific methods for button widget
* Add and modify custom commands
* Add and modify common widget methods
* Add app preview and modify button widget happy path
* Add and modify data-cy attribute for elements
* Modify multiselect widget happy with new methods
* Modify data-cy attributes
* Add review changes
* Add data-cy attribute
* Add review changes
Co-authored-by: arpitnath <arpitnath42@gmail.com>
* Build architecture for component specific actions
* Resolve references component action variables
* Add architecture to read component action params from widgetConfig.js
* Add Set table page to component specific actions
* List only components with actions for control component action
* Make component specific actions async
* fx button styles
* fx in action types
* Improve zIndex for component action param select
* fix for select component width
* adding margin to remove height toggle during fx
* Updated SelectSearch with Select
* Added component specific action to Text widget
* Fixed bug on showing the component with actions
* fix :: fx should align neatly inside the empty space designated for it,If type is not specified, codehinter full width
* removing bug :: popover closes on select
* height toggle bug
* Ensure that action is cleared when a different component is selected
* bugfix :: select width issue
Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
Co-authored-by: stepinfwd <stepinfwd@gmail.com>
* Added cypress test for button widget
* Added custom commands
* Updated common selectors
* data-cy attributes for the elements
* Updated the login end point
* Updated new login end point
* Added data-cy attribute for autosave indicator
* Updated login end point
* Updated test for auto save indicator
* Updated custom commands for skipping instruction modal
* text-input widget
* button widget
* fix text input widget
* number input widget
* checkbox widget
* refactor checkbox
* radio btn widget
* dropdown widget
* refactor textinput and number input
* updated state variable
* Remove usage of component and currentState prop in dropdown
* Reset dropdown value whenever option set is changed
* Make text input respond to changed in its default value property
* Radio button component fix
* default value for number input: fixed
* Fix validation on Text Input component
* Use useState hook to manage value of text input component
Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
* github actions for PR and push to develop branch
* test workflow
* move to workflows folder
* add setup node action
* modify build
* specify npm version
* config unit test
* specify host postgres
* specify container to run on
* add postgresql dependency
* add specify ws adapter for test
* add e2e test
* fix linting
* only log errors on tests
* update eslint config
* fix linting
* run e2e test in silent mode
* fix library app spec
* dont send email on test env
* fix org scope
* mock env vars
* remove reset modules
* force colors
* explicitly close db connection
* add eslint rule for floating promises
* update workflow
* fix floating promise
* fix lint
* update workflow
* run on all push and pulls
* update lint check files
* simplify workflow
* increase js heap size on env
* separate lint and build
Co-authored-by: arpitnath <arpitnath42@gmail.com>
* Better canvas
* Better canvas
* Better canvas
* Fix for resize
* Fix for drag
* Fix for drag
* Fix for drag
* Adjust width of components by # of grid lines
* Adjust components to comply with gridline based width
* Fix the width of rigth sidebar
* Fix for subcontainer resize issue
* Fix for dropped widget width (sc)
* Fix subcontainer drag width
* Fix grid for sub container
* Fix viewer
* Fix
* Fix
* Use RnD for dragging within canvas
* bounds for subcontainers
* fix for subcontainers
* Fix for mouseover issue
* Fix
* Fix widget widths
* Fixes chart
* Fixes qr scanner and divider
* Remove scaleValue
* Mmerge fix
* Mmerge fix
* Fix for ormconfig
* Fixes for comments
* Add comment where the user clicked
* Disable dragging on viewer
* Max width for canvas
* Fix for widget click events
* Fix for radio button
* Rebase widget width and left offset for responsive canvas
* Fix
* Fix the width of file picker
* Fix for calendar widget
* Disable zoom selector
* Fixes comment positions
* css fixes
* Fix
* Recompute width and offset of subcontainer widgets based on its parent's width
* Calculate container width separately for modal children while migrating to responsive
* Refactor migration to responsive canvas whereinwhich all mutations are done only after all required changes are computed
Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
* Make widget properties available as a prop to component
This commit also make the front-end app resolve widget properties
based on current state and definition, before passing in the final
resolved properties to the component
* Resolve unnecessary console.log and comments
* Provide styles as prop to component
* Give existing values precedence over definition values
* Serve properties and variables as separate props to components
* Remove the usage of separate directory for Box.jsx
* Remove unnecessary lint change
* Introduce fireEvent method to fire events
* Introduce validate function to validate a widgets value
* Rename "variables" to "exposedVariables"
* Add documentation for props and functions being passed to widgets
* Delete "id" from set of exposed variables presented to the widget
* Do not resolve exposed variables before passing to widget
* widgets can be disabled
* removed whitespace
* move to styles definitions
* default values fixed with nullish operator
* proper data attributes
* generic resolver function for widget value
* renamed the style property
* Add support for editing and deleting components inside container
* Dont allow config handle click event to propagate
* Supply removeComponent method for Container component