Commit graph

123 commits

Author SHA1 Message Date
Tanmoy Bhowmik
537b18ae47
Hide result when suggesting data source (#3034) 2022-05-12 06:56:05 +05:30
Eyuel Berga Woldemichael
31b4195aa2
Add count of elements to new datasource modal (#2846) 2022-04-18 20:23:31 +05:30
Arpit
64cfcc6acd
Fixes a typo in datasource modal (#2270) 2022-02-17 00:07:31 +05:30
Midhun G S
f2088be23b
[BUG-2187] Plugins manifest.json isLoading type should be boolean (#2188)
* bug-2187 fix

* add encrypted field
2022-02-08 08:44:38 +05:30
Midhun G S
72db6f6d8c
Tooljet CLI deployment and sanity check (#2096)
* feature-2054 plugin cli

* plugin cli

* readme changes

* npm publish

* Review comments

* Review comments

* cli fix

* added build flag
2022-02-05 06:49:49 +05:30
Arpit
dbc1e4d350
[Bugfix] On clicking Go to all datasources, UI renders the same compone… (#1930)
* fixes: On clicking Go to all datasources, UI renders the same component again

* fixes: modal datasource state update issue

* removes unwanted comments
2022-01-29 06:58:51 +05:30
Arpit
93a6853639
Fixes re-render issue of tabs (#1915) 2022-01-24 14:31:26 +05:30
Gandharv
d50ee7967c
fix lint issue (#1905) 2022-01-23 14:23:01 +05:30
Arpit
22b22b6975
Improvement/inspector datasource modal (#1821)
* new modal body with sidebar

* sidebar list

* card ui component and render datasources in deck of cards

* style fixes-datasource modal

* modal card ui

* refactored cards

* Card refactored

* data source list modal

* modal margin topt

* modal datasource search bar

* styles fixes and searchbar

* style fixes for the search bar

* margin fixes

* added filter for datasources

* undo unwanted

* empty state ui

* handle back to all datasource from empty etate

* on type icon

* clear icon

* updated onexit

* refactored handlesearch

* suggestion datasource ui

* removes active class when suggestion ui is on

* styles fixes for suggestied ui

* added darkmode fixes

* styles fixes

* padding fixed for search box

* exp: hover effect on datsources card

* exp: hover effect on datsource tyes list

* fixes typos

* should not able to submit an empty value

* fixes unsued console.logs and white spaces

* plugin icon prop to card component

* fixed close icon

* fixes margintop for searchbar

* list size fix

* fixes datasource title

* fixes datasource list padding

* moving minio plugin to cloud storage type

* fixing typos and refactored

* improved search

* fixes search box sideeffect

* fixes back to all datasources list
2022-01-22 09:31:55 +05:30
Gandharv
3ed0dc56ec
Add fade animation to datasources modal (#1881)
* add fade animation to datasources modal

* unused
2022-01-21 11:28:16 +05:30
Muhsin Shah C P
ffcc67a3f8
Fix: datasource Icons doesn't show on templates modal (#1859)
* fixed: icons deosn't show

* changed getSvgIcon fn as reusable
2022-01-18 20:11:20 +05:30
Gandharv
2f3b441c0a
Move plugins to root (#1728)
* feat: move plugins to root

* modify tsconfig

* add .gitignore

* delete old plugins file

* add parcel

* docker compose volume mount

* add gcs

* add typescript to plugins folder

* gcs to ts

* add dynamodb

* add elastic search

* add firestore

* add gsheets

* add graphql

* add mongodb

* mssql

* add mysql

* add postgresql

* add redis

* add s3

* add slack

* add stripe

* remove plugin related packages from pkgjson

* add lib folder

* add gitignore

* remove typescript generated files

* remove generated file

* remove generated files

* add twilio

* add dist to docker compose cache binding

* add dist prefix

* cleanup - 1

* delete dist

* rename to index.ts + add jest config

* add it.todo in tests

* test fixes

* test file changes

* fix type checks

* add @tooljet/plugins to server package json

* esm vs commonjs bug, reduce got to 11.8.2 from 12.0.0

* docker file npm package version fix

* add typesense

* cleaup - 2

* add sendgrid

* add lerna build and clean script for all packages + tsconfig

* cleanup -3

* add plugins build step

* add missing plugins build step in npm run build

* add mssql, mysql & postgres as singleton classes

* add db connection to cache only if datasourceId is available

* client: add data source schema/manifest files

* add query operations files

* logic for wrapping form with schema

* add script to create index file

* add @tooljet/plugins to frontend folder

* cleanup 1 -frontend

* cleanup - 2 // frontend // data queries

* add client and index to gitignore

* update gitignore

* fix lint & test

* update ci

* fix unit, e2e

* cleanup -3

* fix test

* fix tests

* fix indent

* try npm ci

* fix tests

* fix typo

* fix

* rename file for server entry

* heroku fix

* add main and types entry points in pkg json

* move common to root

* cleanup - 4: remove redundant $ sign prefix

* cleanup - 4: remove redundant $ sign prefix

* update options in-sync before DOM is painted

* change type cloud to cloud storage

* update readme

* update ci.yml

* update ci yml

* add pkg-lock.json

* rename index.ts to server.ts

* update lock files

* add server package.lock

* remove unused import

* revert commit: add minio

* add root dep

* import server.ts

* remove plugins build step

* add npm shrinkwrap

* update version - plugins

* add new version - 0.0.8

* upgrade version

* move to symlinked package

* add lock file

* feat: add icon inside package

* add plugin creation docs

* Remove seed

* move icons to plugins folder

* install pg dep

* add react to packages

* add seed cmd

* revert change

* add plugins build in lint, e2e, unit

* e2e, lint use npm ci

* update dockerfile for plugins

* try combining release with web

* limit memory on release

* try executing seed script post transpile

* try executing seed from server directory

* update seed execution

* add minio

* add correct type

* add minio to pkg json

* remove old file

* fix provider key

* add python installable + npm ^7.2.0 (#1752)

* add python installable + npm ^7.2.0

* add py to prod file

* pin npm version to 7.20.0

* pin npm version to 7.20.0

* split into multi stage build and remove python for buildx

* copy plugins from buider stage

* update dependencies

* add freetds dependency

* update server dockerfile

* update client dockerfile

* update dev dockerfile and compose file

* fix entrypoint

* fix server dev dockerfile

* update docker-compose

* remove npm install on root dir on docker build

* fix heroku script

* make lerna prod dependency to enable prod builds

* remove redundant env setup

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
Co-authored-by: navaneeth <navaneethpk@outlook.com>
2022-01-17 12:38:17 +05:30
Gandharv
f48c2fd2b9
Fixes scroll of datasource modal (#1804) 2022-01-12 23:08:59 +05:30
Akshay
21c35072e0
update docs for minio (#1772) 2022-01-10 08:57:37 +05:30
Akshay
adb04304da
Feature: Add minio datasource integration (#1662)
* add minio datasource integration

* fix import
2022-01-04 15:02:57 +05:30
Akshay
823833b12e
Feature: Versioning data sources & queries (#1620)
* add migrations for versioning datasources and dataqueries

* eslint migrations folder

* update ormconfig to use app context in migrations

* make app to make use versioned data sources and queries in editor

* app import should honor data source and query versioning

* register ts-node path on running migrations

* load data queries when finding versions

* update e2e tests

* handle for invalid oauth2 datasources

* update e2e tests

* introduce db migrations access lock to handle concurrent backfill

* scope migrations by missing version id

* fix import export without data source/query versions

* fix import

* fix spec

* handle invalid data on migration

* fix import

* remove console logs

* handle new app imports

* fix version check

* fix async creation

* explicitly add timestamps on version import
2022-01-04 13:34:12 +05:30
Muhsin Shah C P
af178f59b4
completely replaced react-toastify with react-hot-toast (#1713) 2022-01-03 09:22:41 +05:30
Arpit
fdcbd07185
[Improvement] Datasource popover layout (#1634)
* new layout for datasource popover

* datasource modal footer info

* popup btn

* render datasource from list

* copy to clipboard

* fixes modal footer info bg in darkmode

* fixed buttons in darkmode

* fixed typo

* fix btn styles

* removed toast for copytoclipboard

* datasource popup ui

* remove comments
2021-12-28 11:03:11 +05:30
Arpit
8a89bc8b71
[Feature] : SendGrid integration (Datasource API) (#1608)
* SendGrid integration

* unused logs

* unused logs

* update help text

* fixestypos for schema description

* fixestypos for schema description

* adding sendgrid docs

* updates logo from  Sendgrid's media kit

* sendgrid query schema updated

* fixes typos

* updates docs

* typos fix

* fix jest module transform

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
2021-12-22 17:23:45 +05:30
Sherfin Shamsudeen
a68a7b67d1
Feature/typesense integration (#1613)
* Install typesense npm package

* Implement CRUD operations using TypeSense

* Add documentation for typesense integration

* Rename apiKey to api_key and make it encrypted for typesense

* Add logo for typesense data source

* Add delete operation to typesense

* Add documentation for delete document

* Make protocol field a dropdown for TypeSense

* Additional documentation for TypeSense data source
2021-12-22 07:19:17 +05:30
Midhun G S
4f73a34365
Twilio SMS Integration (#1598)
* Twilio SMS Integration

* package lock fix

* package-lock fix

* Review comments
2021-12-20 11:49:00 +05:30
Navaneeth Pk
3477f7ff15
Support for running JavaScript as a query ( client-side execution ) (#1507)
* Custom js feature

* Disable transformations

* Fix

* Fix

* Fix

* Icon

* Rename variable OthetSources to OtherSources

* Fix

* Fix

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-08 13:03:08 +05:30
Gandharv
b61d07e0c5
Refactor: move default options to schema files (#1425)
* refactor: move default options to schema files

* fix: use options instead of source.options

* add default empty object when defaults not present in schema

* add null checks for gsheets and slack component

* removes un-necessary console log

* delete constancts file

* delete default options file for data sources
2021-11-22 13:52:32 +05:30
Gandharv
01f30d4194
chore: delete mysql source file (#1435)
This PR deletes the mysql file for data sources as its moved to schema
2021-11-20 06:56:47 +05:30
Akshay
c58e0765bf
Feature: Google cloud storage integration (#1364)
* add ability to list buckets/objects and create signed url fot GET and PUT

* ask to specify region when adding s3 buckets

* add ability to read file contents from s3

* add ability to upload to s3 bucket

* rename s3 dropdown options

* add abilty to read, write, list and generate signed url for gcs

* fix gcs query service

* remove paginated response

* make gcs private key as textarea

* revise gcs upload response
2021-11-04 14:30:09 +05:30
Akshay
44f3b9d8d0
Feature: AWS S3 Integration 🚀 (#1333)
* add ability to list buckets/objects and create signed url fot GET and PUT

* ask to specify region when adding s3 buckets

* add ability to read file contents from s3

* add ability to upload to s3 bucket

* rename s3 dropdown options

* update region dropdown for s3
2021-11-02 11:42:46 +05:30
Gandharv
22bce1f4fb
Feature: Collaboration ( realtime comments for canvas ) 🔥 (#810)
* feat: initial commit for collaboration feature

* add dnd to comments

* add positions endpoint

* feat: encapsulate all http common logic in http-client

* segregate sections and transfer responsibility of state

* feat: use-spring to add fade effect 

* fix: open in right

* fix: left-right position css

* add footer for message

* integrate getcomment endpoint

* use fromnow for date ago

* add dnd

* - Add data trasfer object for comment
- Add class-validator package to check the response type from client
- Add comment repository class for persistance layer
- Add comment service with std. http methods
- Update controller with all http methods
- Update comment module
- Fix http-client bug when error is thrown

* fix http client bug when error is thrown

* feat: add entity thread

* feat: add migrations for thread and comment

* update entitites

* add tid to migration

* filter comments by tid(thread_id)

* fix: comment migration, add missing column comment

* feat: integrate in ui

* feat: split comments based on app_id

* fix: dnd to correct position

* package json engines

* engines update

* update npm

* npm 6 to 7

* fix: add user initials to thread

* fix: add firtname lastname to the comments

* - Return user object when save thread called
- Hide password field from user response
- Fix created_at date typo
- Instead of fetch all threads on new thread added, add the response to array of existing threads

* feat: update ui components

* change icon on comments view

* ui fixes

* fix: close icon close the popover

* temp: comment select: false

* use currentUser from localStorage

* fix: on click outside if comment is open, dont hit addThread

* fix: auth token issue in http-client

* on drag hide the comment if open

* add jwt auth

* spec: add test for comment & thread

* cleanup: remove console.log

* feat: add comment actions

* feat: add edit, delete, resolve options

* feat: add mentions component

* feat: add nestjs websockets

* temp

* websocket: establish client-server communication

* ws: add message listner to comments module in ui

* feat: add broadcast method to broadcast new events to all clients 💣

* ws: cleanup 🤙

* fix: remove max height from comment actions

* feat: add user mentions, emoji support

* fix: add static list of users - temp

* update and delete iterations

* - Rename comment, thread to comments, threads
- Add conditional actions
  - Show edit, delete only if he is comment owner
  - Show resolve only if he is thread owner

* reset engines

* move svgr webpack to deps

* fix: ui issues

* remove log stmt

* refactor: move resolved icon to comment-header

* feat: allow comments to be added on top of widgets

* feat: add keyboard shortcut

* scroll to bottom on comment add

* ui fixes

* feat: add react toast for notification display

* feat: add comment badge

* fix: ws connection

* fix: ws

* remove rvrse

* feat: add comment sidebar

* feat: add comment right sidebar

* fix: add missing foreign key elements

* - upgrade typeorm to 0.2.38
- comment sidebar ui
- added filter ui

* feat: on click of right sidebar notificaiton open the comment box

* reset engines

* fix: add organization id to the comment and thread module

* fix: add current version id

* add currentversion id

* disable comments if no id present

* temp:checking for heroku deploy

* fetch app on edit and deploy version

* rename current_version_id to app_versions_id

* ui fixes

* show mentioned user in blue color

* add ui changes

* add authorization for create thread

* change color to blue on click of comment, add auth for other endpoints of thread

* update threads, notifications using socket

* add auth for comments

* remove events spec file

* fix duplicate key error

* fix notificaitons updation on edit, delete, resolve buttons clicked

* update notifications for edit

* feature toggle changes for frontend

* add check for comments server

* add emoji mart package for emoji

* add reply count in comment sidebar

* subtract 1 from count in comment sidebar

* change empty text when no comments available
2021-11-01 12:58:03 +05:30
SAI SUMANTH KUMAR
56165ad8bd
Fixed : App allows to create a datasource with no name (#1253)
* Update DataSourceManager.jsx

* Update DataSourceManager.jsx
2021-10-29 14:36:44 +05:30
Tulsi Prasad
d3140a9d1b
Add link to documentation on API datasources (#1241) 2021-10-28 08:29:04 +05:30
Jayden-Chiu
206d4f0cef
reset connectionTestError on data source modal exit (#1295) 2021-10-26 12:45:58 +05:30
Gandharv
c8f3479432
add encrypted icon to firestore data source (#1272) 2021-10-25 14:46:46 +05:30
SAI SUMANTH KUMAR
9f00ceb4a7
Update DataSourceManager.jsx (#1164) 2021-10-20 22:50:55 +05:30
Akshay
ceca48b100
Revert "Feature: Snowflake integration (#996)" (#1046)
This reverts commit d4c4501d63.
2021-10-14 22:10:18 +05:30
Tulsi Prasad
a21dac5208
Use strict equality in comparision operators (#1006)
Fix #1002
2021-10-14 13:47:30 +05:30
Akshay
d4c4501d63
Feature: Snowflake integration 🔥 (#996)
* add snowflake datasource and query manager for frontend

* add snowflake integration
2021-10-13 09:35:35 +05:30
Elisha Hollander
a0403a4804
Code refactoring (#977)
* remove `componentData`

* declare `x`, `y` as `var`s

* remove testing for `!isTesting`

* Update frontend/src/Editor/CustomDragLayer.jsx
2021-10-12 09:03:34 +05:30
Akshit Arora
c46f8e97c6
Consistent spacing for datasource dynamic forms (#899) 2021-10-05 23:35:34 +05:30
Gandharv
f09542180f
add datasource type into individual schema (#762)
* feat: add datasource type into individual schema

* add active class when dark mode

* fix: change type key to source
2021-09-22 10:43:12 +05:30
Arpit
26c9cc655c
Fix linting errors across the app (#785)
* eslint-setup: rules for frontend and server

* setup pre-commit:hook

* frontend:eslint fixes

* frontend eslint errors and warning fixed

* eslint:fix for ./server

* fix server/test: expectatin string lint/error

* pre-commit:updated

* removed unwanted install cmd from docker file

* recommended settings and extension for vscode

* husky prepare script added

* updated extension recommendations

* added prettier as recommended extension

* added pre-commit to package.json

* remove .prettierrc file

* resolve changes

* resolve changes
2021-09-21 19:18:28 +05:30
Gandharv
a07bc59a72
Feature: Add dynamic form for datasources (#676)
* feat: add dynamic form (airtable)

* feat: add schema for rest api

* feat: add schema for graphql

* feat: add schema for stripe

* feat: add schema for google sheets

* feat: add schema for slack

* fix: options from correct key

* fix: schema url

* rename headers to http-headers

* fix placeholder

* feat: add schema for dynamodb

* feat: add schema for redis, elastic search, firestore

* feat: add shema for mongodb, postgresql

* feat: add mysql schema

* fix: remove azure option

* feat: add dropdown component flip type

* feat: add mssql schema

* chore: delete previous components

* remove console log

* fix: database value set as port

* feat: add helptext prop to input

* remove unwanted class on toggle

* change placeholders

* change placeholder

* fix typo

* add ssl_enabled to schema
2021-09-15 08:20:55 +05:30
Sherfin Shamsudeen
d27e500875
Add option for enabling/disabling SSL for MySQL (#754) 2021-09-14 18:37:41 +05:30
Gandharv
365e9e3cb3
Redesigned Rest api query builder 🎉 (#612)
* feat: add rest api new design

* fix page break on create/save query

* remove console.log

* align the i/p fields

* rename files

* remove border from i/p

* remove hover styles

* fix: filter empty headers, url_params, body

* fix when editmode headers empty

* fix the options on preview getting null

* fix navlink color on dark mode

* add color for non active tab in dark mode
2021-08-30 16:55:27 +05:30
Sherfin Shamsudeen
48750bb8a9
Support Enabling/Disabling SSL for postgres connection (#619)
* Add option to enable and disable SSL in Postgres configuration UI

* Connect to postgres with/without SSL based on user's choice

* Add migration to set SSL enabled for every postgres data source

* Fix data source kind name in migration

* Fetch only postgres datasources in migration for turning on SSL
2021-08-28 09:12:12 +05:30
Gandharv
6837104171
Feature: redesign left sidebar 🎉 (#512)
* feat: add left sidebar new ui ❇️

* new: add svg spring motion dark mode icons

* - add tooltip
- reduce icon size to 20px h&w
- fix indentation

* remove logs

* fix: typo

* fix: on click of arrow the ref was not captured, react repo has reference to this issue at : https://github.com/facebook/react/issues/20325

* css fixes

* color changes for moon icon

* revert css'

* fix back button not working due to incorrect clean up function

* feat: add use-router hook component

* - make sun svg have a white circle inside
- fix the alignment of darkmode toggle on homepage

* fix: pkg lock after fresh install with 7.20.x
2021-08-17 11:31:12 +05:30
navaneeth
9f1b6d5fc8 Merge branch 'develop' into feature/nest-server 2021-08-09 10:12:09 +05:30
Apoorv Tiwari
d114b5e55a
Fix the read doc link to open on new tab (#458)
Co-authored-by: “Apoorv <“tiwari.apoorv1316@gmail.com”>
2021-08-05 12:53:02 +05:30
Arpit Nath
dfe1adab88
fix alert for datasource modal (#444) 2021-08-03 18:42:56 +05:30
Arpit Nath
55cc90467b
Hide secret key value for dynamoDb and hide password for Elasticsearch (#441) 2021-08-02 21:16:38 +05:30
navaneeth
f22494fb05 Cleanup REST API datasource 2021-07-25 23:02:36 +05:30
navaneeth
dd19f31b37 Google sheets integration 2021-07-24 17:36:56 +05:30