Commit graph

62 commits

Author SHA1 Message Date
navaneeth
5956eebddf Remove initials from comment cursor 2021-11-04 15:33:03 +05:30
Gandharv
3e1a5c1fb0
UI: Add a preview loader while a comment is being added to the canvas (#1358)
* ui: add a comment-loader while a comment is being added

* ui: add loader while notifications are being loaded

* add correct y co-ordinate for temp loader

* on tab change add loader for comment sidebar notifications
2021-11-03 19:36:18 +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
a42f1278d9
Fixes widgets not being dropped in the canvas (#1075) 2021-10-15 10:22:40 +05:30
Sumit Sawant
9beec28eeb
Refactor: use forEach instead of map (#1022) 2021-10-14 08:01:11 +05:30
Elisha Hollander
a0403a4804
Code refactoring (#977)
* remove `componentData`

* declare `x`, `y` as `var`s

* remove testing for `!isTesting`

* Update frontend/src/Editor/CustomDragLayer.jsx
2021-10-12 09:03:34 +05:30
Akshay
7023f72d1d
Feature: User access management 🔥 (#918)
* create migrations for group permissions setup

* define new entities and relationships

* revise migrations

* rename columns

* add migration to populate permission groups for existing users

* Feature: User access permission group usage (#883)

* create migrations for group permissions setup

* define new entities and relationships

* revise migrations

* rename columns

* add migration to populate permission groups for existing users

* revise migrations

* hide roles usage

* setup group permissions for apps and users

* fix defaultChecked

* fix update permission checkbox

* fix casl ability check to have params passed

* fix casl apps abilities to check with app specific permission

* add ability to delete groups

* conditionally render edit and delete options for all and admin users

* fix user role to group migration

* revise group management pages to disallow updating default group

* move manage users and groups to navbar dropdown

* show only addable apps and users on dropdowns

* rename header as profile settings

* scope addable apps and users by organization

* scope viewable apps on homepage

* hide manage groups link from non admins

* make permissions to be used with radio input

* add loading state for add apps/users buttons

* revise unit tests

* revise migrations

* fix e2e tests

* comment out dead code

* fix seeds script

* handle folder count

* captalize error toast

* hide manage users dropdown for non admins

* show fobidden error on blank homepage

* fix folder app count

* fix invalid state set

* make group name clickable for edit instead

* users with edit permission can deploy apps

* not show edit link on homepage if user dont have update permission

* remove unused entity from merge

* remove roles usage from manage org users page

* fix folder count and blank slate on homepage

* disable add buttons if there is no selections

* humanize default groups on view

* make app added onto groups have read permission by default

* not show app menu if user is not admin

* remove admin users from group user addition dropdown

* create default permissions for app cloned

* fix querying index page without page params

* fix admin scoped out from group add

* remove apps from header

* fix invitation url not shown

* scope admin deletion check by org

* scope public apps by organization

* add specs for group permissions e2e

* removed unused entity and add group permissions spec

* remove console logs

* remove unused permission

* scope public app count by org

* remove console log

* refactor manage group permission resources component

* update group permssion in org scope
2021-10-11 20:45:58 +05:30
Omeir Fawaz
1561884fad
Add link to documentation on empty canvas (#943) 2021-10-08 11:33:24 +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
5d0ae0ed69
Canvas grid resized when resizing a component and component snaps to the nearest grid. (#792)
* canvas grid resized when resizing a component and component snaps to the new next grid size

* resize grid while dragging and resizing a component in the canvas

* values refactored backward

* Minor changes

* Few more fixes

* remove resizer-selected

* Anotehr change

* Revert "Anotehr change"

This reverts commit 63a3649bff.

* clicking on canvas area, dis-selects the widget and selectedComponent={}

Co-authored-by: navaneeth <navaneethpk@outlook.com>
2021-09-27 15:18: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
Akshay
82f76e2799
Feature: app version preview & edit (#639)
* add ability to preview and edit versions

* add specs for get app versions

* create new app versions from prev definition

* fixes

* move default slug creation outside typeorm transaction

* set slug as app id when null

* fix app creation response

* fix entities not loading on test env

* add e2e test for version creation scenarios

Co-authored-by: navaneeth <navaneethpk@outlook.com>
2021-08-30 17:13:27 +05:30
Gandharv
6837104171
Feature: redesign left sidebar 🎉 (#512)
* feat: add left sidebar new ui ❇️

* new: add svg spring motion dark mode icons

* - add tooltip
- reduce icon size to 20px h&w
- fix indentation

* remove logs

* fix: typo

* fix: on click of arrow the ref was not captured, react repo has reference to this issue at : https://github.com/facebook/react/issues/20325

* css fixes

* color changes for moon icon

* revert css'

* fix back button not working due to incorrect clean up function

* feat: add use-router hook component

* - make sun svg have a white circle inside
- fix the alignment of darkmode toggle on homepage

* fix: pkg lock after fresh install with 7.20.x
2021-08-17 11:31:12 +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
Prasad Walvekar
c7446d4046
Chore: Rename class to className (#345) 2021-06-28 13:10:14 +05:30
navaneeth
1a719ce71e Feature: Highlight selected component 2021-06-04 18:52:22 +05:30
navaneeth
8bf5e32a8e Prevent widgets from scaling out of window 2021-06-04 09:22:29 +05:30
navaneeth
1135c51518 Feature: New widgets can be dragged to mobile layout 2021-06-03 22:46:36 +05:30
navaneeth
baeeca9702 Fixed bug that caused incorrect layout being repositioned 2021-06-03 22:29:29 +05:30
navaneeth
4700063eef Feature: Scale widget width to fit mobile devices 2021-06-03 22:10:54 +05:30
navaneeth
94bede4269 Feature: Switch visibility on devices 2021-06-03 20:36:49 +05:30
navaneeth
18e8e172c5 Fixed layout reset while switching layouts 2021-06-03 19:33:07 +05:30
navaneeth
03a71a6352 Feature: Mobile layout 🔥🔥🔥 2021-06-03 18:35:01 +05:30
navaneeth
b116b41d43 Minor UI fix for empty state of the canvas 2021-06-03 11:58:32 +05:30
navaneeth
f0c81f289f Show spinner while app definition is being loaded from server 2021-05-26 17:56:47 +05:30
navaneeth
6bf64aa39b Should be possible to resize in all directions 2021-05-26 10:49:05 +05:30
navaneeth
a28c7e30ca Feature: Trash widgets 2021-05-18 20:31:33 +05:30
navaneeth
53b25850f3 Inspector should open only when menu handle is clicked 2021-05-17 00:19:05 +05:30
navaneeth
12902071cb Fix for canvas grid being hidden 2021-05-15 20:19:25 +05:30
navaneeth
882b55b32c Hide grid for other sub-containers while dragging 2021-05-11 23:17:39 +05:30
navaneeth
1db2fb7083 Feature: Modals 🎉 2021-05-09 23:36:11 +05:30
navaneeth
fbd7204ea8 Increased canvas height 2021-05-09 08:50:44 +05:30
navaneeth
181d792034 Multiple UI bug fixes 2021-05-07 22:10:11 +05:30
navaneeth
d174f7f32c Fixes for drop offset issues of canvas 2021-05-01 17:09:20 +05:30
navaneeth
0617dd080d Feature: Zoom levels for editor canvas 🎉 🎉 2021-05-01 01:23:52 +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
0c2d2cb3c2 Feature: Show grid line while dragging & resizing 2021-04-28 22:24:44 +05:30
navaneeth
1525cf0a08 Too many fixes for snapping to canvas objects to grid 🎉 2021-04-28 20:36:02 +05:30
navaneeth
43b1a85323 Fix for adding components to scrolled sections of canvas 2021-04-28 16:08:05 +05:30
navaneeth
c8d45dc754 Skeletons for canvas and panels 2021-04-27 17:37:36 +05:30
navaneeth
d7e7f3bb72 BugFix for changeSet of tables not being updated sometimes 2021-04-26 23:10:43 +05:30
navaneeth
01988cdb67 Dislay empty state for canvas 2021-04-21 19:17:19 +05:30
navaneeth
ae6c4f1814 Minor UI fixes 2021-04-21 13:14:36 +05:30
navaneeth
a3cf5114aa BugFix: Disable drag in viewer mode 2021-04-21 12:22:57 +05:30
Navaneeth Pk
4ad4a334f4
Feature: Resizeable columns for tables (#113) 2021-04-21 11:37:47 +05:30
Navaneeth Pk
e568f358ea
BugFix: Incorrect y-offset for dropped components (#105) 2021-04-19 19:26:30 +05:30
navaneeth
5c53ba98bd Feature: Rich text editor 2021-04-11 17:53:32 +05:30
navaneeth
b3285746e1 Better logic for positioning new components on drop 2021-04-10 23:24:10 +05:30
navaneeth
db0f7b15c2 [62] Fixed: New components going outside the canvas area 2021-04-10 22:59:04 +05:30