Commit graph

33 commits

Author SHA1 Message Date
Sherfin Shamsudeen
17fdf58cef
[HotFix] Set table action usability issues (#1923)
* Expose setPage action of table on application load itself

* Coalesce target pageIndex to 1 for set table page action

* Do not fire onPageChanged for set table page action

* Change exposed pageIndex when set table page action is fired

* Use setExposedVariable to set pageIndex on set table page action

* Do not display functions on side bar inspector
2022-01-24 15:37:12 +05:30
Arpit
a2b19934e8
[Hotfix]: Adds current user's groups the inspector in the editor (#1875)
* adding groups which lists all the groups the current user belongs in globals [inspector(leftsidebar))]

* adds a check for possibility exists for a missing ref
2022-01-20 13:43:27 +05:30
Akshay
823833b12e
Feature: Versioning data sources & queries (#1620)
* add migrations for versioning datasources and dataqueries

* eslint migrations folder

* update ormconfig to use app context in migrations

* make app to make use versioned data sources and queries in editor

* app import should honor data source and query versioning

* register ts-node path on running migrations

* load data queries when finding versions

* update e2e tests

* handle for invalid oauth2 datasources

* update e2e tests

* introduce db migrations access lock to handle concurrent backfill

* scope migrations by missing version id

* fix import export without data source/query versions

* fix import

* fix spec

* handle invalid data on migration

* fix import

* remove console logs

* handle new app imports

* fix version check

* fix async creation

* explicitly add timestamps on version import
2022-01-04 13:34:12 +05:30
Muhsin Shah C P
aee905aa9f
added resize option to inspector (#1725) 2022-01-04 08:51:23 +05:30
Arpit
210366ee3e
[improvement] Rest API query response-request (#1630)
* rest api query response-request

* remove console.logs

* add req/res obj to sidebar inspector: queries

* remove console.logs

* add collapseStringsAfterLength to restapi json comp

* fix typo convention

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2021-12-28 16:09:38 +05:30
Arpit
fdcbd07185
[Improvement] Datasource popover layout (#1634)
* new layout for datasource popover

* datasource modal footer info

* popup btn

* render datasource from list

* copy to clipboard

* fixes modal footer info bg in darkmode

* fixed buttons in darkmode

* fixed typo

* fix btn styles

* removed toast for copytoclipboard

* datasource popup ui

* remove comments
2021-12-28 11:03:11 +05:30
Gandharv
d97ad3e360
add definition default values (#1549) 2021-12-09 17:33:13 +05:30
Gandharv
8591dc4362
Add new navbar changes (#1538)
* Add new navbar changes

* css fixes

* canvas bg color picker

* css fixes

* add minimize icon

* add spacing when query panel closed

* add svg icon files

* reduce create button size and align to middle

* fix global settings styles

* retain selected data source on panel height change
2021-12-09 09:13:32 +05:30
Gandharv
13a3a2c38c
Add global settings popup to left sidebar (#1532)
* add global settings popup inside inspector

* remove comment badge

* move global settings to left sidebar
2021-12-08 12:54:10 +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
76e86bc56e
Chore: rename files to camelcase (#1388) 2021-11-10 14:13:22 +05:30
SAI SUMANTH KUMAR
6f0183c32f
Fixed : Show tooltip on comments tab which says indicates that the app needs to be saved to open comments (#1359)
* added tooltip

* Update frontend/src/Editor/LeftSidebar/SidebarComment.jsx

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>

* Fix tooltip not showing up on sidebar item when disabled

Fix tooltip not showing up on sidebar item when disabled

* Remove if statement around onClick handler - sidebarcomment
2021-11-09 09:23:38 +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
Bhavin Ag
37d3bb4ae9
update theme toggle position to bottom (#1186) 2021-10-21 22:57:31 +05:30
Sumit Sawant
9beec28eeb
Refactor: use forEach instead of map (#1022) 2021-10-14 08:01:11 +05:30
Dainius Lukša
68566a6126
Confirmation dialog on app builder leave (#989) 2021-10-13 09:32:18 +05:30
Santosh Bhandari
1e285ce31b
Update the color of buttons to be same (#968) 2021-10-11 11:34:59 +05:30
Arpit
c96a6b4eea
adding transformation error logs to debugger (#938)
* adding transformation error logs to debugger

* error data in debugger

* remove console.logs

* transformation error

* refactored
2021-10-11 08:30:26 +05:30
Arpit
677e1e9d6a
Fixes leftsidebar pinned btns styles when darkmode is true and false (#847) 2021-09-27 16:23:07 +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
Akhil G Krishnan
eb73c9cd5b
Fix for broken pin icon of popovers in dark mode (#802)
* Fix: Pin icon white  stroke showing in dark theme

* Secondary outline color added for pin button.
2021-09-21 17:30:14 +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
Gandharv
dcecde5617
Add bg if the sidebar item is selected: (#730) 2021-09-12 09:54:47 +05:30
navaneeth
4f0c08126c Popover pin should be darker when pinned 2021-09-01 21:29:18 +05:30
Arpit
b140e72f11
Feature: pinned popovers for Debugger and Inspector (#651)
* pinned popover for debugger

* pinned popover

* inspector pinned icon aligned
2021-09-01 21:22:47 +05:30
Arpit
d1d3eb1421
Feature: clear button debugger (#624)
* 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

* feature: notification-badge for debugger

* show badge when notification count is greater than 0

* notification badge

* removed

* not req for badge

* clear button: debugger

* json alignment
2021-08-30 16:23:12 +05:30
Arpit
a6e2bcec6d
Feature: notification badge-indicator [debugger] (#616)
* 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

* feature: notification-badge for debugger

* show badge when notification count is greater than 0

* notification badge

* removed

* not req for badge

* resolves

* badge styles

* edge case
2021-08-29 19:46:33 +05:30
Arpit
8f9f40f720
Feature: timestamps for error logs (#623) 2021-08-28 09:10:26 +05:30
Arpit
ddef2b0600
Sort logs according to time (#625) 2021-08-28 09:09:31 +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
6277061938
Hide tooltip when the left sidebar icon is clicked (#531)
* Fix the bug

* dealy tooltip and postion it to right

Co-authored-by: “Apoorv <“tiwari.apoorv1316@gmail.com”>
2021-08-18 22:16:24 +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