Commit graph

1662 commits

Author SHA1 Message Date
Arpit
f078522b78
reverts [Improvement] Suggestion hints (#3074) 2022-05-17 19:53:00 +05:30
Muhsin Shah C P
c49752c819
Resolved height issue (#3072) 2022-05-17 18:15:10 +05:30
Arpit
71200bf28d
fixes container crash on viewer (#3042) 2022-05-11 20:10:48 +05:30
Arpit
91f4bbd709
[Improvement] Suggestion hints (#3040)
* feature: suggestion hints

* removes unwanted vars
2022-05-11 19:05:09 +05:30
Kavin Venkatachalam
b16a74dcf1
[Feature]: PDF Widget (#3035)
* Created PDF Widget

* Added color to page number to support dark mode
2022-05-11 18:51:10 +05:30
Midhun G S
e656ea9259
Relabelling organization with workspace (#2992)
* Relabelling organization with workspace

* placeholder fix

* Bug fixes

* fix

* firefox issue fix
2022-05-11 16:30:25 +05:30
Arpit
863f91c77b
fixes: selectedWidget should only be computed in edit mode (#3037) 2022-05-11 15:59:43 +05:30
Arpit
7c7b011537
[inspector] followup to #2789 (#3027)
* followup to: 2789

* Revert "followup to: 2789"

This reverts commit 8a2b8b90a4.

* followup to: 2789
2022-05-11 15:01:12 +05:30
Navaneeth Pk
e8ca5cbc73
Ability to select multiple widgets from canvas and change their position (#2979)
* Better canvas

* fixes sets the active node to the selected widget on the editor

* removing selectedComponent and fixing currentTab msg alignment for inspector

* useKeyHooks custom hotkey hook

* handles escape key on editor

* handles delete for multiple widgets

* removes unwanted comments

* fixes: all the widgets are deleted at once, in a single action

* hide delete button from widegt config handler when multiple components are selected

* fixes delete button width for long chars

* Revert "fixes delete button width for long chars"

This reverts commit 79dadfa7d3.

* fixes display config handler for selected widgets on layout/container widgets

* subcontainer layer dnd improvement for multi-widget

Co-authored-by: arpitnath <arpitnath42@gmail.com>
2022-05-11 14:43:13 +05:30
Kavin Venkatachalam
7c30a830db
[Feature]: Custom Component Widget (#2960)
* Created custom component widget

* Updated the custom component key

* Added doc for custom component

* Update iframe.html

* Installed HTML parse in dependencies

* Updated script source

* Added scripts to CSP

* Added Skypack to CSP

* Fixed Run Query issue in Viewer
2022-05-10 15:09:09 +05:30
Manish Kushare
acd9ae26cf
Made timeline scrollable on shrinking the height or width (#3013) 2022-05-09 18:55:31 +05:30
Gandharv
5cfb759b73
style: add save text to header (#3010)
* style: add save text to header

* hide message if version is released:

* on version switch

* avatar border +.5px

* fix: tooltips not showing for dynamically added user

* add tooltip for undo-redo
2022-05-09 17:38:46 +05:30
Muhsin Shah C P
b279c4daf1
[feature] Added maximum canvas height property (#2908)
* Added maximum canvas height property

* Solved min-height issue

* Now, will not able enter a height greater than 2400

* Change leftsidebar z-index
2022-05-09 14:06:59 +05:30
Muhsin Shah C P
197f313f66
[Feature] Added textSize style to the text widget (#2948)
* Added textSize style to text widget

* Added new migration

* Edited the migration file
2022-05-09 13:35:02 +05:30
Gandharv
2da1b274fe
Merge main to develop (#3004)
* bump up version

* Fixes new added/deleted query doesnt update on query manager (#3001)

* Bump hotfix version

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-05-09 12:47:12 +05:30
Manish Kushare
03f400bf52
Added loading state for statistics widget (#2882)
* added loading state in Statistics Widget

* removed unwanted uses of hooks and destructured loadingState from the properties
2022-05-08 05:10:51 +05:30
Kavin Venkatachalam
e32819e57b
Fixed default value issue in dropdown widget (#2988) 2022-05-06 18:11:26 +05:30
Gandharv
1716213247
Chore: add option to enable/disable multiplayer feature (#2984)
* chore: add env to enable/disable multiplayer feature

* fix merge conflict

* rename env

* add default true

* add null check on ymap
2022-05-06 12:29:50 +05:30
Manish Kushare
817e367fdd
New widget: vertical divider (#2971)
* created VerticalDivider widget

* updated widget icon

* changed the width of the widget container, placed the vertical separator at the center of the widget
2022-05-05 20:03:12 +05:30
Arpit
ee12e2de5b
Style fixes/improvements for sidebar inspector (#2986)
* style fixes/improvements to sidebar inspector

* node icons style fixes
2022-05-05 20:01:57 +05:30
Gandharv
8878a094eb
Added undo redo actions to right sidebar (#2973)
* style: add undo-redo action buttons

* added style

* dark mode fixes

* reverse order

* update ymap on undo-redo
2022-05-05 17:22:14 +05:30
Kiran Ashok
45fc779ef4
Bugfix :: Remove scrollbar in homepage (#2982)
* removing scroll from homepage

* updating height of page
2022-05-05 17:17:48 +05:30
Arpit
c8fbd62502
[Improvement/feature] Redesigned application inspector 🚀 (#2789)
* JSON Tree Viewer component: init

* JSON Node indicator

* Node indicator and NodeString

* function to get current node type and render component accordingly

* Handles Object, Array, String type

* Show/hide node identifier for only array and object with more than 0 items

* adds option to render node icons

* inspector json-tree: queries icons

* inspector json-tree: component icons

* fixes min/max width for the inspector popup card

* renames node details: keys to entries

* fixes getting the type of the currentNode

* inspector styes and style fixes for string, bools and number

* handles styles for undefined and null type

* removes type label for null and undefined

* fixes node margins

* adds option to use indentation node block (css border for node groups)

* improvement: update pinned icon as per pinned state

* fixes expanding and flatenning  the first element of a nested list

* fixes length label displays false, should always be number.

* handles function type

* fixes margin for String nodes

* inspector styles

* updates hexacode for selected node bg

* styles fixes

* adds copy-to-clipboard for each nodes

* show hide buttons for actions on mouse enter

* adds: delete widget from inspector popup

* adds: widget selector action

* tooltip for showHide options action buttons

* refactor

* adds: runQuery action for queries

* removes icons for root nodes for inspector

* Toggle icon (NodeIndicator) should should be displayed for Object and array type (0 length)

* hide node indicator for functions

* removes hover for nodes

* styles fixes

* on hover icons are not visible for expanded items

* style updates: selectable node

* adds onSelect callback option on lables

* adds: on expand with onclick lables props

* fixes cursor styles on Mouse enter

* fixes copy to clipboard action: from value to path

* fixes currentPath

* copy path to clipboard, return absolute path

* fixes broken widget icons

* selecting a widget in editor, selects the component/node in the tree

* fixes app crash when adding runjs queries to the json-vieweer

* fixes text-transformation to active nodes

* fixes with selectedWidget in the editor, expandable node was alwasys the widget node

* adds: dark theme

* clean up

* error boundary

* fixes: current node and hovered node update callback on mouse enter

* fixes options alignmeny

* adds more actions menu option popover

* refactored

* fixes reverse selection fo widget and node

* fixes radio button svg icon

* fixes: two child nodes of different parent get the active class

* fixes popover menu options

* fixes selected node display:hidden

* clean up

* toggle icon should not expand if empty

* adds tooltip for more actions

* spliting into different files

* minor improvements: toggling icon should select the label node, selected node if string should not updated to the last selected widget node

* resolves lifecycle method changes

* resolves changes

* resolves changes

* revert lock file changes

* Revert "revert lock file changes"

This reverts commit 10de6accf7.

* fixes: app crash, undoing one widget from canvas

* adds a comment for expand with labels

* minor enhancement:onMouseEnter updates the current hovered node

* minor enhancement: differentiate hovered node
2022-05-05 13:54:12 +05:30
Midhun G S
0545528504
Support for multiple workspaces 🚀 (#2778)
* multi org changes

* Initial changes

* changes

* manage sso page

* Multi-organization changes

* Multi organization changes

* multi-org changes

* multi-org changes

* multi-org changes

* multi-org fixes

* env variables app.json changes

* multi-org-fix

* user invitation token fix

* multi-org group permission fix

* multi-org app privilege

* google oauth fix

* Remove enable signup for form login

* Multi organization fixes

* multi-org user invite flow changes

* multi-org sign up fix

* rebase and multi-org fixes

* revert testing logs

* test logs revert

* migration changes

* migration file fix

* error message changes

* git login for private email fix

* dropdown fix

* test cases

* e2e test cases added

* test cases fix

* documentation changes

* testcases fix

* testcases added

* replace findOne with findOneOrFail

* accept invite testcases

* login page fixes

* added encrypted tag

* review comments

* migration fixes

* improvements

* manage sso loading fix

* review comments

* migration file changes

* new organization creation bug fix

* added e2e testcases

* added testcases

* Update data_sources.controller.ts
2022-05-05 12:38:42 +05:30
Gandharv
51cd932f73
Tooltip name pointing to logged in user (#2968) 2022-05-04 16:28:40 +05:30
Manish Kushare
c6aa14ce72
Exposed variable of timer is set to default value after reset (#2950) 2022-05-04 08:11:27 +05:30
Muhsin Shah C P
722a701b22
[Feature] option to delete a data source 🚀 (#2790)
* Implemented frontend
- icon and confirmation modal
- delete fn in services

* Implemented backend Endpoint
- Changed confirmation modal msg

* Added unit test for delete operation

* Changed the modal msg again

* Fixed delete btn alignment issue

* Resolved a bug

* changed popover width

* Now delete endpoint will only return the status

* Added a new spec to test delete a data-source from a specific version

* Added deleteDataSource ability

* Removed commented code

* Added BadRequestException in else case

* Resolved an error

* Changed confirmation modal
2022-05-02 18:42:14 +05:30
David Volquartz Lebech
ba32c63edb
Fix error in create version modal (#2942)
This commit fixes a bug that occurs in the app version modal popup when
an existing version is chosen from the dropdown menu.

Fixes #2941
2022-05-02 16:06:39 +05:30
Akshay
f3844ae8e6
Fixes the bug in sign up flow (#2934) 2022-04-29 15:46:01 +05:30
P YOGESH
c6576d8b1e
Fix the error message email not found scenario in password reset (#2928) 2022-04-28 19:36:48 +05:30
Gandharv
9dbe6368e6
fix: able to edit app post version released (#2915)
* fix: able to edit app post version released

* feat: make datasources & queries realtime
2022-04-28 16:46:27 +05:30
Arpit
7126beb14a
[chore] fixes eslint warning and errors (#2917)
* chore: lint warning and error fixes

* reverts changes to daterangepicker.jsx
2022-04-28 15:03:05 +05:30
Eyuel Berga Woldemichael
0afb3defdd
Fix key-value input increment (#2844)
- add an extra condition to check if the key and value inputs are not empty
2022-04-28 11:37:09 +05:30
Manish Kushare
16ce6f1f42
added react-select library to create app version (#2903)
* added react-select library to create app version

* made the background color of  dropdown consistent with the current theme
2022-04-27 18:21:50 +05:30
Muhsin Shah C P
90e192dcb1
Added a field for sending JSON body with Rest Api Queries (#2667)
* updates body ui toggle

* updates

* Implemented JSON body option

* Tested and resolved some issues

* Changed body json toggle name

* Removed codes of converting json to key ,value pairs
    - Resolved array problem
    - Now json body will be seperate option

* Removed unwanted lines

Co-authored-by: stepinfwd <stepinfwd@gmail.com>
2022-04-27 15:21:30 +05:30
Manish Kushare
9eed9b1134
Fixes text widget not showing zero and false (#2877)
* fixed Text Widget not showing zero and false

* made the required changes
2022-04-26 19:34:39 +05:30
Muhsin Shah C P
efeef4d0db
Resolved tabs highlight color issue (#2900) 2022-04-26 19:30:36 +05:30
Gandharv
010a31304b
Style: show tooltip on avatar hover (#2913) 2022-04-26 19:28:24 +05:30
Gandharv
8778428331
Style: hide resolved icon if not the thread owner (#2911) 2022-04-26 19:27:28 +05:30
Gandharv
571d3642b8
Fixes realtime update for global settings (#2898) 2022-04-26 14:18:34 +05:30
Muhsin Shah C P
dcee0885d6
Feature: OpenApi import plugin (#2728)
* Initialized OpenApi plugin

* Added definition field to manifest file

* Added an openapi parser

* Implemented JSON/YAML resolver
- Removed swagger parser lib
- Added a field for choosing definition format type
- Implemented a resolver for resolving $ref

* Implemented a basic operations drop down from spec paths

* Added params and body ui

* Now, can view general parameters and servers

* Added an option to override general params
- Resolved a bug

* Implemented basic openapi plugin
- Added got lib
- Tested basic queries

* Added one more method

* Resolved a common bug

* Working on Parsing definition from datasource modal
- Created new form component for openapi
- Populated select array from security array

* Added ui for authentication

* Added bearer & basic plugin code

* Resolved some ui issues of Apikeys auth option

* Added apikey auth

* Resolved an issue
- Also replaced validate btn with auto validation
- Now spec will be added to db from data-source modal

* Added error text to show validation error

* Now spec will load from props for query manager

* Added some padding to operation description

* Added ui for openapi oauth2 auth

* Implemented oauth2

* Fixed a state issue with a temporary hack

* Now we can show multiple same auth types

* added the icon

* Resolved a bug & improved multiple apikeys process

* Resolved some realtime parsing error

* Resolved a bug from options fn

* Resolved PR changes

* Updated documentation with brief details about the open API plugin

* Removed unwanted package

* Changed if-else to switch

* Code changes

* added setLoadingSpec fn to catch section

* Solved typos and error in doc

* Resolved dropdown issue

* Resolved a bug

* updated openapi icon
2022-04-26 14:14:12 +05:30
Muhsin Shah C P
b3ca2b64fd
Feature: added basic & bearer auth to Rest API (#2742)
* Added basic and bearer auth fields

* Implemented basic and bearer auth

* Changed token name

* Added encrpyted icon along side label

* resolved a basic-auth bug

* Refactored basic auth code
2022-04-22 13:01:08 +05:30
Muhsin Shah C P
380ea73b30
[Feature] Added a feature to show maintenance state of an app (#2820)
* Implmented toggle and confirmation modal
- Also maintenance state will store in db as a global setting

* Added is_maintenance_on column to apps table

* Now maintenance state will store in app entity

* Lauch btn will be disabled for on-maintenance apps

* Users can't see preview using shared links when app is on maintenance

* Changed toggle name

* Changed maintenance dialog message
- Changed button text
- Fixed some alignment
2022-04-21 22:08:54 +05:30
Olaleye Blessing
1ee27bb004
bugfix :: disable cursor when pagination icons are disabled (#2867) 2022-04-21 15:35:46 +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
Eyuel Berga Woldemichael
d80253e0ca
Fix user group not creating on press enter (#2869)
- add onSubmit handler to form
- made the name input a required field
- removed the newGroup state(it's not being used)
2022-04-21 08:38:02 +05:30
Arpit
ab7ba7c464
Followup to #2826 (#2870) 2022-04-21 08:36:54 +05:30
Akshay
431dc961cd
Feature: Add data transfer object layer to validate and sanitize user inputs (#2694)
* add sanitize-html to be used with dto

* add dto for controllers

* add vaalidation to check token not empty

* update test config

* add validation pipe on test setup

* fix spec

* fix params casing

* update dto for empt checks

* update reset password dto

* only check for options to be defined

* update specs

* update dto and spec

* Remove invalid decorator

* update package-lock

* update thread dto

* update user dto

* fix email

* make comment req params attributes as optional

* fix specs
2022-04-20 14:46:57 +05:30
Eyuel Berga Woldemichael
6d7a92382d
Fix inconsistent action button on share modal (#2854) 2022-04-19 20:46:28 +05:30