Commit graph

2702 commits

Author SHA1 Message Date
Surendran
6e249bc540
fix: Added onKeyDown function for input field (#6699)
* Added onKeyDown function for input field

* Updated CreateOrganization.jsx
2023-06-15 13:32:33 +05:30
Justin V
6308f4292c
fix: Rename widget to component (#6675)
* Change reference of widget to component in app editor

* Change widget to component in in-app walkthrough
2023-06-15 13:32:16 +05:30
Kiran Ashok
0894367f56
fix :: csa not working , csa with empty component selected wont trigger subsequent events (#6713) 2023-06-15 13:31:27 +05:30
Kiran Ashok
e786313a13
added check before access of classes in modal widget (#6711) 2023-06-15 13:31:13 +05:30
Manish Kushare
eac3b7c33e
removed selection key from newRows exposed variable in th table (#6693) 2023-06-15 13:30:57 +05:30
Johnson Cherian
c218b27a94
Improving user experience of left side drawer in app builder (#6659)
* style: Store pinned state of left sidebar tabs in localstorgae to persist across refresh

* style: Fixed popover width. Add scroll for canvas so for user view to remain same  when popover is open

* feat: added horizontal scrollbar for canvas when sidebar popup is open

* feat: added logic to calculate canvas height on resize

* feat: prevent flickering of popover when switching tabs

* style: made modal width and position inside canvas relative to canvas container positon

* fix: removed extra offset added to the dragged element placeholder.

* fix: hide extra scroll bar added when dragging new component to canvas

* fix: hide canvas scrollbar on dragging of new component

* fix: removed extra margin to main container

* fix: fixed canvas alignment when mobile screen is selected

* fix: revert the debugger error notification badge behaviour

* fix: fixed width issue for old apps

* fix: fixed issue with width when user set max width in %

* fix: resolved conflicts in style file

* fix: fixed whitespace issue in large screen

* Update frontend/src/Editor/LeftSidebar/index.jsx

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

* Update frontend/src/Editor/LeftSidebar/index.jsx

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

* Update frontend/src/Editor/LeftSidebar/index.jsx

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

* Update frontend/src/Editor/LeftSidebar/index.jsx

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

* refactor: removed unnecessory rerendering of Editor component

* perf: unsubscribe to querypanelstore on unmount of editor component

* perf: rerender editor only when query panel resizing over

* refactor: removed unused logs

* Update frontend/src/Editor/Editor.jsx

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

* Update frontend/src/Editor/Editor.jsx

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

* fix: added style to hide extrascrollbar in macbook screens when mouse connected

---------

Co-authored-by: Johnson Cherian <johnsoncherian@Johnsons-MacBook-Pro.local>
Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>
2023-06-15 12:58:44 +05:30
Johnson Cherian
c1248fd3d2
fix: retain query param on redirection to home page from base url (#6702) 2023-06-15 12:57:17 +05:30
Kiran Ashok
1aed8f4a03
Feature :: Dropdown widget enhancement (#6392)
* feat ::  dropdown component with array of objects as input

* update placeholder default value for dropdown

* removing unwanted prop

* removing unwanted prop form inspector in dropdown widget

* feat :: adding function for dynamic props resolution in widget manager

* fix :: show schema only when advanced option is true

* fix :: backward compatibility

* removing some unwanted prop and updating utils so that only dropdown component is checked

* code improvement

* optimize :: removed intermediate arrays

* updating config on advanced toggle state and positioning of props

* feat :: replaced old logic to map items during advance option

* feat :: fix exposed items optionlabel and default item change during advanced switch

* fix :: bug during schema switch for default item

* fix :: selectedOptionLabel exposing during schema change

* fix :: disaply values not resetting for advanced off

* cleanup

* removinvg states

* backward compatibility check

* fix :: default item

* fix ::exposed labels if items are hidden

* remove logs

* fix :: optionLabels not getting exposed on advanced false

* fix

* fix :: checking visibility for default items

* null check for backward compatibility
2023-06-15 11:04:08 +05:30
Johnson Cherian
6678d83b93
Page clone feature (#6287)
* feat: uncomented clone feature

* fix: reset selected component on page switch

* fix: truncate text overflow for page handle field
2023-06-12 16:25:46 +05:30
Muhsin Shah C P
9bf1eb3144
[fix] Deprecated css code errors (#6393)
* fixed deprecated css error

* removed css code
2023-06-12 11:21:22 +05:30
Manish Kushare
12c14b3e4f
Added toggle switch for visibility of "Add new row" button in table component (#6374)
* controlling add new row button visibility

* fixed backward compatibility issue for new prop show add new row button

* removed unwanted code
2023-06-08 17:53:47 +05:30
Kiran Ashok
0b6e2a3b3c
Detach modal button height property from modal height (#6301)
* fix :: detach button height property from modal height

* fix :: backward compatility of modal height

* updating modal height as new prop

* fix :: prop import

* fix wrong import

* fixing backward compatibiliity issue in mdoal widgets

* fix :: do not allow dropping of widgets when modal is opened

* freezing background to 100vh on modal open

* fix :: modal height issue

* fix for modal inside modal

* cleanup

* fix :: for mdoal inside modal case

* removed unwanted code
2023-06-08 10:45:04 +05:30
Manish Kushare
cc93bd0a63
Added feature to toggle the visibility of columns programmatically (#6325)
* added feature to toggle the visibilty of columns programatically

* made the requested changes
2023-06-08 10:44:20 +05:30
Manish Kushare
cf64f9df5a
Row selection revamp (#6436)
* row selection revamp version 2

* enable highlighting a row upon clicking action button

* added support to unselect the selected row

* bug fixed : discard selectedFlatRows when highlightrow ,allowSelection or bulk selection is toggled

* made row selection backward compatible

* made suggested changes

* bug fixed : row is not getting unselected in the UI

* removed repeated/unwanted code
2023-06-08 10:41:58 +05:30
Muhsin Shah C P
a455a50e98
Sanitising workspace folder name while creating or editing a folder (#6396)
* added: frontend validation

* added attributes and constraints to folder name

* fixed migration

* replaced isAlphanumeric decorator with regex matches

* change: handle unwanted spaces

* handle error messages

* reverted css change

* folder name: adding error messages, refactoring code

* adding: PR changes

* fix: test cases

* fix: test cases

* changed max-length

* added PR changes and fixes

* added common error css change

* changed error message

* adding folder name to the prompt

* updated folder constraints

* updated maximum length

* fix: empty check

* added : folder dto name empty message

* fixed failing test cases

* added folder tooltip
2023-06-07 15:03:54 +05:30
Kiran Ashok
f8c3511a2c
Add loader for container widget (#6291)
* feat add loader for container widget

* fix :: make loading icon in center
2023-06-06 19:17:42 +05:30
Arpit
0e1ab0a684
fixes: on bulk-updating users with csv, the data is not reflected (#6420)
* fixes: on bulk-updating users with csv, the data is not reflected

* add a limit for bulk upload users

* resolved pr comments

* fixes displaying all users emails for existing users

* fixes file selection type in OS File Dialog

* allow users to bulk upload from csv with either last for firstname undefined

* add validations check

* updated the toast msg

* remove comments
2023-06-06 17:29:46 +05:30
Muhsin Shah C P
e7bb22e649
[enhancement] Sanitising app name while creating or editing an app (#6423)
* working on app name unique migrationworking on app name unique migration

* Added checks and conditions

* change: remove staring and ending spaces

* fix: error management

* fix: regex

* working on app name generation

* app name:fixing bugs

* app name: fixing and refactoring code

* app name: fixed test cases

* updated app name constraints and default name

* fix: apps.e2e tests case

* fix: added app name to the prompt

* added app input tooltip

* removed unwanted code

* added tooltip close code

* fixed auto generated name issue

* merging develop

* code refactoring

---------

Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
2023-06-06 14:12:36 +05:30
Kavin Venkatachalam
50323bf35c
Query Manager Refactor (#6279)
* global store init

* Moved query data to new component

* Removed unwanted code

* Removed data queries prop drilling

* Moved query state out of editor

* Added unsafe to componentWillReceiveProps

* Selected first query when the version is changed

* Fixed bug on renaming query

* Fixed issue on dark theme

* Fixed running query on page load in viewer

* Query manager refactor init

* Added global data source in store

* Disabled devtools on production

* Fixed bug on selecting query after deletion

* Reset store when editor is loaded

* Moved query manager to functional component

* Fixed conflict issues

* Fixed infinite loop on tooljetDB

* Set the store name and updated devtools logic

* Fixed issue on displaying draft query from data sources

* Updated comments on the store

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

* Fixed bug on showing unsaved changes popup

* Fixed issue on showing confirmation modal everytime without any changes

* Fixed issues on query renaming

* Fixed issue on creating restAPI query

* Fixed issue on running runJS, runPY

* Fixed toast bug on running query after renaming it

* Fallback - toast bug on running query after renaming it

* Fixed issue on running query after app switch

* Fixed bug on running query with save button click

* Fixed bugs on displaying query notifications

* Hidden the copilot tooltip on the toggles
2023-06-06 10:24:54 +05:30
Shubhendra Singh Chauhan
d72d8b99c6
Templates revamp (#6629)
* template: updated customer dashboard

* template: updated job application tracker

* template: updated kpi dashboard

* template: store catalogue update
2023-06-05 15:40:47 +05:30
SatVeer Singh
d22ef683e3
fix: Global datasource searchbar and page rename input-box text visibility in dark mode (#6586)
* fix: Global datasource searchbar and page rename input box text visiblity in darkmode

* fix: dark mode added in no datasource found input
2023-06-05 11:23:15 +05:30
Sukriti
0a619ece46
fixed typo in inspector (#6558) 2023-06-02 15:38:15 +05:30
SatVeer Singh
a3fe2fbee3
fix: Dashboard - show cursor pointer while hover on 'see all templates' link (#6578)
* fix: Dashboard - see all templates link cursor pointer

* fix: change span to button and removed background, border
2023-06-02 15:10:34 +05:30
Muhsin Shah C P
9257f6feea
Workspace name sanitisation (#6299)
* added unique organization name constraint

* sanitization task: workspace-name

* refactoring the code

* resolved PR changes

* fixed migration & added some checks

* change: trimming workspace name

* handle error messages

* added missing css

* working on the error messages

* change: first workspace's name of the new user

* change: removed underscore from the list

* Tested and fixed first workspace name changes

* Fixing error handler issues

* working on session storage implementation

* revert: session storage

* change: close modal if the edited name is same as prev name

* fixing bugs

* workspace name: refactoring the code

* workspace name: refactoring again

* workspace name: fixing and refactoring code

* fixed e2e test cases

* added catchDbException to catch db lever errors

* added: PR changes

* workspance name: css fix

* updated workspace name constraints and default name

* fix: test cases

* fix: app.e2e tests case

* fix: wrong error message

* fix: last state issue

* reverted some changes

* added workspace name tooltip

* added more tooltip for workspace name

---------

Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
2023-06-01 19:21:38 +05:30
Muhsin Shah C P
4c8cb01541
fix: app updated time (#6470) 2023-06-01 16:33:00 +05:30
Muhsin Shah C P
7f60b25138
fix: couldn't see request body (#6472) 2023-05-31 15:29:16 +05:30
Arpit
f7d1c3aab2
improvement - Confirm dialog box after pressing the release app button (#6422)
* prompt message stating "Are you sure you want to release this version of the app?"

* updated the UI for confirm box
2023-05-31 15:28:35 +05:30
Midhun Kumar E
d5c68e2fb0
Add data-cy and runJS for runPy (#6591) 2023-05-30 13:06:29 +05:30
Johnson Cherian
47c2cd7070
fix: display home page if user navigates to hidden page in preview mode (#6253)
* fix: display home page if user navigates to hidden page in preview mode

* fix: Updated page load logic to redirect users to the home page when hidden page url is hit.

* fix: redirect to home page if user hits wrong url in th viewer

* style: eslint fixes

* fix: removed extra character in launch app url
2023-05-30 09:23:21 +05:30
Manish Kushare
254079e530
Added feature to download table data using component specific actions (#6132)
* added feature to download table data using csa

* avoided popover getting closed after selcting downlaod format from select component

generalise the classname in codeHinter

removed important key in css

* bug fixed : column was not populating upon change in data when downloading table data with csa

* avoiding programatically choosing download type in table download csa

* made the requested changes

* made utility function for onChange and value of control specific actions to avoid duplications
2023-05-30 09:21:57 +05:30
Manish Kushare
e8c7244e50
fixed vertical alignment issue for cell in table whose column type are action button, multiselect,datepicker (#6356) 2023-05-30 09:18:14 +05:30
Kavin Venkatachalam
75f0838381
Fixes the background colour popover broken UI (#6101)
* Fixed background colour issue on globalsettings ui

* Reverted a change

* fix : bg color global settings popover not  closing on outside click (#6298)

---------

Co-authored-by: Kiran Ashok <stepinfwd@gmail.com>
2023-05-29 16:02:57 +05:30
Arpit
1b625957f0
upgrade pyodide to 0.23.2 (#6347) 2023-05-29 12:28:49 +05:30
Sherfin Shamsudeen
000cba38ae Merge branch 'main' into merge-back/2.6.2 2023-05-26 18:05:14 +05:30
Kavin Venkatachalam
8bbae02bf8
Fixed rename issue on draft query (#6568) 2023-05-26 18:00:43 +05:30
Kavin Venkatachalam
b9210509ec
Fixed issue on app crash while deleting query created from gds (#6563) 2023-05-26 16:00:22 +05:30
Sherfin Shamsudeen
d24744e0cf
Merge pull request #6552 from ToolJet/merge-back/2.6.1
Merge back/2.6.1
2023-05-26 14:01:48 +05:30
Sherfin Shamsudeen
48344b88e9 Merge branch 'main' into merge-back/2.6.1 2023-05-26 13:51:25 +05:30
Arpit
7f281980a3
Hotfix - support resolving codeblocks workspace (#6551)
* fixes: resolve both {{object}} and %%object%% within a single string

* resolved multiple server/client/app variables together

* clean up

* clean up
2023-05-26 13:50:39 +05:30
Kiran Ashok
9988b676c3
fix :: check for if control component event with no component selected (#6282) 2023-05-26 10:55:40 +05:30
Sherfin Shamsudeen
b82a8a7a35 Merge branch 'main' into develop 2023-05-25 18:32:59 +05:30
Manish Kushare
7aa8293d60
Hot fixed : app is crashing upon clicking on codehinter icon in isEditable field in table column (#6510)
* bug fixed app is getting crashed on clicking codehinter icon in isEditable field in table column

* made the suggested changes
2023-05-25 17:44:08 +05:30
Muhsin Shah C P
cd41b73d6c
fix: Preview page is redirecting to the wrong workspace-id page when the page name contains login string (#6326)
* fix: preview page redirect to switch-workspace route

* fixed custom link issue
2023-05-25 12:54:43 +05:30
Sherfin Shamsudeen
0fbfd12bbe Merge branch 'main' into merge-back/2.6.0 2023-05-23 16:00:10 +05:30
Kavin Venkatachalam
514afa595f
Fixed bug on running query after renaming it (#6462)
* Fixed issue on running query after renaming it

* Fixed issue on renaming query after updating version
2023-05-18 17:26:30 +05:30
Arpit
af89e370cd
fixes: backdrop when alert modal is active for creating new workspace (#6446) 2023-05-18 16:46:21 +05:30
Midhun Kumar E
86fad66ce7
Fix for failing specs on release branch (#6438)
* Fix multipage failure

* Fix config

* Fix text spec

* Add versions to the suite

* Fix password and versions spec

* Revert config

* Fix password and listview

* Fix versions with temp fix

* fix all failures.

* add retry

* revert button fix

* Add workspace specs to the suite
2023-05-18 13:41:41 +05:30
Ajith KV
f26ee59eb0
Add data-cy for share app modal (#6460) 2023-05-18 13:00:05 +05:30
Midhun Kumar E
e21de08794
Fixed cypress for v2.6.0 (#6430)
* Add data-cy for the event handler input fields (#6382)

* Added automation for inspector. (#6380)

* Add utils for inspector node verification

* Add inspector verification spec

* Add verification for inspector buttons

* Fix cypress failure

* update toast message

* Modify Config

---------

Co-authored-by: Mekhla Asopa <dadhichmekhla@gmail.com>
2023-05-17 12:14:03 +05:30
Vik
f7f1d05dc5 revert unnecessary change 2023-05-16 13:26:34 +01:00