Commit graph

43 commits

Author SHA1 Message Date
Kavin Venkatachalam
bdb4706fc1
Performance release 0.1 (#9922)
* chore: moved fetching gds and lds from low priority calls

* Refactor: Optimize state updates by removing component dependencies on current state to avoid trade-offs

* clean up

* run on page queries after on app load queries are done executing
page load queries should be triggered even if the one or all the app load queries fails

* performance improvements:
- reduced calling resolver functions upto 50% times for components' rendering
- moved to new resolver function for resolving component properties: which 100 times more efficient as utitlises hash table to resolve references and only uses recursive function for resolving JS code by inferring the query
- reduced re-rendering of Box component upto 50-60%
- app load time improved by 30% : as resolver function is more efficient and 50% reduction on rendering of Box.jsx

* chore: removed currentState dependency from SubContainer and QueryManager

* chore: removed useCurrentState from old kanban component

* chore: filtered `false` from componentToRender array to avoid unwanted re-renders when there is an update in a component

* fix: minor improvement on buildAppDef function

* [performance] removes current state dependency from resolvers (#9934)

* Removes current state from function calls of resolver functions

* clean up

* remoes lodash clone deep to more efficient clone deep or copying utitlity method

* ts files to js

* replaced setTimeout to debounce method of lodash for more efficient delayed invocation and yielding mechanism to reschedule large number of tasks

* fixes file path for deepclone method

* fixes import file path for utils helpers

* fixes import file path for utils helpers

* clean up

* fixes: listView's custom resolvers are not getting updated

* chore: moved lastUpdatedRef state from Editor to the subscription of relsoverStore

* fixes: re-rendering of box component for trigger back resolvers

* fix: removing the delay as the runJS updates are not reaching to the components. While start running the query we are updated the componentIds that needs to be rendered. After running the query the same IDs are updated and this is stopping the re-render of the component

* Reverting commit 583460c

* fix: Table search event was not firing while clearing the search input

* fixes: mapping entites on clone page

* commit: Fixed issue on running query on app load with confirmation

* fix: we're mutating the data and which avoids the re-render to update the canvas bg colour. Added a deepClone to avoid it

* Bugfix - perf mapping (#10101)

* fixes: entity for compnent or query duplications with events

* maxDisplayLength for hinter's preview

* clean up

* fix: when multiple components are deleted, the codehinter has the deleted component as suggestion

* fixes: on typing fast the cursor postion changes its postion to first char of the line in multiline JS

* trial

* fix: moved currentValue state of codemirror to ref

* fix: the passed value to the codehinter was not updated properly

---------

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

* fixes: evaluatin js code in codehinters with reserveed keyword

* fixes: reserved keywords string should be resolved and updated in the compnent

* re-rendering of componenrs in viewer

* fixes: resolving of refs

* added a timeout for filepicker

* removes 100s

* filepicker crashes (component) crash on page deleting

* fixes: app crash on adding file events

* fixes: hinter suggestions selection by keyboard

* [chore]: Show proper error message instead of app could not save (#10126)

* chore: show error message from BE instead of app could not save

* Added a fallback value

---------

Co-authored-by: arpitnath <arpitnath42@gmail.com>
2024-06-19 14:36:09 +05:30
Johnson Cherian
b798cbf690
feat: added support for annotation in plotly charts (#9160) 2024-04-19 12:53:51 +05:30
Kavin Venkatachalam
9b3af0cbe0
feat: Extended chart support on chart component (#8912)
* Extended chart support on chart component

* render fix

* Bumped version and fixed eslint error

---------

Co-authored-by: Adish M <adish.madhu@gmail.com>
2024-03-20 15:21:54 +05:30
Johnson Cherian
b17959286d
feat: Expose clicked series name in charts (#8841)
* feat: expose click series name

* refactor: removed consoles

* chore: bump patch version
2024-02-20 10:54:32 +05:30
Kavin Venkatachalam
755bd6cd4b
feat: Small revamp on Chart component (#8683)
* Added onClick event to chart component

* Updated event name

* Resolved review comments

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

* Resolved review comments

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

* Add CSA to clear out clickedDataPoint of chart

* Exposed chart titles

* Removed the double click delay

* Reverted the title change

* Added bgColor & double click event

* Added border radius for chart component

* Added support of object values in JSON schema

---------

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2024-02-07 13:22:13 +05:30
Kiran Ashok
1737cafa83
Added bar type option to chart widget (#6286)
* feat :: added bar type option to chart widget

* imp :: resuing variables

* typo
2023-06-30 09:07:46 +05:30
Kiran Ashok
4267027465
Bugfix :: Box shadow is getting applied to the surrounding box (#6802)
* feat :: temp commit added box shadow for freq used components

* fix :: box shadow for all components

* cleanup

* review :: changes , sending boz shadow with styles

* fix :: apply box shadow to the item instead of container

* fix :: daterange picker shadows
2023-06-29 15:14:05 +05:30
Kiran Ashok
4759e282b4
fix :: removing ellipsis in legend labels in chart hover (#6231) 2023-05-10 11:31:32 +05:30
Midhun Kumar E
633edc7271
Added data-cy for all the components. (#5385)
* Add dataCy Prop

* Add data-cy for all the components

* Add data-cy for all the custom component
2023-01-24 17:22:35 +05:30
zaahmed-nisum-com
55dc8afcf6
fixed chart loading spinner is not at the centre vertically (#4640) 2022-11-17 11:42:08 +05:30
Kavin Venkatachalam
769be2530c
[Feature] Plotly JSON: Added layout support to the chart widget (#2732)
* Added layout support to the chart

* Check CLA

Co-authored-by: Kavin Venkatachalam <kavin@Kavins-MacBook-Pro-2.local>
2022-04-08 19:45:18 +05:30
Muhsin Shah C P
2c70a98e94
Fixes incorrect marker color for charts (#2180) 2022-02-07 22:15:31 +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
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
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
80e2493572
fix(chart): update chart type toggle on UI (#1716) 2022-01-04 09:41:20 +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
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
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
Arpit
6b79a3096d
Bugfix/chart widget freeze issue (#976)
* fixes chart widget

* refactored

* removing comments
2021-10-27 13:27:57 +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
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
Sherfin Shamsudeen
61d612ed64
Bugfix/component editing inside container (#641)
* Add support for editing and deleting components inside container

* Dont allow config handle click event to propagate

* Supply removeComponent method for Container component
2021-08-30 18:53:58 +05:30
Arpit
7f9f9cb418
backward compatibility for visibility (#640)
* show or hide widgets

* backward compatibility for visibility
2021-08-30 18:21:09 +05:30
Arpit
d6f5fd17dd
Feature: Show or hide widgets (#638) 2021-08-30 17:13:05 +05:30
Ajinkya Deshmukh
16051826ee
Fix for font color of the pie chart legend in dark mode (#412)
* chart legend color fix

* legend text added

* background-color rollback
2021-07-20 18:19:54 +05:30
navaneeth
e994725104 Use spinners instead of skeletons 2021-07-03 23:37:51 +05:30
Navaneeth Pk
150961b591
Feature/dark mode (#366)
* Dark mode part 1

* Dark mode part 2

* Dark mode part 3

* Dark mode part 4

* Dark mode part 5

* Dark mode part 6

* Dark mode part 7

* Dark mode part 7

* Dark mode part 8

* set light mode as default

* Dark mode part 9

* Dark mode part 10

* Dark mode part 11
2021-07-03 19:47:47 +05:30
navaneeth
672787356a React performance improvement - smaller bundle size 🎉 2021-06-05 20:34:27 +05:30
navaneeth
5bdc399226 Feature: Pie charts 2021-05-26 11:52:40 +05:30
navaneeth
673a55ca39 Change in chart type should reflect on canvas 2021-05-22 20:44:03 +05:30
navaneeth
7fef284bf6 Enable dynamic plot for charts 2021-05-21 11:02:16 +05:30
navaneeth
ce636619d4 Bugfixesfor charts widget 2021-05-21 10:38:21 +05:30
navaneeth
92c0946633 Feature: Dynamic variable support for chart data 2021-05-21 10:17:30 +05:30
navaneeth
7e95b24f28 Fix for crash while inspecting charts 2021-05-21 09:45:51 +05:30
navaneeth
aac3340624 Enable static plot for charts 2021-05-16 08:49:31 +05:30
navaneeth
18543112ff Feature: Loading state for charts 2021-05-15 18:41:18 +05:30
navaneeth
bfa11cd253 Hide plotly mode-bars 2021-05-15 18:36:57 +05:30
navaneeth
c2ee24662a Feature: Ability to toggle chart grid lines 2021-05-15 18:35:01 +05:30
navaneeth
8cca2862be [Charts] Ability to change marker color 2021-05-15 18:28:47 +05:30
navaneeth
343e23a9f9 Feature: Support for bar charts 2021-05-15 18:13:36 +05:30
navaneeth
f59a5dd618 Feature: Chart widget using plotly 🎉 2021-05-15 18:11:57 +05:30
navaneeth
b687b49127 Feature: Server-side pagination for tables 🎉 2021-05-02 19:15:13 +05:30