Commit graph

668 commits

Author SHA1 Message Date
Manish Kushare
11fa0262ef
[ Enhancement ] : [ Table widget ] added support to download data in excel (#4134)
* adding support for  download data in excel

* adding pop-over to display various download options

* made the download options bold on hover

* update the theme.scss

* made the parent container width fixed
2022-10-10 13:11:04 +05:30
Arpit
6b655b7f17
[improvement] Table : adds number as a cell type (#4135)
* Number as cell type: table

* adds min and max value fields to the table cells
2022-10-07 17:37:03 +05:30
Arpit
e441db9665
adds option for server sort (#4337) 2022-10-07 12:45:51 +05:30
Arpit
16935499b7
fixes: server side search fort table (#4335) 2022-10-07 12:42:04 +05:30
Manish Kushare
6b0e9409f5
[Enhancement] : [Table widget] Adding filters (#4130)
* added does not contains filter

* added isEmpty and isNotEmpty filter

* added contains filter logic in custom-filter.js

* converting row value to string for comparison in equal and not equal filters
2022-10-07 09:31:36 +05:30
Arpit
9392b0a189
fixes: children can be dragged to the bottom, making the container layer scrollable (#4323) 2022-10-06 14:44:57 +05:30
Arpit
3af3835e7d
[improvements] Table - exposed active sort options and add an event (#4151)
* exposed sorted options

* adds onSort event

* clean up
2022-10-06 11:50:53 +05:30
Arpit
22c87762e4
adds new event cell value changed (#4155) 2022-10-06 11:47:33 +05:30
Arpit
0274398d2b
[improvements] Table - exposed active filters and add an event (#4138)
* exposed active filters

* adds onFilterChanged event

* default value for filters should be an empty array

* remove column id from exposed filter variables
2022-10-06 11:42:18 +05:30
Kiran Ashok
33e37ea4b4
fix :: bug event not triggering on search (#4156) 2022-10-06 11:13:07 +05:30
bstillword
e52eb6ddeb
Fixes steps widget (#4107)
Removed line 31: href='#' causing return to homepage.
2022-10-04 16:20:24 +05:30
Ajith KV
cd7926130e
Add happy path spec for number input widget (#4074)
* Add data-cy for number input widget

* Modify faker file

* Add spec and constants

* Modify spec with random number funtion

* Modify button widget spec

* Review changes
2022-10-04 13:08:21 +05:30
Midhun Kumar E
b99531da75
- Fixe failing cypress specs. (#4280)
- datepicker Happypath
- listView Happypath
- textInput Happypath
- multiselect Happypath
2022-10-04 13:06:59 +05:30
Manish Kushare
f1bd01d748
Datepicker calender dark theme (#4111)
* making datepicker consistent with the dark theme

* removed * selector

* made range date picker calender consistent with the dark theme

* added hover effect on calendar day in range date picker

* removed unwanted border around the calendar container in range date picker

* made the months change arrow consistent with the dark theme in range date picker

* removed wrapperClassName from date picker component

* made the suggested changes and removed left and right border around DateRangePicker_picker class
2022-10-04 09:27:24 +05:30
Alvaro Cabrera Durán
c824eb362b
chore: apply primary-color in more places (#4025)
* chore: apply primary-color in more places, ensure svg use currentColor too

* fix: remove hard-coded colors to use defaults

* fix: those images were intruducing noise when switch to dark-mode

* fix: setup colors for rc-slider

* fix: empty all predefined-colors to use defaults

* Use primary-rgb-darker
2022-09-29 13:33:01 +05:30
Sherfin Shamsudeen
9c8577042c Merge branch 'main' into develop 2022-09-29 12:50:36 +05:30
Manish Kushare
14ccab3da8
hotfixed : datepicker component height is not adjusting with container height (#4144) 2022-09-29 12:50:16 +05:30
Yash Dhanore
d143e9392e
[RadioButton]: Default value not working #3997 (#4131)
* [RadioButton]: Default value not working #3997

* Add setValue of RadioButton to its csa dependency

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-09-29 12:34:09 +05:30
Manish Kushare
f4f29172f3
Enhancement : [ text input widget ] refactor (#4036)
* added loading, disable, hidden states in the properties

* added onfocus and unfocus events

* added new csa

* added text color prop

* changed placeholder text

* bug fixed

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

* changed the default text color to black

* cleanup code

* reverting change - moving register action back to it's original space, out of useeffect

* removed unwanted loading action

* bug fix: app was crashing due to added array dependencies for blur and focus actions
2022-09-28 17:51:09 +05:30
Sherfin Shamsudeen
e38a278193
Use only state setters as dependent functions for registerAction (#4137) 2022-09-28 12:16:46 +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
Sherfin Shamsudeen
4ee35e7eac
Add setState functions of components as dependencies for registerAction (#4120) 2022-09-27 10:55:51 +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
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
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
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
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
Midhun Kumar E
bfe0fe9cad
Add preview for Multiselect and Datepicker happyPaths (#3854)
* Modify data-cy and update spec

* Add data-cy

* Add preview for multiSelect

* Add preview for datePicker

* Fix Text data-cy

* Modify selectors and texts

* Resolve conflicts and commented few lines of code.
2022-09-14 16:19:56 +05:30
Manish Kushare
cff1c429f8
Bug fixed : List view widget background color is not consistent with the dark theme (#3867)
* Bug fixed : list view widget background color is not consistent with the dark theme

* replaced two condition check with one

* Fixed : If we pick white (#FFFFFF) then the dark mode is not handled.
2022-09-14 13:36:04 +05:30
Kavin Venkatachalam
7f702c1d6b
[Feature]: Added Localisation (#3746)
* Added localisation

* Closed modal after language selection

* updated transaltaion setup

* Updated language tooltip

* Added fallback language support

* Adding english library resource for translation (#3844)

* Adding English dictionary for the widget lists in the inspector

* added leftSideBar object in en.json and implemented it for leftSidebar icon text

* renamed leftSideBar to leftSidebar and added resources for tip in the left side bar

* added english translation resources for leftsidebar debugger

* added english language resources for the global settings

* added english language resources for data sources in left sidebar

* added english language resources for the share button and share modal in the editor

* added english language resources for release button, manageOrgUsers, appVersionManager

* added english language resources for Queries and Please select a widget to inspect in the editor

* added english language resources for data source list , data source manager, and query manager(partially)

* added english language resources for queryManager, transformation, preview

* added english language resources for dark mode toggle in the headers inside homepage

* added fallback message for dark mode toggle

* added resources for language change in the headers inside homepage

* added resources for notification center in the header inside homepage

* added resources for organization and manage users components in header inside homepage

* added resources in manageGroupPermission

* added resources for manageGroupPermissionsResources component

* added resources for manageSSO and generalSettings components

* added resources for google sso

* added resources for github sso

* added resources for environment variables in manageSSO

* added resources for profile and setting page

* added resources for app card and app card menu

* added resources for folder section and app list in homepage

* added resources for header section in the homepage

* added resources for pagination in homepage

* added resources for modals in the homepage

* added resources for blank page

* added resources for login page

* added resources for forgot password page

* added resources for sign up page

* added resources for onBoarding component

* added resources for reset password page

* deleted duplicate key for readDocumentation

* deleted duplicate key for cancel in en.json and added translation for cancel at few places

* removing duplicate copy of save key in en.json

* added translation for CommentActions.jsx components

* deleted duplicate copy of search key in en.json and added resources for create and search queries , select keys

* fix typo errors

* fixed typo errors

* shorten the key for loginAndSignUpAndForgotPassword to loginSignupPage in en.json file and related files

* shorten the key noLoginMethodsEnabledForThisWorkspace to noLoginMethodsEnabled

* shorten the key pleaseCheckYourEmailForConfirmationLink to emailConfirmLink

* shorten the key dontHaveAccountYet to dontHaveAccount

* shorten keys from loginSignupPage key in en.json

* shorten keys of shareModal nested object in en.json

* shorten the key in appVersionManager nested object

* shorten the keys for queryManager nested object in the en.json

* delete duplicate copy of environmentVar and shorten manageEnvironmentVariables,environmentVariables

* shorten keys in the organization nested object

* shorten keys in the homePage nested object in en.json file

* added inspector and eventManager empty object

* added resources to RedirectSSO component

* added resources for OAuth2

* added resources for TemplateCard.jsx

* added resources for TemplateLibraryModal.jsx

* added resources for ConfirmationPage.jsx

* added resources for ConfirmationPage component

* removed translation in App.jsx file

* added resources for Slack.jsx

* added resources for GoogleSheets.jsx

* added resources for CodeBuilder.jsx

* added resources for CommentBody and CommentFooter

* added resources for TestConnection component

* added resources for AllignButton.jsx

* added resources for Openapi and Stripe components

* added resources for ErrorBoundary

* added resources for Viewer.jsx

* Translation for widgets, table

Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com>

* Commented Language selection

* Fixed typos

* Updated fr.json file

Co-authored-by: Manish Kushare <kushare.manish9@gmail.com>
2022-09-14 13:34:49 +05:30
Manish Kushare
3f62230427
Bug fix : Container widget background color is not consistent with the dark theme (#3866)
* Bug fix : Container widget background color is not consistent with the dark theme

* replaced two condition checks with one

* made the suggested changes

* removed console.log
2022-09-12 14:34:24 +05:30
Manish Kushare
4cc239661e
Bug fixed : dark theme issues (#4009)
* bug fixed : file picker is not consistent with the dark theme

* bug fixed : Map widget is not consistent with the dark theme

* bug fixed : Steps widget is not consistent with the dark theme

* bug fixed : Multi select widget label is not consistent with the dark theme

* bug fixed : search bar in widget manager and label params in Code Hinter is not consistent with the dark theme

* removed unwanted comma in the chart inspector

* bug fix : app dropdown inside go to app in event manager is not consistent with the dark theme

* bug fixed : search select dropdown is not consistent with the dark theme in table inspector

* bug fixed : Organization and Profile avatar in HomePage is not consistent with the dark theme

* bug fixed : search box in the homepage is not consistent with the dark theme

* bug fixed : select dropdown input placeholder is not consistent with the dark theme

* bug fixed :Text area in the Modal to  Share the app link is not consistent with the dark theme

* bug fixed : p tag in pagination in the homepage is not consistent with the dark theme

* replaced undefined to false as default value of darkMode if not defined

* bug fixed : multiselect input placeholder is not consistent with the dark theme

* removed duplicate code from custom.scss and changed rgb to hex in theme.scss
2022-09-12 14:17:04 +05:30
Manish Kushare
b2ef2f272f
bug fixed : Text input widget is not consistent with the dark theme (#3990) 2022-09-12 13:32:58 +05:30
Manish Kushare
6fc8b84036
bug fixed : toggle switch is not consistent with the dark theme (#3925) 2022-09-12 13:00:38 +05:30
Arpit
0a8a01e002
[Bugfix] fixes app freeze, when password widget drops inside a listview (#4018)
* fixes app freeze, when password widget drops inside a listview

* fix:darkmode
2022-09-12 12:34:27 +05:30
Manish Kushare
a00e890f02
Bug fixed : Tree Select widget is not consistent with the dark theme (#3948)
* Bug fixed : Tree Select widget is not consistent with the dark theme

* only setting up condition for #000

* removed includes function
2022-09-12 12:12:18 +05:30
Manish Kushare
bf4ce92a77
Bug fixed : Pagination widget is not consistent with the dark theme (#3946)
* bug fixed : Pagination widget is not consistent with the dark theme

* removed console.log
2022-09-12 12:09:00 +05:30
Manish Kushare
59e0f31bbc
Bug fixed : Button Group widget is not consistent with the dark theme (#3950) 2022-09-12 09:54:41 +05:30
Manish Kushare
76461d9049
Bug fixed : radio button is not consistent with the dark theme (#3929) 2022-09-12 09:35:42 +05:30
Manish Kushare
1cf6b3340f
bug fixed : Password Input widget is not consistent with the dark theme (#3992) 2022-09-12 09:18:46 +05:30
Sherfin Shamsudeen
9998184ba7 Merge branch 'main' into develop 2022-09-08 17:19:17 +05:30
Kavin Venkatachalam
d8195ec718
[Hotfix]: Render Only Active Tab Toggle (#3980)
* Added render only active tab toggle

* Added a comment for renderOnlyActiveTab
2022-09-08 16:22:01 +05:30
Sherfin Shamsudeen
0061b8b7e3
Make table always apply filters and expose filtered data (#3968)
* Make table always apply filters and expose filtered data

* Re-render table when computed table data changes

* Re-apply global filter using search text when table data changes

* Stringify table data before sending it as dependency for table data to be displayed

* Use data returned from Table internal state to ensure filters are always applied

* Do not autoreset filteres in table when data changes

* Show row count of filtered row set in Table
2022-09-08 15:51:45 +05:30