Commit graph

333 commits

Author SHA1 Message Date
vjaris42
307f869ff9
Make encrypted fields editable (#5008)
* fix: data sources update

* fix: default state for custom s3 url

* refactor: move state to parent

* make encrypted fields default enabled for new datasources

* show edit toggle only while editing datasource

* chore: change toggle placement

* chore: replace edit toggle with button

* fix: password reset
2022-12-21 12:33:12 +05:30
vjaris42
68393cecb2
[Feature] :: Allow users to invite users in bulk (#4995)
* add: ability to bulk upload users

* refactor: inviting users asynchronously

* chore: add transaction wrap

* chore: fetch existing groups initially

* chore: add transaction wrap

* chore: add package-lock

* fix: namespace issue

* fix: empty group names
2022-12-21 12:32:39 +05:30
vjaris42
e50fa984ee
[Feature] :: Allow users to be filtered via status (#4908)
* add: user filter via status

* fix: typo in options name

* refactor: add All options to status filters
2022-12-19 12:36:08 +05:30
vjaris42
87528f9882
Feature/multi select search groups (#4713)
* create: multiselect component

* create: filter preview component

* revam: user search dropdown

* fix: loading ui in multi-select

* refactor: multi-select css

* fix: pr changes

* update: test cases for addable_users

* refactor: css files

* chore: revert theme.sccs

* chore: pr suggestion

* add: search labels on dropdown

* chore: pr changes

Co-authored-by: Vijaykant Yadav <vjaris42@Vijaykants-MacBook-Pro.local>
2022-12-07 12:11:48 +05:30
Akshay
cc516b9ddc
Feature: Versioned exports (#4140)
* add ability to export app versions

* remove console.log

* add spec

* [ Enhancement ]: Ability to export versioned apps ( frontend ) (#4271)

* added basic UI and functionality

* added functionality to export all versions or selected versions of app

* added UI

* refactored the code

* refactored code

* use custom hook for checking if component is mounted or not and accessing  darkMode from props

* showing current version first

* added spacing between container and input tag and input tag and text

* added cursor pointer on the version container

* removed use mount to avoid extra re-rendering component

* fixed typo request

* update permissions

* fix permissions

Co-authored-by: Manish Kushare <kushare.manish9@gmail.com>
2022-12-02 14:13:28 +05:30
Frenchtoast0
20e2f7d6d0
Added Version Name Validation (#4612)
* Added frontend and backend validation

* Added line that got deleted accidentally

* Delete package-lock.json

Did not mean to include

* Minor fixes

* Revert "Delete package-lock.json"

This reverts commit c56f79dfca.

* Reverted package.json

* Ran the linter

* Fixed accidentally changed files

* Ran frontend linter

* Removed changes on frontend json

* Attempting to add newline

* Added missing newline

* Update frontend/src/Editor/AppVersionsManager.jsx

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

* Fixed issue resulting from deleted else

* Attempting to fix lint errors

* Linting fix

Co-authored-by: Midhun G S <gsmithun4@gmail.com>
2022-11-22 17:51:07 +05:30
Gandharv
1853a3233e
feat: Add update version button on installable plugin (#4766)
* feat: Add update version button on installable plugin

* use id from update method

* removes redundant check

* use plugin id for fetching files from s3

* fetch latest plugins once updated

* disable update and remove buttons while update in progress

* replace href with link-span cx + send body in patch request
2022-11-17 16:02:59 +05:30
Muhsin Shah C P
fb41192e1d
[enahancement] Added app loader page (#4389)
* Working on an issue

* Added loader skeletons

* Working on skeletons

* Completed basic app loader design
- dark theme

* Added switch organization function

* cleaning code

* Added loader to viewer page

* Fixed svg size

* style fix

* added loader

* have added try-cath

* added redirect path for sso login

* handle json parse error

* Fixed edit app issue

* Code refactoring
- fixed some issues

* fix

* Worked and tested some sub_path cases

Co-authored-by: Midhun G S <gsmithun4@gmail.com>
2022-11-14 12:07:47 +05:30
Gandharv
ed3bc9d46d
fix: failing e2e test case (#4745)
* fix: failing e2e test case

* fix lint

* Add if condition
2022-11-10 16:46:21 +05:30
Gandharv
7994aba9db
fix: marketplace plugin viewer bug (#4732)
* fix: viewer not loading widgets

* typo

* handles query icons in inspector

Co-authored-by: arpitnath <arpitnath42@gmail.com>
2022-11-08 17:30:41 +05:30
Luis V
7a5f0bb648
Add storage.googleapis.com as a verified source (#4610)
* Add storage.googleapis.com as a verified source

This will allow the users to play mp3 from public google cloud storage buckets

* coma
2022-11-08 14:55:15 +05:30
Gandharv
2046eaf85b
fix: marketplace dark mode css changes (#4727) 2022-11-07 16:56:03 +05:30
Arpit
494fa0015a
[Bugfix] Datasource Manager: stale connection msg should be removed on back (#4703)
* fixes: stale connection msg should be removed on back

* update asset path
2022-11-07 10:52:23 +05:30
Frenchtoast0
2466320496
Folder Name Length Validation (#4613)
* Added frontend and backend validation

* Ran the linter

* Update server/src/services/folders.service.ts

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

* Minor null check

Co-authored-by: Midhun G S <gsmithun4@gmail.com>
2022-11-03 13:41:52 +05:30
Akshay
6b3916c2ef
Fix: Login redirect on subpath (#4607)
* fix login redirect for subpath

* hardcode login for subpath path as basename is not picked

* fix broken links

* fix google sso link

* remove invalid condition
2022-11-02 11:37:17 +05:30
Arpit
85391d260a
[Marketplace] AWS S3 (#4670)
* fix: sub path for static asset serve (#4665)

* fix: sub path for static asset serve

* fix: sub path for static asset serve

* marketplace: s3

* rename operations file to query_operations

* fix: crash on click of existing plugin

* remove unused console

* adds missing async await

* add isoptional for repo

* plugin card ui style fixes

* update plugin name

Co-authored-by: Gandharv <gandharvkumargarg@gmail.com>
2022-11-01 16:24:30 +05:30
Santosh Bhandari
953f7bca69
feat: Add DTO for organization create (#4651)
* feat: Add DTO for organization create

* chore: fix eslint error

* chore: eslint ...
2022-10-31 18:10:20 +05:30
Gandharv
7dbf0d5022
fix: sub path for static asset serve (#4668) 2022-10-31 12:56:57 +05:30
Gandharv
c00738a75d
fix: sub path for static asset serve (#4665)
* fix: sub path for static asset serve

* fix: sub path for static asset serve
2022-10-31 12:35:04 +05:30
Gandharv
05aedbc8a6
fix: pick env from public_config for marketplace (#4648) 2022-10-28 18:11:18 +05:30
Amit Kumar Sharma
0f30397960
displaying user in lexicographic order (#4394)
* displaying user in lecicographic order

* fetch users in lexicographic order (firstName)

* fix: table head ui

Co-authored-by: Amit Kumar Sharma <91947037+amit-2k1@users.noreply.github.com>
2022-10-28 14:54:29 +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
Frenchtoast0
075a1da417
Added workspace title length validation (#4402)
* Added workspace title length validation

* Update organizations.controller.ts
2022-10-27 16:20:47 +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
Midhun G S
c862db0f0b
merge main to develop (#4527)
* [ Hotfix ] :: App breaking while reconnecting sheets (#4514)

* app breaking while reconnecting sheets

* back-end fix

* open api fix

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

* Bump to v1.27.2

Co-authored-by: Kiran Ashok <stepinfwd@gmail.com>
2022-10-19 20:04:57 +05:30
Midhun G S
b0e6a34f18
[Fix] Delete app not working if any user mentioned in comments (#4161)
* Fix for app delete issue

* fix

* fix

* added dbTransactionWrap for more functions

* reuse dbTransactionWrap

* onboarding changes

* SSO fix

* fix

* added test cases

* changed threads comments relation

* added test cases
2022-10-17 23:04:06 +05:30
Sherfin Shamsudeen
a8283831d1 Merge branch 'main' into develop 2022-10-14 15:02:00 +05:30
Muhsin Shah C P
2d777c2d51
[hotfix] Fixed oauth refresh token issue (#4406)
* Fixed refresh token issue

* Added re-auth feature

* Fixed token issue

* fixes

* Added public app check

Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
2022-10-14 13:25:32 +05:30
John Bampton
ca5fe39751
all: fix spelling (#4326)
Fixes typos, fixes a file name.

Minor whitespace removal from link
2022-10-11 13:46:40 +05:30
Sherfin Shamsudeen
8cf29bd7d2 Merge branch 'main' into develop 2022-10-11 12:07:21 +05:30
Arpit
74beb544fe
[Feature/plugin] Zendesk integration 🚀 (#3943)
* plugin:init

* zendesk svg icon

* zendesk integration 🚀

* clean up

* unit tests

* docs: zendesk

* resolves: error proof

* fix typos
2022-10-06 13:45:42 +05:30
Gandharv
39a330f385
fix: add max file size validator for user avatar (#4103) 2022-10-03 17:40:41 +05:30
Midhun G S
7879d8a760
Hide user data in group permissions get user API (#4141)
* Hide user data from group permission user API

* test case fix

* fix
2022-09-29 15:43:14 +05:30
Akshay
63052076f2
Fix: Set editing version as latest version on imports (#4117)
* set editing version as latest version on imports

* handle empty versions case
2022-09-27 14:51:33 +05:30
Akshay
0740b4cd01
open app after import (#4125) 2022-09-27 14:49:45 +05:30
Sherfin Shamsudeen
ddf28a1336 Merge branch 'main' into develop 2022-09-22 19:22:31 +05:30
Akshay
5108d12b9f
fix zombie idle db connections from within transactions (#4072) 2022-09-20 18:47:47 +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
Gandharv
1e9733e2a6
Hide user data from thread module (#4020) 2022-09-16 14:18:01 -07:00
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
Midhun G S
1dd2e465ac
Remove signup guard from set-password-from-token API (#4050)
* Remove sign up guard set-password-from-token API

* test cases fix
2022-09-16 12:19:09 +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
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
4f001f9214
fixes for rest api url encoded requests (#3924) (#3931) 2022-09-01 18:53:19 +05:30
Akshay
3cf2c089cc
make health check endpoints backward compatible (#3930) 2022-09-01 18:41:10 +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
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
Muhsin Shah C P
a8c77e4f6f
[enhancement] Handle internal database exceptions in a better way (#3414)
* Added some exceptions

* Edited some error messages

* Removed some errors from handling

* Fixing failed test cases

* Fixed some issues
2022-08-30 12:40:58 +05:30
Akshay Sasidharan
765b98334f Merge branch 'main' into develop 2022-08-29 23:45:12 +05:30