Commit graph

25 commits

Author SHA1 Message Date
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
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
Sherfin Shamsudeen
e38a278193
Use only state setters as dependent functions for registerAction (#4137) 2022-09-28 12:16:46 +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
76461d9049
Bug fixed : radio button is not consistent with the dark theme (#3929) 2022-09-12 09:35:42 +05:30
Arpit
6d29ac5c7f
fixes component state updates: radio button as listview child (#3663) 2022-08-09 14:35:50 +05:30
Muhsin Shah C P
454e7b07b1
Added a component action for selecting an option from radio button widget (#3512) 2022-07-13 15:50:45 +05:30
Arpit
109e1baf4a
Hotfix/fix action for dropdown (#2349)
* fixes dropdown fireEvent for on select

* fixes value undefined at .then() chained to Promise?

* adds explicit return statement for viewer: onComponentOptionChanged
2022-02-25 15:20:34 +05:30
Navaneeth Pk
4d6906503b
[WIP] Widget: List view (#1575)
* list view initial commit

* More stuffs

* More stuffs

* Minor changes

* merge fixes

* Minor changes

* Fix misspelt variable name that caused data to not show up

* Merge conflicts

* Fix lint for ListView component

* Update ListView to new API

* Fixes

* Fixes

* Fix radio

* Fix

* Lint fixes

* Set icon for List View widget

* Fix list view within tabs

* Fix

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-01-14 13:57:31 +05:30
Muhsin Shah C P
6e53cf3f15
Added a style option to change colour of selected radio button (#1665)
* added a style option to change colour of selected radio button

* Changed property name
2022-01-09 14:12:40 +05:30
Arpit
52e0b666f8
Improvement: widget components from existing implementation to the new API (#1470)
* text-input widget

* button widget

* fix text input widget

* number input widget

* checkbox widget

* refactor checkbox

* radio btn widget

* dropdown widget

* refactor textinput and number input

* updated state variable

* Remove usage of component and currentState prop in dropdown

* Reset dropdown value whenever option set is changed

* Make text input respond to changed in its default value property

* Radio button component fix

* default value for number input: fixed

* Fix validation on Text Input component

* Use useState hook to manage value of text input component

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-14 09:10:42 +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
78d0ce343b
Bugfix: fix widgets alignment consistency (#1083)
* widgets dimensions updated: follow up PR-#869

* removed unwanted console.log

* toggle widget minor tweaks

* Fixes the padding of dropdown & multi-select dropdown

* Minor corrections

* Fix padding of datepicker and date range picker

* Fix for toggle switch

* fix checkbox and removed duplicate classname in radio widget

* multi-select width update

* fixed widgets styles

* alignment consistency

Co-authored-by: navaneeth <navaneethpk@outlook.com>
2021-10-16 08:44:29 +05:30
Arpit
22cfe0af89
Follow up PR to #869: update widgets size (#877)
* widgets dimensions updated: follow up PR-#869

* removed unwanted console.log

* toggle widget minor tweaks

* Fixes the padding of dropdown & multi-select dropdown

* Minor corrections

* Fix padding of datepicker and date range picker

* Fix for toggle switch

* fix checkbox and removed duplicate classname in radio widget

* multi-select width update

Co-authored-by: navaneeth <navaneethpk@outlook.com>
2021-10-07 12:22:02 +05:30
Sherfin Shamsudeen
7a20af48f8
Reset radio button inside a closed-and-reopened modal (#922) 2021-10-07 12:16:08 +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
Arpit
cc737393ff
Set default value for radio buttons (#665) 2021-09-01 17:49: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
navaneeth
3022322bd3 Fix alignment of radio button 2021-08-21 20:34:36 +05:30
Arpit Nath
29c037afdd
fixes retrive-input value (#514) 2021-08-13 20:56:01 +05:30
Arpit Nath
200cd9f402
Feature: radio button widget (#485)
* feature: radio button for widget

* Revert "feature: radio button for widget"

This reverts commit 99cb80be6a.

* radio button for widget

* icon from svg-repo.com

* radio button widget

* remove unwanted comment

* resolves changes

* component description updated

* radio component properties update

* fixed alignment
2021-08-13 12:00:53 +05:30