Commit graph

1589 commits

Author SHA1 Message Date
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
Arpit
886238fcc9
[Bugfix] stripe query selection dropdown menu should display the selected component value on saving the query (#2106)
* fixes should display selected component value on saving the query

* handles undefined props to select component

* fixes query failure and state update

* removes log

* fixes the crash

* removes test files

* fixes query options state: selected operation should display field on query save

* fixes query options

* fixes stripe query crash: on mount

* adds remove params function

* Update frontend/src/Editor/QueryManager/QueryEditors/Stripe.jsx

resolves

Co-authored-by: Gandharv <gandharvkumargarg@gmail.com>

* resolves current value  would lead to being a comma(,)

* resolves current value  would lead to being a comma(,) to null

* resolves review changes

* clean up: refactored

Co-authored-by: Gandharv <gandharvkumargarg@gmail.com>
2022-04-19 16:26:39 +05:30
Gandharv
40420ee591
feat: Add realtime collaboration (#2517)
* feat: add realtime collaboration

* reduce delay in debounce

* feat: add realtime cursors

* feat: add realtime avatars

* add current user to the online users list

* add border color to the avatar

* feat: allow multi user to edit multi-versions simultaneously

* add getOne fn for fetching single api + avatar component

* fix: set appDef from api call

* replace webrtc with ws

* move yjs to separate port (temp)

* run on same port

* fix: update ymap when styles have changed

* - Add static list of colors
- Show the username on hover

* fix: cursors not showing up

* fix: review comments

* remove unused vars

* add new cursor style

* - Run yjs connection on a different path
- Add zindex to cursor such that query editor has precedence

* fix: event emitter bug + position bug

* use shorthand

* cursor style changes

* fix cursor positions

* inc zindex

* change max avatars to 3
2022-04-19 16:07:39 +05:30
Dinath
fe3895c9eb
Minor alignment for timeline title (#2849) 2022-04-19 08:00:49 +05:30
Arpit
9b285dacf5
[Bugfix]: Allow firing onSearch event of Table widget irrespective of server-side search is set to true or false. (#2660)
* resolves onsearch event for cliendside search

* removes un-used props
2022-04-18 23:39:41 +05:30
Kiran Ashok
5c3d8ffa71
[ Feature ]:: Datepicker exlcudedates addition (#2751)
* adding excluded dates property

* updates :: writing date parse function

* update parser

* logic update

* logic updated

* reimplemented logic for excluded dates

* typos updated

* pr changes

* pr changes

* cleanup

* docs updated

* default value changed

* cleanup
2022-04-18 23:12:50 +05:30
Muhsin Shah C P
f98c087e99
[Bug-fix] Date picker dropdown breaks table row (#2803)
* Solved a style issue

* Solved the date picker issue

* Solved table date picker ui issue
2022-04-18 23:02:58 +05:30
Eyuel Berga Woldemichael
31b4195aa2
Add count of elements to new datasource modal (#2846) 2022-04-18 20:23:31 +05:30
Kiran Ashok
58893c5139
[ Feature ] :: svg widget (#2806)
* svg icon

* svg component

* cleanup

* name updated

* name updated

* fixing overflow issue

* dafault image
2022-04-18 19:08:50 +05:30
Colton Almaraz
750a7fadd1
Set newGroupName to null on cancel (#2835)
* Fix: set newGroupName to null on cancel

* Fix: added comma
2022-04-18 07:03:03 +05:30
Kiran Ashok
74c839498b
Improving codehinter UX for better typing (#2796)
* checking keystroke for backspace and enter

* cleanup
2022-04-17 23:01:15 +05:30
Arpit
175820ea31
[Bugfix] On dispatching Undo ⌘Z or Redo ⌘+shift+Z actions to a component on the editor should also update the internal state or props for the children. (#2826)
* fixes currentState should receive updates on appDefinations gets a new update [undo]

* update the internal state or props for the children.
2022-04-16 06:50:46 +05:30
Sherfin Shamsudeen
18ee640496 Merge branch 'main' into develop 2022-04-15 19:09:06 +05:30
Manjunath
78560933e3
Move documentation link in transformation popover to a new line (#2832)
* Moved read documentation to new line

* added period
2022-04-15 18:43:42 +05:30
Ajith KV
5abdbce06c
Cypress test for login functionality (#2801)
* Added cypress and other denpendencies

* Added data-cy attribute for elements

* Added cypress test for login functionality

* Reverted unwanted files
2022-04-15 14:29:17 +05:30
Kiran Ashok
ec0bd7d2f4
fix for button loading state bug (#2823) 2022-04-14 14:41:30 +05:30
Mathías Donoso
8826c9f5ce
Updated widget names that were lowercase (#2817) 2022-04-14 09:27:19 +05:30
KaviiSuri
4b5b8b1d19
Centered App Version in Editor (#2644)
* Centered Text in App Version Manager dropdown

* Centered Text in App Version Manager dropdown
Fixes #2570

* resolved all comments

* reverted package-lock
2022-04-14 00:19:50 +05:30
Sherfin Shamsudeen
fda71f04e0
Ensure listItem is exposed for set/unset custom variables handler (#2813) 2022-04-13 15:42:00 +05:30
Kiran Ashok
fb3465581e
Style updates for widget styles section of the widget inspector (#2757) 2022-04-12 21:01:47 +05:30