Commit graph

178 commits

Author SHA1 Message Date
Gandharv
6f1e3c19db
add websocket url fallback as window.location.host (#1374) 2021-11-05 15:11:00 +05:30
Sherfin Shamsudeen
b4a1ae9c55
Invoke onComponentClick whenever onClick event is fired via fireEvent (#1371)
Co-authored-by: Sherfin Shamsudeen <sherfin@Sherfins-MacBook-Pro.local>
2021-11-05 10:35:31 +05:30
Arpit
e21f1cfd3f
Go to app - on success event fixed (#1360)
* Goto app handler, when run as the on-success event handler of query, it should not ask for confirmation, in the viewer

* Goto app handler, when run as the on-success event handler of query, it should not ask for confirmation, in the viewer
2021-11-03 13:33:29 +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
Nishant Samel
89c1f3f02c
Fixes logo alignment issue (#1291) 2021-10-26 10:03:25 +05:30
Tulsi Prasad
3c1dc290e8
Use createref in Editor component properly (#1227)
- Prettify editor component
2021-10-24 19:46:10 +05:30
SAI SUMANTH KUMAR
1f1cd70175
To perform an action immediately after setting state on a state variable and then returning a result, a callback will be useful. (#1229)
* Update Editor.jsx

* fixed typo
2021-10-24 19:45:37 +05:30
Jayden-Chiu
2106f4c5f5
Fixes app being able to be named empty or whitespace string in editor (#1197) 2021-10-23 16:11:58 +05:30
Santosh Bhandari
59e33a370c
Fix query manager appearance in dark mode (#1202) 2021-10-23 16:08:47 +05:30
alammoiz
0605f97a21
Added tooltip to buttons (#1132) 2021-10-21 21:44:21 +05:30
Tulsi Prasad
a21dac5208
Use strict equality in comparision operators (#1006)
Fix #1002
2021-10-14 13:47:30 +05:30
Santosh Bhandari
dbfd88dbef
Adjust widget search term to appear properly (contrast) in dark mode (#969) 2021-10-11 15:06:04 +05:30
Pockerman20
7eff50db6c
Changed Editing version -> App version in Editor.jsx (#939) 2021-10-08 00:07:23 +05:30
Sherfin Shamsudeen
53f510796f
Enforce order of app execution (#913)
* Run queries only after componentState is fully computed

* Run queries in the editor after componentState is computed

* Use promise ensure queries run after state is fully computed
2021-10-06 18:47:56 +05:30
Arpit
51d6537b02
Request confirmation before running query if true (#857)
* fixes state of toggles and currentTab of dataQueries

* show confirm modal when  query confirmation request is switched true

* simple and better fix:updating the helper function solves the issue

* minor fix for eslint-class declaration rule

* fire toast on queries running with requestConfirmation switched to true
2021-09-29 15:00:27 +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
bf0564a61f
Bugfix/enable transformation (#821)
* fixed: Transformation editor automatically closes and looses current state

* fixed: enableTransformation toggle switch switches to off/disable state due to other components
2021-09-27 09:10:21 +05:30
Ajinkya Deshmukh
2f70b4a259
Fixes REST API icon in darkmode (#815)
* query image darkmode fix

* lint fixes
2021-09-23 09:53:40 +05:30
Ajinkya Deshmukh
603108014f
Fix for query button size (#814)
* querry button size fix

* lint fixes
2021-09-23 09:52:53 +05:30
Gandharv
f09542180f
add datasource type into individual schema (#762)
* feat: add datasource type into individual schema

* add active class when dark mode

* fix: change type key to source
2021-09-22 10:43:12 +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
Gandharv
5bb0594973
Enable suggestion box for codehinter (#737)
* enable suggestion box for codehinter

* add heading as type of the preview

* add preview only on focus

* remove box shadow

* add background to widget inspector documentation footer link

* doc footer updats

* add condition where boolean value was not getting printed

* use index as key
2021-09-15 21:10:59 +05:30
Akshay
f637a80fd6
Feature: data query deletion (#734)
* add feature for data query deletion

* fix after query deletion default query selection is not being done

* move delete option and hide option unless mouse is hovered on query

* show dialog box confirmation before query deletion
2021-09-13 22:54:47 +05:30
Navaneeth Pk
e8eda697e6
Order of state computation (#732) 2021-09-13 12:47:45 +05:30
Akshay
2d20e262c9
Feature: Data query runs can also run events (#666)
* add capability to add events on data query runs

* UI fixes

* change popover placement to top
2021-09-06 20:10:51 +05:30
Gandharv
750d4b1d27
Reduce height of editor header from 56 -> 48px (#686)
* fix: reduce height of header from 56 -> 48px

* fix: tab highlight
2021-09-05 10:28:10 +05:30
navaneeth
ce274447f4 Minor style fix for editing version 2021-08-30 18:44:27 +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
navaneeth
1fdc4a1f23 Stability fixes for REST API query editor 2021-08-29 21:33:40 +05:30
Arpit
03cb61d8e9
Feature: debugger 🔥 (#603)
* debugger

* debugger.2

* empty options

* json styles

* positioning the divider for each queries

* refactored for generic cases

* bug fix: a single log for each datasource

* renamed file

* fixed

* naming fixed

* .

* SidebarDebugger.jsx
2021-08-27 12:05:53 +05:30
Apoorv Tiwari
a599853168
Fix incorrect tooltip when query editor hidden (#599)
* Fix incorrect tooltip when query editor hidden

* Fix the size of tooltip

* Fix button resize bug on clicking

Co-authored-by: “Apoorv <“tiwari.apoorv1316@gmail.com”>
2021-08-27 09:45:49 +05:30
navaneeth
8eb8630439 Fix for widget resize bugs 2021-08-21 10:35:54 +05:30
Navaneeth Pk
f5abbcfe12
Click widget to open inspector (#564) 2021-08-20 22:09:21 +05:30
Gandharv
36347651df
Feature: toggle query pane visibility (#558)
* add sidebar hide/show

* remove sidebar toggle
2021-08-20 18:41:49 +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
Manmeet
f87564b0e3
402 - Widget should be marked as not selected when the inspector is closed (#454)
Co-authored-by: xrimpy <=>
2021-08-04 20:47:51 +05:30
Manmeet
d35b2032bc
Typecasting Float to Integer and back to avoid floating point precision errors (#423)
https://stackoverflow.com/questions/3439040/why-does-adding-two-decimals-in-javascript-produce-a-wrong-result

https://stackoverflow.com/questions/1458633/how-to-deal-with-floating-point-number-precision-in-javascript

Co-authored-by: xrimpy <=>
2021-07-27 21:56:31 +05:30
Navaneeth Pk
7bc5af7115
Set default theme for react-json-view (#373) 2021-07-03 20:13:43 +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 Pk
8d29363a31
Bug fixes and improvements for inspector (#365) 2021-07-03 12:19:43 +05:30
Akshay
6423467e08
Fixes share button failing to load intermittently (#356) 2021-06-29 23:48:04 +05:30
Prasad Walvekar
df4c9e63f9
Select app instead of typing app id for go to app action (#346)
* Add select dropdown that shows all apps.

* Change appId => slug

* Extract 'apps' into editor state
2021-06-29 16:42:58 +05:30
Navaneeth Pk
3980448fb2
Feature: Disable launch button if not deployed (#350) 2021-06-29 00:39:52 +05:30
Navaneeth Pk
cc2983600e
Feature: url params should be accessible from apps (#337) 2021-06-27 12:59:55 +05:30
Akshay
b30b0b0b10
Feature: Friendly URLs for applications (#285)
* add migration to create slug for apps

* update migration file to include default slug population

* update schemafile

* add capability to get app by slug

* add capability to frontend to set and fetch app by slug

* remove unrelated changes from lint

* respond default 204 itself when success else render error

* make input field to show error when slug taken

* wip: show error message

* Cleanup

* add new route to fetch app by slug

* add slug to show json jbuilder

* update react components to fetch app by both id and slug

* fix launch link not being set

Co-authored-by: navaneeth <navaneethpk@outlook.com>
2021-06-22 20:03:13 +05:30
Navaneeth Pk
6859f112b1
Feature: Toggle display of query search field (#279) 2021-06-18 23:54:07 +05:30
Prasad Walvekar
1528cf3fa4
Feature: Ability to search queries (#278) 2021-06-18 23:24:38 +05:30
Prasad Walvekar
13d638784d
BugFix: CSS changes to make Queries div scrollable (#272)
* CSS changes to make Queries div scrollable

* Hide scrollbars using css
2021-06-18 11:03:13 +05:30
Viraj Bahulkar
03e42fa844
Add datasource pre-fix to REST queries (#261) 2021-06-17 11:26:53 +05:30
Prasad Walvekar
a2b89ffe25
Reset selected component state to null when a component is deleted (#258) 2021-06-15 23:41:48 +05:30