Commit graph

3190 commits

Author SHA1 Message Date
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
3a78cf6155
[Feature]: Icon Widget (#3936)
* Created Icon Widget

* Installed tabler icons

* Updated visibility logic for icon widget

* Added doc for icon widget

* Updated hidden field & moved hidden logic to cx

* Dark theme for icon widget & updated visibility

* Moved visibility logic to useEffect

* Updated visibility CSA label

* Removed resolveWidgetFieldValuekey usage in the Icon widget

* Moved register action to useEffect

* Removed registerActions on useEffect

* Add setIconVisibility to dependency array of registerAction

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-09-27 11:18:32 +05:30
Kavin Venkatachalam
2ffda26f38
[Feature]: Link Widget (#3905)
* Created Link Widget

* Added empty line at the end in theme file

* Fixed overflow issue in Link widget

* Updated visibility in the link widget

* Added doc for link widget

* Updated link widget doc

* Set fxActive on by default for visibility

* Fixed variable typo in link widget

* Updated hidden property

* Updated visibility logic for link widget

* Moved visibility to styles section

* Moved register action to useEffect

* Removed registerActions on useEffect

* Removed dependencies in registerAction function as it is breaking inspector

* updated link doc

* Add clickRef of link component as dependency of registerAction

Co-authored-by: Shubhendra <withshubh@gmail.com>
Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-09-27 11:12:14 +05:30
Kavin Venkatachalam
3d5ebb7e33
[Bug]: Multiple Confirmation Popup (#3845)
* Fixed multiple confirmation popup bug

* Fixed toast on viewer when confirming the run query

* Removed console

* Fixed null error modal onClick

* updated logic to display multiple confirmation popup

* Removed key

* Added key in the confirm component
2022-09-27 11:03:30 +05:30
Sherfin Shamsudeen
4ee35e7eac
Add setState functions of components as dependencies for registerAction (#4120) 2022-09-27 10:55:51 +05:30
Arpit
3ca7de1c40
fixes query params are passed as slug to the app url for go-to-app action (#4118) 2022-09-26 18:57:45 +05:30
Kiran Ashok
962e4d36cc
Feature :: ClickHouse plugin (#3873)
* feat : setup and basic querying

* docs reference links

* revert settings.json

* updating settings.json

* updates :: more source options , insert query

* cleanup

* updated with insert operation

* database :: required field

* text capitalizing

* updated docs

* PR changes :: added OR operation

* removed format option

* Revert "removed format option"

This reverts commit 02c5edcf86.

* bugfix

* removing session , fornat

* lock files

* Revert "lock files"

This reverts commit d593cf9425.

* rearranging operations

* extra comma removed
2022-09-26 18:35:20 +05:30
Manish Kushare
d3c0f8d635
Enhancement : [ Button Widget ] 2.0 (#4024)
* moved disbale and visible state to properties tab from styles and made fx default for each

* added hover event

* added loading,visible, and disable csa props and handled them in widget

* made General and layout menus open by default in widget inspector

* added migration for visibility and disabled prop

* removed unwanted visible prop in the properties object

* made fxActive true in migration file

* added loadingState active fx in migration

* refactored widget

* refactored button widget

* bug fixed

* bug fixed

* bug fixes

* replaced onMouseMove with onMouseOver event

* changed the type of action for loading, visibility and disable to toggle

* moved all register action inside useEffect

* removed register action function from useEffect and made the requested changes

* fixed visibility bug

* avoiding extra render

* made changes for better readability

* removed unused import
2022-09-26 15:47:55 +05:30
Arpit
decc924ba2
[improvement] Modal widget (#4045)
* init

* fixes: config-handler clickEvents

* fixes: position attributes for open state modal config handler

* modal body scrollable

* adds loadingState

* adds onOpen and onClose events for modal

* adds visibility property

* open general and layout Options by default

* adds styling options for modal header and body

* adds style options for show button and conditional rendering of button styles

* refactor conditional rendering styles

* clean up

* fixes typos

* remove footer

* modal size

* handles dark theme

* update naming convention for modal: trigger button

* modal size:updates

* updates modal close icon

* adds comments for conditionally rendering style options

* only vertical scrolling inside modals

* clean up

* custom UI for widget config handle for modal

* backfil

* resolves: event should not fire on mount

* modal improvements doc

* hide modal on clicking outside for viewer mode

* Remove unnecessary modification of modal property schema

Co-authored-by: Shubhendra <withshubh@gmail.com>
Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-09-26 15:46:21 +05:30
Manish Kushare
e838d3e96b
Enhancement : [ Text widget ] refactor (#4038)
* refactor Text widget

* refactored text widget

* bug fixed

* changed the type of action for visibility to toggle

* changed the default value of background color to transparent

* made event menu open by default in widget inspector

* made the suggested changes

* bug fixed : app was crashing due to visibility

* made changes to improve readability
2022-09-26 15:05:46 +05:30
Manish Kushare
8f3abb5609
added onSelect event, when date are selected (#4058) 2022-09-26 14:21:03 +05:30
Arpit
d1b8da1d45
fix: table - Bulk update actions buttons should not be displayed after save changes or discard button is clicked (#4114) 2022-09-26 13:45:47 +05:30
Arpit
5f8b0f2594
[Plugins] Adds support for pagination in listing objects from AWS S3 buckets (#3970)
* Adds support for pagination in listing objects from s3 buckets

* docs

* adds Next Continuation Token

* docs: Next Continuation Tokenzendesk

* docs: Next Continuation Token
2022-09-26 11:28:54 +05:30
Manish Kushare
0a2ba33002
bug fixed : misaligned text and button in the events section in query manager (#4088) 2022-09-26 11:07:06 +05:30
Arpit
1196aef268
[Bugfix] Fixes: Slack Plugin (#4022)
* fixes: schema and scopes

* updates docs: slack datasource

* fixes:code hinter UI for slack operations

* updates send message ref image: docs
2022-09-26 10:54:12 +05:30
mikebarr24
6a2082dd0c
[docs] Update docker setup docs (#4108) 2022-09-25 09:00:17 +05:30
Arpit
dce717c78a
[Bugfix] Fixes List tables operation for Big Query (#4034)
* fixes: List tables operations

* sanitized response

* sanitized response for create and delete table

* handle create_view operation without condition being passed

* updates insertion response

* handle create_view operation without condition being passed
2022-09-24 00:43:44 +05:30
Shivang
39c96d3c27
[docs] Table widget info update (#3824)
* added info about custom validations

* text bug resolved

* added one liner description for cell types

* Updated online description for cell types

Co-authored-by: Shivang Tiwari <shivangtiwari@Shivangs-MacBook-Pro.local>
2022-09-23 23:13:14 +05:30
ighmaz
8c2be66702
[docs] Added copy-paste shortcut (#4096) 2022-09-23 23:12:42 +05:30
Ajith KV
7d89282776
Add happy path spec for Text Input widget (#4029)
* Add and modify data-cy for text input widget

* Add methods and utlis file for text input widget

* Add custom command for code mirror input clear function

* Modify common widget selectors

* Add and modify texts and labels

* Add spec file

* Add review changes
2022-09-23 18:03:05 +05:30
Midhun Kumar E
4d42efaa8f
Add cypress test for listview (#4070)
* Add data-cy

* Add utils

* Add spec and constants

* Fix commented lines.

* Added missing preview
2022-09-23 13:38:28 +05:30
Sherfin Shamsudeen
ddf28a1336 Merge branch 'main' into develop 2022-09-22 19:22:31 +05:30
Sherfin Shamsudeen
4137a25ada Bump hotfix version 2022-09-22 19:22:01 +05:30
Arpit
3e6c98ebcc
[Hotfix] Calendar widget : Default date is not updated dynamically and widget crashes for invalid dates (#4095)
* hotfix: pr-4073

* hack to update the exposed variable
2022-09-22 19:21:12 +05:30
Manish Kushare
02e4d5fac9
made Overflow dropdown in the columns section inside table widget inspector consistent with the dark theme (#3900) 2022-09-22 11:16:12 +05:30
Sherfin Shamsudeen
b5507b4ac5
Refactor table component (#3933)
* Updated the table UI

* made the search bar in sync with current applied theme in the application

* updated the UI of the table widget

* adjust x axis in the footer

* made the search text vertically center

* Load text color using new api in Table

* Load action buttons data using new api in table

* Revert usage of new api for table actions

* Use new api to load most properties and styles

* Move logic for loading styles and propeties to another file

* Table: Move loading of actions to separate file

* Move functions to expose data to codehinter to Box.jsx

* Table: Get loadingState from new api

* Table: Use reducer for storing table column properties

* Table: minor refactoring on reducer

* Table: Replace the use of internal state variable componentState

* Abstract out Filter as a separate component

* Move table column definitions to a separate file

* Move action column definition to a separate file

* Move IndeterminateCheckbox to a separate file

* Completely remove any requirement of loading from definition inside loadPropertiesAndStyles

* Reduce the use of reducer dispatch calls in Table.jsx

* Remove the usage of __TjDoNotResolve__

* Load actions without new API

* Update migration to make columnSizes follow default format

* Fix migration to restructure table column sizes data

* Do not update columnSizes property if incoming value is empty

* Remove unnecessary code

* Remove unnecessary linting

* Remove unnecessary reducer action

* Remove unnecessary code

* Merge table changeSet data into table details reducer instead of filter reducer

* Make compact and spacious cell sizing work for table

* Remove custom handling of onRowClicked for Table

* Fix issues with table visibility, border radius and disabled state

* Resolve the issue with invalid date crashing the table

* fixes:widget crash is only for those tables which do not have any actions associated with it yet. (#4078)

* Remove unnecessary code

Co-authored-by: Manish Kushare <manish.altcampus@gmail.com>
Co-authored-by: Arpit <arpitnath42@gmail.com>
2022-09-21 16:23:02 +05:30
Kavin Venkatachalam
3ae99adc57
[Bug]: Fixed localisation for subpath (#4057)
* Fixed localisation for subpath

* Fixed notification typo on localisation
2022-09-21 10:53:30 +05:30
Gandharv
9860cf639e
fix(webpack): remove devtool source-map in prod mode (#4066)
* fix: remove devtool source-map in prod mode

* undo unwanted change
2022-09-21 01:59:09 +05:30
Akshay
5108d12b9f
fix zombie idle db connections from within transactions (#4072) 2022-09-20 18:47:47 +05:30
Akshay Sasidharan
dabd9459df bump to v1.25.5 2022-09-20 16:31:52 +05:30
Arpit
74a98d33a2
fixing params for post request (#4069) 2022-09-20 13:41:18 +05:30
Arpit
fb2540b4d8
[improvements] LeftSidebar Inspector (#4064)
* fixes: padding for inspector json

* fixes: padding for inspector json

* fixes: padding for inspector json

* adds {{}}: to copying the abs path
2022-09-20 10:14:24 +05:30
gsmithun4
53386b224c bump to v1.25.4 2022-09-19 20:52:38 +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
Akshay
410ec82de2
Fix docker dev setup (#3976)
* fix docker dev setup

* remove echo
2022-09-17 14:50:45 +05:30
Gandharv
1e9733e2a6
Hide user data from thread module (#4020) 2022-09-16 14:18:01 -07:00
Akshay Sasidharan
883a55a88c Merge branch 'main' into develop 2022-09-16 22:19:19 +05:30
Maurits Lourens
42a54644b9
Add remove object operation to S3 plugin (#4006)
Co-authored-by: MauritsLourens <maurits.lLourens@gmail.com>
2022-09-16 22:05:23 +05:30
Akshay Sasidharan
85f90f6b3f bump to v1.25.3 2022-09-16 21:59:42 +05:30
Akshay Sasidharan
2413cae0da hotfix: handle pg env vars from env and env file 2022-09-16 21:57:33 +05:30
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
Akshay Sasidharan
0f8c568bb6 bump to v1.25.2 2022-09-16 20:54:55 +05:30
Akshay
ba491a1f29
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
2022-09-16 20:50:44 +05:30
Shubhendra Singh Chauhan
e8ae8a9fe6
[docs] added localization (#4048)
* added localization doc

* Update docs/docs/contributing-guide/l10n.md

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>

* Update docs/docs/contributing-guide/l10n.md

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>

* Update docs/docs/contributing-guide/l10n.md

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>

* Update docs/docs/contributing-guide/l10n.md

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>
2022-09-16 14:23:20 +05:30
gsmithun4
27e2a7c32e Bump to v1.25.1 2022-09-16 12:21:41 +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
Manish Kushare
59fb778287
Bug fixed :[ Checkbox widget ] label is not consistent with the dark theme (#3903)
* Bug fixed : label is not consistent with the dark theme

* removed console statement
2022-09-16 12:18:10 +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
Akshay Sasidharan
1a98cea4a2 bump to v1.25.0 2022-09-15 12:47:25 +05:30
Akshay Sasidharan
5b3f7382fa Merge branch 'develop' 2022-09-15 12:39:50 +05:30