Commit graph

92 commits

Author SHA1 Message Date
Kyle Felter
1ccd10dc23
Adds the not equals and not matches filters (#2287) 2022-02-19 23:31:12 +05:30
Kiran Ashok
f5012352e4
Fixes UI issues part of code edit (fx) feature inclusion & number type addition (#2122)
* alignment fixed for fx

* fixing text colour in dark mode fx

* formating all boolean values

* including number type

* updating functinal logic for number type

* style updated

* style updated

* fixing table text colour not showing bug

* fixing darkmode bg colour

* Flipping transition animation , without delay fix

* bugfix:: fixing styles margin updated

* fixing margin

* fixing padding for new number input

* Revert "fixing margin"

This reverts commit b74e524443.

* Set bottom margin for hinter column to 16px

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-02-07 09:13:12 +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
Muhsin Shah C P
e622dae158
Added border radius property to table widget (#2077) 2022-02-01 17:06:41 +05:30
Akshay Sasidharan
7c0ca61012 Merge branch 'main' into develop 2022-01-31 12:16:12 +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
Sherfin Shamsudeen
81ee8a0fbe Merge branch 'main' into develop 2022-01-21 18:04:12 +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
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
Arpit
0a45148671
updated cell-type:'text' to controlled component (#1606) 2022-01-04 11:31:04 +05:30
navaneeth
2a98c6bbae Merge branch 'develop' of github.com:ToolJet/ToolJet into develop 2021-12-03 16:19:52 +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
navaneeth
4d01aa31a1 Fixes incorrect resolving of cellValue 2021-11-17 17:07:06 +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
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
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
Nishidh Jain
219079be84
Resolves text and button color issue in dark mode for filter component of table (#1283) 2021-10-26 17:55:53 +05:30
Sherfin Shamsudeen
ef9951b255
Bugfix/table pageindex sync with total pages (#1263)
* Update table page data when page index is updated

* Pass pageIndex from useTable hook as lastActivePageIndex for pagination

* Goto last page in table whenever page count is less than current page index
2021-10-25 14:00:52 +05:30
Bhavin Ag
3ebf355d47
fix(table): add condition to check empty id row (#1213) 2021-10-24 19:54:00 +05:30
Sherfin Shamsudeen
a7502e5f03
Feature/cell types (#1194)
* Add custom spacing for table cells

* Add migration to set every tables cell spacing compact

* Rename cellSpacing to cellSize

* Add documentation for table cellSize
2021-10-22 07:49:51 +05:30
Arnav Puri
cf4e28c59e
resolves #401 by adding dark mode color (#1189) 2021-10-21 23:01:21 +05:30
Tulsi Prasad
a21dac5208
Use strict equality in comparision operators (#1006)
Fix #1002
2021-10-14 13:47:30 +05:30
Sherfin Shamsudeen
20d1bd0a31
Bugfix/stop propagation when table selector is clicked (#926)
* Stop propagation when table selector checkbox is clicked

* Reposition onClick handler of table selector checkbox
2021-10-07 14:05:36 +05:30
Sherfin Shamsudeen
c2e97af003
Selected row should be highlighted for table widget (#902)
* Add functionality to highlight selected row

* Add migration to set highlightSelectRow to false for existing tables

* Add documentation for highlighting selected row

* Support highlighting selected row for striped table
2021-10-05 19:36:30 +05:30
Sherfin Shamsudeen
eaaccc247e
Bulk selection for table widget 🔥
* Functional implementation of checkbox selector for table

* Add inspector toggle to display bulk selector checkboxes

* Expose selectedRows variable of Table

* Refactor select-all checkbox into a separate function

* Remove unnecessary import of v4 package

* Add TODO comment for adding checkbox color

* Revert typo that accidentally got committed

* Add explanatory comment in selectedRows data generation code

* Combine original row data and displayed row data for selectedRows

* Show only original data in selectedRows

* Use useRowSelect hook to for implementing table selector

* Show selector column only when it is enable from inspector

* Add migration to set showBulkSelector to false for all tables

* Add documentation for bulk selection

* Set label of toggle that (en/dis)ables bulk selection: 'Bulk selection'
2021-10-05 12:37:17 +05:30
Navaneeth Pk
5c380d98e8
Multiple minor fixes for table widget (#871) 2021-09-30 08:43:22 +05:30
navaneeth
a684c16a09 pageSize of table should default to length or rows 2021-09-29 22:43:19 +05:30
Arpit
fa2c84f3d6
Bugfix/table cell color fix (#870)
* Table widget: data on inspector is readable in dark mode

* table body colors

* removed repeated properties in the widget ispector or table widget
2021-09-29 22:18:08 +05:30
Sherfin Shamsudeen
7783154afc
Minor linting changes in Table.jsx (#859) 2021-09-28 15:09:37 +05:30
Gandharv
ec4fc4e582
Fixes striped table when element selected is text/dropdown/multiselect/editable/datepicker (#740)
* fix: striped table when element selected is text

* fix: when column type is dropdown fix ui

* fix: when category-type is multiselect

* fix: make overflow-x scroll so that more radio buttons can fit

* fix: when column is editable fix styles

* add text styles: additional

* fix: datepicker + striped table

* multicursor trick if to switch - witchcraft

* fix: add array check in tags component

* fix: action  buttons

* merge badge and badges case

* change overflow x to initial - temporary

* fix conflict

* add padding left, right

* Update frontend/src/Editor/Components/Table/Table.jsx

Co-authored-by: Sherfin Shamsudeen <sherfin@tooljet.io>

* increase min height from 35 -> 55

Co-authored-by: Sherfin Shamsudeen <sherfin@tooljet.io>
2021-09-27 18:27:06 +05:30
Arpit
6cd75fab47
Table cell color do not change according to theme nor color is enforced from the table color picker (#831)
* Table widget: data on inspector is readable in dark mode

* table body colors

* removed repeated properties in the widget ispector or table widget
2021-09-27 09:12:22 +05:30
Arpit
cd64bf3e7c
Fixes table-search (#836)
* fixed table-search and able to search immediately as you type

* remove console.log
2021-09-27 09:08:34 +05:30
Arpit
26c9cc655c
Fix linting errors across the app (#785)
* eslint-setup: rules for frontend and server

* setup pre-commit:hook

* frontend:eslint fixes

* frontend eslint errors and warning fixed

* eslint:fix for ./server

* fix server/test: expectatin string lint/error

* pre-commit:updated

* removed unwanted install cmd from docker file

* recommended settings and extension for vscode

* husky prepare script added

* updated extension recommendations

* added prettier as recommended extension

* added pre-commit to package.json

* remove .prettierrc file

* resolve changes

* resolve changes
2021-09-21 19:18:28 +05:30
Arpit
ab17ead153
Bugfix: tags table-cell-type cannot be edited if its readOnly (#806)
* tags and badges:table-cell-type cannot be edited if its readOnly

* going backward for badge and badges type
2021-09-21 17:02:18 +05:30
Sherfin Shamsudeen
c17b76e5ea
Disable auto-reset in Table when its data is recomputed (#805) 2021-09-21 16:52:39 +05:30
Sherfin Shamsudeen
a56aa9c954
Add property to show or hide bulk update actions on Table (#739) 2021-09-13 15:37:07 +05:30
Navaneeth Pk
c55cad0f24
Show/hide table buttons (#682)
* Show/hide table buttons

* clientSide pagination

* Remove unwanted comment

Co-authored-by: arpitnath <arpitnath42@gmail.com>
2021-09-07 11:01:10 +05:30
Navaneeth Pk
8fd05bd779
Add validation for dropdowns (#696)
* Validation for dropdowns

* fix

* fix

* fix
2021-09-06 20:02:09 +05:30
Navaneeth Pk
b12cc7f309
Input validation for widgets (#693)
* Validations

* Fix

* Validation for table cells

* fix
2021-09-06 14:20:38 +05:30
Navaneeth Pk
b175004ad1
Expose table data (#691)
* Expose table data as a variable

* fix
2021-09-05 21:22:27 +05:30
Arpit
67ca8f1461
Feature: disable widgets (#653)
* widgets can be disabled

* removed whitespace

* move to styles definitions

* default values fixed with nullish operator

* proper data attributes

* generic resolver function for widget value

* renamed the style property
2021-09-02 19:41:59 +05:30
Navaneeth Pk
d0555f67ad
Customisable font color for string cells (#671)
* Customisable font color for string cells

* Fallback colors
2021-09-02 11:46:26 +05:30
navaneeth
46cb7fd64a Discarding changes should also refresh table data 2021-09-01 22:13:13 +05:30
navaneeth
8951f89792 Compare with default value of string cells before update 2021-09-01 21:40:45 +05:30
navaneeth
f395541b0f Table cells of default type should be editable 2021-09-01 21:33:17 +05:30
navaneeth
d6525b6bf7 Use accessor instead of headers for matching cell data 2021-09-01 15:49:36 +05:30