Commit graph

1663 commits

Author SHA1 Message Date
Arpit
2489f1c9d6
fixes typo: Tooljet -> ToolJet (#2139) 2022-02-05 06:48:44 +05:30
Muhsin Shah C P
376e92bdfc
Improvement: Changed widget handle UI (#2116)
* Changed widget handle design

* Resolved a bug

* Added a solution for widget overlapping

* Changed resizer border-type and color
2022-02-04 20:54:41 +05:30
Gandharv
06b16df8a3
Adds comments on top of widgets (#2137) 2022-02-04 16:35:11 +05:30
Arpit
65c8527dbe
Fixes the blue border when dropdown was focused (#2127) 2022-02-04 14:20:03 +05:30
Akshay
be87a3c51e
Autosave definition on version release (#2120) 2022-02-04 13:51:32 +05:30
Gandharv
bc1203133f
Remove widgets from appDef when tab widget deleted (#2133) 2022-02-04 13:50:07 +05:30
Navaneeth Pk
eb75038b93
Fixes duplicate widget names being generated (#2129) 2022-02-04 12:02:19 +05:30
Muhsin Shah C P
b433150628
Changed bottom margin between app cards (#2134) 2022-02-04 11:58:49 +05:30
Arpit
60dba40451
[Bugfix] component names should be generated uniquely (#2006)
* fixes:component names should be generated uniquely

* refactor

* removed unwanted condition

* fire toast only when user presses enter or onBlur event fires

* error toast only one should be shown at once

* refactor

* removed not req change
2022-02-03 17:40:50 +05:30
Gandharv
a649d1c88b
Add clone component functionality (#1970)
* feat: add clone component functionality

* change to cmd + d

* use unique name for copied item

* fix container clone issues

* move naming logic to parent

* deprecate old method

* remove inspector after clone

* generate uuid from pkg

* use copy of appdefinition

* remove redundant if stmt

* Fixes for tabs

Co-authored-by: Navaneeth Pk <navaneeth@tooljet.io>
2022-02-03 14:45:40 +05:30
Muhsin Shah C P
f210d5edea
Added border radius property to range picker (#2114)
* working on radius

* Added radius property
2022-02-03 14:37:39 +05:30
Gandharv
c6cebde78f
Remove blue border of source dropdown (#2094) 2022-02-03 12:38:23 +05:30
Navaneeth Pk
95c2883498
Prevents multiple widget handles from being shown (#2092) 2022-02-03 12:37:34 +05:30
Muhsin Shah C P
a6eed08a11
Fixes chart widget toggle issue (#2101) 2022-02-03 08:50:43 +05:30
Muhsin Shah C P
7bb438d442
Fixes dark mode for widgets in sub-container (#2103) 2022-02-03 08:25:15 +05:30
Muhsin Shah C P
96052ca81c
Fixes texts being selected when the query pane is dragged 2022-02-03 08:24:16 +05:30
Arpit
3a62ac9820
[improvement] Query panel redesign (#1947)
* query panel headers styles

* create query button style update

* create query button style update

* create query button style update: mixins

* querypanel header nav-links updated

* querypanel header buttons

* restapi: url hinter styles

* fixes querypane header width, undo prev styles applied

* querypanel header icons margin fix

* restapi: header tab

* restapi: params tab

* restapi: body tab

* base url style fixed

* added alert component to @/_ui

* adds margin top to query-panel tabs

* bumped font weight of preview

* on hover query style updated

* selected query style update and along with dark themed

* adds new searchbox component, added search queries

* fixes query panel query lists icons margin

* query selected hover bg

* back icon should not be render if callback is a function

* airtable: queries redesigned

* stripe: queries redesigned

* fixed query-pane header responsiveness

* fixes tab title typo

* undp/redo select datasource only when mode='create'

* removes comments

* refactor restapi url codehinter styles

* fixes white spaces in query pane and query pane header

* minor updates for restapi query options styles

* removes tool-tip for lens svg icon for search: query-pane header

* adds button loading spinner with primary color

* fixes hover bg color for queries

* update: query hover bg color to lighter tint

* update query list icons: trash and play svgs

* adds icons to the selection component

* fixes tabs alignments restapi

* fixes codehonter text margin: restapi url

* fixes advanced-options-container margintop

* new UI query: dynamodb

* new UI query: elasticsearch

* new UI query: firestore

* new UI query: mongodb

* new UI query: mysql

* new UI query: psql

* new UI query: typesenseapi

* new UI query: gsheet

* new UI query: sendgrid

* new UI query: twillio

* new UI query: gcs

* new UI query: minio

* new UI query: aws

* update query bg color and hover bg color

* fixes run query icon for dark theme

* fixes input query title text alignment

* update query header title

* adds search queries placeholder and add icon when search box is displayed

* updated No results query text

* undo/redo rest-api tabs: fixes whote spaces

* undo/redo: rest-api tabs conde hinter placeholder paddinleft

* adding new queries when search box component is mounted:fix

* fixes creating a new query after filtering queries

* fixes dark theme for select search components

* reverts query pane header search box with add icon

* fixes input left margin

* fixes bottom padding rest api tabs

* fixes toggle button:not selected in dark theme

* fixes typos

* fixes preview button spinner size

* undo/redo: query-trash-icon.svg for queries and trash.svg for components

* query icons badge bg update[options]

* icon badge fix

* move static styles to theme.scss

* restapi: url field height increment

* fixes query name when adding a new query with filtered querylist

* fixes alignment issues of the query header icon

* revert back to 32px code hinter height

* adds apdding to code mirror line

* updates to react-select

* remove component unmounts and mounts side effect
2022-02-02 22:29:57 +05:30
Gandharv
303aafb152
Changed default size of few widgets (#2095) 2022-02-02 16:00:17 +05:30
Gandharv
36c74c118c
Adds escape shortcut to close the widget inspector (#2093) 2022-02-02 15:02:54 +05:30
Navaneeth Pk
966e7b6d77 Merge branch 'main' into develop 2022-02-02 14:48:55 +05:30
Midhun G S
013cb7d091
[BUG-2080] App edit button visibility (#2081)
* App edit button visibility

* Style changes
2022-02-02 14:36:59 +05:30
Kiran Ashok
2626bd6ec3
Fixes modal crashes on dropping widget inside it (#2069)
* fixing undefined error

* fixing undefined error
2022-02-02 14:36:12 +05:30
Muhsin Shah C P
d256cff06f
Fixed app card skeleton (#2088) 2022-02-02 12:33:46 +05:30
Muhsin Shah C P
827a0893bd
Added a border radius property to multi-select widget (#2073)
* Added border radius

* Resolved bug: can't set radius to another multiselect in a same canvas
2022-02-02 08:11:52 +05:30
Muhsin Shah C P
c70b0acec7
Added selected text color property to the dropdown widget (#2064)
* Added selected text color property

* Changed property name
2022-02-02 08:08:41 +05:30
Kiran Ashok
bd6029b19b
ui changes in comments section (#2082)
* enhancement ::
updating ui issues in comment edtior section

* bugfix :: updates styling , margin issues in comment mentioning

* styling fix
2022-02-02 08:07:02 +05:30
Kiran Ashok
f53f2ccb42
fixing icon/image in dark mode in onboarding page (#2084)
* added new svg

* bugfix :: padding inconsistency , dark mode svg update
2022-02-02 07:49:59 +05:30
Sherfin Shamsudeen
36150dc8d5
Fx button for code hinter fields that will flip them to corresponding UI components (#2059)
* Allow flipping non-code fields to code fields

* Revert "Allow flipping non-code fields to code fields"

This reverts commit 190e686994.

* Accept type prop to CodeHinter

* Allow CodeHinter to display UI elements instead of codebox

* Use style FxButton as flipper for code hinter

* Do not show Fx button on codehinter that allows only codebox

* Implement Select and Toggle flippable fields for code hinter

* Apply proper padding for Fx button on codehinter and its toggle component

* Make component properties remember their Fx status

* Avoid generating code when Fx is activated

* Add Fx to color field

* Add Fx to align property type

* Support json type for codehinter and remove unused Text type

* Extend codehinter width to 100%

* Fix bug that caused serverside pagination property to not work

* Remove unnecessary comments
2022-02-01 19:46:21 +05:30
Gandharv
a68cd92a8f
Fixes rangepicker default value (#2078) 2022-02-01 18:35:22 +05:30
Muhsin Shah C P
16d2a1da4b
Improvement: added onRowClicked event to listview (#1975)
* added onRowClicked event to listview

* working on event data

* Removed custom component fn from this PR

* Changed hard coded component name
2022-02-01 18:07:36 +05:30
Muhsin Shah C P
e622dae158
Added border radius property to table widget (#2077) 2022-02-01 17:06:41 +05:30
Muhsin Shah C P
67e292b8e9
Changed datepicker input's background color (#2075) 2022-02-01 17:03:40 +05:30
Muhsin Shah C P
6cee53cc88
Adds border radius to dropdown widget (#2072) 2022-02-01 16:42:05 +05:30
Kiran Ashok
83873cd37a
Updates onboarding page design (#2060)
* new ui for onboarding screen

* added template card

* pr review changes
2022-02-01 14:49:54 +05:30
Muhsin Shah C P
62b57aaad2
Changed text widget default width to 5 (#2066) 2022-02-01 13:16:22 +05:30
Gandharv
03b16802f4
Hide text overflow for button widget (#2061) 2022-02-01 12:04:46 +05:30
Muhsin Shah C P
1ee2784c59
Added a toggle to hide axes of chart widget (#2053)
* Added option to enable and disable axis

* Resolved a typo
2022-02-01 11:13:49 +05:30
Arpit
737a89b93f
updated svg icon of config handle (#2057)
* updated svg icon of config handler

* updates svg icon
2022-02-01 10:19:32 +05:30
Marco
616ee8ed7c
Fix: Make query manager dropdown visible in dark mode (#2008)
* Set up styles for dark mode vs. normal mode

* Fix datasource query dark mode visibility

* Remove unnecessary import
2022-02-01 08:42:57 +05:30
Arpit
80f81ff730
Improvement: option to resize the debugger popover (Left sidebar) (#2048) 2022-02-01 07:06:38 +05:30
Abhishek K M
fe688d57ee
(#1942) fix sort direction indicator blending in dark mode (#2055) 2022-02-01 07:02:56 +05:30
Gandharv
5fda4a2891
fix: save app on settings options change (#2051) 2022-02-01 07:02:01 +05:30
Gandharv
b85c4088f2
Performance improvement for canvas (#2030) 2022-01-31 21:51:46 +05:30
Muhsin Shah C P
0869fb06fb
Adds padding property to charts widget (#2029)
* added padding property to charts widget

* working on padding problem

* Changed default padding value
2022-01-31 21:47:33 +05:30
Muhsin Shah C P
0a253ef0c3
Adds padding property for image widget (#2050) 2022-01-31 21:46:51 +05:30
Muhsin Shah C P
2ff094d787
improvement: Template modal should close on esc key (#2043)
* Added onKeyPressed fn

* removed key press listener
2022-01-31 21:04:38 +05:30
Muhsin Shah C P
ac00f530f2
Adds a custom remove component function for sub-container (#2020) 2022-01-31 16:48:58 +05:30
Kiran Ashok
0cbfcf9a2d
Fixes issues with release modal *close , autofocus , keyboard actions (#2032) 2022-01-31 16:36:01 +05:30
Muhsin Shah C P
8f2ab3f269
Added background color property for image widget(#2022) 2022-01-31 14:10:17 +05:30
Akshay Sasidharan
7c0ca61012 Merge branch 'main' into develop 2022-01-31 12:16:12 +05:30
Arpit
d4da5591cb
Adds support for custom variables (#1780)
* adding new action: set variable

* adding unset variable action

* add customVariables when editor mounts

* removed unused props

* removed unused props

* updated actions and inspector popover

* removes white space

* add variables to resolve reference

* adding variables to suggestion hints

* adding variables to suggestion hints

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-01-31 09:06:34 +05:30
Navaneeth Pk
95b751731c
Fixes the inconsistent styling of query panel spinner (#2013) 2022-01-30 13:51:08 +05:30
Navaneeth Pk
bda4e95b26
Fixes overlap of query panel with right sidebar (#2011) 2022-01-30 13:44:35 +05:30
Navaneeth Pk
2955acc918
Code suggestions should use cursor as the reference for position (#1994) 2022-01-29 07:09:04 +05:30
Kiran Ashok
c836d861cf
Border radius style for input widgets (#1972)
* updating File picker
Text input
Text area
DateRangePicker
Datepicker
PasswordInput
NumberInput
TextInput
codeEditor, to include border radius style option

* change to number input

* theme file updated to remove override for border radius

* change to number input

* text input updated with border radius style

* updated with border radius

* date range picker border radius removed

* removing overiding class
2022-01-29 07:06:08 +05:30
Midhun G S
4f6e481470
Folder listing style changes (#1991) 2022-01-29 06:59:51 +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
Sherfin Shamsudeen
be3100e63f
[BugFix] Properly display and assign modal and tables on event manager (#1996) 2022-01-28 20:23:28 +05:30
Navaneeth Pk
056cc24691
Code suggestions should replace only the last word (#1985) 2022-01-28 14:29:55 +05:30
Muhsin Shah C P
db4fc523b2
Removed unwanted bottom margin from widgets sidebar (#1989) 2022-01-28 14:29:32 +05:30
Navaneeth Pk
f0c8cb344f
Fixes widget crash when added to subcontainers (#1987) 2022-01-28 13:22:55 +05:30
Kiran Ashok
fb9e696d8e
wrapping table header for long text (#1960) 2022-01-28 12:16:38 +05:30
Arpit
ad377d08b3
Fixes all applications background color for dark mode (#1977) 2022-01-28 07:37:31 +05:30
Arpit
01efd39d88
Fixes pagination subtext color in dark mode (#1980) 2022-01-28 07:36:38 +05:30
Arpit
2b81ca56a7
fixes: 'no results' not legible (#1983) 2022-01-28 07:35:35 +05:30
Muhsin Shah C P
25aaf6c1f1
Added an organization 'role' field to the page that redirects after the email confirmation (#1944)
* Role field is added

* Resolving test failure
2022-01-27 20:56:35 +05:30
Kiran Ashok
47fbf3fb92
Mew app creation - v1 should be default name and pressing enter should create version (#1968)
* updating default value to app version

* typo

* bugix toast triggering more than once
2022-01-27 20:41:29 +05:30
Navaneeth Pk
fda3028c5a
Removes extra space after dark mode switcher on left sidebar (#1959) 2022-01-27 18:14:50 +05:30
Gandharv
897440b477
adds icon for runjs queries (#1971) 2022-01-27 17:57:29 +05:30
Muhsin Shah C P
8dec4251d7
Created a new category in widgets sidebar (#1967)
* Created a new category in widgets sidebar

* Added modal to layouts
2022-01-27 16:22:46 +05:30
Navaneeth Pk
d36f04f6e9
Dynamic positioning for config handle (#1957)
* Dynamic positioning for config handle

* Fixes styles
2022-01-27 16:21:38 +05:30
Arpit
4f2d5907ad
fixes typos, text should be specific to a component (#1955) 2022-01-27 16:20:41 +05:30
Akshay
7af79c091e
Fix: Namespaced data source connectivity issues (#1914)
* add mysql package dependency

* fix mssql

* fix redis

* make use of backward compatible opensearch package for es

* fix es request
2022-01-27 16:01:39 +05:30
Midhun G S
5000f745b1
Github OAuth integration (#1837)
* Initial commit

* git auth

* git sso

* Git sso

* Git Oauth rebase

* review comments

* added email validation

* improvement

* Package lock revert

* E2E test case fix

* fix data population in migration

* Supress initial error thrown by google

* Fix

* e2e test cases

* added e2e test cases

* isValidDomain improvement

* e2e test cases fix

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
2022-01-27 15:21:17 +05:30
Kiran Ashok
96457e7dbc
Bugfix/statistics widget style change not reflecting in dark mode , visibilty option not working (#1940)
* updated colour bug in dark mode

* fixing visibility bug for spinner and statistics widget
2022-01-27 14:36:43 +05:30
Gandharv
a53b9de816
Adds dark mode prop to chart widget (#1937)
Adds dark mode prop
2022-01-26 09:23:45 +05:30
Muhsin Shah C P
34a1aeee2d
Fix: OnClick doesn't fire event on SVG icons of Datasource manager modal (#1933)
* Fixed: click event didn't work on svg

* Fixed: list items' height problem

* changed CardIcon component to a function
2022-01-26 09:01:52 +05:30
Kiran Ashok
b5bdfcfeac
Feature : statistics widget (#1834)
* feature:ui for statics widget

* feature:assets icons statics widget

* feature:addition to existing ui

* inclusion to existing ui editor

* feature: widget style updations

* cleanup

* cleanup

* resolving merge issue

* feature: statics widget svg updated

* fixing pr comments : bounding box width issue fix to cover widget

* pr comments : fixing naming

* bugfix : pr comments: removing all signs

* pr comment changes : fixing alignment of widget contents

* icon updated

* bugfix : dark mode colour scheme inclusion

* updation icon

* updated filenames , style changes updated

* naming change

* pr review changes : making naming convention same everywhere using camelcase

* updating sign property

* updating statistics docs

* docs updated

* sign display updated : pr changes , code cleanup
2022-01-25 09:32:01 +05:30
Gandharv
759a800228
Removes unused cypress directory (#1924) 2022-01-24 17:27:04 +05:30
Sherfin Shamsudeen
17fdf58cef
[HotFix] Set table action usability issues (#1923)
* Expose setPage action of table on application load itself

* Coalesce target pageIndex to 1 for set table page action

* Do not fire onPageChanged for set table page action

* Change exposed pageIndex when set table page action is fired

* Use setExposedVariable to set pageIndex on set table page action

* Do not display functions on side bar inspector
2022-01-24 15:37:12 +05:30
Arpit
93a6853639
Fixes re-render issue of tabs (#1915) 2022-01-24 14:31:26 +05:30
Muhsin Shah C P
e1520c0b03
changed the font weight (#1916) 2022-01-24 13:37:29 +05:30
Muhsin Shah C P
1bbc02cf60
changed search-input design (#1855) 2022-01-24 11:32:44 +05:30
Akshay
56826c3183
Feature: Auto save editor and version management revamp (#1784)
* add modal to create init version

* add init version and ability to auto save

* auto save only when editing version is set

* Feature: App version management ui revamp (#1873)

* add modal to create init version

* add init version and ability to auto save

* auto save only when editing version is set

* revamp version switching on editor

* skip save on app definition load

* handle click outside dropdown

* fix remove component and update styling

* fix auto save detail

* change wording of deployed to released

* remove console.log

* add spec for version creation from another version

* update version create model and hide save detail after shown
2022-01-24 11:21:54 +05:30
Kiran Ashok
e1476b5714
Hhomepage import moved to dropdown (#1868)
* enhancement : import option to dropdown in homepage

* updated style for dropdown item

* included hover styles

* custom hook for inline media query according to screen size

* updated position of dropdown to end align in large screen

* screen size updated

* pr review changes : cleanup and css moved to theme file from internal

* typo error updated

* fixing lint issues
2022-01-24 11:14:50 +05:30
Angelo Geant Gaviola
0e5be486f5
Fixes ui inconsistency in query panel (#1909) 2022-01-24 09:32:30 +05:30
Kiran Ashok
a4d7b9bb7e
Spinner widget (#1883)
* adding spinner widget to  editor

* icon updated

* spinner widget properties

* spinner widget styles updated

* updated description of widget

* moved static styles to theme

* pr reveiew changes , cleanup , making bg transparent

* cleanup

* lint error fix
2022-01-24 08:03:20 +05:30
Kiran Ashok
f53a00cd82
Styles for loading state updated in home app card (#1856)
* enhancement : style for loading state updated in home app card

* pr review changes : moved css to theme from internal

* fixing linter issue
2022-01-24 07:36:29 +05:30
marboleda
f89d30edb5
Allow dropdown option to be selected on Enter key press (Query Manager) (#1899)
* Replace react-select-search component with react-select one

* Remove react-select-search import and commented-out component
2022-01-23 14:45:25 +05:30
Gandharv
d50ee7967c
fix lint issue (#1905) 2022-01-23 14:23:01 +05:30
Arpit
f194d584e1
[Feature] file parser option for FilePicker widget [csv support] (#1764)
* file parser

* removes unwanted comments

* refactor

* add docs

* resolves comments

* handle csv bad data

* remove pdf option

* adds isParsing to filePicker
2022-01-22 10:45:27 +05:30
Muhsin Shah C P
c68d4d21dd
Close button for widget inspector (#1864) 2022-01-22 09:51:35 +05:30
Muhsin Shah C P
0f709706e0
Feature: Circular progressbar (#1887)
* added circular progressbar widget

* added a basic documentation about the widget

* added progress attribute

* bounding issue is solved

* edited the widget doc

* Added new style
- Text color
- Text size

* Changed the documentation
2022-01-22 09:32:37 +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
Sherfin Shamsudeen
f96ab6f795
Expose user groups as a global variable in viewer and editor (#1895) 2022-01-22 01:31:26 +05:30
Sherfin Shamsudeen
81ee8a0fbe Merge branch 'main' into develop 2022-01-21 18:04:12 +05:30
navaneeth
9794668880 [HotFix] Fixes race condition in multiple query execution 2022-01-21 16:42:33 +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
d0fe83f97c
Fix: Center alignment icon of text widget's alignment property is different color in dark mode (#1877)
* solved svg color issue

* removed unwanted lines
2022-01-21 10:59:25 +05:30
Sherfin Shamsudeen
5710e84e6e
[HotFix] Add 'Set table page' action (#1880)
* Add action to set table page

* Add support for invoking functions inside component from appUtils.js
2022-01-20 19:05:34 +05:30
Midhun G S
2f6608bf6f
[Home Page Design Changes] App listing style (#1808)
* feature-1802

* Changes

* feature-1802

* review comments

* Fix for firefox issue

* Styles Reveiw

* review comments

* fix

* fix

* Increased app title height condition

* Test

* Remove logging

* Review comments

* debounce changes
2022-01-20 18:35:37 +05:30
Muhsin Shah C P
c3c13a4b8b
Changes spacing and active color of templates list of template modal (#1872) 2022-01-20 13:45:46 +05:30
Arpit
a2b19934e8
[Hotfix]: Adds current user's groups the inspector in the editor (#1875)
* adding groups which lists all the groups the current user belongs in globals [inspector(leftsidebar))]

* adds a check for possibility exists for a missing ref
2022-01-20 13:43:27 +05:30
Muhsin Shah C P
cffb3a0882
added lazyload to template model images (#1847) 2022-01-20 12:59:56 +05:30
Muhsin Shah C P
efca1f32ba
Fixes query panel resizing issue (#1841) 2022-01-20 10:13:21 +05:30
Kiran Ashok
0f2a658876
Improvement :home page search updated to support live search ,without clicking enter button (#1850)
* bugfix: fixing search homepage to allow seaching while typing

* bugfix : debouncing search
2022-01-20 10:12:21 +05:30
Karl Rezansoff
c56fd143d4
added dark theme to querymanager dropdown lists (#1839)
* added dark theme to querymanager dropdown lists

* set Operation dropdown to 100% width to match light mode

* removed filter on icons, removed commented out styling
2022-01-20 10:11:01 +05:30
Muhsin Shah C P
1d1685ed6a
Fix: solve map widget issues (#1832)
* disabled rnd dragging on maps widget canvas

* fixed: initial location field doesn't update map on the fly if lat and lng changed

* Exposed googleMapUrl
2022-01-20 00:29:40 +05:30
Muhsin Shah C P
3a6d4e5b5e
Fixes bug that prevented alpha value from being set for color picker (#1814) 2022-01-20 00:26:47 +05:30
Akshay Sasidharan
21a20bfd78 Merge branch 'main' into develop 2022-01-19 18:21:08 +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
Arpit
2c70c2bd34
[Feature] pagination widget (#1727)
* feature: pagination widget

* style fixes

* add paginaton svg icon

* updated icon

* update property names

* Merge branch 'develop' into feature/pagination-widget
2022-01-18 11:19:55 +05:30
Muhsin Shah C P
46c00c54e0
Added a style property to align a text inside the text widget (#1792)
* Added text alignment property

* Replaced dropdown list with image radio buttons
 - Added list of action buttons
 - Added tooltips

* changed colors and icons

* tooltip is redesigned
2022-01-18 11:13:41 +05:30
Sherfin Shamsudeen
2c20b3af94
Bring dropdown component to front whenever it is focused (#1845) 2022-01-17 19:46:24 +05:30
Muhsin Shah C P
a68bb57302
Added Json description feature (#1732)
* Added Json description feature

* Added a toggle button for toggle from chart data to json data

* toggle effects for chart-data and json-data is added

* documentation about json part is added

* replaced the position of json toggle . changed the section and label name

* marker color field will hide if plotly is enabled
2022-01-17 16:43:02 +05:30
Bhavin Ag
6d69dde671
fix(date-range): show date format from the properties (#1733) 2022-01-17 13:14:56 +05:30
Ivelin Ivanov
92da33c8d9
Fixed container background in dark mode. (#1838) 2022-01-17 12:50:41 +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
Muhsin Shah C P
077c297ecb
Window title should change to app name when the user is on the editor page (#1824)
* Fixed: tab title stays default

* Added title change code to unmount function

* Reversed the title
2022-01-17 09:07:34 +05:30
Muhsin Shah C P
a02d47e88e
Tags widget (#1659)
* implemented tags widget

* added text color option, changed default tags

* added scrollbar & space between tags

* Required changes are added:

- Changed colors of buttons as per the document
- Now scrollbar only shows if it is needed
- Tags height will be static

* Changed documentation

- Added gif file

* Removed text color style option from inspector
 - Changed md text file
2022-01-15 10:41:27 +05:30
Muhsin Shah C P
3c99dd6fed
Added different border shapes for image widget (#1735)
* added different border types

* added migration file

* rounded-0 replaced with none
2022-01-15 10:38:13 +05:30
Sherfin Shamsudeen
9b1b19e831
Feature/templated library apps (#1820)
* add launch icon

* Set categories for app templates

* Display button with dropdown for create new app

* Show modal when "create from template" is chosen

* Implement template selection modal category list

* Filter and list app templates based on selected category

* Display template screenshot on templates modal

* Align template screenshot vertically and horizontally centered

* Deploy template app when deploy button of template modal is clicked

* Display data sources in template preview

* Add search functionality to template modal

* Show "no results" if templates are not found

* Display category counts on template list

* Add styles for darkmode

* Dark mode style updates for template modal

* Add dark mode template screenshots

* Correct template screenshot proportion

* Change text on deploy button of template modal

* Remove links to apps and library from dashboard

* Remove library apps

* Remove unnecessary import of deleted component Library

* Show loading icon when template is being created

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
2022-01-15 08:07:05 +05:30
Navaneeth Pk
4d6906503b
[WIP] Widget: List view (#1575)
* list view initial commit

* More stuffs

* More stuffs

* Minor changes

* merge fixes

* Minor changes

* Fix misspelt variable name that caused data to not show up

* Merge conflicts

* Fix lint for ListView component

* Update ListView to new API

* Fixes

* Fixes

* Fix radio

* Fix

* Lint fixes

* Set icon for List View widget

* Fix list view within tabs

* Fix

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-01-14 13:57:31 +05:30
Kiran Ashok
03296cb587
Fix for pagination not visible in smaller resolutions (#1810) 2022-01-14 13:55:08 +05:30
Midhun G S
21d63d2c99
Feature: Mongodb more operations support (#1717)
* feature-842 mongo support

* feature-842 fix

* json parse improvement

* Feature-842 date data type support

* feature-842 fix

* convert ejson to bson on mongo queries

* fix type on parse

* json parsing

* Typo error fix

* Insert Many Fix

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
2022-01-14 13:53:57 +05:30
Karl Rezansoff
fc5ea5f7a3
Querymanager add logo (#1818)
* added logos to querymanager

* fixed to pass eslint check

* fixed positioning of icons
2022-01-14 10:04:11 +05:30
Karl Rezansoff
1ff19c037a
added logos to querymanager (#1744)
* added logos to querymanager

* fixed to pass eslint check
2022-01-13 16:55:37 +05:30
Muhsin Shah C P
c19d0b77b5
Query manager panel resizes smoothly (#1812)
* jumbing problem fixed with smooth transition

* now query panel can be drag using the border

* removed css transition
2022-01-13 16:52:58 +05:30
Abhinaba Adhikari
7e24ad002e
Add upper & lower limit to number input widget (#1761)
* Add upper & lower limit to number input widget

* add documentation for number input widget limits
2022-01-12 23:54:42 +05:30
Gandharv
f48c2fd2b9
Fixes scroll of datasource modal (#1804) 2022-01-12 23:08:59 +05:30
Kiran Ashok
e96313198a
Fixes minor spacing issues in multiselect component (#1806) 2022-01-12 23:08:09 +05:30
Midhun G S
1e103ad4b7
[Home Page Design Changes] Update icon API (#1787)
* Feature-1786 Update Icon API

* Update Folders.jsx
2022-01-12 18:04:39 +05:30
Muhsin Shah C P
e6146016df
Added radius style property to change the radius of action buttons in the table widget (#1741)
* added action button border radius

* added documentation
2022-01-12 16:51:14 +05:30
Muhsin Shah C P
3222993dc0
changed the selected dropdown item color (#1754) 2022-01-12 16:50:26 +05:30
Muhsin Shah C P
f4a158ca18
now toggle only works if we click on the input (#1774) 2022-01-12 13:56:48 +05:30
Ivelin Ivanov
12bf65605f
Fixed incorrect color when hover logo image. (#1801) 2022-01-12 07:38:32 +05:30
Ivelin Ivanov
91d2794842
Added feature: when you open the folder creation modal and click outside, the modal is closing. (#1803) 2022-01-12 07:37:39 +05:30
Sherfin Shamsudeen
45167e3f3f
Call onComponentClick on mouse down on dropdown (#1794) 2022-01-11 20:48:55 +05:30
Muhsin Shah C P
6c146b3dfc
Changed default dropdown theme (#1782) 2022-01-11 18:19:37 +05:30
Muhsin Shah C P
3d99537be9
Apply brand colors (#1789)
* changed the active color of datepicker

* replaced with primary color

* Also Changed the radio btn active color
2022-01-11 16:49:14 +05:30
Muhsin Shah C P
b6f20fe20e
Bugfix: 'Password changes' doesn't reflect on client (#1770) 2022-01-10 16:41:33 +05:30
Muhsin Shah C P
c1448fa298
Changed default active color of radio button (#1777)
* Changed default active color of radio button

* Color changed
2022-01-10 14:58:43 +05:30
Midhun G S
d92254410f
[Home Page Re-Design] Left menu (#1751)
* Feature-1750 Design changes

* fix for app loading

* Review comments

* Added folder create popup

* Rebase

* fix
2022-01-10 10:17:47 +05:30
Ivelin Ivanov
ea638feb68
Fixed placement for delete button on text input, button and etc. (#1773) 2022-01-10 08:59:39 +05:30
Akshay
21c35072e0
update docs for minio (#1772) 2022-01-10 08:57:37 +05:30
Muhsin Shah C P
6e53cf3f15
Added a style option to change colour of selected radio button (#1665)
* added a style option to change colour of selected radio button

* Changed property name
2022-01-09 14:12:40 +05:30
Muhsin Shah C P
6923ec8c84
Fixed double-click and selectable problem of text input fields (#1757) 2022-01-09 14:09:49 +05:30
Ivelin Ivanov
1d8587b73b
Removed class text-muted from Library card text (#1763) 2022-01-09 07:46:53 +05:30
Abhinaba Adhikari
62db7a96e3
Bugfix - Import button style (#1743)
* Bugfix - Import button style

* fix import button lint issues
2022-01-08 01:14:57 +05:30
Ivelin Ivanov
be9b4ad978
Removed filter from badge class in dark theme to prevent status colour varies. (#1736) 2022-01-07 13:08:50 +05:30
Muhsin Shah C P
05cbaa8942
scroll problem fixed (#1746) 2022-01-07 12:24:07 +05:30
Sherfin Shamsudeen
b9676d6e3a Merge branch 'main' into develop 2022-01-05 14:19:33 +05:30
Muhsin Shah C P
1d233ee468
Lazyload problem solved (#1739) 2022-01-05 13:10:49 +05:30
Sherfin Shamsudeen
f416af3563
Bugfix/switch to react select (#1723)
* [Chore] eslint fixes (#1704)

* lint fixes

* fixes lint errors

* Use react-select library for dropdown

* Support search event and loading state on dropdown

* Apply brand color to dropdown

* Apply brand coloring to dropdown options

* Remove unnecessary code

* Fix unnecessary firing of onSearchTextChange on dropdown

* Display blank on dropdown if value is undefined

* Fix bug that caused dropdown disable to not work

* If values passed to dropdown are not array, make it array

* Grey out dropdown text for disabled dropdown

Co-authored-by: Arpit <arpitnath42@gmail.com>
2022-01-05 11:32:52 +05:30
Arpit
894ba36809
update bottom border of nav tabs (#1730) 2022-01-04 15:58:32 +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
Arpit
0a45148671
updated cell-type:'text' to controlled component (#1606) 2022-01-04 11:31:04 +05:30
Muhsin Shah C P
7113cad08f
spinner issue of text-widget is solved (#1708) 2022-01-04 10:33:07 +05:30
Arpit
62e4d7363f
Fixes UI retaining the code from the prev query transformation (#1703) 2022-01-04 09:51:59 +05:30
Bhavin Ag
80e2493572
fix(chart): update chart type toggle on UI (#1716) 2022-01-04 09:41:20 +05:30
Arpit
27c5c925eb
fixes line-height overlap : portal codehinter (#1719) 2022-01-04 09:26:44 +05:30
Muhsin Shah C P
f22e815c98
added border-radius style to container widget (#1721) 2022-01-04 09:25:28 +05:30
Muhsin Shah C P
aee905aa9f
added resize option to inspector (#1725) 2022-01-04 08:51:23 +05:30
Arpit
a139acebe1
fixes transformation unusal shadow (#1710) 2022-01-03 21:19:54 +05:30
Muhsin Shah C P
af178f59b4
completely replaced react-toastify with react-hot-toast (#1713) 2022-01-03 09:22:41 +05:30
Midhun G S
e4d3578563
Timer Widget (#1633)
* Timer Widget

* feature-1632 Fix

* feature-1632 fix

* feature-1632 fixes

* Fix

* Fix

* Fix

* fix

* added default value to the widget

* widget size change

* Reverting last changes
2022-01-03 09:18:56 +05:30
Arpit
4721179b4a
[Chore] eslint fixes (#1704)
* lint fixes

* fixes lint errors
2021-12-31 12:05:32 +05:30
Akshay
e2dfbf038a
Feature: Unarchive users (#1694)
* add ability to unarchive users

* add e2e specs

* reset password on unarchive

* fix spec
2021-12-31 02:11:10 +05:30
Sherfin Shamsudeen
030a05bb28
Reload page for goto app action (#1701) 2021-12-30 19:54:06 +05:30
Sherfin Shamsudeen
3368e24981
Use BrowserRouter in forceRefresh mode (#1700) 2021-12-30 19:41:13 +05:30
Gandharv
8f4fba4697
fix: onblur codehinter definitation picked as old value (#1691) 2021-12-30 18:40:12 +05:30
Sherfin Shamsudeen
ca193ecd29
Support starting time and ending time on calendar (#1684)
* Support starting time and ending time on calendar

* Add documentation for start time and end time feature on calendar
2021-12-30 17:38:53 +05:30
Arpit
bf4ac12a7b
lint fixes (#1686) 2021-12-30 17:27:02 +05:30
Sherfin Shamsudeen
3287c00fbf
Expose currentDate before firing onCalendarNavigate (#1689) 2021-12-30 14:39:21 +05:30
Muhsin Shah C P
39dbba7966
Solved height problem of date-picker (#1676) 2021-12-30 10:12:22 +05:30
Arpit
708a71e0f9
calendar widget week view with compact/spacious mode border fix (#1682)
* calendar widget week view with compact/spacious mode border fix

* dropped border width .5
2021-12-30 10:10:54 +05:30
Sherfin Shamsudeen
7d7d1197e4
Stop propagation of mouseDown even on dropdown options click (#1681) 2021-12-30 00:02:27 +05:30
Sherfin Shamsudeen
9403716af1
Add support for navigation events in calendar widget (#1679)
* Add support for navigation events in calendar widget

* Add view change event for calendar widget
2021-12-29 22:39:27 +05:30
Sherfin Shamsudeen
c1bcd97c83
Add event for search text change in dropdown and expose its value (#1653)
* Add event for search text change in dropdown and expose its value

* Add "options loading state" property to dropdown
2021-12-29 19:02:41 +05:30
Akshay
ad4baabf79
Feature: Customizable calendar date (#1656)
* make calendar week date formattable

* update version only if calendar is present

* Fix erroneous date format determination while migrating to custom week view date format

* Add documentation for calendar week view header date format style

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-29 15:36:45 +05:30
Akshay
423963e31c
handle calendar popover close onclick outside (#1667) 2021-12-29 15:00:44 +05:30
Arpit
210366ee3e
[improvement] Rest API query response-request (#1630)
* rest api query response-request

* remove console.logs

* add req/res obj to sidebar inspector: queries

* remove console.logs

* add collapseStringsAfterLength to restapi json comp

* fix typo convention

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-28 16:09:38 +05:30
Arpit
e95ee37ade
fixes codehinter border in lightmode (#1648) 2021-12-28 12:58:05 +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
49b820402b
input component set to read only (#1646) 2021-12-27 20:55:02 +05:30
Midhun G S
9000c6d262
bug-1642 search box border radius (#1643) 2021-12-27 16:59:35 +05:30
navaneeth
0b19c76c00 Merge branch 'main' into develop 2021-12-27 07:54:43 +05:30
Sherfin Shamsudeen
248b61dee6
Set dropdown value to invalid if value is not present in available values (#1641)
* Set dropdown value to invalid if value is not present in available values

* Reset to default value if existing value is not selectable
2021-12-26 20:17:53 +05:30
Navaneeth Pk
315760b6f8
Fixes canvas max-width (#1637) 2021-12-25 16:39:40 +05:30
Sherfin Shamsudeen
f75b5eb4d4
Add onClick event to Image widget (#1639) 2021-12-25 16:34:15 +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
Navaneeth Pk
b888bba389
Feature/better widgets (#1624)
* Change widget icons

* fix

* Fix

* Changes

* Changes

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-23 22:19:57 +05:30
Sherfin Shamsudeen
0ebe2bd921
Set widget visibility to true if not explicitly set to false (#1627) 2021-12-23 13:45:03 +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
Midhun G S
5bdd0fd6bf
Home Page Application search box (#1603)
* feature-1567 initial commit

* feature-1567

* freture-1567 App search box

* added default value for search key

* Loading fix

* Review comments

* Separated like query

* feature-1567 e2e testcases

* feature-1567 Fix

* feature-1567 fix

* feature-1567 fix
2021-12-22 14:37:37 +05:30
Sherfin Shamsudeen
93287a46cb
Add on change event for text input (#1622) 2021-12-22 12:03:59 +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
Sherfin Shamsudeen
110eb62c10
Add error boundary for components (#1587)
* Add error boundary for components

* Reduce font size of fallback message on error boundary
2021-12-21 20:51:59 +05:30
Sherfin Shamsudeen
96eb7a4c45
Display validation error outside dropdown component (#1618) 2021-12-21 20:28:18 +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
c16bb0704f
set default height of query manager to 30% (#1596) 2021-12-16 14:09:43 +05:30
Gandharv
032fbef60b
fix: toggle query editor icon showing up on navbar when query editor is hidden (#1595) 2021-12-16 13:09:51 +05:30
Gandharv
df5df1a352
Add padding to align the editor header with sidebar (#1594) 2021-12-16 13:05:07 +05:30
Gandharv
9a9c4dbfa8
Change app version name to 10px (#1591)
Adds font size to `.app-version-name`
2021-12-16 13:03:20 +05:30
navaneeth
06a537b031 Merge branch 'main' into develop 2021-12-16 09:54:51 +05:30
Navaneeth Pk
b383ed2ba4
Fixes z index issue of date picker widget (#1570)
* Fix z-index issue of datepicker

* lint

* Fix for modal

* Fix

* Remove usage of onComponentclick from tabs widget

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-15 23:14:44 +05:30
Arpit
0f5c711fac
[Hotfix]: rest api oauth2 - fields value (#1582)
* fix:rest-api-oauth-client-secret

* fix:rest-api-oauth-custom-auth-params

* Revert "fix:rest-api-oauth-client-secret"

This reverts commit b6e3ec3605.
2021-12-15 23:14:24 +05:30
Sherfin Shamsudeen
7a79695af7
Feature/disable password login (#1585)
* Add option to disable login/signup via username/password

* Add documentation for disabling login via username/password
2021-12-15 22:53:07 +05:30
Arpit
7586fb4e39
[improvement] Widget components #1475 - modal widget (#1482)
* new implementation/modal

* title fixed

* removed use of component for getting exposed variable

* renamed useState var

* Rename variable canShowModel to canShowModal on Modal component

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-15 09:53:57 +05:30
Arpit
847fe94850
[Chore] Popup Code Hinter component style fixes (#1561)
* popup icon alignment:fix

* preview bg code block in popup hinter

* portal modal style fixes

* theme classes for preview error

* style fixes

* style fixes-darkmode height

* added color var and theme border mixin

* not related
2021-12-15 09:53:17 +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
Arpit
119275f9ba
[improvement] Widget components #1475 - container widget (#1488)
* new implementation/image

* Revert "new implementation/image"

This reverts commit 637bd83108.

* new implementation/container-widget

* resolved

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-14 16:49:12 +05:30
Arpit
9505589e6e
[improvement] Widget components #1475 - text editor widget (#1481)
* new implementation/rich-text-editor

* Ensure that Rich text editor exposes its default value on load

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-14 16:48:42 +05:30
Arpit
da670a8310
new implementation/password-input (#1483)
Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-14 16:48:25 +05:30
Arpit
57d89e76b8
[improvement] Widget components #1475 - toggle widget (#1484)
* new implementation/toggle-btn

* Make ToggleSwitch expose its value on load itself

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-14 16:47:40 +05:30
Arpit
5247265500
[improvement] Widget components #1475 - text widget (#1485)
* new implementation/text-widget

* fixed loading state

* resolved
2021-12-14 16:47:11 +05:30
Arpit
1069320120
[improvement] Widget components #1475 - range-picker widget (#1486)
* new implementation/daterange-picker

* resolved

* Bump default width of range picker from 8 to 10

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-14 16:47:02 +05:30
Arpit
8fa30f5612
[improvement] Widget components #1475 - image widget (#1487)
* new implementation/image

* Revert "new implementation/image"

This reverts commit 637bd83108.

* new implementation/image
2021-12-14 16:46:52 +05:30
Arpit
c550836497
[improvement] Widget components #1475 - QR scanner widget (#1489)
* new implementation/image

* Revert "new implementation/image"

This reverts commit 637bd83108.

* new implementation/qr-scanner
2021-12-14 16:46:44 +05:30
Arpit
d46ea97ae9
[improvement] Widget components #1475 - star rating widget (#1490)
* new implementation/image

* Revert "new implementation/image"

This reverts commit 637bd83108.

* new implementation/star-rating
2021-12-14 16:46:35 +05:30
Arpit
ada707678e
[improvement] Widget components #1475 - divider widget (#1491)
* new implementation/image

* Revert "new implementation/image"

This reverts commit 637bd83108.

* new implementation/divider widget
2021-12-14 16:46:27 +05:30
Arpit
d9a1b4f0ea
[improvement] Widget components #1475 - code editor widget (#1494)
* new implementation/image

* Revert "new implementation/image"

This reverts commit 637bd83108.

* new implementation/code-editor widget

* editor resolved

* Remove setting width on code editor widget

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-14 16:46:12 +05:30
Arpit
52e0b666f8
Improvement: widget components from existing implementation to the new API (#1470)
* text-input widget

* button widget

* fix text input widget

* number input widget

* checkbox widget

* refactor checkbox

* radio btn widget

* dropdown widget

* refactor textinput and number input

* updated state variable

* Remove usage of component and currentState prop in dropdown

* Reset dropdown value whenever option set is changed

* Make text input respond to changed in its default value property

* Radio button component fix

* default value for number input: fixed

* Fix validation on Text Input component

* Use useState hook to manage value of text input component

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-14 09:10:42 +05:30
Sherfin Shamsudeen
16f225e3d1
Add alert type for default event handler (#1572) 2021-12-14 09:10:30 +05:30
Arpit
63cc923aae
[improvement] Widget components #1475 - chart widget (#1495)
* new implementation/image

* Revert "new implementation/image"

This reverts commit 637bd83108.

* new implementation/chart widget

* Remove the usage of currentState from chart component

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-13 21:43:51 +05:30
Arpit
f1457a1905
[improvement] Widget components #1475 - multi-select widget (#1535)
* upddated to new api & multiselect labels fixed

* backfill properties

* Expose default value of multiselect once the component is loaded

* Make multiselect reset to empty whenever option set is changed

* Whenever option set of multiselect changes, set it to default value if default value fits inside the new set of options

* Avoid crash in multiselect using ? operator.

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-13 21:43:09 +05:30
Gandharv
cc81386f9b fix: add correct display value (#1565) 2021-12-13 21:32:01 +05:30
Gandharv
8a04cce235
fix: add correct display value (#1565) 2021-12-13 14:31:03 +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
Midhun G S
f036fe0684
[Bug Fix #1521] Home Page Pagination (#1558)
* Bug Fix #1521 - Pagination

* bugFix-1521 changed pagination design
2021-12-11 04:40:19 +05:30
Arpit
9172f9aa96
[Bugfix] fixes app-name in darkmode (#1564)
* fixes app-name in darkmode

* added  bgdark var to scss
2021-12-11 04:36:03 +05:30
navaneeth
e4f7da59c1 Merge branch 'main' into develop 2021-12-10 14:49:51 +05:30
Sherfin Shamsudeen
eec622e91c
Hotfix/iframe new api (#1557)
* [improvement] Widget components #1475 - iframe widget (#1493)

* Bump ToolJet version to v0.11.1

Co-authored-by: Arpit <arpitnath42@gmail.com>
2021-12-10 12:52:41 +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
Arpit
72ca6b1af0
[improvement] Widget components #1475 - iframe widget (#1493) 2021-12-09 20:52:17 +05:30
Gandharv
d97ad3e360
add definition default values (#1549) 2021-12-09 17:33:13 +05:30
Gandharv
bdc3353f09
remove bg color from canvas container (#1544) 2021-12-09 12:59:41 +05:30
Gandharv
b78f9a8a90
Add global settings changes to app viewer (#1543)
* add hideHeader condition + maxwidth for canvas

* add background color to viewer

* add fallbacks
2021-12-09 12:30:58 +05:30
navaneeth
a09fd6ad2f Merge branch 'main' into develop 2021-12-09 11:08:49 +05:30
Sherfin Shamsudeen
bbf552d693
Prevent datepicker from asking the user to select a date before showing the calendar (#1542) 2021-12-09 11:06:59 +05:30
Gandharv
9ada6d2aa6
Reduce 3px from editor and inspector (#1540) 2021-12-09 10:12:34 +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
Gandharv
edb43eb224
Add embeddable share link (#1522)
* add embeddable share link

* use slug from props

* remove unwanted feature policies
2021-12-08 13:12:47 +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
13a3a2c38c
Add global settings popup to left sidebar (#1532)
* add global settings popup inside inspector

* remove comment badge

* move global settings to left sidebar
2021-12-08 12:54:10 +05:30
Gandharv
4474f06e96
Homepage navbar active item border alignment issue (#1534) 2021-12-08 10:50:46 +05:30
navaneeth
bc19612b3a Merge branch 'release/v0.10.0' 2021-12-07 21:21:33 +05:30
Gandharv
53808bad0d
fix color diff in library page (#1533) 2021-12-07 20:54:53 +05:30
navaneeth
4641342038 Fixes width of iframe, code editor & password input 2021-12-07 20:51:20 +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
Arpit
5ca4b54649
[improvement] Widget components #1475 - datepicker widget (#1530)
* updated to new api, fixed time-selection, and fixed enableDate

* fix typo

* fix validate arg

* Initiate datepicker value to defaultValue and validate without referring to currentState variable

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-07 19:28:46 +05:30
Akshay
bf13cf5e1c
Feature: library apps with templates (#1529) 2021-12-07 18:55:41 +05:30
Gandharv
d8c3556d3e
change max-height to height for homepage body (#1527) 2021-12-07 18:06:43 +05:30
Gandharv
8eca3b4fe1
fix: dark mode styles for widget inspector (#1526) 2021-12-07 17:37:55 +05:30
Gandharv
d398266991
fix toggle value (#1525) 2021-12-07 15:41:12 +05:30
Gandharv
0c57a0b728
main wrapper position relative change (#1523) 2021-12-07 14:17:02 +05:30
Arpit
2cba8d6d38
fix- visibility defination of calender widget (#1514) 2021-12-07 11:26:20 +05:30
Gandharv
7a8698645e
Add checked prop to toggle element (#1520)
* fix: add checked prop to toogle element

* add onChange value based on event.target.checked
2021-12-07 11:21:56 +05:30
Sherfin Shamsudeen
aa0265c6cd
Disable textOrientation property for calendar events on month view (#1512) 2021-12-06 15:38:23 +05:30
Sherfin Shamsudeen
828e35094e
Set currentView of calendar correctly when default view is not month (#1510) 2021-12-06 15:38:03 +05:30
Gandharv
f3828339cb
fix: tabs text jump in inspector (#1508) 2021-12-05 15:31:57 +05:30
navaneeth
5ff6b5170b Update default button color to match new theme 2021-12-04 23:37:41 +05:30
navaneeth
f533e3c6c1 Fixes inconsistent popover styling 2021-12-04 23:24:56 +05:30
navaneeth
e7fc123b2a Update color of folder app count badges 2021-12-04 23:18:16 +05:30
navaneeth
5a98cb8ac2 App title should not overflow to next line 2021-12-04 23:13:54 +05:30
Gandharv
06201a3679
Split properties and styles for component inspector (#1467)
* split properties and styles for component inspector

* add accordion for table component

* add accordion to charts.jsx

* add accordion button css

* css changes

* move +add to right + change basic fields to properties

* keep events and layout closed by default

* center empty text

* add empty text for handler events

* css changes

* add margin bottom for table columns+cards

* css fixes

* add spacing below add+ button
2021-12-04 23:11:25 +05:30
navaneeth
0a6173bec1 Hoxfix for device window width 2021-12-03 18:34:33 +05:30
navaneeth
6ca57daf1e Merge remote-tracking branch 'origin/main' into develop 2021-12-03 18:28:27 +05:30
Navaneeth Pk
819f223b99
Default to desktop view if no widgets on mobile layout (#1506)
* Default to desktop view if no widgets on mobile layout

* Revert

* Fix
2021-12-03 18:27:53 +05:30
navaneeth
2a98c6bbae Merge branch 'develop' of github.com:ToolJet/ToolJet into develop 2021-12-03 16:19:52 +05:30
navaneeth
668f4b8478 Merge branch 'main' of github.com:ToolJet/ToolJet into develop 2021-12-03 16:19:25 +05:30
Arpit
f43b19960c
fixes: text type columns of tables cannot be marked as "not editable" (#1502)
* fix

* isEditable set to true, run handleCellValueChange function
2021-12-03 16:06:24 +05:30
Arpit
05ac0e470e
Fixes #1498 - serverside pagination fix (#1500)
* lint fixes

* serverside pagination limits records to 10: fix
2021-12-03 15:17:34 +05:30
Arpit
f4c56225fc
table string column input field max width fix (#1504)
* lint fixes

* fix
2021-12-03 15:14:04 +05:30
Arpit
07dc6c2197
Bugfix: cell value does not change when the value on the inspector is updated [table widget] (#1440) 2021-12-03 13:52:50 +05:30
Arpit
25a196d354
fixed: Improper date parsing (#1318) 2021-12-03 13:52:14 +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
Karl Rezansoff
620b3277c0
moved toast container so toasts show above modal (#1480) 2021-12-02 12:22:41 +05:30
navaneeth
c834f4fc26 Change the table widget scrollbar track color 2021-12-01 18:14:35 +05:30
navaneeth
53070f55eb Merge branch 'develop' of github.com:ToolJet/ToolJet into develop 2021-12-01 16:33:47 +05:30
navaneeth
22319251f5 Merge remote-tracking branch 'origin/main' into develop 2021-12-01 16:33:25 +05:30
Navaneeth Pk
1408f5725e
Update logo colors (#1477) 2021-12-01 16:12:32 +05:30
Sherfin Shamsudeen
daf2dcb8d1
Feature/dashboard redesign phase 1 (#1472)
* Display apps as cards on dashboard

* Add alignment, border and font styles to app cards

* Arrange app cards in 3x5 grid on dashboard

* Fix bug with app list index calculation

* Remove overflow and scrollbar from homepage body

* Align homepage header with apps grid

* Display three-dots icon on top-left of app card

* Highlight app card on hover on dashboard

* Replace edit and launch buttons with new design on app card

* Align app cards along with folder panel

* Change three-dots image of app menu

* Align app name and details towards center of app card

* Support dark mode in dashboard

* Apply brand colors to app dashboard

* Set canvas container bg color to #2f3c4c for dark mode

* Hide scrollbar from app body

* Fix alignment issues on app dashboard when app create button is not shown

* Rename svg file for three-dots icon on app card
2021-12-01 13:50:21 +05:30
Sherfin Shamsudeen
9326120b5a
Apply higher z-index for selected component (#1474) 2021-11-30 19:48:12 +05:30
Sherfin Shamsudeen
2b308b2f3a
Fix width for iFrame and PasswordInput (#1463) 2021-11-25 19:34:47 +05:30
Sherfin Shamsudeen
64ec3e5b20
Set code editor default width to 15 (#1459) 2021-11-25 17:33:31 +05:30
navaneeth
dff987b58f Fix for incorrect modal widget placing 2021-11-25 14:17:18 +05:30
Sherfin Shamsudeen
c2ad1f029d
Set overflow to auto for .jet-data-table:hover (#1457) 2021-11-25 13:28:10 +05:30
Navaneeth Pk
9cc0023b9c
Disable drag while table columns are being resized (#1452)
* Fix resize

* Fix

* Make calendar not draggable from its body

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-11-24 18:01:21 +05:30
Gandharv
29b20ce1e8
fix rest api defaults (#1450) 2021-11-24 16:12:16 +05:30
Sherfin Shamsudeen
1cdd109403
Generate file action (#1449) 2021-11-24 15:03:28 +05:30
Sherfin Shamsudeen
f804706de2
Expose current view of calendar component (#1447)
* Expose current view of calendar component

* Rename exposed variable 'view' of calendar to 'currentView'

* Document currentView variable of calendar
2021-11-23 20:38:40 +05:30
Sherfin Shamsudeen
efa6b4ab50
Custom color for calendar event title (#1445) 2021-11-23 20:32:25 +05:30
Sherfin Shamsudeen
72ec5d786d
Add option to display day names as headers of calendar week view (#1444) 2021-11-23 15:46:10 +05:30
Sherfin Shamsudeen
ba89790d0d
Add all-day label to calendar all day events row (#1443) 2021-11-23 14:50:53 +05:30
Navaneeth Pk
ae02ec49a9
Feature/calendar popover (#1442)
* Calendar popover

* Cleanup

* Fix scroll

* Resize issue fix

* Make calendar event popover optional

* Fix lint issues on CalendarPopOver.jsx

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-11-23 13:29:22 +05:30
Navaneeth Pk
354ccd7786
Tabs widget (#1438)
* Feature: Tab widget

* Fix container in container crash

* Container inside tabs

* props

* Fix

* Add icon

* Default tab property

* Fix lint issues with Tabs.jsx

* Introduce tab id to select between tabs

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-11-22 21:41:26 +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
cfde7ccb85
Read file as dataURL or textString (#1415)
* Read file as dataURL or textString

* adds new properties to the file picker docs

* url -> URL encoded string

* typo fix

* docs update

* remove file reading options, and default file reading as textSting and dataURL

* remove docs: definations

* name variable should be empty string too by default

* data (exposed variable) updated to dataURL

* data (exposed variable) updated to dataURL
2021-11-22 09:19:27 +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
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
Gandharv
133e53720f
fix: typo in index.jsx (#1433)
fixes typo
2021-11-20 06:56:29 +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
Gandharv
1750dc73a6
aadd delete shortcut when a widget is in selectable mode (#1418)
* feat: add delete shortcut when a widget is in selectable mode

* feat: ignore key events if the target element is input, textarea, iscontenteditable
2021-11-17 22:59:36 +05:30
Arpit
07572e6ce5
Bugfix: Redirecting to /login instead of / (#1419)
* after correct creds are provided should not redirected to '/login' instead should redirect to '/'

* resolved conflicts
2021-11-17 19:25:59 +05:30
navaneeth
4d01aa31a1 Fixes incorrect resolving of cellValue 2021-11-17 17:07:06 +05:30
Sherfin Shamsudeen
d88139d5b7
Feature/merge google sso to community edition (#1420)
* SSO 🔥 (#2)

* Add rough implementation of google SSO

* Use env variables for storing Google Oauth client id

* Set organization user to active when a new user is created via sso

This commit also fetches first name and last name from the payload
received from google.
Also adds some refactoring.

* Apply proper styles to google login button

* Refactor oauth controller

* Move google specific logic to a separate service

* Fail sign-in if google could not verify idToken

* Refactoring update for GoogleOAuthService

* Change env variable name for google sso client id

* Show Google sign-in button only if client id env variable is given

* Add SSO_GOOGLE_OAUTH2_CLIENT_ID to app.json

* Whitelist apis.google.com in CSP

* Add accounts.google.com to CSP

* Add documentation for Google SSO

* Add e2e tests for Google SSO

* Resolve minor linting issues

* Avoid use of raw query in migration for SSO ID

This commit also adds an index for SSO ID

* Verify domain of user's email id for single sign on

* Add documentation for RESTRICTED_DOMAIN env variable in SSO

* Move SSO controllers and services to ee folder

* Move GoogleLoginButton to ee folder

* Test the restricted domain verification for Google SSO

* Remove unnecessary console.log

* Apply better styles to Sign in with google button

* Remove documentation for Google SSO

This will be added to the community edition repo

* Remove unnecessary static images

* Fetch Google OAuth2 client id from server instead of client env (#3)

* Check for existing email when signing in via SSO (#4)

* hotfix oauth service return type

* hotfix sso user creation

* Allow disabling sign-up via SSO (#5)

* hotfix file input change on import/export

* Align SSO button on login box center (#6)

* Fix: group permission not being set on sso (#7)

* fixes group permission not being set on sso

* update specs for sso

* lint fix

* add user id on login response

* decamelize keys on login response

* fix specs

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
Co-authored-by: navaneeth <navaneethpk@outlook.com>
2021-11-17 16:51:50 +05:30
Navaneeth Pk
20cccd1df7
Responsive canvas (#1363)
* Better canvas

* Better canvas

* Better canvas

* Fix for resize

* Fix for drag

* Fix for drag

* Fix for drag

* Adjust width of components by # of grid lines

* Adjust components to comply with gridline based width

* Fix the width of rigth sidebar

* Fix for subcontainer resize issue

* Fix for dropped widget width (sc)

* Fix subcontainer drag width

* Fix grid for sub container

* Fix viewer

* Fix

* Fix

* Use RnD for dragging within canvas

* bounds for subcontainers

* fix for subcontainers

* Fix for mouseover issue

* Fix

* Fix widget widths

* Fixes chart

* Fixes qr scanner and divider

* Remove scaleValue

* Mmerge fix

* Mmerge fix

* Fix for ormconfig

* Fixes for comments

* Add comment where the user clicked

* Disable dragging on viewer

* Max width for canvas

* Fix for widget click events

* Fix for radio button

* Rebase widget width and left offset for responsive canvas

* Fix

* Fix the width of file picker

* Fix for calendar widget

* Disable zoom selector

* Fixes comment positions

* css fixes

* Fix

* Recompute width and offset of subcontainer widgets based on its parent's width

* Calculate container width separately for modal children while migrating to responsive

* Refactor migration to responsive canvas whereinwhich all mutations are done only after all required changes are computed

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-11-16 17:14:09 +05:30
Gandharv
27bb0ef2a3
Add jwt auth to websocket connections (#1392) 2021-11-15 21:15:16 +05:30
Gandharv
6b8e32b850
Fixes CSS of border-bottom of active classname in group manager (#1407) 2021-11-15 21:14:53 +05:30
Arpit
7663147525
Feature: Code editor widget (#1381)
* Code Editor Widget

* code editor docs added

* updated to Code Mirror

* updated to Code Mirror

* Language resources do not need to be importe in @codemirror-v3.x

* code editor docs: updated with language mode info and link

* comment pkg.json for future ref - @uiw/react-codemirror versions

* docs: supported lang

* widget reference sidebar alphabetical order

* removed comment form pkg.json
2021-11-15 12:12:02 +05:30
Tulsi Prasad
fec4e90057
Add clear button on search widget manager (#1340) 2021-11-15 11:49:27 +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
a7f36f77f6
Chore: Revise and add specs for folders (#1391)
* revise and add specs for folders

* Feature: Folder create permission (#1394)

* add migration for folder create permission

* add backfill migration for folder create permission on admin group

* adds permission for folder creation

* refactor function

* select distinct folders
2021-11-15 11:43:48 +05:30
Arpit
df88790dab
Feature: IFrame widget (#1402)
* feature: iframe widget

* iframe docs - added

* explicitly set frame-src directive

* explicitly set frame-src directive

* typos fixes
2021-11-15 10:09:56 +05:30
Gandharv
abeecaa638
Fix for users api being called multiple times (#1389) 2021-11-11 21:23:02 +05:30
Gandharv
6c02987cb7
Fixes nav links css for dark mode (#1396) 2021-11-11 21:22:31 +05:30
Arpit
7d42a0283d
Reset to default value when option values gets an update (#1332)
* reset t0 default value when optin values gets an update

* reset the default value to empty string

* Revert "reset the default value to empty string"

This reverts commit 6845422613.

* Revert "reset the default value to empty string"

This reverts commit 6845422613.

* Reset to default value or to undefined  when option values gets an update

* removed unused effects
2021-11-10 14:35:35 +05:30
Gandharv
76e86bc56e
Chore: rename files to camelcase (#1388) 2021-11-10 14:13:22 +05:30
SAI SUMANTH KUMAR
6f0183c32f
Fixed : Show tooltip on comments tab which says indicates that the app needs to be saved to open comments (#1359)
* added tooltip

* Update frontend/src/Editor/LeftSidebar/SidebarComment.jsx

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>

* Fix tooltip not showing up on sidebar item when disabled

Fix tooltip not showing up on sidebar item when disabled

* Remove if statement around onClick handler - sidebarcomment
2021-11-09 09:23:38 +05:30
Sherfin Shamsudeen
50174efeaf
Feature/event handlers for table toggle (#1377)
* Fixing lint issues

* Add support for events for table toggle

* Await cell value change before firing table togle event

* Make execution of actions for column events and table button events serial

* Await execution of each table column/button event before executing the next
2021-11-08 12:58:05 +05:30
Gandharv
957241bdb8
Broadcast only to clients connected to a particular app id (#1384)
* websocket: broadcast only to clients connected to a particular app id

* fix: type error

* fix: broken test for comment
2021-11-08 12:45:18 +05:30
Navaneeth Pk
583bc6ea7d
Switch to secure ws connections when possible (#1380) 2021-11-05 19:05:08 +05:30
Gandharv
6f1e3c19db
add websocket url fallback as window.location.host (#1374) 2021-11-05 15:11:00 +05:30
Sherfin Shamsudeen
b4a1ae9c55
Invoke onComponentClick whenever onClick event is fired via fireEvent (#1371)
Co-authored-by: Sherfin Shamsudeen <sherfin@Sherfins-MacBook-Pro.local>
2021-11-05 10:35:31 +05:30
navaneeth
5956eebddf Remove initials from comment cursor 2021-11-04 15:33:03 +05:30
navaneeth
fe6fbcaad6 Minor UI corrections for comment dialog 2021-11-04 14:55:57 +05:30
navaneeth
6d8ac86f36 Fixes nav tab font inconsistency 2021-11-04 14:49:49 +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
Sherfin Shamsudeen
8bbbbfc869
Feature: Calendar widget 🗓 (#1368)
* Insert required boilerplate code for Calendar widget

* Display basic calendar

* Display events on calendar widget

* Pass JS date object as calendar default event date

* Add resource scheduling to Calendar widget

* Add icon for Calendar widget

* Allow configuration of views and default view for calendar

* Add onEventSelect event to Calendar widget

* Accept date as string for Calendar

* Option to disable/enable toolbar in Calendar

* Add default date to Calendar

* Add support for setting color of calendar events

* Set calendar cell size to 50px

* Allow spacious and compact cell sizes for Calendar

* Add support for "select slots" event for calendar

* Add support for custom event tooltip for Calendar

* Add support to not highlight today and now in Calendar

* Add visible border for Calendar events

* Set 14px font size for calendar toolbar

* Add dark mode styles for calendar

* Make calendar view mode controllable with logic

* Add documentation for calendar widget

* Add additional documentation for calendar events

* Expose default view instead of view for calendar

* Add documentation for changes in calendar

* Style updates to calendar

* Increase padding for calendar events
2021-11-04 14:23:50 +05:30
Arpit
a6f99f6fba
Feature: File Picker Widget (#1274)
* File Picker Widget inital commit

* Merged develop

* add file picker icon

* dropzone

* added file picker widget

* does notrequires* babel-import

* fixed styles and removed button to open file selector

* updatedbthe fle picker icon

* style fixes

* added event: onFileSelected

* seperated the concerns and made it more flexible

* fixed handling file types for the picker

* handle - file reject

* file picker description

* text color updates

* Reads contents of the file as a text string

* display list of accepted files

* filepicker docs

* read multiple files-fixed

* style fixes

* added filepicker gif for docs

* typo fixed: docs

* selected files should be inside the widget bound & clear button to clear the selected files

* remove btn for files and selected files should always remain inside the widget bound

* display files bg style and multi-files resolved

* fixed typos
2021-11-04 11:11:10 +05:30
Gandharv
3e1a5c1fb0
UI: Add a preview loader while a comment is being added to the canvas (#1358)
* ui: add a comment-loader while a comment is being added

* ui: add loader while notifications are being loaded

* add correct y co-ordinate for temp loader

* on tab change add loader for comment sidebar notifications
2021-11-03 19:36:18 +05:30
Arpit
e21f1cfd3f
Go to app - on success event fixed (#1360)
* Goto app handler, when run as the on-success event handler of query, it should not ask for confirmation, in the viewer

* Goto app handler, when run as the on-success event handler of query, it should not ask for confirmation, in the viewer
2021-11-03 13:33:29 +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
ff8a6a0e61
reduce header size and fix launch button border (#1355) 2021-11-02 10:59:40 +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
Santosh Bhandari
755be351f9
Add border to color picker selector (#1329) 2021-10-30 18:38:21 +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
Jayden-Chiu
1aca2b0ea0
show toast on renaming first/last name to empty string (#1328) 2021-10-29 14:33:48 +05:30
Ksathwik03
5c17d64463
add new markers if addNewMarkers is set to true by default (#1323)
* add new markers if addNewMarkers is set to true by default

* Update components.js
2021-10-29 07:53:53 +05:30