Commit graph

30 commits

Author SHA1 Message Date
Parth
249d7a1135
Feature: Validate and save datasource OAuth creds in multi-tenant mode (#14043)
* fix: change schema to hide save button & add default value

* enhance: Show connect button in UI at data-config

* fix: extract source_options correctly

enhance: add userID in cache logic for snowflake

* enhance: add backend logic to save tokens correctly

fix: change IDataSourcesUtilService interface

* fix: add read docs button for oauth plugins

fix: shrink the connect button

* fix: remove extra code and fix comments

* fix: generate cache key correctly
2025-10-22 17:19:46 +05:30
Ganesh Kumar
0f00162fcc
Feat: Support for service account authentication in google sheet datasource (#14209)
* working on google sheet service account flow

* service account flow logic added

* for service account flow skip the Oauth error flow

* added datamigration to backfill the authentication option for GoogleSheets
2025-10-08 14:34:05 +05:30
Nishidh Jain
89929eecbd chore: Disabled Save for previous data source connection artifacts and submodule update (chore: Add logic to render accordion in AI Message, fixed Example prompts click not working in Chat Zero State and In data source connection artifact if new data source is to be created then show loading state instead of empty state UI) 2025-09-19 15:52:25 +05:30
Nishidh Jain
8d9494a4fe chore: Added changes that got missed while moving to new lts-3.16 synced branch 2025-09-16 17:53:19 +05:30
Ganesh Kumar
2e069f5af8 Merge branch 'lts-3.16' into release-lts/marketplace-plugin-set6 2025-09-10 13:54:02 +05:30
Rudra deep Biswas
e23660ea5b scroll sampleDb fix 2025-09-09 13:31:12 +05:30
Priyansh Rai
94e4a13043
Feat: Add Gmail plugin (#13843)
* ee commit

* merge commit

* feat: updated openapi operation component

* updated query operation sepctype

* fix: updated query dropdown style

* feat: config dropdown update

* feat: add Gmail plugin with API integration and initial setup

* refactor: enhance type definitions

* refactor: clean up code and refactor variable names

* fix: update Gmail OAuth scope to allow full access to Gmail

* feat: standardize error handling for Gmail plugin

* fix: include oauth_type handling in Gmail plugin for cloud environment

* fix: update spec_url for Gmail operations

* refactor: remove unused fields in gmail manifest.json

* fix: update Content-Type header to application/x-www-form-urlencoded for token requests

* feat: add environment variable prefix for Gmail in OAuth handling

* fix: remove encryption requirement for client_id in Gmail manifest

* fix: update Gmail plugin to use form data for token requests and simplify response handling

* fix: add Gmail to OAuth data sources in DataSourceManager

* fix: encode path parameters in Gmail plugin URL construction

* fix: add back margin to Client ID label in CommonOAuthFields component

* fix: adjust width of input field in RenderParameterFields for better alignment

* fix: set response type to 'json' in requestOptions for Gmail service

---------

Co-authored-by: Devanshu Gupta <devanshuguptaknp@gmail.com>
2025-09-08 12:20:32 +05:30
Devanshu Gupta
6f572315c1
feat: added hubspot (#13854)
* feat: added hubspot

* fix: updated name

* feat: updated spec url

* fix: added options in manifest

* fix: resolved comments

* fix: added kind

* fix: updated query options check

* fix: kind index
2025-08-21 18:54:05 +05:30
gsmithun4
562723e4f2 Merge branch 'lts-3.16' into bugfixes/platform-p1-p2-issues 2025-08-14 21:02:44 +05:30
Priyansh Rai
a503443cfd
Feat: Add the UPS plugin to marketplace (#13805)
* ee commit

* merge commit

* feat: updated openapi operation component

* updated query operation sepctype

* feat(ups): add UPS datasource integration with OAuth token generation and API operations

- Implemented the main UPS class for handling API requests and responses.
- Added manifest.json to define the UPS datasource schema and options.
- Created operations.json to specify available UPS API operations using OpenAPI Spec files.
- Defined types for source options, query options, and OpenAPI operations in types.ts.
- Updated plugins.json to include the new UPS integration with metadata.

* fix(ups): standardize error messages for query completion failures

* refactor(ups): replace environment option with base_url for UPS datasource

* refactor(DyamicForm): update label from 'Spec Type' to 'Entity' for clarity

* feat(DynamicForm): select the first operation by default in ApiEndpointInput.jsx

* feat(ups): integrate 'got' for HTTP requests and improve error handling

* fix(ups): replace btoa with Buffer for base64 encoding in authorization header

* feat(ups): enhance testConnection method with error handling and HTTP request using 'got'

* refactor(ups): streamline error handling in run and testConnection methods

* chore(theme): update datasource icon styling to match sizes for marketplace plugins

* fix(ups): enhance error handling in testConnection function to improve UX on the config page

* fix(DynamicForm): initialize computedProps for new data sources; fix unresponsive cancel button for encrypted fields

* Revert "feat(DynamicForm): select the first operation by default in ApiEndpointInput.jsx"

This reverts commit 5d940ceaca.

* fix(manifest): correct label casing for base_url and client_id properties

* fix(Ups): conditionally set Content-Type header based on request method

* fix(DataSourceManager): adjust padding for selected data source images and add targeted class for better scoping

* fix(Ups): update OAuth token request to use form data and set response type to JSON

* fix(Ups): set response type to JSON and adjust response data handling

* fix(UPS): fix unresponsive edit/cancel button on encrypted fields

* Revert "fix(DynamicForm): initialize computedProps for new data sources; fix unresponsive cancel button for encrypted fields"

This reverts commit 8e1b160588.

* fix(ApiEndpointInput): revert operation validation changes

---------

Co-authored-by: Devanshu Gupta <devanshuguptaknp@gmail.com>
2025-08-14 18:17:49 +05:30
Devanshu Gupta
cb0a87e1a1
Feat/ms graph pre release (#13581)
* ee commit

* merge commit

* feat: updated openapi operation component

* updated query operation sepctype

* fix: updated query dropdown style

* init plugin

* init plugin

* feat: config dropdown update

* feat: added ms plugin

* fix: plugin connection name

* submodule reference updated

* plugin label updated

* added back margin top class

---------

Co-authored-by: Ganesh Kumar <ganesh8056234@gmail.com>
2025-08-11 18:59:49 +05:30
Rudhra Deep Biswas
e354589c40
UI Bug Fixes (#13696)
* UI Bug Fixes

* loading state fix
2025-08-06 16:10:05 +05:30
Ganesh Kumar
f46340b477
Enhance: Extract OAuth 2.0 flow for Salesforce & Snowflake (#13529)
* salesforce & snowflake changes added to prerelease

* module import error fixes

* optional parameter for getAuthUrl method
2025-07-23 22:18:50 +05:30
Rudra deep Biswas
a403cdfebd Merge branch 'main' of https://github.com/ToolJet/ToolJet into cloud-posthog 2025-07-15 11:41:17 +05:30
Ganesh Kumar
1f1eb3f9b7
Release : Google Calendar plugin and Oauth component extraction for plugins (#13393)
* Enhance: Extract the general OAuth flow for plugins [PRE-RELEASE] (#13291)

* Feature: Prometheus plugin (#13161)

* prometheus plugin

* added existing props

* Host and database can be dynamically configured in query builder for PostgreSQL and MySQL data sources (#13163)

* Fix: Postgresql datasource tries to connect via ssl even when ssl toggle is off (#13167)

* The ability to provide a partition key for deleting items in CosmosDB datasource has been enabled (#13166)

* Feature: Ability to configure the database name in Redis datasource (#13165)

* Fix: Avoid setting Content-Type header for requests without body and configure different host for all environments in OpenAPI [PRE-RELEASE] (#13230)

* Send content-type only with body in request

* Persist OpenAPI parameters per operation only

* Configure different host

* Add disable styles to the select input

* Feat: New fields 'client id' and 'client secret' have been introduced in the Slack datasource configuration page in pre-release (#13162)

* Update slack frontend

* Update slack backend to handle custom creds

* Add backfill migrations

* Dynamically change dropdown according to versions

* Change migration file name

* Correctly access scope in chat:write logic

* Extract general OAuth flow

* Render save button correctly

* Update the dropdown labels

* Fix dropdown according to tooljet editions

---------

Co-authored-by: Ganesh Kumar <40178541+ganesh8056@users.noreply.github.com>
Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>

* Feat/google calendar plugin pre release (#13361)

* ee commit

* Feature: Prometheus plugin (#13161)

* prometheus plugin

* added existing props

* Host and database can be dynamically configured in query builder for PostgreSQL and MySQL data sources (#13163)

* Fix: Postgresql datasource tries to connect via ssl even when ssl toggle is off (#13167)

* The ability to provide a partition key for deleting items in CosmosDB datasource has been enabled (#13166)

* Feature: Ability to configure the database name in Redis datasource (#13165)

* merge commit

* feat: updated openapi operation component

* Fix: Avoid setting Content-Type header for requests without body and configure different host for all environments in OpenAPI [PRE-RELEASE] (#13230)

* Send content-type only with body in request

* Persist OpenAPI parameters per operation only

* Configure different host

* Add disable styles to the select input

* Feat: New fields 'client id' and 'client secret' have been introduced in the Slack datasource configuration page in pre-release (#13162)

* Update slack frontend

* Update slack backend to handle custom creds

* Add backfill migrations

* Dynamically change dropdown according to versions

* Change migration file name

* Correctly access scope in chat:write logic

* Extract general OAuth flow

* Render save button correctly

* Update the dropdown labels

* feat: added google calendar

* fix: option styling

* fix: removed test connection

* Fix dropdown according to tooljet editions

* fix: updated oauth type

* fix: added env variable helper

* fix: environment fetch

* feat: added default scope

* Remove connect button when multi-auth true

* Make scope configurable

* Hardcode google calendar scope

---------

Co-authored-by: Ganesh Kumar <40178541+ganesh8056@users.noreply.github.com>
Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
Co-authored-by: Parth <108089718+parthy007@users.noreply.github.com>
Co-authored-by: parthy007 <parthadhikari1812@gmail.com>

---------

Co-authored-by: Parth <108089718+parthy007@users.noreply.github.com>
Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
Co-authored-by: Devanshu Gupta <devanshuguptaknp@gmail.com>
Co-authored-by: parthy007 <parthadhikari1812@gmail.com>
2025-07-14 22:18:06 +05:30
Rudra deep Biswas
5351fbb83c review changes 2025-07-14 16:52:44 +05:30
Rudra deep Biswas
f25b8d0fa6 Posthog Cloud Changes 2025-07-10 18:53:54 +05:30
johnsoncherian
89f169c091 Merge branch 'main' into feat/ui-revamp-surface 2025-07-09 00:33:45 +05:30
parthy007
fdd6e0ee2d Isolates validation errors 2025-07-07 17:50:50 +05:30
Nithin David Thomas
c29751e519 Fixes missing background changes 2025-07-07 17:20:55 +05:30
Devanshu Gupta
1d1c7858cd
Feat/audit logs 2.0 (#13012)
* feat: added default audit logs for logout, archive, unarchive, profile_update

* feat: added resource data in audit table

* feat: added archive workspace, invite redeem

* feat: updated profile update audit

* feat: updated user invite audit

* feat: completed user actions audit

* feat: added default audit logs for logout, archive, unarchive, profile_update

* feat: added resource data in audit table

* feat: added archive workspace, invite redeem

* feat: updated profile update audit

* feat: updated user invite audit

* feat: completed user actions audit

* fix: merge conflict

* fix: ee commit

* fix: removed logs

* feat: added migration for resource_data

* fix: updated action names

* frontend ee commit

* feat: added /user/instance route

* fix: user instance update

* fix: updated feature name

* user ee commit

* feat: added instance level archive

* fix: user details update instance

* feat: added self signup audit

* ee audit commit

* ee commit

* metadata workspace field

* fix: instace user unarchive data

* feat: added grou permission default properties

* fix: review fixes

* feat: granular app

* fix: moved user name logic to service

* remove log

* ee commit

* feat: separate routes for app, data-source

* feat: added some actions

* ee commit

* ee commit

* feat: added audits

* ee commit

* fix pasword

* Update the new granular permission api end points in cypress test cases

* feat: batch-3 actions

* removed log

* remove import

* feat: added app audit logs

* feat: public app update route

* feat: added resource route

* fix: json clone

* feat: added feature audit

* revert INSTANCE_UPDATE

* feature key update

* fix: filter resource guard

* ee commit

* fe ee commit

* script for resolving submodule conflicts

* changing docs url to .ai

---------

Co-authored-by: ajith-k-v <ajith.jaban@gmail.com>
Co-authored-by: Midhun G S <gsmithun4@gmail.com>
Co-authored-by: Rudra deep Biswas <rudra21ultra@gmail.com>
2025-06-25 12:40:07 +05:30
Parth
f6f0b6fa8d
Fix MariaDB saving issue (#12952) 2025-05-29 00:06:11 +05:30
Ganesh Kumar
9b6d2db945
Merge branch 'main' into release/marketplace-sprint-11 2025-05-13 11:03:54 +05:30
Mekhla Asopa
3fde1e14b2
Added data-cy for data source (#12815)
* added datasource data-cy

* add method to get data-cy

* update the required fix

* fix format

* fix selectors

* fix selector for appSlug spec

---------

Co-authored-by: Akshay <akshaysasidrn@gmail.com>
2025-05-09 10:18:07 +05:30
Parth
2f7492635a
Fix: Prevent exposure of encrypted credentials during app export. (#12449)
* Fix keys mismatch

* Fix jira export issue
2025-05-07 12:30:49 +05:30
Parth
f82bfddb8c
Enhance: Plugin schema for validation and design component (#12655)
* API backend setup for fetching decrypted options object

* Frontend setup to use and fetch decrypted options object

* Debounce validation and include encrypted fields

* Update banners and point back to inputs

* Remove ssl config from connection string in postgresql

* Add support for textarea design component

* Improve conditional requirement logic

* Fix validation banner bugs

* Change schema for airtable

* Change schema for bigquery

* Change schema for mongodb
2025-04-28 12:01:41 +05:30
Parth
cb992cd324
Enhance: Add validation for encrypted fields with input reference on failure (#12541)
* API backend setup for fetching decrypted options object

* Frontend setup to use and fetch decrypted options object

* Debounce validation and include encrypted fields

* Update banners and point back to inputs

* Fix toggle and headers to trigger validation on change

* Fix disable state of save button
2025-04-28 10:23:25 +05:30
Akshay
4b6e6ee5cd
Feature: Dynamic form validations (#12292)
* fixed datasource page crash as function definition was referenced wrongly (#11562)

* Add new dynamicform

* Refactor postgres manifest file

* Add new input-v3 component

* Conditionally render DynamicformV2

* Make change to design system component

* Remove key-value label over header input and increase width

* Add validation function for individual inputs

* Add validations on datasource creation

* Update custom input wrapper

* Update manifest file

* Add validation setup for dynamic form with JSON schema

* Fix input labels

* Add more validation checks

* Update manifest

* Remove console logs

* Add props for header component

* Skip validation for encrypted fields

* Add validations while saving datasource

* Remove validations for connection-options

* Add fetch manifest function

* Centralise validation errors

* Add property name in datapath

* Initialize and map validation errors to property

* Reuse validationErrors while saving datasource

* Bypass design system validation by implementing custom validation prop

* Skip initial render validation

Skip validation message for unchanged elements

* Remove fetchManifest

* Add text input for connection string

* Add workflow schema

* Fix double border on error or success

* Remove redundant default populating logic

* Fix the error helper text color to red

* Validate all fields post initial render

* Show label name in helper-text for failed validation

* Correctly switch between the password eye svg

* Incorporate edit button on encrypted inputs

* Resolve lint issue

---------

Co-authored-by: Ganesh Kumar <40178541+ganesh8056@users.noreply.github.com>
Co-authored-by: Parth Adhikari <parthadhikari@192.168.1.3>
Co-authored-by: Parth Adhikari <parthadhikari@192.168.1.2>
Co-authored-by: Parth Adhikari <parthadhikari@192.168.1.6>
Co-authored-by: parthy007 <parthadhikari1812@gmail.com>
2025-04-03 13:47:49 +05:30
Mekhla Asopa
0c338412a8
added data-cy for rest api (#12298) 2025-03-19 13:56:33 +05:30
gsmithun4
269ec56455 Initial commit 2025-02-25 12:22:50 +05:30
Renamed from frontend/src/AppBuilder/DataSourceManager/DataSourceManager.jsx (Browse further)