Commit graph

2745 commits

Author SHA1 Message Date
Kavin Venkatachalam
1223a6a42c
Merge pull request #7298 from ToolJet/main
Merge main to develop
2023-08-22 09:52:32 +05:30
Arpit
aa1acbe230
bugfix - Fixes add constants support to auth headers (#7271)
* fixes: prevent the default form submission behavior when the user presses "Enter"

* should allow empty strings as value

* handle loading state

* adds support of constants to restapi auth components, openapi

* support of constants to oauth

* support of constants to zendesk

* support of constants to restapi headers
2023-08-17 14:50:31 +05:30
Muhsin Shah
2680ac201d couldn't see the currentUser globals 2023-08-16 17:10:39 +05:30
Ajith KV
a4dd90d309
Fixed failed test cases for platform/v3.0 release (#7270)
* fix failed test cases

* Add check for cypress first render
2023-08-16 15:48:43 +05:30
Arpit
cacd456812
Lint fix: platform 3.0 - updates lock file (removes unwanted deps) (#7262)
* update lock file

* disbale import/no-resolved
2023-08-14 16:20:39 +05:30
Arpit
ee79b2015a
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 14:28:51 +05:30
gsmithun4
3c4eb1d174 Merge branch 'main' into platform/v3.0 2023-08-14 13:07:20 +05:30
Kavin Venkatachalam
430cd18b29
Merge pull request #7249 from ToolJet/main
Merge v2.13.1 to develop
2023-08-11 14:46:22 +05:30
Rahul Waghmare
18d8358fbc
bug:fixed / PasswordInput Component Not Adapting to Dark Mode (#7035)
* Bug fixed Password input box dark mode issue

* CSS fixed added support to apply style from widget inspector
2023-08-11 10:40:45 +05:30
memkgupta
1cb6a1efdc
FIX #7202 Replaced Placeholder 'Search Items' to 'Search apps in this workspace' (#7208) 2023-08-11 08:44:36 +05:30
arpitnath
2bf6d97d33 lint fixed 2023-08-10 17:06:56 +05:30
David Volquartz Lebech
79c3cd4b45
Allow multi-line editing of Text column in Table (#6753)
This commit adds support for multi-line editing of the Text type column
in the Table component by:
1. When holding the SHIFT key, hitting ENTER does not stop editing.
2. Adjusting CSS white-space for <textarea> so newlines are visible.
2023-08-10 16:56:55 +05:30
Mustajab Ikram
970e85cd9f
refactor: updation of the text Datasource 101 to Datasources (#7098) 2023-08-10 16:56:40 +05:30
Shyam Tawli
fb17e9f2d3
Add Enter Key Functionality to Execute handleSend on Button Press (#6967)
* Add Enter key event listener to execute handleSend on Button press

Signed-off-by: shyamtawli <shyamtawli2@gmail.com>

* Fix: change key press from button to input field

---------

Signed-off-by: shyamtawli <shyamtawli2@gmail.com>
2023-08-10 16:55:50 +05:30
Prabhjeet
221a18429f
[fix]: fix query panel text (#6962) 2023-08-10 16:55:25 +05:30
Kinski (Jiaxin) Wu
74614cf42c
modifiy tooljet database text to include uppercase (#7166)
Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>
2023-08-10 16:54:09 +05:30
Durgaswamy
8b7a53a335
fixed dark mode inconsistency in query formation dialog box (#6966)
* fixed dark mode inconsistency in query formation dialog box

* fixed typo Tooljet to ToolJet in Select DataSource

* reverted changes pushed for issue #6945
2023-08-10 16:52:17 +05:30
Gokulakrishnan Shankar
40cf64dec4
Added functionality to save edited workspace name on pressing 'Enter' (#6811)
* Added functionality to save edited workspace name on pressing 'Enter'

* Update EditOrganization.jsx

Co-authored-by: Arpit <arpitnath42@gmail.com>

* Resolved accidental syntax error

---------

Co-authored-by: Arpit <arpitnath42@gmail.com>
2023-08-10 16:51:26 +05:30
Juned Khan
97930a619c
changed placeholder to be consistent with labels, resolved PR comments (#6959)
Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>
2023-08-10 16:50:04 +05:30
Akshay Chaturvedi
b6cc59e745
fixes issue #7096 for toggle switches activating in the entire line (#7146) 2023-08-10 16:48:00 +05:30
Kushal Mitra
f87cb1c3d0
web-dev-kushal/issue: #6760 (#7009)
* Updated Folders.jsx

* lint fixes

---------

Co-authored-by: arpitnath <arpitnath42@gmail.com>
2023-08-10 16:47:31 +05:30
Johnson Cherian
55cdc7a0b5
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 18:01:48 +05:30
Muhsin Shah C P
4f9f555187
[hotfix] Invitation URLs and SSO redirection URLs are not subpath compatible (#7155)
* Added subpath compatible code to the invitation URL generation

* fix: sharable app link
- launch app url

* Added PR changes
2023-08-08 19:26:55 +05:30
Muhsin Shah C P
2a7d1fdde4
fix: app redirection after successfull login (#7177) 2023-08-06 11:03:30 +05:30
Arpit
a0df3c0b5d
removing copilot from ce (#7190)
* removing copilot from ce

* remove unwanted code
2023-08-06 11:02:52 +05:30
Muhsin Shah C P
afddc33457
[Hotfix] Flashing login page again after SSO login is success (#7156)
* Added code for redirecting to workspace page
- old flow was redirect back to login page

* Added redirect path support while login
2023-08-06 11:02:03 +05:30
Muhsin Shah C P
62bb415b4a
Added mode to the inspector (#7197) 2023-08-06 11:00:10 +05:30
Akshay Sasidharan
22ae4925c7 Merge branch 'develop' into release/marketplace_1.2 2023-08-03 12:13:24 +05:30
Akshay Sasidharan
d2a99c6853 Merge branch 'release/marketplace_1.2' of github.com:ToolJet/ToolJet into release/marketplace_1.2 2023-08-01 14:43:00 +05:30
Muhsin Shah C P
b909485201
[fix] Local datasource is crashing for cloned apps. (#7165)
* Adding cypress workflow to main (#7162)

* fixed local datasource issue

---------

Co-authored-by: Adish M <44204658+adishM98@users.noreply.github.com>
2023-07-31 22:46:04 +05:30
Muhsin Shah C P
930185d758
Disabled global setting for released versions (#7163) 2023-07-31 16:06:59 +05:30
gsmithun4
1eba9b7fe2 Merge branch 'main' into platform/v2.0 2023-07-25 14:38:06 +05:30
Kavin Venkatachalam
6253273c5d
Merge pull request #7080 from ToolJet/release/v2.10.3
Release v2.11.0 - App builder 1.2
2023-07-25 14:09:06 +05:30
Arpit
47971c0aab
fixes: server vars resolver client-side (#6957) 2023-07-25 13:54:03 +05:30
Manish Kushare
b1ff54c348
Support for backward compatibility for nested data in the table (#7121)
* support for backward compatibility

* for new app setting generateNestedColumns to true

* bug fixed , table crashes when connected with postgres

code enahncement
2023-07-25 11:01:29 +05:30
Johnson Cherian
afa2f947d3
fix: delay before save fn to wait for input blur (#7109)
* fix: delay before save fn to wait for input blur

* fix: remove local state form runjs to avoid delay api call and state update
2023-07-24 16:52:25 +05:30
Johnson Cherian
27c966a9e0
fix: round element width to multiple of gridwidth (#7085)
* fix: round element width to multiple of gridwidth

* fix: roundd the width to multiple of gridwidth on resize
2023-07-24 16:51:03 +05:30
Muhsin Shah C P
0e1f96ab40
[hotfix] App isn't redirecting to the the home page if the user doesn't have access to the app but the user is already authenticated to the same workspace (#7043)
* handle 403 error

* changed redirection login

* reverted and added some code

* Added workspaceId to the redirection URL
2023-07-24 16:40:41 +05:30
Manish Kushare
ccfa5afe94
Bug fixed row clicked event is not working (#7082)
* fixed : row selection not working

* fixes lint error

* code enhancement
2023-07-24 16:38:22 +05:30
Manish Kushare
b6106073b5
Bug fixed columns are created for each element in the array while auto-generating columns (#7089)
* bug fixed tag column type auto generation issue

* simplified if conditions
2023-07-24 16:37:07 +05:30
Kiran Ashok
29a2a16583
fix :: box shadow not getting applied to datepicker (#7083) 2023-07-24 16:36:49 +05:30
Muhsin Shah C P
4d09c3b148
Added a fix for snake case properties (#7112) 2023-07-24 16:35:09 +05:30
Johnson Cherian
95d67b4ce8
style: position parameter popup inside query editor (#7105) 2023-07-24 16:34:38 +05:30
Nakul Nagargade
2a83ef5b09
[BugFix] Fix dynamic form breaking in case "react-component-headers" form type outside of the editor (#7113) 2023-07-24 16:34:26 +05:30
Muhsin Shah C P
1a0b317aed
changed logout redirection (#7055) 2023-07-24 16:27:20 +05:30
vjaris42
9abf451b67
fix: dropzone file picker (#7081) 2023-07-24 16:11:30 +05:30
Anantshree Chandola
ebc5b79374
Remove validation for last name of users, Resolved: update user details bug (#6904)
* remove validation for last name of users

* lint issue

---------

Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
2023-07-24 15:47:58 +05:30
gsmithun4
8f73f62d82 Merge branch 'main' into platform/v2.0 2023-07-24 12:38:29 +05:30
Kavin Venkatachalam
5427245497 Merged with main 2023-07-24 11:19:35 +05:30
Muhsin Shah C P
80ee7b7cac
[Improvement] Auth flow improvements for RestAPI, OpenAPI & GraphQL (#5324)
* Added access token url headers option to open api

* removing and adding code

* add authentication in GraphQL as RestAPI (#6687)

* add authentication in GraphQL as RestAPI

* fix: remove double header check

---------

Co-authored-by: Jean-Baptiste PIN <jeanbaptiste@idruide.com>

* refactor auth flows for restapi, openapi & graphql

* fix type errors

* remove redundant declarations

* fix openapi build error

* update authUrl for OAuth

* fix oauth check

---------

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
Co-authored-by: Jean-Baptiste PIN <jibet.pin@gmail.com>
Co-authored-by: Jean-Baptiste PIN <jeanbaptiste@idruide.com>
2023-07-21 15:38:56 +05:30