Commit graph

2720 commits

Author SHA1 Message Date
Kavin Venkatachalam
07e0b73eca
Merge pull request #6804 from ToolJet/main
Merge Main to Develop v2.7.0
2023-06-21 19:17:31 +05:30
Kavin Venkatachalam
3a65c3da97
Commented the duplicate page feature (#6800) 2023-06-21 17:54:57 +05:30
Johnson Cherian
f53d8a58d3
fix: disable hiding home page (#6798)
* fix: diable hiding home page

* fix: disable hiding home page

* fix: fixed issue that breaks the page when redirected to current page
2023-06-21 17:47:31 +05:30
Manish Kushare
afe84e7bac
Csa for deselect row is not working when bulk selection is toggled on (#6783)
* bug fixed

* bug fixed
2023-06-20 13:59:38 +05:30
Manish Kushare
01c690aac6
made onCellValueChanged event to be fired upon change in cell value (#6788) 2023-06-20 13:59:11 +05:30
Johnson Cherian
bb6f790125
fix: fixed canvas background color mismatch and misalignment of canvas scroll in window resize (#6779) 2023-06-20 13:03:17 +05:30
Manish Kushare
ae812ac328
Made switch page action to execute in release 2.7.0 (#6758)
* bug fixed

* removed confirmed as it was not used

* removed _ref from runPy function as well
2023-06-20 11:38:48 +05:30
Manish Kushare
e44e16bbe4
Database drawer is not opening from the left sidebar (#6778)
* bug fixed

* not displaying the icon when datasources are not added

* when leftsidebar drawer in pinned from the app whose having database configured, and switched to app whose not having any database connected, empty drawer is displayed in such cases, fixed it

* fix: fixed breaking of sidebar on delete of all datasources

* fix: fixed issue that caused sidebar to not close

---------

Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com>
2023-06-20 11:08:56 +05:30
Kiran Ashok
8a6326fbb3
Bugfix :: Dropdown widget theme during disabled state (#6774)
* fix :: colors for dropdown in disabled state

* revert unwanted change
2023-06-20 10:44:12 +05:30
Kavin Venkatachalam
2c97c53522
Query switching with the same type not working (#6763)
* Fixed bug on updating values on the query panel when the query is switched

* Updated comment and logic to return
2023-06-20 10:43:34 +05:30
Ajith KV
e7578658bd
Added cypress test for bulk user upload (#6671)
* Add cypress test for bulk user functionality

* Add data-cy for uploaded file field

* Update toast messages

* check for Conflicting Group Memberships

* Add test cases for multiple groups and non exisiting groups

* Revert "check for Conflicting Group Memberships"

This reverts commit bdafd0e3fa.

---------

Co-authored-by: arpitnath <arpitnath42@gmail.com>
2023-06-16 16:08:12 +05:30
Arpit
d062cb8e31
Bugfix - handles plugins to move from gds to lds when importing app to different workspaces (#6268)
* handles plugins to move from gds to lds when importing app to a different workspace

* handles plugins to move from lds to lds when importing app to a different workspace
2023-06-15 17:32:25 +05:30
Mohith Gadireddy
03009a18e1
Fixed and Modified the popup UI (#6239)
* updated buttons

* Updated text on popup

* changed callback functions

* updated popup text

* made the changes to QueryPanel.jsx and reverted Confirm.jsx

* fix: fixed query pane going blank on deletion of selection query

---------

Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com>
Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com>
2023-06-15 16:53:48 +05:30
Jinson E B
04872bab8d
Modified the phoneInput field to have a default country code (#6613)
* Modified the null placeholder in phonenumber field to +1 in both lightMode page and darkMode page

* Fixed a quality of life issue by adding a default country code to phone input field
2023-06-15 16:34:01 +05:30
Midhun Kumar E
ee9b650995
Add data-cy for codehinder popup (#6651) 2023-06-15 14:10:09 +05:30
Midhun Kumar E
14e58afbd9
Add data-cy for global settings and release button (#6663) 2023-06-15 14:10:00 +05:30
Nazrul Hassan
a6f715e374
cursor pointer added fixes #6121 (#6474)
* cursor pointer added

* cursor:pointer added to theme.scss

* Reverted tabler changes

---------

Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com>
2023-06-15 13:33:12 +05:30
Avinash
d4a21c5dd2
refactor: removed event manager text (#6620)
Co-authored-by: Avinash <avinash.kumar@renegadeinsurance.com>
2023-06-15 13:32:49 +05:30
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