Commit graph

169 commits

Author SHA1 Message Date
Kiran Ashok
136597fc72
fix :: bulk selection function in table column hide dropdown (#4799) 2022-12-07 13:56:18 +05:30
Kiran Ashok
f631d1a5a0
Option to toggle display of column hide ::[ Table widget ] (#4831)
* feat :: table hide property

* name change

* name update

* name update

* latest

* name change

* typo fix

* fix
2022-12-05 16:53:57 +05:30
Kiran Ashok
a520cb30a8
Feature :: SelectRow CSA :: [ Table ] (#4591)
* feat :: prototyping selectrow csa

* fix :: bug

* removed :: logs

* bugfix :: page does not contain whole data changed to rows

* fix :: for table inside modal

* fix:: csa not working for table inside modal

* fix :: table csa in modal

* fix :: multiple event params
2022-12-05 16:49:47 +05:30
Midhun Kumar E
1ea2b1b305
Test/add data cy for table column options (#4828)
* Add data-cy for Colum edit options

* minor data-cy changes.

* Modify the data-cy of custom rule
2022-11-29 17:14:52 +05:30
Midhun Kumar E
1b270ab412
Added data-cy for table widget elements (#4792)
* Add data-cy to tooltip label

* Add data-cy to table filter pop-over

* Add data-cy to table elements

* Add review changes
2022-11-18 09:16:19 +05:30
Akarsh Jain
99842877b4
fix: Dark mode on table's Striped and Striped & Bordered table type mode (#4611) 2022-11-17 17:57:05 +05:30
Kiran Ashok
142d2efa11
Enhancement :: setting currentData exposed variable as total data coming to table (#4629)
* setting current data as the original data coming to table

* typo
2022-11-03 17:17:34 +05:30
Manish Kushare
aface7d5db
[ bug fixed ]: [ Table widget ] filter is not getting applied correctly (#4663)
* bug fixed : filter is not getting applied

* bug fixed for matches and does not match filter

* bug fixed : isempty and is not empty filter are not working
2022-11-03 17:09:00 +05:30
Kiran Ashok
361f3c164b
feat :: changed naming from disable -> enabledSort , serverside sort only active when sort enabled (#4477) 2022-11-03 16:53:09 +05:30
Akshay
6b3916c2ef
Fix: Login redirect on subpath (#4607)
* fix login redirect for subpath

* hardcode login for subpath path as basename is not picked

* fix broken links

* fix google sso link

* remove invalid condition
2022-11-02 11:37:17 +05:30
Kiran Ashok
557073df75
Fix :: Closing of textarea ontype Table widget (#4549)
* fix :: closing of textarea ontype

* fix :: bug not able to clear value
2022-10-31 14:13:25 +05:30
Kiran Ashok
2dd9fef0b9
Feature :: Table image column type addition (#4547)
* feat :: adding column type image

* feat :: adding image fit property
2022-10-31 14:12:57 +05:30
Kiran Ashok
50be9d34a3
Bugfix :: Sort event fired on sort removal (#4542)
* onsort applied on sort removal

* bugcheck

* removing unused toast
2022-10-31 14:12:31 +05:30
Sherfin Shamsudeen
4a2e7d3bdf
Do not auto generate columns for nested data (#4627) 2022-10-27 12:56:47 +05:30
Manish Kushare
325e44cbdb
bug fixed : selecting badge is breaking the table (#4416) 2022-10-19 07:44:03 +05:30
Manish Kushare
397b138d62
bug fixed : table widget is not consistent with the dark theme (#3987)
* bug fixed : table widget is not consistent with the dark theme

* bug fixed : dropdown in filter is not consistent with the dark theme

* fixed dark theme for dropdown and multiselect column in table

* making generateColumns re-render with change in applied theme

* made badge and multibadge consistent withthe dark theme

* made text column consistent with the dark theme
2022-10-18 08:47:06 +05:30
Arpit
2a8d77fc8e
[Bugfix] show or hide pagination footer only if client or server side pagination is enabled (#4430)
* show or hide pagination footer only if client or server side pagination is enabled

* Display pagination only if serverside or client side pagination is turned on

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-10-14 13:50:23 +05:30
Arpit
b36461b161
updates the exposed vars (#4426) 2022-10-14 13:44:50 +05:30
Kiran Ashok
ceed17a0a7
fix :: automatic state reset for hiding columns on data change restricted (#4429) 2022-10-14 13:32:31 +05:30
Kiran Ashok
8c4072dbb6
fix :: converting data as per current code implementaion , xl dowload not working (#4424) 2022-10-14 13:16:36 +05:30
Kiran Ashok
80a4df6022
Bugfix :: Table sort not visible (#4408)
* bugfix :: table sort missing fix

* bugfix :: sort triggering issue
2022-10-14 11:28:12 +05:30
Arpit
ba178a131a
[Bugfix] fix filter change with select component and scroll options with multiple filters (#4404)
* fixes: selecting colum filter with react-select component

* add scrolling for multiple filters

* handles chaning

* updates: exposed variables
2022-10-13 17:53:11 +05:30
Kiran Ashok
544f6c403f
[ Improvement ] :: Table widget (#4092)
* fix :: resizing columns lead to sorting bugfix

* table width set to 100% always

* fix :: if filter is applied- download filtered data only

* add option to change number of results per page - client side pagination

* style fix

* removing space

* added option to show total records in serverside pagination , disableing navigation buttons

* number type

* name update

* updating position and conditional  adding of new properties

* fix :: name change , only visible on clientside pagination

* fix :: removing scrollbar table

* updated with for borderless table

* fix :: removing scrollbar on 100 % width

* fix :: sort bug

* remove rowsper page on server side pagination

* update fix:: enable next and prev buttons - pagination

* fix :: name change , default set to true for server side pagination buttons

* Have enablePrevButton and enableNextButton fallback to true

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-10-13 17:21:14 +05:30
Kiran Ashok
a7f925d52e
[ Feature ] :: Reorder Table columns using drag and drop (#4327)
* column reordering using dnd

* fix :: drag handler area made as whole header

* setting drag item close to cursor

* removing padding

* style fix :: sort and dragger

* removing width :: making draggable element width same as th row width

* temperory fix :: table drag attachment to cursor
2022-10-13 17:09:45 +05:30
Kiran Ashok
e99fff4508
Enhancements :: Table bugfixes and option for pagination number added (#4083)
* fix :: resizing columns lead to sorting bugfix

* table width set to 100% always

* fix :: if filter is applied- download filtered data only

* add option to change number of results per page - client side pagination

* style fix

* removing space

* number type

* fix :: name change , only visible on clientside pagination

* fix :: removing scrollbar table

* updated with for borderless table

* fix :: removing scrollbar on 100 % width

* fix :: sort bug

* remove rowsper page on server side pagination

* Enhancement :: table events :: onHover (#4104)

* adding over event

* added event to utils

* changed to mouseover

* fix :: limiting multiple hover triggers

* fix case :: when row is hovered and cursor moved out and in to same row , trigger event

* attaching ref to mouseover event

* restricting hover only if hover event is added

* using check for events

* code bugfix

* optimize

* fix :: filter download

* revert :: lock files frontend
2022-10-13 15:16:37 +05:30
Kiran Ashok
5a88464600
Feature :: Table sort disable/enable (#4142)
* feat :: disable sorting

* disable action buttons

* cleanup

* cleanup

* revert :: unwanted changes
2022-10-13 14:32:44 +05:30
Kiran Ashok
f734ba0d3a
[ Feature ] :: Table :: event on discard changes :: (#4158)
* discard changes :: event added

* develop merge
2022-10-13 14:25:47 +05:30
Sherfin Shamsudeen
b98d68ad04 Add optional chaining operator to avoid crash while reading autogenerateColumns property 2022-10-13 14:21:58 +05:30
Kiran Ashok
e0a4e90bf8
Feature :: Table - option to hide columns (#4284)
* feat :: functionality to hide/show columns

* dropdown hide columns

* theme dropdown

* added toggle all option

* fix :: icon import from lib

* revamp :: changing from internal state to bootstrap poopover

* updated with react popover

* Change text from "Toggle All" to "Select All" in table column selector

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-10-13 14:15:40 +05:30
Arpit
bdbd98bcd2
fixes: exposes the latest currentData in the table (#4364) 2022-10-13 11:18:20 +05:30
Sherfin Shamsudeen
c1adcc9e2c
Feature/automatic columns generation (Task ID: CU-2vjwn7r) (#4149)
* Remove unnecessary setting of columnSizes in table inpector

* Rough implementation of autogeneration of table columns

* Use custom mapping for autogeneration of table columns

* Use setTimeout to prevent race conditions while storing autogenerated columns

* Autogenerate columns only on new tables

* Do not generate columns that were deleted previously

* Autogenerate columns only in edit mode

* Re-render Inspector whenever app definition is updated

* Refactor table column auto-generation

* Remove unnecessary console.log

* Add Number data type support for table column auto-generation

* Remove unnecessary console.log

* Ensure that column key is stored in deletion history if it is available
2022-10-12 22:26:10 +05:30
Sherfin Shamsudeen
8cf29bd7d2 Merge branch 'main' into develop 2022-10-11 12:07:21 +05:30
Arpit
8c4c7249a8
[Improvements] Table: Adds Support for Server side filtering (#4349)
* init

* adds server side filtering ability

* clean up

* fixes: on clearing filters, the event should triggered with latest update

* fixes: handle multi-filters

* debounce the fireEvent
2022-10-11 09:05:40 +05:30
Arpit
8c8c38aa85
exposed updatedDate (#4263) 2022-10-10 17:18:40 +05:30
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
Manish Kushare
1edc915bd2
[ hotfix ] : [ Table Widget ] filter pop-up and dropdown inside it are not scrollable (#4098)
* hotfix : filter pop-up and dropdown inside it are  not scrollable

* removes useMenuPortal

* removed selectSearch import from the Filter.jsx
2022-10-06 17:22:17 +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
Sherfin Shamsudeen
4ee35e7eac
Add setState functions of components as dependencies for registerAction (#4120) 2022-09-27 10:55:51 +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
Sherfin Shamsudeen
b5507b4ac5
Refactor table component (#3933)
* Updated the table UI

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

* updated the UI of the table widget

* adjust x axis in the footer

* made the search text vertically center

* Load text color using new api in Table

* Load action buttons data using new api in table

* Revert usage of new api for table actions

* Use new api to load most properties and styles

* Move logic for loading styles and propeties to another file

* Table: Move loading of actions to separate file

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

* Table: Get loadingState from new api

* Table: Use reducer for storing table column properties

* Table: minor refactoring on reducer

* Table: Replace the use of internal state variable componentState

* Abstract out Filter as a separate component

* Move table column definitions to a separate file

* Move action column definition to a separate file

* Move IndeterminateCheckbox to a separate file

* Completely remove any requirement of loading from definition inside loadPropertiesAndStyles

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

* Remove the usage of __TjDoNotResolve__

* Load actions without new API

* Update migration to make columnSizes follow default format

* Fix migration to restructure table column sizes data

* Do not update columnSizes property if incoming value is empty

* Remove unnecessary code

* Remove unnecessary linting

* Remove unnecessary reducer action

* Remove unnecessary code

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

* Make compact and spacious cell sizing work for table

* Remove custom handling of onRowClicked for Table

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

* Resolve the issue with invalid date crashing the table

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

* Remove unnecessary code

Co-authored-by: Manish Kushare <manish.altcampus@gmail.com>
Co-authored-by: Arpit <arpitnath42@gmail.com>
2022-09-21 16:23:02 +05:30
Kavin Venkatachalam
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
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
Navaneeth Pk
98bb7519dd
Reverse proxy using base tag (#3889)
* reverse proxy

* reverse proxy

* Fix for yjs

* Fix for ws

* Fixes org switching

* Fixes org creation

* Fixes login logo

* Fixes download icon

* Construct use invite URL from base URI

* Fixes apiUrl if sub path is set

* Remove commented code

* Fix profile link

* invitation url changes

* Fixes dev env

* Use url-join lib to connect urls for goto app and invitation link

* Use useHistory instead of helper to get history for template modal

* Review changes

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
2022-08-27 21:58:24 +05:30