Commit graph

169 commits

Author SHA1 Message Date
Kavin Venkatachalam
e7a833b70d
Make TooljetDB as first item in query panel (#5229) 2023-01-06 14:29:25 +05:30
Kavin Venkatachalam
8d9442a3e2
Fixes preview bug on restapi (#5201) 2023-01-05 12:43:05 +05:30
vjaris42
9e0f864a11
[Fix] :: app version dropdown UI (#5181)
* fix: app version ui and delete modal

* replace: TooljetDb query text on Query panel
2023-01-04 17:41:40 +05:30
Midhun G S
0e3c9b7da2
Fix: Bug on query create if two ds in same kind (#5167) 2023-01-04 10:03:18 +05:30
Kavin Venkatachalam
fe4ba616a5
[Bug]: Query Manager Bugfixes (#5089)
* Fixes draft query & name issues on query manager

* Fixes textarea showing in RunJS while switching queries

* Fixes clearing unsaved values while resizing the query panel

* Fixes showing confirmation popup on tooljetdb without any changes

* Removed unwanted changes

* Fixes toggling off the raw JSON on body brings you back to header in REST API

* Fixed modal showing on tooljetDB
2023-01-03 15:59:31 +05:30
Manish Kushare
b0d401df36
[ Bug fixed ] : UI is not consistent when query name is large in query panel header (#5098)
* truncate the query name excedding 20 letters in the query panel header

* made the suggested changes

* bug fixed
2023-01-03 15:04:49 +05:30
Manish Kushare
b5d456a7fb
bug fixed : restAPI is getting created everytime after adding new datasource or deleting a data source (#5115) 2023-01-03 12:59:47 +05:30
Manish Kushare
59d2acfb88
[ Bug fixed ] : Edit version pop-up is not getting closed after clicking on x button (#5118)
* bug fixed : edit version pop-up is not getting closed after clicking on x button

* made the suggested changes
2023-01-03 08:31:47 +05:30
Gandharv
71e47e088f
Merge branch 'v2-beta' into chore/develop-to-v2-beta 2022-12-30 11:37:12 +05:30
Manish Kushare
4b5c65eeef
feature added : display loader in Run button when query is running (#5112) 2022-12-30 08:58:17 +05:30
Arpit
1fcd9bb5e1
tj query requires filter options and where (#5102) 2022-12-29 18:14:20 +05:30
gandharv
88fb4aca6f Merge branch 'develop' into chore/develop-to-v2-beta 2022-12-29 17:44:34 +05:30
Arpit
acefdb8400
fixes: tj query query panel (#5083) 2022-12-28 21:15:09 +05:30
Kavin Venkatachalam
b9be30aff3 Fixes conflicts 2022-12-28 17:35:19 +05:30
arpitnath
b2b4c448f3 fixes conflicts 2022-12-28 15:01:31 +05:30
Sherfin Shamsudeen
d6a72b50bd Merge develop to v2-beta 2022-12-27 20:10:33 +05:30
Akshay
602b1b4ad3
Feature: Tooljet Database (#4951)
* wip

* internal db per workspace

* fix async query

* feat: add storage layer route

* feat: add drawer component

* feat: add react-table to load data

* feat: add columns form

* feat: add create column form, create row form

* feat: add postgrest js

* add tooljet db controller to proxy requests to postgrest

* util: add postgrest filter builder helper utility

* feat: add filter popover

* use helper utility for building query

* add sortable filters

* add box shadow for filter popup

* use overlay trigger

* use react select

* add new column addition

* add dropdown for table header, table list

* Move filter.jsx

* feat: add sort popover

* feat: add postgrest js .order fn

* setup tooljetdb with restricted grants for users

* make db schemas added loaded dynamically on postgrest server

* fix query

* sign jwt token to auth user at postgrest

* update db schema user with workspace

* chore: add table listing

* update data and columns from api

* feat: add context api for sharing data

* add ability to create table, view tables and add columns

* use columns for sort from context api

* fix ormconfig

* feat: add table listing integration

* feat: add create table integration

* fix for rds deployment

* add internal table translation instead of schema

* remove tooljetdb as a datasource

* wrap placeholder on proxy query

* add active workspace guard

* scope tooljetdb by workspace

* update active workspace guard

* seperate proxy related concerns to different service

* make use of org id param

* rename storage layer to tooljet databse

* update specs

* feat: Update list when new table added

* feat: add create column

* chore: add orgId to url + misc changes

* chore: move popover to separate file

* remove unused var

* rename files

* feat: add multiple columns

* feat: add new row

* removes postgrest-js from pkg lock

* feat: add row data

* feat: add sorting

* feat: allow row deletion

* feat: add search

* feat: add filtering

* feat: add edit mode

* feat: add columns while edit table

* add view table action

* update setup for column constraint

* fix query

* integrate view_table, primary key field

* render toogle for boolean data type

* update view table query for primary key

* fetch metadata refactor

* add capability to set default values

* feat: allow deletion of record based on primary key

* feat: add default value while creating column

* send query from sort & filter component

* css changes

* allow empty data

* add requested changes

* add err message

* add common fn

* allow sort + filter

* remove unwanted defaults key

* css changes

* add more operators

* dark mode fixes

* add drawer footer

* add loader for list tables

* add dashboard design changes

* design changes

* add capability to drop table and delete column

* add breadcrumbs

* design changes

* add profile

* refactor tooljetdb controller

* update routes

* add empty page changes

* delete column fix

* fix delete column

* design changes

* fetch tables post delete

* homepage changes

* hide ellipsis on hover

* add org settings page

* add edit + create org

* add notification center

* fix: group permissions switch issue

* add logo

* remove anchor tag

* fix merge conflicts

* css changes

* add err boundary

* setup query editor

* css changes

* fix: merge conflicts

* add menuPortal prop to filterform and sort form

* fix seed

* fix: build

* design changes

* design changes + refactor code

* fix imports

* fix: drawer issue on delete table

* add search box changes

* fix: tablename max-length 255

* fix: set newly created table as selected item

* remove edit column option

* added badges to enterprise only features

* disable edit column

* table styles

* fix: popover position, placeholder default

* fix: display boolean values in table

* fix: tooljet database default type values

* css changes

* add query manager for tooljet db with create and list row

* dark mode fixes

* remove Header component

* add ability to delete tooljetdb rows from query manager

* add ability to update tooljetdb rows

* dark mode fixes

* css changes

* display actions icon on hover

* folder onclick change

* add empty page styles

* fix proxy requests

* feat: randomize icon creation

* add max items per page prop for pagination

* removes unwanted position attr

* add table name validation + disable submit btn while api fetch

* [Bugfix] internal storage toast  | trigger toasts for running preview db queries (#5019)

* resolves: no toasts are fired when preview query is run for db queries

* fire success toast for created and no content status text for query success

* remove invalid migration

* skip migration if tooljet db already created

* fix: app clone icon param

* fix: show confirmation box if filter options are empty in query (#5021)

* for now: show native confirmation box of the brower to confirm the delete all query

* typo

* Revert "typo"

This reverts commit b5ce5ed889.

* cleaned

* cleaned

* show confirmation box if filter options are empty in query

* [Refactor/Bugfix] database query (#5028)

* refactored list rows operations

* remove unwanted cls

* refactor create row

* reafactored update rows

* refactored delete rows

* padding fix for tj-query

* add static templates

* review changes

* remove unused file

* Chore: tooljetdb render setup (#5033)

* add postgrest for render preview deploy

* pin version

* add healthCheckPath

* remove health check

* handle database url parsing db params

* add defaults for tooljetdb env

* fix hostname

* handle env in migration files

* refactor dbconfig build

* fix pg db usage

* add parsed env context

* add tooljetdb env

* refactor db config utils

Co-authored-by: gandharv <gandharvkumargarg@gmail.com>
Co-authored-by: Shubhendra <withshubh@gmail.com>
Co-authored-by: Arpit <arpitnath42@gmail.com>
2022-12-23 02:09:57 +05:30
Manish Kushare
0ef27c9fc5
[ Bug fixed ] : able to rename a query name to existing one (#5031)
* bug fixed : able to have rename a query to existing one

* refactored code and added toast error message
2022-12-22 19:57:52 +05:30
Manish Kushare
4a4c9be831
bug fixed : not able to view query, once we click on breadcrum if only single query present (#5032)
solved bug for save and create button
2022-12-22 19:34:46 +05:30
Manish Kushare
ba7e38b7d9
[ Enhancement ] : Query panel UI design (#4757)
* added colors variable in color.scss

* made left side bar of query panel width fixed to 249px and main container width to grow accoding to available width of query panel

* made UI updates in query container - left sidebar of query panel

* set query name font weight to 400

change the border color of left sidebar of query panel

added colors in colors.scss

commented unused variable

* UI update for header in the leftsidebar of the query panel

* updated width of the primary default secondary button

* Updated UI for query panel header

* draf : tranfomration UI update

* draft - preview section UI update

* draft : query manager advance options UI update

* draft : UI update for restApi query editor

* update

* femoved disable save button logic

* small updates

removing box shadow for rest api options button

adjusted spacing for data source selectionn div

* reverting changes in _ui/Search component

* bug fixed : Query Panel header spacing and alignment issues

dark theme update

* spacing and dark theme update in query container

* bug fixed : transition issue in tabs

* dark theme updates and bug fixes

* input checkbox update

* added cursor pointer to input checkbox

* updates

* updates

* bug fixed : removed typo error from last commit

* update

* added 3 rows in rest api tab content by default

* update spacing between datasource picker and element to render div

* spacing top for event manager section

* removed inline style from preview component

* data source lister font size update

* removed inline style from editor component and added style in css

* small updates

* applied color theme for dropdown options in the query manager

* added cursor pointer to control section of dropdown

* updated select data source section in query manager

* dynamic form bug fixed

* bug fixed : breadcrum

* bug fixed : toggle in GroupHeaders is not consistent with the dark theme

* bug fixed : clear icon in searchbox in query manager

* bug fixed : color in rest api in request url

* search box query manager final design

* small update

* made suggested changes

* query editor design for stripe query

* made changes in stripe

* updated the files with minor changes

* made minor updates in stripe

* set Get as default method in rest api

* add functionality to update query name from query panel header as well

* change the width of list data queries section

change size of icon to 20px

* updated changes

* created queryManager.scss file

* added default value to input text box in the query panel header

* bug fixed

* fixed minor bugs

* moved custom-toggle css in queryManager.scss

added on focus css for ternary button

* removed unsued lines from queryManager.jsx

* bug fixed: spacing in search box

* bug fixed: spacing in search box

* code enhancement as per changes requested

* fixed : search box component breaking inside DataSourceManager component

* made a function to style select component in query manager

* styles select component in rest api and transformation using common method

* chnaged run query on page load to application load
2022-12-20 18:38:51 +05:30
Kavin Venkatachalam
a8fa6693d9
[Enhancement]: Query Builder Improvements (#4893)
* Added unsaved changes popup on query manager

* Cleanup changes in codehinter

* Fixed bug on clearing query values while dropping widget

* Persisted changed value in transformation during toggle

* Persisted updated value with dark mode toggle

* Fixed clearing transformation on initial render of confirmation popup

* Fixed getting confirm dialog on focusing fields

* Fixed getting confirm dialog for older queries with transformation

* Reverting the timeout change as it causes very much delay in hude apps
2022-12-19 14:57:14 +05:30
Arpit
c5d03f904c
[Feature] Runpy : support for running Python code as a query (#4690) 2022-12-16 14:35:59 +05:30
arpitnath
4c56b08677 passing pages from props to event manager, query manager 2022-12-13 15:00:46 +05:30
arpitnath
670931c713 fixes: app crash on selecting page switch event for query manager, form and settings modal 2022-12-13 14:29:41 +05:30
Arpit
9c1add517f
Update runQueryOnPageLoad-text (#4947) 2022-12-13 12:21:44 +05:30
Midhun Kumar E
138ad797d0
Added cypress test for data source PostgreSQL (#4602)
* Add data-cy

* Add basic spec

* Add basic method to create query

* Add data-cy for query section components

* Add common method for postgreSQL

* Update spec with methods

* Add data-cy for alert-box and query search elements

* Add method for widget integrations and event handler

* Add selector into selectorFile.

* Fix failing cases

* Add labels on Text file

* Fix failing specs due to rerendering

* Remove creds from spec
2022-11-11 11:15:12 +05:30
Arpit
250e58cc38
[Bugfix] Query Manager: Creating a query, the options are set to their previous state used to create the last query from the same datasource/plugin (#4736) 2022-11-08 18:18:28 +05:30
Arpit
62d2480d04
renders plugin icon from manifest file (#4724) 2022-11-07 14:33:39 +05:30
Arpit
25836743a7
[Bugfix] : validating query name on throws error for non-existing queries (#4698)
* fix

* fixed computing queryName
2022-11-03 17:27:34 +05:30
Arpit
476e011063
persist data without saving the query (#4649) 2022-10-31 19:08:26 +05:30
Gandharv
a1fd1fc301
[Feature] Make plugins installable (#3069)
* feat: add user avatar

* update: @nest/platform-express from 8.0.0 to 8.4.4

* add avatar_id in login response

* add user avatar upload in frontend

* align cross divider with layout icons'

* generate nest model - extensions

* Add extensions module

* Add extension to datasouce

* add not implemented check

* create extension

* refactor

* cleanup

* fix tests

* reduce the avatar size on homepage

* poc: run js code from string

* resolve conflicts

* fix conflicts

* add globals

* add new route

* add icon, manifest file upload

* complete user flow

* add flow for data queries

* add dynamic manifest instead of local datasource types

* add version attr

* remove unused code

* add version

* rename extension(s) -> plugins(s)

* add test connection method

* feat: add marketplace listing page

* Add install plugin cmd + missing attrs {name, repo, desc} to plugin

* add missing icon

* - Add npm workspaces for marketplace monorepo
- Added cassandra datasource plugin
- Created upload to s3 script
- Created plugins.json entry file

* install plugin from s3 bucket

* cleanup

* update pkg locks

* fix icon render

* cleanup

* marketplace changes

* ui changes

* operations file load fix + revert vm2

* update module from string to 3.2.1

* load plugins.json from local file instead of remote

* install plugin from local file if not production environment

* add sqlite

* feat: add plivo api plugin

* exp: add heroku 22 stack

* update assets include path

* Revert "exp: add heroku 22 stack"

This reverts commit a8926b36e1.

* add integrations link

* Add casl ability for plugin

* load host from env else fallback to default

* update imports

* remove sqlite

* typo

* add marketplace flag to cli command

* move ts and ncc to devDep

* add hygen templates for marketplace

* cli tree-node path fix

* template indent fix

* TOOLJET_URL -> MARKETPLACE_TOOLJET_URL

* add tests

* refactor: move to plugins.helper for get-service helper utility

* fix; typo

* update package-lock.json

* review changes

* remove a href

* remove bg color + redirect issue due to href

* add test url

* fix crash on search

* remove extra slash

* feat: allow plugin to be installed from github repository

* remove unwanted args from cli command

* add repo attr while save

* feat: add feature toggle for marketplace feature

* fix: make default config as false

* chore: remove hyperlink

* fix: failing build

* chore: update s3 url to point to prod

* fix failing test

* fix test

* fix: test case

* update module from string pkg

* update env

* fix test

* fix test

* add readme file

* Update README.md

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
2022-10-27 16:59:43 +05:30
Arpit
946be9a340
Feature: Support to run Python code in Transformations (#4532)
* init 🚀

* supports Map or hastables in leftside json inspector

* handles python errors

* transform map to json

* persist transformations with custom hook

* load pyodide from frontend/assets

* asset path

* fixes csp error and adds subpath

* subpath

* subpath fix

* dir name changed

* default value syntax

* typo

* dropdown order
2022-10-27 14:11:26 +05:30
Manish Kushare
caa288ad2c
[ Enhancement] : adding local storage support in query manager panel (#4087)
* added localStorage support for query panel component

* fixed typos

* added queryManagerPreference in localStorage

* adding support for backward compatibility

* removed JSON parse from if statement
2022-09-29 12:52:00 +05:30
Kavin Venkatachalam
10e81bd5a9
[BUG]: Fixed Query Definition Lost (#4122)
* Removed mounting and unmounting of EventManager based on loadingDataSources

* Fixed lost defintion when try to add query and come back again

* Uncommented confirmation dialog on unsaved query

* Updated restapi url text-color to black

* Commented unsaved changes popup
2022-09-28 15:06:13 +05:30
Manish Kushare
2a3db48855
bug fixed : The result of the previous previewed query remains (#4115)
* bug fixed : The result of the previous previewed query remains

* moved the previous added code in setStateFromProps to avoid extra rendering
2022-09-27 13:18: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
Gandharv
6686974023
Create query panel component (#3966)
* refactor: create query panel component

* prop typo fix
2022-09-08 18:39:13 +05:30
Manish Kushare
33a7638100
Bug Fixed : Success message not displayed clearly in dark mode in advanced option for queries (#3861)
* Bug Fixed : Success message not displayed clearly in dark mode in advanced option for queries

* removed form-control class
2022-08-25 17:11:11 +05:30
Arpit
6ea6215126
[chore] ESLint fixes (#3749)
* lint fixes for frontend

* resolves warning and run eslint: some dependencies  use another version of ts
2022-08-06 09:34:07 +05:30
Manish Kushare
b096516c62
Bug Fixed : request confirmation before running keeps showing loader, when click cancel (#3641)
* Bug Fixed : request confirmation before running keeps showing loader, when click cancel

* fixed the bugs

* made the suggested changes, removed unused lines
2022-08-03 16:34:37 +05:30
Kiran Ashok
c2278f95ed
[ Feature ]:: runjs included all actions (#3436)
* remaining action types included

* improvements

* fix :: generateFile

* editor state included in previewquery for modal , cleanup , renaming some actions , all actions tested

* including app definition state for modal

* logs cleared
2022-07-08 18:38:55 +05:30
Sherfin Shamsudeen
50cf1f5911
Proper styling for query panel create/save button (#3315) 2022-06-18 00:52:16 +05:30
Kavin Venkatachalam
b570fe2d40
Dropdown button in query manager (#3313) 2022-06-17 17:53:59 +05:30
Kavin Venkatachalam
337e033832
[Feature]: Run query while Creating/Saving (#3131)
* Run query while saving it

* Fixed data update while save & run query

* Fixed loading issue in the query

* Added check to avoid crash during create/run
2022-06-16 18:04:07 +05:30
Kiran Ashok
48dc072f17
Feature :: adding 'add datasource' option on datasource panel (#3191)
* adding datasource button

* lifting stateup :: completed

* naming update

* name change

* checks for udefined

* Revert "checks for udefined"

This reverts commit c542359e0f.

* icon updated

* fontweight removed
2022-06-15 16:16:51 +05:30
Kiran Ashok
8545689a3b
bugfix removing transformation for runjs (#3185) 2022-06-02 14:56:26 +05:30
Muhsin Shah C P
28bac00491
[bugfix] Now the app exit modal will not show if there isn't anything to save (#3167)
* Now, the exit app pop up modal will only show if there are any changes to save

* Resolved a bug

* Refactored the code
2022-06-01 17:44:59 +05:30
Muhsin Shah C P
7c6ccccf08
Disabled the feature (#3177) 2022-05-31 21:52:21 +05:30
Muhsin Shah C P
b4809db0ac
[Feature] Added an option to save edited queries to avoid losing values by state changes 🚀 (#2944)
* Implemented basic edited queries tracking for normal plugins (queries)

* Implemented on custom plugin also

* Resolved a bug

* now, save modal will not popup if querypane moved

* Resolved restapi array values issue

* Removed unwanted lines

* Resolved issues
- losing selected datsource while Query pane being dragged
- Triggering save modal when theme mode changes

* Now, application will be save unsaved new queries

* Resolved some issues
2022-05-24 04:02:59 +05:30
Maurits Lourens
563b18e81c
#2740 - fix refreshing selected datasource component (#2828) 2022-05-12 07:01:20 +05:30