Commit Graph

111 Commits

Author SHA1 Message Date
Vicky Bansal
e34a98833c
Trigger onPageSizeChange action when table page size changes (#2737) 2021-01-27 11:10:53 +05:30
vicky-primathon
63e286a469
Show row cursor as pointer when onRowSelected property is set in table widget (#2604) 2021-01-22 15:42:34 +05:30
vicky-primathon
c9cee45f51
Fix - Wrap contents of the table cell tooltip (#2629) 2021-01-22 15:19:02 +05:30
vicky-primathon
a9e0b5b678
Fix - selectedRow autocomplete suggestions when no row is selected (#2603) 2021-01-22 15:15:14 +05:30
vicky-primathon
154a4d30c9
Persist column sizes on resize in app viewer for the duration of the session (#2578) 2021-01-22 15:08:48 +05:30
Hetu Nandu
94cae231c1
Make sure Table selected row is not set to undefined on mount (#2518) 2021-01-12 11:45:08 +05:30
Rishabh Saxena
611186c4b2
set min pageSize for table widget (#2362) 2020-12-30 18:32:46 +05:30
Piyush Mishra
806a139ddb
Make prettier changes (#2337) 2020-12-24 10:02:25 +05:30
vicky-primathon
6b6e302ee1
Fix Table data validation issues (#2297) 2020-12-23 09:47:13 +05:30
vicky-primathon
bf5693f907
Reset table selected row when table data changes (#2307) 2020-12-23 09:28:23 +05:30
vicky-primathon
567f3a16fb
Fixed accessing length property of undefined selectedRowIndices (#2293)
* Fixed accessing length property of undefined selectedRowIndices

* Added getting selectedRowIndices when multiRowSelection is true
2020-12-22 08:27:57 +05:30
vicky-primathon
a6f602c33e
Fixed conversation of Unix timestamp in milliseconds (#2251) 2020-12-18 12:52:49 +05:30
vicky-primathon
b917f71678
Added undefined check on selectedRowIndices property before checking its length (#2163) 2020-12-14 11:49:39 +05:30
vicky-primathon
3b85cc8222
Added defaultSelectedRow property in table widget so that users can configure default selected row(s) (#1684)
* Added defaultSelectedRow property in table widget so that users can configure default selected rows

* Cypress test cases added to test default row selection in table widget

* Fix defualtSelectedRow property's evaluation type

* Fix default select row type

* Set default selected row when resetting user selected rows

* Use defaultSelectedRow when no user selected row in table
2020-11-20 13:13:39 +05:30
vicky-primathon
54a6ca0850
Fix/table widget pagination changes (#1298) 2020-11-06 16:45:47 +05:30
Hetu Nandu
655b160922
Web worker evaluation (#706)
- Adds Web workers and does evaluations in off the main thread
- Removes any need to store functions in the data tree and only keeps them around while evaluating
- Maintains a stored data tree in the redux state
- Evaluates based on editor events instead of state changes
2020-10-21 09:55:32 +05:30
Abhinav Jha
76ae0103bf
Upgrade npm packages (#1079)
Co-authored-by: Hetu Nandu <hetunandu@gmail.com>
2020-10-12 18:36:05 +05:30
Hetu Nandu
bf2b4efbfd
Fix for action execution (#1023) 2020-10-06 22:17:16 +05:30
Hetu Nandu
8b75e1c8f4
Local meta state in widgets (#851) 2020-10-06 14:31:51 +05:30
Nikhil Nandagopal
4995706679
Fix chart data evaluation (#548)
* changed chart data to behave as an array <str, str> and not use json stringify to update
added a generic logic to flag all objects with internal bindings as dynamic
moved unescape to only handle at the time of eval and removed new lines before eval

* added a migration for older charts that have their data as strings

* flagged column actions as an action trigger to avoid evaluating it

Co-authored-by: Nikhil Nandagopal <nikhil@appsmith.com>
2020-09-15 22:24:15 +05:30
Hetu Nandu
f09b717b38
Retry dynamic import and lazy promises (#543) 2020-09-15 12:29:58 +05:30
Nikhil Nandagopal
c0fcdef4b6 Merge branch 'master' into release 2020-09-11 17:08:15 +05:30
vicky-primathon
2cb7c7be97
Reset selected rows when table data is modified (#536) 2020-09-11 17:07:33 +05:30
vicky-primathon
e343f9deaa
Table Widget: Date column type: user defined input and display format (#409) 2020-09-11 16:10:15 +05:30
Hetu Nandu
96643507ec
Merge branch 'master' into release 2020-09-09 12:55:21 +05:30
vicky-primathon
fb34609c89
selectedRowIndexes changed to selectedRowIndices (#516)
Data type of selectedRowIndices changed to array of numbers
2020-09-09 12:42:15 +05:30
vicky-primathon
da9274de10 Feature: Table Widget - multi row selection (#507) 2020-09-09 11:16:06 +05:30
vicky-primathon
f7931701d8
Feature: Table Widget - multi row selection (#507) 2020-09-08 18:34:51 +05:30
Nikhil Nandagopal
0b22fc67b3
Updated sentry sdk (#461)
Integrated react router for better performance reporting
Added Sentry Profiler for editor, appviewer and widgets

Co-authored-by: Nikhil Nandagopal <nikhil@appsmith.com>
2020-08-28 22:53:07 +05:30
vicky-primathon
8a0805d77f
Fix: Table widget actions header scrollbar padding (#353)
* Table header scrollbar padding removed. 
* Table row font size changed based on compact mode.
2020-08-28 15:25:20 +05:30
vicky-primathon
a8e6b268ab
Setting table widget filteredTableData after reset. (#425) 2020-08-26 11:11:18 +05:30
Hetu Nandu
a2b1d3442f
Table widget selected row initial value fix (#401)
* Set initial value as empty object

* log debug
2020-08-21 22:13:02 +05:30
vicky-primathon
17af152148
Table Widget: Filter updates (#355)
- Show symbol signifying selected filters in table widget
- Show callout to prompt users to change column data types for accurate filter operations
2020-08-20 15:00:19 +05:30
vicky-primathon
222ba74996
Table widget initializing selectedRow value to show up in autocomplete (#359) 2020-08-20 12:09:16 +05:30
vicky-primathon
714d107a71
Table column sorting changes (#360)
- Sort icon correction
- Allow users to remove sorting
2020-08-20 12:08:16 +05:30
vicky-primathon
33cd1ac1d9
Fix-table filtered data calculations (#342)
* Update table widget's filtered data calculations to avoid recursive dataTree evaluations

* Stringify removed from Table component as data is already checked inside TableWidget

* Vertical scrollbar removed from Table Widget. Stop column sorting by stopping event propagation when clicking column menu icon.

Co-authored-by: Abhinav Jha <abhinav@appsmith.com>
2020-08-18 17:00:26 +05:30
Abhinav Jha
28e3831862
Fix: Jump issue of APIPane fields (#330) 2020-08-17 15:13:25 +05:30
vicky-primathon
cf91361637
Fix: table compact mode to persist and saved from canvas editor (#316)
* Table widget compact mode to persist after reload

* Table widget compact mode to be saved from canvas editor
2020-08-17 13:03:37 +05:30
vicky-primathon
b7815006a1
Fix: selection of correct table row data after sort, search and filter (#315)
* Table fix sort, search and filter methods to set correct selectedRow after these methods are applied

* Filtering table data with the latest filters, to correctly select the row

* Setting initial filteredTableData value

* Updating filteredTableData when tableData is updated
2020-08-17 13:01:17 +05:30
vicky-primathon
02a2d8e0a3
Fix-table widget compact mode row height (#285)
* Table column header made sticky. Scrollbar background changed to be in consistent with the background for table body scroll and table header scroll

* Row height changed for short compact mode

* New "Tall" row size
2020-08-13 22:11:08 +05:30
vicky-primathon
e1676beba2
Table filters to be accessible in publish mode (#273)
Filters are only available on the client. This results in filters being available in published mode.
2020-08-13 13:26:10 +05:30
vicky-primathon
c0527a4816
Reset page number when searching in table widget (#274) 2020-08-12 10:52:19 +05:30
vicky-primathon
76bc382a2d
Table Widget UI Filters (#61)
New Table Widget Feature
- Filter columns
- Misc table widget bug fixes
2020-08-10 16:46:13 +05:30
vicky-primathon
6a53e1e0ed
Added compact modes to table widget UI (#222)
New Feature: Table Widget compact rows
Users can now use different sizes for rows in the table widget
2020-08-10 15:31:36 +05:30
vicky-primathon
c68114331c
Feature/table ui sort columns (#238)
* Added sorting functionality in table widget

* Removing sorting for Images and Video column types

* Code review changes incorporated
2020-08-10 12:15:31 +05:30
Hetu Nandu
0e7c0c3ce4
Widget fixes (#242)
* fix table styles

* rich text editor fix

* Fix action panes showing as blank

* correct fix this time

* cleanup

* default search in table

* Fix for text widget heading style

* Fix for table widget filtered table search

* Another approach to see if app has been created

* Fixes in styles of table and text
2020-08-07 23:39:54 +05:30
vicky-primathon
0474e339f3
Removed table widget row deselection (#209) 2020-08-03 19:14:34 +05:30
Abhinav Jha
08d2a94768
Change derivedpropertiesmap for selectedRow to use filtered table data (#173)
* Add a new meta property to tableWidget called filteredTableData which will be used by the table to filter

* Use derived properties to update filteredTableData

* Check if search is done via actions, if so, filteredTableData is the same as tableData
2020-07-29 11:45:06 +05:30
vicky-primathon
e794c916e6
Fix-Row to be selected when button is clicked and row is not selected (#167)
* Row selection when button is clicked and row is not selected

* Added columnActions to useMemo for columns computation to support live action name updated and action change support
2020-07-28 19:56:27 +05:30
vicky-primathon
8fb0dc02ad
Fix-Search component in Table widget updated with support for clearing search data (#96)
* Added Button component in Table widget for actions

* Action button state loading added for Table widget

* Action button font-weight made as normal

* Created header for common functionalities in Table Widget

* Client side searching added in Table Widget. Action created for server side searching also.

* Columns visibility feature initial commit

* Column visibility list added in Table Widget

* Changed pagination designs in accordance with new layout. This enable user to jump page as well.

* Using colors values from constants

* Table widget pagination, numeric input page number clamped between 1 and total pages

* Adding tool tip to truncated values in table widget. Added AutoToolTipComponent that adds tooltip when text is truncated.

* Table data download changes. Added downlaod icon and button to table widget.

* Table data download changes

* Table button loading state fixed. Table code refactored, rendering from props instead of state in ReactTableComponent

* Table widget action button alignment fixed

* Handled actions column changes

* added proper keys to useMemo for react table widget

* Download table data as CSV implemented

* table data download, unused code removed

* Code refactors and added dependency map with meta props and table data for computing columns

* Table UI breakages on scroll and empty cells fixed

* Handled empty rows in table widget

* Fixed last row cut issue

* Code review changes

* Code review changes

* Added table widget component heights as enum

* code review changes

* Search component in Table widget updated with support for clearing data, renamed properties

* Opening image in new tab on clicking in table widget

* Fixed table craching due to empty data filtering

* Empty extra space on loading removed in table widget

* Removed stopping of event propagation on table widget action button click

* Fixing for test cases

* Table header UI overflow fixed

* Clearing selected row on searching data in table widget

* fix for cypress test

* Table crash issue fix

* searchKeyword renamed to searchText. searchText added to entity definitions

Co-authored-by: Arpit Mohan <me@arpitmohan.com>
2020-07-24 19:28:28 +05:30