Commit graph

391 commits

Author SHA1 Message Date
Kiran Ashok
f64df9162d
SSO & multi workspace helper page (#3091)
* sso page

* updating with sso id , changing

* updates

* dynamic url  build based on enable/disable or workspace and sso

* removing logs

* removing logs

* removing private route

* pr updates :: making route public , content update

* fixing issues

* upadting few content

* removing logs

* bugcheck

* typo fix

* ui updates

* id fix

* link fix

* updated with suggested pr change

* updated with pr suggestion

* style update

* updates content

* updates

* style removal ::

* updated some styles

* typo fix

* style fix
2022-05-30 10:47:13 +05:30
Kiran Ashok
e0e8b6f50b
Feature :: Image widget enhancements (#3007)
* adding loadingstate and object fit style

* adding zoom functionality

* pan image function

* fixing pan for image

* pan and drag fix image

* library install

* pr changes:: hover button , object fit made dropdown

* fix for old apps

* updated docs
2022-05-16 14:40:44 +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
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
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
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
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
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
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
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
Sherfin Shamsudeen
18ee640496 Merge branch 'main' into develop 2022-04-15 19:09:06 +05:30
Kiran Ashok
ec0bd7d2f4
fix for button loading state bug (#2823) 2022-04-14 14:41:30 +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
Kiran Ashok
fb3465581e
Style updates for widget styles section of the widget inspector (#2757) 2022-04-12 21:01:47 +05:30
Manish Kushare
9a7db2fb60
Style fix for Dashboard Nav link menu placement (#2678)
* added custom style in custom.scss to adjust the placement of the nav link menu in the dashboard

* added bootstrap class to position the dropdown menu-list in the dashboard

* removed unwanted spaces in custom.scss and empty css class in theme.scss file
2022-04-05 21:52:29 +05:30
Manish Kushare
b39b3cf3bf
Fixes issue that caused confirm page to not scroll (#2725)
* made confirm page scrollable

* added event in lifecycle method to make confirm page scrollable

* removed unnecessary changes and removed overflow-y hidden from theme.scss to make page scrollable

* removed unwanted code
2022-04-05 21:48:02 +05:30
Abhinaba Adhikari
ea09f81db3
Set custom Button Loader color (#2292) 2022-04-05 16:57:22 +05:30
Olaleye Blessing
afcefd634a
add transition to search input width change (#2722)
* fix: add transition to search input

* fix: add transition class to search input
2022-04-04 09:58:32 +05:30
prashantpaidi
24237e8a68
Bugfix: Debugger error indicator badge misaligned (#2700) 2022-04-01 20:26:11 +05:30
Kiran Ashok
b42659146a
[ Bugfix ] :: Date range picker width and height not growing with bounding box (#2628)
* fixing daterange picker width and height

* css update

* adding end and start default dates

* removing unwanted code
2022-03-31 16:03:56 +05:30
Muhsin Shah C P
a56c272180
Feature: Added a feature to show raw query responses (#2562)
* Implemented json/raw preview modes

* Added dark theme

* Changed some bg colors

* made text copiable

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-03-31 16:00:09 +05:30
Kiran Ashok
1d67752aca
Bugfix :: Fixing alignment of FX button (#2438)
* fx alignment debugging

* updates

* fixing positioning

* fixing positioning

* resolving undefined issue

* fixing positioning in style tab pane

* code cleanup

* pr changes :: aligning fx with label

* adjusting margin
2022-03-31 15:14:45 +05:30
Manish Kushare
7d9d49d1ca
made the tag and options of dropdown widget aligned horizontally (#2685)
* made the tag and options of dropdown widget aligned horizontally

* Use bootstrap classes to remove margin and padding for dropdown label

* Remove unnecessary css

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-03-30 20:31:09 +05:30
Muhsin Shah C P
f0ed2764fd
Feature: port multi select to react select lib (#2551)
* Ported multi-select to react-select lib

* Changed some values

* working on all option select / unselect feature

* All clear event

* Changed exposed values

* Resolved some ui issues
- Changed values height to a fixed size
- Fixed close btn alignment

* Removed 'All' option from selected values section

* Changed some paddings and sizes

* Resolved scroll and label width problem

* Adjusted some margin

* Removed scrolling from container
- scroll only values

* Hide scrollbar

* Resolved indicators alignment

* updated multiselect with searchable select

* Use only multiselect with checkboxes

* Alignment fix for multiselect dropdown

* Make multiselect dropdown adjust according to height

* Add custom rendered for multiselect options

Co-authored-by: stepinfwd <stepinfwd@gmail.com>
Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-03-30 14:51:22 +05:30
Manish Kushare
7c6f8dae74
Adding react-datepicker library instead of react-datetime library in datepicker widget (#2619)
* initial commit

* made datepicker functional

* update date format

* made border-radius and adjusting width and height of the input element to the datepicker container functional

* add year and month selection  dropdown & upon enableDate false, only showing time selection

* changed dropdown year display

* adjusted width of the datepicker widget

* added React.forwardRef inside ExampleCustomInput function

* Show month dropdown on mode select for datepicker

* Slight refactoring

* Display default date on load of DatePicker widget

* Apply brand colors for date picker

Co-authored-by: arpitnath <arpitnath42@gmail.com>
Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-03-29 14:51:58 +05:30
Arpit
9acee3330e
Fixes codehinter field margin for text (#2557) 2022-03-23 14:04:48 +05:30
Kiran Ashok
e4b43e2df7
[ Enhancement ] :: Making fixed headers for query panel and properties/styles sidebar (#2601)
* fixing query panel header

* fixing right siedebar header : making it fixed

* fixing bug in higher resolution

* fixing position

* updating pr changes : dark mode color issues
2022-03-23 13:50:35 +05:30
Abhishek K M
8baa8190d6
Fixes text color in dark mode (#2585) 2022-03-21 09:05:02 +05:30
Kiran Ashok
329e5e29fe
[UI improvement] Datasource selector in query manager updated from dropdown to cards (#2469)
* updating query manager datasource listing ui

* ui updation for datasource in query manager

* including back button after selecting datasource

* handling ui break when more data source is added

* updating key

* removing unused code

* removing unused code

* updating ui for darkmode support + testing clearing of fields during backbutton click

* fixing border

* testing updates for clearing fields for stripe,rest

* updated transformation alert

* indication for selected data source

* updating styles for dark mode

* darkmode bugfix

* updating transformation style to enable popover

* bugfix

* css updates for popover

* style updates

* aligning icon

* updating styles

* cleanup

* state name updated

* removing unwanted things from ui during create query

* lifting state uo :: fixing intermediate state issue while clicking add query during query edit

* update

* fixing typesense icon
2022-03-18 10:27:35 +05:30
Muhsin Shah C P
d10625ca4c
Changed rest api query builder design (#2472)
* Changing rest api query builder design
- Changed vertical tabs to horizontal
- Removed key,value group header
- Changed icons
etc

* Removed unwanted spaces & fixed dark mode

* Added delete option to the 0th key value pair also
- Changed url field's width

* Resolved a bug

* Fixed size & alignment issues
- Changed some bootstrap row classes to flex layouts

* cleaning code

* Added some styles

* Fixed minor ui issues
2022-03-17 12:50:55 +05:30
Kiran Ashok
243c671acd
Fixes alignment of query search field (#2521)
* fixing padding issues in query panel search

* fix for monitor screens

* positioning query panel

* fixing position of all popover in left sidebar

* updates

* updating header margin to be equal and removing unwanted margin in query list
2022-03-16 22:19:48 +05:30
Arpit
bcb24d263a
Fixes placeholder alignment (#2513) 2022-03-16 07:36:38 +05:30
Arpit
b8690a23be
[Bugfix] Fixes : widgets get focused on viewer mode when hovered (#2519)
* fixes On hover, widgets get focused on viewer mode

* updates classname

* resolves cls
2022-03-15 17:48:07 +05:30
Naveen Pandurangi
8147c46f27
Increase the width of search field when focused (#2506)
* FIXES #2451

Hide query panel tabs if a data source is not selected.

* FIXES #2428

Increase the width of search field when focused

* Update code
2022-03-15 08:05:06 +05:30
Kiran Ashok
e85d5f75c6
Increase query panel width (#2500)
* increasing query panel width

* update
2022-03-14 10:16:33 +05:30
Kiran Ashok
442c470ead
Redesigned left sidebar to increase width and include labels (#2482)
* setting minimum width for left sidebar

* updated left sidebar width

* left-sidebar width updation and including label

* adjusting margin for changed width

* bugfix darkmode

* fixing bug in margin of sidebar

* updating icon for inspect

* aligning canvas for changed width

* adjusting margin of sidebar popovers for changed sidebar width

* margin bugfix
2022-03-11 08:36:38 +05:30
Maurits Lourens
498ddcd836
Fix inconsistent border width of query panel (#2490) 2022-03-11 08:23:15 +05:30
Kiran Ashok
b83a83df36
Making app "create new version" dropdown into a scrollable container (#2465)
* fixing app vrsion modal

* completed fixing bottom bar

* fixing typo
2022-03-09 16:48:50 +05:30
Maurits Lourens
4bdf39ad73
Don't overwrite the background color of the jet-container (#2459) 2022-03-09 08:36:38 +05:30
Aniket Pawar
73789dfceb
[Bugfix] Whiggling fix on App Card Focus (#2449) 2022-03-08 09:26:40 +05:30
Kiran Ashok
f7ddae899f
Bugfix/Fixing text overflow issues in table for long text (#1948)
* updating text wrap issue in table

* functionality and styling to allow text wrap feature for overflow in table

* updated to include horizontal scroll action

* update :: meaningfull naming update

* pr review changes

* updated to add hide option , code optimizing

* merge conflict

* fixing hide option breaking layout

* overflow field for only possible fields

* updating key to avoid confusion

* cleanup

* fixing scroll issue

* merge error

* hide theme updated

* text wrapping avoided for column type text

* typo fix
2022-03-03 14:11:38 +05:30
Akshay Sasidharan
18c4d91016 Merge branch 'main' into develop 2022-02-28 14:42:09 +05:30
Sherfin Shamsudeen
a9a991b8a1
Hotfix: Multiselect fix (#2374)
* Set background color of selected multiselect option to brand color

* Do not close multiselect options on option select
2022-02-28 14:07:13 +05:30