Commit graph

38 commits

Author SHA1 Message Date
Arpit
c4b8a82491
[Hotfix] Not able to select date with Datepicker widget (#3886)
* fixes: datepicker popup

* fixes: border-radius
2022-08-30 14:16:39 +05:30
Manish Kushare
0b2ca36dbd
Bug Fix :Date Picker event not firing the correct parameters. (#3668)
* Bug Fix :Date Picker event not firing the correct parameters.

* Fire onSelect event on the then function of setExposedVariable for datepicker

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-08-02 13:41:12 +05:30
Midhun Kumar E
a68c727eae
Add cypress test for date picker widget (#3592)
* Add and modify data-cy for widgets

* Add selectors

* Add constant texts and methods

* Add common widget operations

* Add momet to Cypress

* Add common utils and optimized commands

* Add methods specific for Datepicker

* Add spec datePickerHappyPath

* Minor selector modification

* Add verification of value from inspector
2022-07-20 12:41:50 +05:30
Sherfin Shamsudeen
bc93818621
Feature/component property validation (#2782)
* Initial architecture for component property validation

* Coerce to default and log invalid properties

* eslint rule:frontend for  specifying the path to the  @types/

* removes comment for eslint-disable-next-line

* reverts 27946f1 & adding a temporary fix

* Remove incorrect property validations

* Avoid race condiiton in setting state for error logs

* Fix issue where only one error got logged

* Flush out any errors that are logged

* Remove unnecessary console.log

* Add validations for Table properties

* Add support for multiple validations

* Add validation for chart component

* Add validation for modal

* Set default value common to all validation schemas for component properties

* Add validations for password widget

* Add validations for datepicker

* Add information about default value on validation error message

* Remove unwanted console.log

* Do not validate properties on Viewer

* Use meta information from widget config instead of component state to validate

* Do not coerce to default values while validating

* Do not validate existing components

* Update package-lock.json in sync with develop

* Add validation for general properties

* Add support for size validation of component properties and styles

* Add support for min and max spec in size validation

* Support pattern validation for string properties

* Make size validation specifiable along with type specification

* Component validation optimizations

* Remove unnecessary comments

* Remove unnecessary default value param from validation

* Fixed visibility style validation bug

* Added custom validation to PDF & Custom component

* property/style validation statistics

* values changed to string

* validation button group widget

* bugfix

* Added property validation to timeline widget

* Added visibility prop validation to timeline widget

* steps property/style validation

* svg component property validation

* component property validation numberinput

* bugfix

* validation textarea

* validation vertical divider

* property validation html widget

* validation :: checkbox

* image property validation

* validation :: rangeslider widget

* validation :: circular progress bar

* validation spinner

* added props and style validation

* tags validation

* validation :: pagination

* timer :: validation

* validation :: toggle

* validation :: divider

* validation :: radiobutton

* added props and style validation

* validation:: iframe

* validation :: password input

* validation:: code editor

* validation :: listview

* validation :: star rating

* validation :: modal

* validation :: qrscanner

* validation :: datepicker

* multiselect :: validation

* added union validation for border radius

* added props and style validation

* added props and styles validation

* added props and styles validations

* added props and styles validations

* added props and style validations

* added props and styles validations

* added prop and style validations

* added props and styles validations

* Added ID validation to steps widget

* Removed default value

* Added validation key to SVG widget

* Removed default value

* table validations

* table validations

* removing default value

* removing defaultval

* removing default val

* removing default val

* padding validation update

* updating number validation

* updatin number validation

* validation updates

* border validation

* border radius validation

* number input validation

* validation updates

* border radius validation

* validation update

* Updated misspelled schema text

* Updated Tabs validation schema

* Updated tooltip element schema

* Updated validation for multi select

* Updated validation for dropdown

* Updated validation for text widget

* Rectified mispelled validation

* Fixed : validation not working for format

* Added Array validation to chart widget

* format prop bug fix

* draft complete :: table validation

* Fixed misspelled text

* Don't validate properties that are not defined on widgetConfig

Co-authored-by: arpitnath <arpitnath42@gmail.com>
Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com>
Co-authored-by: stepinfwd <stepinfwd@gmail.com>
Co-authored-by: manishkushare <kushare.manish9@gmail.com>
Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>
2022-07-19 18:51:45 +05:30
Kiran Ashok
dae2cc3379
[ enhancement ] :: added on select event (#2707)
* added on select event

* docs updated
2022-04-21 15:31:57 +05:30
Kiran Ashok
772c3bd56a
Bugfix :: datepicker widget shows current date when default date is set as empty (#2875)
* fixing default date bug

* Set arbitrary default date for datepicker, and empty default exluded dates

* If set date is invalid, ensure exposed value is undefined on Datepicker

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-04-21 14:18:51 +05:30
Kiran Ashok
5c3d8ffa71
[ Feature ]:: Datepicker exlcudedates addition (#2751)
* adding excluded dates property

* updates :: writing date parse function

* update parser

* logic update

* logic updated

* reimplemented logic for excluded dates

* typos updated

* pr changes

* pr changes

* cleanup

* docs updated

* default value changed

* cleanup
2022-04-18 23:12:50 +05:30
Sherfin Shamsudeen
26a5c43993
Do not change date from default value if default value is invalid (#2681) 2022-03-30 15:05:32 +05:30
Manish Kushare
7c6f8dae74
Adding react-datepicker library instead of react-datetime library in datepicker widget (#2619)
* initial commit

* made datepicker functional

* update date format

* made border-radius and adjusting width and height of the input element to the datepicker container functional

* add year and month selection  dropdown & upon enableDate false, only showing time selection

* changed dropdown year display

* adjusted width of the datepicker widget

* added React.forwardRef inside ExampleCustomInput function

* Show month dropdown on mode select for datepicker

* Slight refactoring

* Display default date on load of DatePicker widget

* Apply brand colors for date picker

Co-authored-by: arpitnath <arpitnath42@gmail.com>
Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-03-29 14:51:58 +05:30
Kiran Ashok
c836d861cf
Border radius style for input widgets (#1972)
* updating File picker
Text input
Text area
DateRangePicker
Datepicker
PasswordInput
NumberInput
TextInput
codeEditor, to include border radius style option

* change to number input

* theme file updated to remove override for border radius

* change to number input

* text input updated with border radius style

* updated with border radius

* date range picker border radius removed

* removing overiding class
2022-01-29 07:06:08 +05:30
Muhsin Shah C P
39dbba7966
Solved height problem of date-picker (#1676) 2021-12-30 10:12:22 +05:30
Arpit
49b820402b
input component set to read only (#1646) 2021-12-27 20:55:02 +05:30
navaneeth
06a537b031 Merge branch 'main' into develop 2021-12-16 09:54:51 +05:30
Navaneeth Pk
b383ed2ba4
Fixes z index issue of date picker widget (#1570)
* Fix z-index issue of datepicker

* lint

* Fix for modal

* Fix

* Remove usage of onComponentclick from tabs widget

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-15 23:14:44 +05:30
Sherfin Shamsudeen
bbf552d693
Prevent datepicker from asking the user to select a date before showing the calendar (#1542) 2021-12-09 11:06:59 +05:30
Arpit
5ca4b54649
[improvement] Widget components #1475 - datepicker widget (#1530)
* updated to new api, fixed time-selection, and fixed enableDate

* fix typo

* fix validate arg

* Initiate datepicker value to defaultValue and validate without referring to currentState variable

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-07 19:28:46 +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
Pramod
a18dacf544
Use const declarations for variables that are never reassigned (#1203) 2021-10-22 12:17:31 +05:30
SAI SUMANTH KUMAR
f47695dc23
Padding for datepicker component (#1160) 2021-10-20 22:56:34 +05:30
Arpit
373acb252a
Fixes time selection (#1162) 2021-10-20 22:51:46 +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
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
Sherfin Shamsudeen
c238265159
Add default value option to date-picker component (#801) 2021-09-21 07:49:31 +05:30
Sherfin Shamsudeen
bd7242ff03
Bugfix/datepicker crashing when user types on it (#794)
* Validate datepicker has a moment object before using it as one

This commit ensures that the value a date picker holds is a moment
object before it format it using moment function

* Set selectedComponent for Viewer whenever component is clicked
2021-09-20 15:14:45 +05:30
Navaneeth Pk
c5bf740507
Fixes datepicker z-index issue (#745) 2021-09-13 21:23:57 +05:30
navaneeth
de6d3d0251 input validation for datepicker widget 2021-09-08 00:19:06 +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
3d260f3d4b
Datepicker widget format (#663)
* bug fixed: datepicker widget format

* tab alignment && whitespace
2021-09-01 17:51:52 +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 Pk
8b481ae9f4
ESLint fixes (#138)
* ESLint fixes

* Eslinted
2021-04-30 13:40:57 +05:30
navaneeth
2e3e637eb2 Setup prettier, suggested fixes 2021-04-30 12:01:32 +05:30
navaneeth
b209335222 Use datepicker also as timepicker 2021-04-18 22:43:32 +05:30
navaneeth
55a4a1d96a Toggle time picker for datepicker component 2021-04-18 22:29:17 +05:30
navaneeth
58247b9c85 Format option for datepicker, bug fixes 2021-04-18 22:14:03 +05:30
navaneeth
3700e142c4 Component: Date picker 2021-04-12 19:36:54 +05:30