Commit graph

1983 commits

Author SHA1 Message Date
Ajith KV
7d89282776
Add happy path spec for Text Input widget (#4029)
* Add and modify data-cy for text input widget

* Add methods and utlis file for text input widget

* Add custom command for code mirror input clear function

* Modify common widget selectors

* Add and modify texts and labels

* Add spec file

* Add review changes
2022-09-23 18:03:05 +05:30
Midhun Kumar E
4d42efaa8f
Add cypress test for listview (#4070)
* Add data-cy

* Add utils

* Add spec and constants

* Fix commented lines.

* Added missing preview
2022-09-23 13:38:28 +05:30
Sherfin Shamsudeen
ddf28a1336 Merge branch 'main' into develop 2022-09-22 19:22:31 +05:30
Arpit
3e6c98ebcc
[Hotfix] Calendar widget : Default date is not updated dynamically and widget crashes for invalid dates (#4095)
* hotfix: pr-4073

* hack to update the exposed variable
2022-09-22 19:21:12 +05:30
Manish Kushare
02e4d5fac9
made Overflow dropdown in the columns section inside table widget inspector consistent with the dark theme (#3900) 2022-09-22 11:16:12 +05:30
Sherfin Shamsudeen
b5507b4ac5
Refactor table component (#3933)
* Updated the table UI

* made the search bar in sync with current applied theme in the application

* updated the UI of the table widget

* adjust x axis in the footer

* made the search text vertically center

* Load text color using new api in Table

* Load action buttons data using new api in table

* Revert usage of new api for table actions

* Use new api to load most properties and styles

* Move logic for loading styles and propeties to another file

* Table: Move loading of actions to separate file

* Move functions to expose data to codehinter to Box.jsx

* Table: Get loadingState from new api

* Table: Use reducer for storing table column properties

* Table: minor refactoring on reducer

* Table: Replace the use of internal state variable componentState

* Abstract out Filter as a separate component

* Move table column definitions to a separate file

* Move action column definition to a separate file

* Move IndeterminateCheckbox to a separate file

* Completely remove any requirement of loading from definition inside loadPropertiesAndStyles

* Reduce the use of reducer dispatch calls in Table.jsx

* Remove the usage of __TjDoNotResolve__

* Load actions without new API

* Update migration to make columnSizes follow default format

* Fix migration to restructure table column sizes data

* Do not update columnSizes property if incoming value is empty

* Remove unnecessary code

* Remove unnecessary linting

* Remove unnecessary reducer action

* Remove unnecessary code

* Merge table changeSet data into table details reducer instead of filter reducer

* Make compact and spacious cell sizing work for table

* Remove custom handling of onRowClicked for Table

* Fix issues with table visibility, border radius and disabled state

* Resolve the issue with invalid date crashing the table

* fixes:widget crash is only for those tables which do not have any actions associated with it yet. (#4078)

* Remove unnecessary code

Co-authored-by: Manish Kushare <manish.altcampus@gmail.com>
Co-authored-by: Arpit <arpitnath42@gmail.com>
2022-09-21 16:23:02 +05:30
Kavin Venkatachalam
3ae99adc57
[Bug]: Fixed localisation for subpath (#4057)
* Fixed localisation for subpath

* Fixed notification typo on localisation
2022-09-21 10:53:30 +05:30
Gandharv
9860cf639e
fix(webpack): remove devtool source-map in prod mode (#4066)
* fix: remove devtool source-map in prod mode

* undo unwanted change
2022-09-21 01:59:09 +05:30
Arpit
fb2540b4d8
[improvements] LeftSidebar Inspector (#4064)
* fixes: padding for inspector json

* fixes: padding for inspector json

* fixes: padding for inspector json

* adds {{}}: to copying the abs path
2022-09-20 10:14:24 +05:30
Muhsin Shah C P
638fcf7223
[Feature] Now multiple users can login through RestAPI-Oauth 🚀 (#4052)
* Implemented multiple access token feature
- working on refresh token case

* worked on refresh token flow

* added multiple token ability to openapi plugin too
- fixed some bugs

* changed tokenData to token_data
- fixed some issues

* added user type with user id

* changed user type

* Rewrote some function
- added switch for enabling and disable multi auth
- fixed some bugs
- refactored the code

* fixed view app issue

* Fixed public app issue

* cleaning some code

* (public_app) add a check to avoid oauth login redirect when there is no access token

* reverted all changes of openapi (temporary)
- will add multi token functionality once done with restapi

* fixed a bug

* fixed a bug

* refactored some code

* changed the switch text

* pr changes

* changed token_data back to tokenData

* cleaning code

* removed token data from datasources query

* removed some lines

* added a comment
2022-09-19 20:27:37 +05:30
Midhun G S
61158d8122
Merge main to develop (#4049)
* Fix: User group permissions error on Openshift platform (#4041)

* update dockerfile for file permissions on root group

* add permissions from the user group on dockerfile

* bump to v1.24.4

* bump to v1.25.0

* [feature] Added pagination and filtering features to users page (#3921)

* added pagination and filtering in backend

* added pagination
    - created a seperate component for users table
    - added pagination

* Added filter UI

* temporary css fix for pagination footer

* fixed pagination width issue

* now result will also clear when user clicks on clear icon

* Added seperate api for comment mentions

* Now we can search mentions by email, first and last names

* Fixed a bug
- email didn't send for comment mentions

* refactoring the code

* resolved PR changes

* Added isAdmin guard

* adding some checks

* fixed lint errors

* added wild card search

* Added no result found text

* fixed failing test case

* Working on PR changes

* Now users table avatars will load image too

* replaced skeleton classes with skeleton library component

* Completed PR changes

* added orderby

* Fixed some issues

* fixed failed test case

* have fixed some css issues

* replaced query with quersrting package

* fixed minor width issue

* Fixed some css issues

* fixed darkMode issue

* implemented on enter press search

* Refactored the code

* fixed white space issue

* refactored the code

* fixed overlapping issue

* refactored the code

* fixing some issues

* fixes

* removed guard

* code cleanup

* comments notification fix

* fixed conflict issues

* fixed css height issue

Co-authored-by: gsmithun4 <gsmithun4@gmail.com>

* Remove signup guard from set-password-from-token API (#4050)

* Remove sign up guard set-password-from-token API

* test cases fix

* Bump to v1.25.1

* Feature: Add PG_DB_OWNER env var to disable db and extension creation (#4055)

* add PG_DB_OWNER env var to disable db and extension creation

* update docs

* bump to v1.25.2

Co-authored-by: Akshay <akshaysasidharan93@gmail.com>
Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
2022-09-16 21:08:45 +05:30
Manish Kushare
59fb778287
Bug fixed :[ Checkbox widget ] label is not consistent with the dark theme (#3903)
* Bug fixed : label is not consistent with the dark theme

* removed console statement
2022-09-16 12:18:10 +05:30
Muhsin Shah C P
fa4c8fc909
[feature] Added pagination and filtering features to users page (#3921)
* added pagination and filtering in backend

* added pagination
    - created a seperate component for users table
    - added pagination

* Added filter UI

* temporary css fix for pagination footer

* fixed pagination width issue

* now result will also clear when user clicks on clear icon

* Added seperate api for comment mentions

* Now we can search mentions by email, first and last names

* Fixed a bug
- email didn't send for comment mentions

* refactoring the code

* resolved PR changes

* Added isAdmin guard

* adding some checks

* fixed lint errors

* added wild card search

* Added no result found text

* fixed failing test case

* Working on PR changes

* Now users table avatars will load image too

* replaced skeleton classes with skeleton library component

* Completed PR changes

* added orderby

* Fixed some issues

* fixed failed test case

* have fixed some css issues

* replaced query with quersrting package

* fixed minor width issue

* Fixed some css issues

* fixed darkMode issue

* implemented on enter press search

* Refactored the code

* fixed white space issue

* refactored the code

* fixed overlapping issue

* refactored the code

* fixing some issues

* fixes

* removed guard

* code cleanup

* comments notification fix

* fixed conflict issues

* fixed css height issue

Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
2022-09-16 10:42:53 +05:30
Midhun Kumar E
bfe0fe9cad
Add preview for Multiselect and Datepicker happyPaths (#3854)
* Modify data-cy and update spec

* Add data-cy

* Add preview for multiSelect

* Add preview for datePicker

* Fix Text data-cy

* Modify selectors and texts

* Resolve conflicts and commented few lines of code.
2022-09-14 16:19:56 +05:30
Manish Kushare
cff1c429f8
Bug fixed : List view widget background color is not consistent with the dark theme (#3867)
* Bug fixed : list view widget background color is not consistent with the dark theme

* replaced two condition check with one

* Fixed : If we pick white (#FFFFFF) then the dark mode is not handled.
2022-09-14 13:36:04 +05:30
Kavin Venkatachalam
7f702c1d6b
[Feature]: Added Localisation (#3746)
* Added localisation

* Closed modal after language selection

* updated transaltaion setup

* Updated language tooltip

* Added fallback language support

* Adding english library resource for translation (#3844)

* Adding English dictionary for the widget lists in the inspector

* added leftSideBar object in en.json and implemented it for leftSidebar icon text

* renamed leftSideBar to leftSidebar and added resources for tip in the left side bar

* added english translation resources for leftsidebar debugger

* added english language resources for the global settings

* added english language resources for data sources in left sidebar

* added english language resources for the share button and share modal in the editor

* added english language resources for release button, manageOrgUsers, appVersionManager

* added english language resources for Queries and Please select a widget to inspect in the editor

* added english language resources for data source list , data source manager, and query manager(partially)

* added english language resources for queryManager, transformation, preview

* added english language resources for dark mode toggle in the headers inside homepage

* added fallback message for dark mode toggle

* added resources for language change in the headers inside homepage

* added resources for notification center in the header inside homepage

* added resources for organization and manage users components in header inside homepage

* added resources in manageGroupPermission

* added resources for manageGroupPermissionsResources component

* added resources for manageSSO and generalSettings components

* added resources for google sso

* added resources for github sso

* added resources for environment variables in manageSSO

* added resources for profile and setting page

* added resources for app card and app card menu

* added resources for folder section and app list in homepage

* added resources for header section in the homepage

* added resources for pagination in homepage

* added resources for modals in the homepage

* added resources for blank page

* added resources for login page

* added resources for forgot password page

* added resources for sign up page

* added resources for onBoarding component

* added resources for reset password page

* deleted duplicate key for readDocumentation

* deleted duplicate key for cancel in en.json and added translation for cancel at few places

* removing duplicate copy of save key in en.json

* added translation for CommentActions.jsx components

* deleted duplicate copy of search key in en.json and added resources for create and search queries , select keys

* fix typo errors

* fixed typo errors

* shorten the key for loginAndSignUpAndForgotPassword to loginSignupPage in en.json file and related files

* shorten the key noLoginMethodsEnabledForThisWorkspace to noLoginMethodsEnabled

* shorten the key pleaseCheckYourEmailForConfirmationLink to emailConfirmLink

* shorten the key dontHaveAccountYet to dontHaveAccount

* shorten keys from loginSignupPage key in en.json

* shorten keys of shareModal nested object in en.json

* shorten the key in appVersionManager nested object

* shorten the keys for queryManager nested object in the en.json

* delete duplicate copy of environmentVar and shorten manageEnvironmentVariables,environmentVariables

* shorten keys in the organization nested object

* shorten keys in the homePage nested object in en.json file

* added inspector and eventManager empty object

* added resources to RedirectSSO component

* added resources for OAuth2

* added resources for TemplateCard.jsx

* added resources for TemplateLibraryModal.jsx

* added resources for ConfirmationPage.jsx

* added resources for ConfirmationPage component

* removed translation in App.jsx file

* added resources for Slack.jsx

* added resources for GoogleSheets.jsx

* added resources for CodeBuilder.jsx

* added resources for CommentBody and CommentFooter

* added resources for TestConnection component

* added resources for AllignButton.jsx

* added resources for Openapi and Stripe components

* added resources for ErrorBoundary

* added resources for Viewer.jsx

* Translation for widgets, table

Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com>

* Commented Language selection

* Fixed typos

* Updated fr.json file

Co-authored-by: Manish Kushare <kushare.manish9@gmail.com>
2022-09-14 13:34:49 +05:30
Manish Kushare
3f62230427
Bug fix : Container widget background color is not consistent with the dark theme (#3866)
* Bug fix : Container widget background color is not consistent with the dark theme

* replaced two condition checks with one

* made the suggested changes

* removed console.log
2022-09-12 14:34:24 +05:30
Manish Kushare
4cc239661e
Bug fixed : dark theme issues (#4009)
* bug fixed : file picker is not consistent with the dark theme

* bug fixed : Map widget is not consistent with the dark theme

* bug fixed : Steps widget is not consistent with the dark theme

* bug fixed : Multi select widget label is not consistent with the dark theme

* bug fixed : search bar in widget manager and label params in Code Hinter is not consistent with the dark theme

* removed unwanted comma in the chart inspector

* bug fix : app dropdown inside go to app in event manager is not consistent with the dark theme

* bug fixed : search select dropdown is not consistent with the dark theme in table inspector

* bug fixed : Organization and Profile avatar in HomePage is not consistent with the dark theme

* bug fixed : search box in the homepage is not consistent with the dark theme

* bug fixed : select dropdown input placeholder is not consistent with the dark theme

* bug fixed :Text area in the Modal to  Share the app link is not consistent with the dark theme

* bug fixed : p tag in pagination in the homepage is not consistent with the dark theme

* replaced undefined to false as default value of darkMode if not defined

* bug fixed : multiselect input placeholder is not consistent with the dark theme

* removed duplicate code from custom.scss and changed rgb to hex in theme.scss
2022-09-12 14:17:04 +05:30
Manish Kushare
b2ef2f272f
bug fixed : Text input widget is not consistent with the dark theme (#3990) 2022-09-12 13:32:58 +05:30
Manish Kushare
6fc8b84036
bug fixed : toggle switch is not consistent with the dark theme (#3925) 2022-09-12 13:00:38 +05:30
Arpit
0a8a01e002
[Bugfix] fixes app freeze, when password widget drops inside a listview (#4018)
* fixes app freeze, when password widget drops inside a listview

* fix:darkmode
2022-09-12 12:34:27 +05:30
Manish Kushare
a00e890f02
Bug fixed : Tree Select widget is not consistent with the dark theme (#3948)
* Bug fixed : Tree Select widget is not consistent with the dark theme

* only setting up condition for #000

* removed includes function
2022-09-12 12:12:18 +05:30
Manish Kushare
bf4ce92a77
Bug fixed : Pagination widget is not consistent with the dark theme (#3946)
* bug fixed : Pagination widget is not consistent with the dark theme

* removed console.log
2022-09-12 12:09:00 +05:30
mikebarr24
5dc1b88f23
Fix test in Listview (#4012) 2022-09-12 12:02:41 +05:30
Manish Kushare
59e0f31bbc
Bug fixed : Button Group widget is not consistent with the dark theme (#3950) 2022-09-12 09:54:41 +05:30
Manish Kushare
76461d9049
Bug fixed : radio button is not consistent with the dark theme (#3929) 2022-09-12 09:35:42 +05:30
Manish Kushare
1cf6b3340f
bug fixed : Password Input widget is not consistent with the dark theme (#3992) 2022-09-12 09:18:46 +05:30
Manish Kushare
d3d2076287
Bug fixed : canvas background colour is not consistent with the applied theme (#3956)
* Bug fixed : canvas background colour is not consistent with the applied theme

* bug fixed : canvas color is not consistent in the Viewer mode

* reverting back changes made earlier

* reverting back changes made earlier

* bug fixed : canvas background in editor is not consistent with the applied theme

* Bug fixed : Viewer component is not consistent with the applied theme
2022-09-09 22:01:27 +05:30
Gandharv
6686974023
Create query panel component (#3966)
* refactor: create query panel component

* prop typo fix
2022-09-08 18:39:13 +05:30
Sherfin Shamsudeen
9998184ba7 Merge branch 'main' into develop 2022-09-08 17:19:17 +05:30
Kavin Venkatachalam
d8195ec718
[Hotfix]: Render Only Active Tab Toggle (#3980)
* Added render only active tab toggle

* Added a comment for renderOnlyActiveTab
2022-09-08 16:22:01 +05:30
Sherfin Shamsudeen
0061b8b7e3
Make table always apply filters and expose filtered data (#3968)
* Make table always apply filters and expose filtered data

* Re-render table when computed table data changes

* Re-apply global filter using search text when table data changes

* Stringify table data before sending it as dependency for table data to be displayed

* Use data returned from Table internal state to ensure filters are always applied

* Do not autoreset filteres in table when data changes

* Show row count of filtered row set in Table
2022-09-08 15:51:45 +05:30
Muhsin Shah C P
5ab4f1bde5
[feature] Hide apps in dashboard (#3888)
* - Added new field under app view permission
- Added new column to appGroupPermission

* added queries for hiding app from dashboard

* changed a column name
2022-09-08 15:03:03 +05:30
Midhun G S
0471b72fc4
turned off loading in confirmation page (#3973) 2022-09-08 14:54:42 +05:30
Roei Yaacobi
15486c5374
Make tooltip text for hide query visible (#3918) 2022-09-08 08:12:25 +05:30
Kiran Ashok
91705b4922
[ Bugfix ] :: calendar preview is broken when events are added as a result of any query (#3928)
* fix :: checking type of events  to assign empty array initially

* cleanup

* checking array
2022-09-06 08:28:28 +05:30
Erfan Naghashlou
473104e1ff
refactor: remove @babel/plugin-proposal-class-properties (2nd PR after CLA problem) (#3959)
* refactor: remove @babel/plugin-proposal-class-properties as plugin

* Remove class properties plugin from babel.config.js, Update frontend package.json, Update frontend,server,plugin package.lock.json
2022-09-05 22:41:03 +05:30
Akshay Sasidharan
0dc2295c09 Merge branch 'main' into develop 2022-09-05 21:11:41 +05:30
Akshay
0d482f8161
Revise docker setup (#3954)
* fixes separate client build

* update docs

* add SERVE_CLIENT flag for dev docker step for uniformity

* Doc changes

* Doc changes

* Doc changes

* update readme

* add separate docker compose setups

* Doc changes

* rename compose files

* remove unused dependency

* rename service name to server for uniformity

Co-authored-by: Navaneeth Pk <navaneeth@tooljet.io>
2022-09-05 21:06:11 +05:30
Gandharv
83c66c55cc
refactor: update sentry sdk + add profiler (#3938) 2022-09-05 16:35:58 +05:30
Ajith KV
21e7162665
Cypress test for button widget happy path (#3776)
* 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>
2022-09-05 14:06:45 +05:30
Midhun G S
4f001f9214
fixes for rest api url encoded requests (#3924) (#3931) 2022-09-01 18:53:19 +05:30
Gandharv
bbb99f3778
ci: fix lint stage (#3926) 2022-09-01 16:49:23 +05:30
Gandharv
c324ff8d28
chore: move devDeps to deps in package.json (#3916)
* chore: move devDeps -> deps

* change pos of preview-email import

* fix lint
2022-09-01 11:33:23 +05:30
Miho
74a65456ed
Fix the type of input for textSize property and adjust the width (#3896) 2022-08-31 22:07:00 +05:30
Akshay Sasidharan
fcfc2735e0 Merge branch 'main' into develop 2022-08-31 20:47:52 +05:30
Akshay
368330ec9a
subpath fixes (#3919) 2022-08-31 20:44:08 +05:30
Gandharv
eed9ff4909
fix: eslint config (#3915) 2022-08-31 13:06:16 +05:30
Arpit
c4b8a82491
[Hotfix] Not able to select date with Datepicker widget (#3886)
* fixes: datepicker popup

* fixes: border-radius
2022-08-30 14:16:39 +05:30
Aashish Upadhyay
b6b0cf6476
Refactors babel-parser (#3882) 2022-08-30 09:19:49 +05:30