Commit graph

197 commits

Author SHA1 Message Date
Arpit
e95ee37ade
fixes codehinter border in lightmode (#1648) 2021-12-28 12:58:05 +05:30
Arpit
b4f7334b1f
Bugfix: Scrolling is broken for code editor on postgresql query manager (#1583)
* fixes: Scrolling is broken for code editor on postgresql query manager

* resolves comments
2021-12-25 08:51:19 +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
Gandharv
ab9ba8d748
Remove max-min query manager option (#1593)
* remove max-min query manager option

* remove icons
2021-12-20 09:24:11 +05:30
Arpit
08442259cf
changing sheet name to gid:ghseet query schema (#1600) 2021-12-18 09:58:04 +05:30
Akshay
fa9de160cc
add capability to add prefix on s3 listing (#1601) 2021-12-18 09:57:39 +05:30
Gandharv
89c7b1b89f
Make query manager re-sizeable (#1569)
* add drag handle to query manager

* remove console

* fix on resize options getting set to defaults

* remove prevent default from mouse move
2021-12-15 09:32:43 +05:30
Gandharv
6c90a1667b
Feature: undo/redo for canvas 🔥 (#1446)
* feat: add restore shortcut when component is deleted

* change toast messages to hot toast from toastify

* change toast messages to hot toast from toastify

* change toast messages to hot toast from toastify

* on key press match clear the pressed keys

* add react hotkeys hook and delete use-shortcuts custom hook

* change toast messages to hot toast from toastify

* add immer lib

* applyPatches from immer + add undo redo on appdefination changes

* remove notification on undo

* add can-undo + can-redo checks

* add missing can-redo to handlePatchAdd

* add component versioning on componentDefinitionChanged

* set default value of loading state to interpolated boolean false for table

* set canUndo on initial load to false

* fix last element not getting removed on undo

* Remove console log

* add migration to change loadingState for existing tables

* set loadingstate value based on the previous value

* fix: app crash on inspector opening

* add check for selectedComponentId inside components def

* update template definitions for loadingState

* fix alert for success, error, info for button notifications
2021-12-11 04:41:24 +05:30
Akshay
5b30aa2007
Chore: Setup pipeline (#1539)
* github actions for PR and push to develop branch

* test workflow

* move to workflows folder

* add setup node action

* modify build

* specify npm version

* config unit test

* specify host postgres

* specify container to run on

* add postgresql dependency

* add specify ws adapter for test

* add e2e test

* fix linting

* only log errors on tests

* update eslint config

* fix linting

* run e2e test in silent mode

* fix library app spec

* dont send email on test env

* fix org scope

* mock env vars

* remove reset modules

* force colors

* explicitly close db connection

* add eslint rule for floating promises

* update workflow

* fix floating promise

* fix lint

* update workflow

* run on all push and pulls

* update lint check files

* simplify workflow

* increase js heap size on env

* separate lint and build

Co-authored-by: arpitnath <arpitnath42@gmail.com>
2021-12-10 08:43:05 +05:30
Arpit
b9754c4b6b
[Feature] popup modal for code hinter (#1465)
* portal for code hinter popup

* codehinter portal styles

* portal editor height

* update icons

* hinter changes

* refactoring to a separate dir

* code hinter - portal

* component details added in the portal header

* portal header: source name fixed

* portal header: inlcludes field name in the header

* display field names for rest api

* display field names for transformation

* handle for empty component names

* portal preview code bg

* foreUpdate

* foreUpdate

* refactored and using same codemirror component to render portal's editor

* clone codemirror to two different component

* fixed - need click to render the field data

* force update

* table component cell types: included

* chart component types: included

* alignment of the preview area

* btn color adapts to theme-fix

* remove console.logs

* disable portal editor for event manager

* scss unsued ruleset removed

* name fixes and remove unsued var

* .

* null check

* removed hardcode componentName

* app z-indexes: added z-index for suggestion-hints

* hook exhaustive-deps

* portal custom hook

* updated function name

* icon position fix

* hinter fails to open in certail scenarios: fixed
2021-12-10 08:39:23 +05:30
Gandharv
8591dc4362
Add new navbar changes (#1538)
* Add new navbar changes

* css fixes

* canvas bg color picker

* css fixes

* add minimize icon

* add spacing when query panel closed

* add svg icon files

* reduce create button size and align to middle

* fix global settings styles

* retain selected data source on panel height change
2021-12-09 09:13:32 +05:30
navaneeth
c4b24e645e Merge remote-tracking branch 'origin/main' into develop 2021-12-08 13:55:22 +05:30
Gandharv
886da251cd
fix query manage old state retained on add query (#1537) 2021-12-08 13:39:20 +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
Arpit
c1939aa58c
[Bugfix] fields jumps when focused - REST API (#1516)
* fix: fields jumps when focused

* use colors from colors.scss
2021-12-07 20:12:13 +05:30
Gandharv
372bfe7a18
fix: query manager closing on view updates (#1478) 2021-12-02 14:17:48 +05:30
Arpit
2b303c026b
[Feature] : Gsheet update operation (#1453)
* gsheet update op: schema and UI

* gsheet update op: server

* update operation for google sheet datsource api

* remove unsued comments

* backward compatiable: removed custom rule for sheet

* unsused consolelogs

* .

* Show gsheets update query body as a single-line codehinter

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-02 12:25:40 +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
Arpit
31e8752b65
code hinter height fixed for queryEditors - datasources (#1431) 2021-11-21 09:44:26 +05:30
Arpit
1fdcccec26
google sheet datasource schema update (#1436) 2021-11-20 07:04:00 +05:30
Gandharv
a8806d3123
fix: add placeholder for records while bulk update in postgres (#1434) 2021-11-20 07:03:36 +05:30
Gandharv
1ddd170539
Add schema for data query editor (#1361)
* Initial commit for data query schema changes

* db: add mssql schema

* api: add graphql schema

* api: add redis data query editor

* db: add my sql db

* api: dataquery - add airtable api schema

* api: dataquery - add dynamodb api schema

* database: dataquery - add database api schema

* database: dataquery - add elastic search api schema

* database: dataquery - add mongo db schema

* database: dataquery - add postgre sql schema

* api: dataquery - add slack schema

* api: dataquery - add google sheets schema

* database: dataquery - add gcs schema

* fix: dynamodb styles

* fix: elastic search styles

* fix: firestore styles

* fix: remove line numbers + add className prop + add initialValue prop

* remove line numbers

* cleanup: remove jsx files of data queries

* cleanup: fix merge conflicts

* fix: on edit dropdowns not retaining value

* fix: remove unnecessary log statement
2021-11-17 23:29:00 +05:30
Arpit
a203253131
Feature: adds code preview for codeboxes (#1011)
* preview codeHinter default=true

* adding preview code for codeHinter for table widgets

* previw for codeHinter in eventManager and RestAPI headers tab fixed

* added classes to header tabs

* fixed preview for transformations

* widgets preview for title

* preview for advance tab QueryManager

* preview box for datasource queryeditor

* sql code hinter UI spaces fixed
2021-11-15 11:48:09 +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
Alok Kumar Sahoo
9603f2b923
GH-1037: fix/base url not changing with theme (#1113) 2021-10-18 08:57:39 +05:30
Akshay
ceca48b100
Revert "Feature: Snowflake integration (#996)" (#1046)
This reverts commit d4c4501d63.
2021-10-14 22:10:18 +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
Arpit
51d6537b02
Request confirmation before running query if true (#857)
* fixes state of toggles and currentTab of dataQueries

* show confirm modal when  query confirmation request is switched true

* simple and better fix:updating the helper function solves the issue

* minor fix for eslint-class declaration rule

* fire toast on queries running with requestConfirmation switched to true
2021-09-29 15:00:27 +05:30
Arpit
a9f7dc02fe
Fixes state of toggles and currentTab of dataQueries (#851) 2021-09-28 22:33:40 +05:30
Arpit
bf0564a61f
Bugfix/enable transformation (#821)
* fixed: Transformation editor automatically closes and looses current state

* fixed: enableTransformation toggle switch switches to off/disable state due to other components
2021-09-27 09:10:21 +05:30
Arpit
63b26d9a87
BugFix: Transformation editor automatically closes and looes current state (#818) 2021-09-23 09:55:21 +05:30
Sherfin Shamsudeen
3ca60c5b2d
Bugfix/firestore query conditions (#813)
* Add multiple fields for order and orderType in firestore query

* Add support for querying firestore with where, order and limit

* Minor refactoring updates for firestore query operations file

* Minor refactoring for firestore query operations

* Update package-lock.json with npm 7.20.0
2021-09-22 00:19:29 +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
Arpit
4dc356cb36
Parameter to accept a specific range within a Googlesheet (#798)
* Parameter to accept a specific range within a googlesheet

* default range: A1:Z500
2021-09-21 17:20:29 +05:30
Gandharv
5bb0594973
Enable suggestion box for codehinter (#737)
* enable suggestion box for codehinter

* add heading as type of the preview

* add preview only on focus

* remove box shadow

* add background to widget inspector documentation footer link

* doc footer updats

* add condition where boolean value was not getting printed

* use index as key
2021-09-15 21:10:59 +05:30
Akshay
f637a80fd6
Feature: data query deletion (#734)
* add feature for data query deletion

* fix after query deletion default query selection is not being done

* move delete option and hide option unless mouse is hovered on query

* show dialog box confirmation before query deletion
2021-09-13 22:54:47 +05:30
Gandharv
8791f697e2
Use state instead of props in util file' (#720) 2021-09-13 21:53:27 +05:30
Gandharv
3c6669799e
Add default values for rest api query builder (#705) 2021-09-08 10:26:40 +05:30
Akshay
2d20e262c9
Feature: Data query runs can also run events (#666)
* add capability to add events on data query runs

* UI fixes

* change popover placement to top
2021-09-06 20:10:51 +05:30
Gandharv
bd98fbdeee
fix: query pane margin (#683) 2021-09-03 10:31:01 +05:30
navaneeth
d4127736d6 Move the logic for option serializing to server 2021-08-30 23:15:31 +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
navaneeth
1fdc4a1f23 Stability fixes for REST API query editor 2021-08-29 21:33:40 +05:30
navaneeth
8612f8f0d6 Fix for REST API URL field height 2021-08-24 08:12:16 +05:30
navaneeth
636bf0bc4b Codehinter enhancements 2021-08-21 09:39:04 +05:30
Akshay
5909aaacff
Feature: bulk update capability for mysql plugin (#561) 2021-08-20 19:26:47 +05:30
Arpit Nath
7d37cf25f4
Feature: update record operation Airtable (#468)
* update record(s) operation : airtable

* fix: update record  operation - Airtable

* nolints

* indentation fix

* duplicate props removed
2021-08-12 21:06:31 +05:30