Commit graph

45 commits

Author SHA1 Message Date
Muhsin Shah C P
b2491a05d2
BugFix: variables not accessible from custom js queries (#2448) 2022-03-08 09:47:36 +05:30
Arpit
dd79f24715
[Bugfix] Typing "this" or "window" or "app" on any code box will crash the app completely (#1998)
* fixes: Typing  ,  or  on any code box will crash the app completely

* handle circular dependecies in the preview component and checks to resolved reserved keywords list

* remove comments

* exp: resolves reserved keywords to null if declared inside obj

* Remove unnecessary import for react-hot-toast

Co-authored-by: Sherfin Shamsudeen <[email protected]>
2022-02-15 12:19:22 +05:30
Navaneeth Pk
8b915fd5ef
Fixes an issue that causes customObjects being resolved incorrectly (#2157) 2022-02-07 13:13:55 +05:30
Navaneeth Pk
eb75038b93
Fixes duplicate widget names being generated (#2129) 2022-02-04 12:02:19 +05:30
Arpit
d4da5591cb
Adds support for custom variables (#1780)
* adding new action: set variable

* adding unset variable action

* add customVariables when editor mounts

* removed unused props

* removed unused props

* updated actions and inspector popover

* removes white space

* add variables to resolve reference

* adding variables to suggestion hints

* adding variables to suggestion hints

Co-authored-by: Sherfin Shamsudeen <[email protected]>
2022-01-31 09:06:34 +05:30
Midhun G S
5000f745b1
Github OAuth integration (#1837)
* Initial commit

* git auth

* git sso

* Git sso

* Git Oauth rebase

* review comments

* added email validation

* improvement

* Package lock revert

* E2E test case fix

* fix data population in migration

* Supress initial error thrown by google

* Fix

* e2e test cases

* added e2e test cases

* isValidDomain improvement

* e2e test cases fix

Co-authored-by: Akshay Sasidharan <[email protected]>
2022-01-27 15:21:17 +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
Midhun G S
21d63d2c99
Feature: Mongodb more operations support (#1717)
* feature-842 mongo support

* feature-842 fix

* json parse improvement

* Feature-842 date data type support

* feature-842 fix

* convert ejson to bson on mongo queries

* fix type on parse

* json parsing

* Typo error fix

* Insert Many Fix

Co-authored-by: Akshay Sasidharan <[email protected]>
2022-01-14 13:53:57 +05:30
Akshay
5b30aa2007
Chore: Setup pipeline (#1539)
* github actions for PR and push to develop branch

* test workflow

* move to workflows folder

* add setup node action

* modify build

* specify npm version

* config unit test

* specify host postgres

* specify container to run on

* add postgresql dependency

* add specify ws adapter for test

* add e2e test

* fix linting

* only log errors on tests

* update eslint config

* fix linting

* run e2e test in silent mode

* fix library app spec

* dont send email on test env

* fix org scope

* mock env vars

* remove reset modules

* force colors

* explicitly close db connection

* add eslint rule for floating promises

* update workflow

* fix floating promise

* fix lint

* update workflow

* run on all push and pulls

* update lint check files

* simplify workflow

* increase js heap size on env

* separate lint and build

Co-authored-by: arpitnath <[email protected]>
2021-12-10 08:43:05 +05:30
Navaneeth Pk
3477f7ff15
Support for running JavaScript as a query ( client-side execution ) (#1507)
* Custom js feature

* Disable transformations

* Fix

* Fix

* Fix

* Icon

* Rename variable OthetSources to OtherSources

* Fix

* Fix

Co-authored-by: Sherfin Shamsudeen <[email protected]>
2021-12-08 13:03:08 +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
Deepanshu Dhruw
8097b62ac1
Updated client-side input validations (#1282)
* added email validation utils
, added input validation for login page
;
'

* updated login page input validation

* added signup page input validation

* added forgotpassword page input validation

* updated reset-password page input validation

* updated input validation for invitations page
2021-10-28 08:25:00 +05:30
navaneeth
2dedcae20a Shallow clone objects while resolving references 2021-10-23 00:41:22 +05:30
Виктор Виктор
d8009fa028
Refactor: removes directly used builtins for Object.prototype (#999) (#1005) 2021-10-13 14:07:14 +05:30
Sherfin Shamsudeen
bea3c7a677
Remove unnecessary break statement added by linter (#829) 2021-09-23 22:11:20 +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
300b054204
Add smooth scroll for suggestion box (#767)
* add smooth scroll for suggestion box

* add empty check for object
2021-09-17 19:32:50 +05:30
Gandharv
1587321f4a
Feature: show errors in codehinter previews (#765)
* add error to suggestion box in codehinter

* rename variable to withError
2021-09-16 17:31:22 +05:30
Navaneeth Pk
8fd05bd779
Add validation for dropdowns (#696)
* Validation for dropdowns

* fix

* fix

* fix
2021-09-06 20:02:09 +05:30
Navaneeth Pk
b12cc7f309
Input validation for widgets (#693)
* Validations

* Fix

* Validation for table cells

* fix
2021-09-06 14:20:38 +05:30
navaneeth
9a0a0fe3b0 Fix error logging for widget reference resolver 2021-09-05 12:41:04 +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
navaneeth
3a090de2d7 Default for customObjects and default color for table text 2021-09-02 13:55:10 +05:30
Navaneeth Pk
d0555f67ad
Customisable font color for string cells (#671)
* Customisable font color for string cells

* Fallback colors
2021-09-02 11:46:26 +05:30
Sherfin Shamsudeen
91b32adaed
Multi-events for action buttons, query params option for Go-to-app action (#560)
* Add query params option to Go-to-app action

This commit adds support for setting query params for the
go-to-app action. When the new app is launched, the passed in
object will be sent as search query params.

* Allow user to enter URL params in multiple input boxes

* Abstract goto-app action logic to a separate container

* Supply necessary newline

* Set 'type' of 'app' property of go-to-app action to 'text'

* List only those apps that has proper slugs for goto-app action

* Modify goto-app action config panel to support Event Manager

* Use EventManager instead of EventSelector for table action config

* Add data migration to make old apps support multiple event handlers

* Fix UpdateDefinitionsForTableActionEvent migration

This commit ensures that the migration recreates onClick event properly

* Fix bug that caused an 'onBulkUpdate' event to be created during migration

* Remove EventSelector

* Add margin above `remove handler` button on Table actions inspector panel
2021-08-26 20:33:59 +05:30
Sooraj
4929834a1b
Chore: Fix broken link to widget reference docs (#259) 2021-06-15 09:35:49 +05:30
navaneeth
75925c4e3b Lodash support for transformations 2021-05-13 15:24:58 +05:30
navaneeth
30847f10e9 Resolve strings with multiple dynamic variables 2021-05-09 00:30:38 +05:30
navaneeth
5a5be80703 Fix for crash while adding more table columns 2021-05-05 07:07:56 +05:30
navaneeth
881ba05fd9 Feature: Edit component names 2021-05-01 22:28:34 +05:30
Navaneeth Pk
8b481ae9f4
ESLint fixes (#138)
* ESLint fixes

* Eslinted
2021-04-30 13:40:57 +05:30
navaneeth
7a3e87bea0 ESLint config and a few fixes 2021-04-30 11:44:03 +05:30
navaneeth
cb36ee9dae Fix for resolver crashing app if js code is invalid 2021-04-26 09:02:02 +05:30
navaneeth
7847ed1ab0 Execute js code as dynamic variables 2021-04-18 22:14:38 +05:30
navaneeth
c49eb98d60 Component: Multiselect dropdown 2021-04-14 22:31:34 +05:30
navaneeth
8239333ed9 Fix for single dynamic vars being resolved as strings 2021-04-14 21:31:25 +05:30
navaneeth
8bd61583b6 BugFixes for: viewer layout, array resolving 2021-04-11 12:38:44 +05:30
navaneeth
b00b08b826 Ability to set name for table columns & map data 2021-04-08 14:37:35 +05:30
navaneeth
e355391a4e Resolve dynamic objects and arrays for queries 2021-04-08 12:50:44 +05:30
navaneeth
93f16f0ed6 Feature: Remove components from builder 2021-04-07 12:54:21 +05:30
navaneeth
2e7eaa7fe3 Feature: Event selector for table action buttons 2021-04-06 19:46:32 +05:30
navaneeth
0483743794 Action buttons for table 2021-04-06 15:31:05 +05:30
navaneeth
10ab817f22 Dynamic variables for postgres queries 2021-04-06 08:44:52 +05:30
navaneeth
bdd8ec3d70 Bindings for components results/other data 2021-04-04 18:41:17 +05:30
navaneeth
ff7c915026 Feature: Dynamic data for tables 2021-04-04 11:56:46 +05:30