Commit graph

154 commits

Author SHA1 Message Date
Sherfin Shamsudeen
d6a72b50bd Merge develop to v2-beta 2022-12-27 20:10:33 +05:30
Muhsin Shah C P
44d450725a
[fix] Redirect URL didn't work for preview apps (#4997)
* Fixed redirect URL Issue
- refactored the code
- added intercepter (valid app check)

* fixed another code

* code refactoring
2022-12-20 14:53:59 +05:30
Arpit
f32ce7d14a
fixes: For empty apps with a single page, the preview page is breaking. (#4982) 2022-12-19 18:25:46 +05:30
Arpit
ff4e23d780
[v2-beta/improvement] adds support for set and unset page variables actions (#4943)
* adds support for set and unset page variables actions in runjs

* Ensure that page events are run on app load on viewer

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-12-13 12:04:11 +05:30
Sherfin Shamsudeen
8ba30e4396
Do not invoke page switching logic on initial viewer load (#4952) 2022-12-13 11:05:13 +05:30
Sherfin Shamsudeen
642c5caa71
Feature/multi page applications (Task ID - CU-2h1bfvw) (#4729)
* Add routes for multi-page apps

* Modify Editor, Viewer and Inspector to accept new app structure

* Show a page selector on left side bar

* Align component deletion logic with new app schema

* Make subcontainer work with multi-page apps

* Load components state properly in viewer

* Use UUID instead of handle for pages

* Display sidebar on viewer to switch pages

* Add proper URL suffixing for pages in viewer

* Add action to switch page

* Revert translation file back to its pre-existing linting

* Fix bug that caused modal to not open/close

* Add support for query params in page switch

* Fix the issue that caused navigation to fail while accessed via slug

* Add missing SwitchPage file

* Add support for page level variables

* Add migration to convert existing apps to new schema

* Add rollback for converting multi-page definitions back to single-page

* Fix migration for multi-page apps

* Adapt import/export service for multi-pages

* [improvements] Multi-page applications (#4755)

* UI updates for page selector popup card

* delete page

* delete page check: if only one page exits

* switch to home page if the selected page is removed

* adds and switch to new page

* updating page name

* updates to home page and starting page

* handle updating the home page when home page is deleted

* search box for filtering pages and minor style updates for the page handler card

* header search box style fixes

* for creating a new page, page handle needs to be unique

* seperating into smaller components

* updated pinned icon for page selector styles and settinf styles

* Leftsidebar header ui component

* handle dark theme

* page handle ui and dark theme fixes for page menu

* page handler edit modal

* pinned state and update pinned state for menu options triggered

* dark theme fixes for edit modal

* handle on update should not be empty or prev

* page handler updater

* added loading state for saving

* handles cancels

* fixes slug ui

* fixes crash for older app versions

* updates the query params when handle gets an update

* update homePage to homePageId

* removes console.log

* go back to the popover for modal close

* fixes: Difficult to select page

* fixes: Difficult to select the three-dot menu

* fixes: on visiting the root url, navigate to homepage on viewer

* adds tooltip for url

* updates the page selector sidebar with sync with query manager

* refactor and cleanup

* refactor and cleanup

* Compute component state when page is switched

* modal should not close on click outside

* disable save button if there is not change in the page handle input

* should show/hide page menu when hovered

* page icon

* updates delete icon for disabled state

* query manager should always be on top of page selector

* checks if homePage key exists in pages def

* updates page handler menu

* updates the clear icon

* page handler menu position

* page handler menu position

* handle icon

* alert msg

* global settings handler for updating viewer page navigation

* show/hode page navigation for viewer

* info text for toggle

* Multipages:with sortable list [DnD] (#4783)

* applied sortable list

* on sort updates the definitions

* fixies: app crash for dnd

* viwer: canvas width should be 100% when navigation drawer is disbaled

* fixes: homepage/startpage  reload

* clean up

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

* Multipage UI viewer (#4801)

* new ui changes for viewer pages

* fixes postions for debugger and datasources popover

* removes console.log

* Multipage : hide page and unhide page feature (#4803)

* adds: ability to hide pages

* hides pages in viewer

* unhide page

* hide icon

* allow accessing hidden pages from url

* add: duplicate page (#4802)

* add: duplicate page

* do not copy the  same references from the original page

* page name and page handler should be unique for duplicate pages too

* Add support for on-page-load events

* Add icon from page settings menu item

* Convert existing templates to multi-page schema

* error logs for page level and app level errors (#4842)

* Adapt comments feature for multi-pages

* [Bugfix] multipage - page menu interactions (#4844)

* fixes: menu popup interaction

* fixes: on modal input focus, we switch the page

* Adapt multi-player to multi-pages

* Add editingPageId to ymap

* Log self, others and editor props in real-time avatar generation

* Save editing page id to appDef

* Add editingPageId to presence in RealtimeCursors

* adds no results ui for empty search results (#4869)

* page icon updated (#4870)

* fixes:Version switching crashes if the target version does not contain the current page (#4868)

* Remove unnecessary setting of editingPageId on ymap

* Remove unnecessary console.log

* [Bugfix] Multipages: widget inspector event popover unmounts (#4887)

* introduced a local state for events

* cleaned up inspector.jsx

* fixes: table widget inspector event accordion

* Do not run switchPage twice when viewer is loaded

* Preview should open the currently editing page

* Properly place navigation and canvas in viewer

* Update app definition whenever event manager changes are made

* Add support for browser back and forward button in multi-pages

* Rename handleBackButton to handlePageSwitchingBasedOnURLparam

* Add support for cut/copy/paste and clone

* Fix the crash caused by boxShadow

* Add support for background colors in viewer in multi-pages

* Run queries to be run on load on viewer, in multi-pages

* Fix issue that caused inspector popovers to collapse

* resolves workspace vars in viewer mode (#4892)

* Multipage : Navigation for Mobile-ui (#4814)

* refactored to components

* burger menu for mobile ui

* merge conflict fix for hidden pages

* hamburger menu positioned in the header

* viewer header reafctored

* viewer mobile page manu styles

* handles dark theme

* mobile menu with dark mode toggle in the footer

* components are moved to page level, handle for mobile layout

* style fixes

* removing unwanted code block

* dark theme fixes

* style fixes

* fixes: events are sortable (#4895)

* fixes: events are sortable

* Remove uneccesarily repeated call of setEvents in EventManager

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

* renamed settings to Event handlers (#4898)

* updates the page setting title to Page Events

* temp commit

* Add support for setting max width in percentage

* fixes: paramUpdates for boxes: 🙌🏻

* [Bugfix] Multipage - viewer canvas dark theme (#4897)

* fixes: darktheme bg for viewer canvas

* reverts canvas size

* Fix for inspector bouncing back to previous values

* resolves pages variables in pythong and js transformation (#4905)

* csa support to event manager for pages (#4907)

* Add support for setting canvas width in percentages

* Persist page level variables across page switches

* latest definitions is merged with the current appdef (#4914)

* latest definitions is merged with the current appdef

* mutating the local obj

* cleanup

* iterate through pages for new versions are created

Co-authored-by: Arpit <arpitnath42@gmail.com>
2022-12-08 17:51:09 +05:30
Muhsin Shah C P
fb41192e1d
[enahancement] Added app loader page (#4389)
* Working on an issue

* Added loader skeletons

* Working on skeletons

* Completed basic app loader design
- dark theme

* Added switch organization function

* cleaning code

* Added loader to viewer page

* Fixed svg size

* style fix

* added loader

* have added try-cath

* added redirect path for sso login

* handle json parse error

* Fixed edit app issue

* Code refactoring
- fixed some issues

* fix

* Worked and tested some sub_path cases

Co-authored-by: Midhun G S <gsmithun4@gmail.com>
2022-11-14 12:07:47 +05:30
Gandharv
7994aba9db
fix: marketplace plugin viewer bug (#4732)
* fix: viewer not loading widgets

* typo

* handles query icons in inspector

Co-authored-by: arpitnath <arpitnath42@gmail.com>
2022-11-08 17:30:41 +05:30
Gandharv
a1fd1fc301
[Feature] Make plugins installable (#3069)
* feat: add user avatar

* update: @nest/platform-express from 8.0.0 to 8.4.4

* add avatar_id in login response

* add user avatar upload in frontend

* align cross divider with layout icons'

* generate nest model - extensions

* Add extensions module

* Add extension to datasouce

* add not implemented check

* create extension

* refactor

* cleanup

* fix tests

* reduce the avatar size on homepage

* poc: run js code from string

* resolve conflicts

* fix conflicts

* add globals

* add new route

* add icon, manifest file upload

* complete user flow

* add flow for data queries

* add dynamic manifest instead of local datasource types

* add version attr

* remove unused code

* add version

* rename extension(s) -> plugins(s)

* add test connection method

* feat: add marketplace listing page

* Add install plugin cmd + missing attrs {name, repo, desc} to plugin

* add missing icon

* - Add npm workspaces for marketplace monorepo
- Added cassandra datasource plugin
- Created upload to s3 script
- Created plugins.json entry file

* install plugin from s3 bucket

* cleanup

* update pkg locks

* fix icon render

* cleanup

* marketplace changes

* ui changes

* operations file load fix + revert vm2

* update module from string to 3.2.1

* load plugins.json from local file instead of remote

* install plugin from local file if not production environment

* add sqlite

* feat: add plivo api plugin

* exp: add heroku 22 stack

* update assets include path

* Revert "exp: add heroku 22 stack"

This reverts commit a8926b36e1.

* add integrations link

* Add casl ability for plugin

* load host from env else fallback to default

* update imports

* remove sqlite

* typo

* add marketplace flag to cli command

* move ts and ncc to devDep

* add hygen templates for marketplace

* cli tree-node path fix

* template indent fix

* TOOLJET_URL -> MARKETPLACE_TOOLJET_URL

* add tests

* refactor: move to plugins.helper for get-service helper utility

* fix; typo

* update package-lock.json

* review changes

* remove a href

* remove bg color + redirect issue due to href

* add test url

* fix crash on search

* remove extra slash

* feat: allow plugin to be installed from github repository

* remove unwanted args from cli command

* add repo attr while save

* feat: add feature toggle for marketplace feature

* fix: make default config as false

* chore: remove hyperlink

* fix: failing build

* chore: update s3 url to point to prod

* fix failing test

* fix test

* fix: test case

* update module from string pkg

* update env

* fix test

* fix test

* add readme file

* Update README.md

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
2022-10-27 16:59:43 +05:30
Kavin Venkatachalam
3d5ebb7e33
[Bug]: Multiple Confirmation Popup (#3845)
* Fixed multiple confirmation popup bug

* Fixed toast on viewer when confirming the run query

* Removed console

* Fixed null error modal onClick

* updated logic to display multiple confirmation popup

* Removed key

* Added key in the confirm component
2022-09-27 11:03:30 +05:30
Kavin Venkatachalam
7f702c1d6b
[Feature]: Added Localisation (#3746)
* Added localisation

* Closed modal after language selection

* updated transaltaion setup

* Updated language tooltip

* Added fallback language support

* Adding english library resource for translation (#3844)

* Adding English dictionary for the widget lists in the inspector

* added leftSideBar object in en.json and implemented it for leftSidebar icon text

* renamed leftSideBar to leftSidebar and added resources for tip in the left side bar

* added english translation resources for leftsidebar debugger

* added english language resources for the global settings

* added english language resources for data sources in left sidebar

* added english language resources for the share button and share modal in the editor

* added english language resources for release button, manageOrgUsers, appVersionManager

* added english language resources for Queries and Please select a widget to inspect in the editor

* added english language resources for data source list , data source manager, and query manager(partially)

* added english language resources for queryManager, transformation, preview

* added english language resources for dark mode toggle in the headers inside homepage

* added fallback message for dark mode toggle

* added resources for language change in the headers inside homepage

* added resources for notification center in the header inside homepage

* added resources for organization and manage users components in header inside homepage

* added resources in manageGroupPermission

* added resources for manageGroupPermissionsResources component

* added resources for manageSSO and generalSettings components

* added resources for google sso

* added resources for github sso

* added resources for environment variables in manageSSO

* added resources for profile and setting page

* added resources for app card and app card menu

* added resources for folder section and app list in homepage

* added resources for header section in the homepage

* added resources for pagination in homepage

* added resources for modals in the homepage

* added resources for blank page

* added resources for login page

* added resources for forgot password page

* added resources for sign up page

* added resources for onBoarding component

* added resources for reset password page

* deleted duplicate key for readDocumentation

* deleted duplicate key for cancel in en.json and added translation for cancel at few places

* removing duplicate copy of save key in en.json

* added translation for CommentActions.jsx components

* deleted duplicate copy of search key in en.json and added resources for create and search queries , select keys

* fix typo errors

* fixed typo errors

* shorten the key for loginAndSignUpAndForgotPassword to loginSignupPage in en.json file and related files

* shorten the key noLoginMethodsEnabledForThisWorkspace to noLoginMethodsEnabled

* shorten the key pleaseCheckYourEmailForConfirmationLink to emailConfirmLink

* shorten the key dontHaveAccountYet to dontHaveAccount

* shorten keys from loginSignupPage key in en.json

* shorten keys of shareModal nested object in en.json

* shorten the key in appVersionManager nested object

* shorten the keys for queryManager nested object in the en.json

* delete duplicate copy of environmentVar and shorten manageEnvironmentVariables,environmentVariables

* shorten keys in the organization nested object

* shorten keys in the homePage nested object in en.json file

* added inspector and eventManager empty object

* added resources to RedirectSSO component

* added resources for OAuth2

* added resources for TemplateCard.jsx

* added resources for TemplateLibraryModal.jsx

* added resources for ConfirmationPage.jsx

* added resources for ConfirmationPage component

* removed translation in App.jsx file

* added resources for Slack.jsx

* added resources for GoogleSheets.jsx

* added resources for CodeBuilder.jsx

* added resources for CommentBody and CommentFooter

* added resources for TestConnection component

* added resources for AllignButton.jsx

* added resources for Openapi and Stripe components

* added resources for ErrorBoundary

* added resources for Viewer.jsx

* Translation for widgets, table

Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com>

* Commented Language selection

* Fixed typos

* Updated fr.json file

Co-authored-by: Manish Kushare <kushare.manish9@gmail.com>
2022-09-14 13:34:49 +05:30
Manish Kushare
d3d2076287
Bug fixed : canvas background colour is not consistent with the applied theme (#3956)
* Bug fixed : canvas background colour is not consistent with the applied theme

* bug fixed : canvas color is not consistent in the Viewer mode

* reverting back changes made earlier

* reverting back changes made earlier

* bug fixed : canvas background in editor is not consistent with the applied theme

* Bug fixed : Viewer component is not consistent with the applied theme
2022-09-09 22:01:27 +05:30
Ajith KV
21e7162665
Cypress test for button widget happy path (#3776)
* Add and modify data-cy attribute for elements

* Modify faker file for random rgba hex code

* Add methods specific for button widget

* Add and modify common selector and text file

* Add and modify common widget methods

* Modify button text file

* Modify button widget happy path file

* Remove button selector file

* Modify multiselect widget happy with new methods

* Modify verify box shadow css method

* Add and modify common selector file

* Modify button text file

* add and modify specific methods for button widget

* Add and modify custom commands

* Add and modify common widget methods

* Add app preview and modify button widget happy path

* Add and modify data-cy attribute for elements

* Modify multiselect widget happy with new methods

* Modify data-cy attributes

* Add review changes

* Add data-cy attribute

* Add review changes

Co-authored-by: arpitnath <arpitnath42@gmail.com>
2022-09-05 14:06:45 +05:30
Akshay Sasidharan
1ca800a299 Merge branch 'main' into develop 2022-08-27 22:20:29 +05:30
Navaneeth Pk
98bb7519dd
Reverse proxy using base tag (#3889)
* reverse proxy

* reverse proxy

* Fix for yjs

* Fix for ws

* Fixes org switching

* Fixes org creation

* Fixes login logo

* Fixes download icon

* Construct use invite URL from base URI

* Fixes apiUrl if sub path is set

* Remove commented code

* Fix profile link

* invitation url changes

* Fixes dev env

* Use url-join lib to connect urls for goto app and invitation link

* Use useHistory instead of helper to get history for template modal

* Review changes

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
2022-08-27 21:58:24 +05:30
Arpit
fee4837096
[Bugfix] For **Run the query on page load** and **Request confirmation before running the query.**, toasts are displayed in the preview apps. (#3872)
* fixes: On toggling on the **Run the query on page load** and **Request confirmation before running the query.**, toasts are displayed in the preview apps

* removes extra toast for request on confirm
2022-08-26 08:25:00 +05:30
Muhsin Shah C P
b0693e988a
[bug-fix] Resolved header Flash issue (#3838)
* Resolved header flash issue

* Fixed the issue
2022-08-24 16:01:09 +05:30
Arpit
ad3eb4dc0b
[Bugfix] If the query is successfully run, success toast should be fired despite its triggered by any source. (#3768)
* fixes: on runQuery resolved, an error or a success toast should be fired

* show toasts only in edit mode

* fixes: show query and transformations toasts only in editor

* fir toasts only in editor

* show transformation toasts on edit more only
2022-08-16 16:08:36 +05:30
Muhsin Shah C P
7595b74519
[hotfix] Public apps are redirecting to login page while using environment variables inside an app (#3635)
* Fixed env vars 404 error while opening public apps

* Resolved the PR changes
- Replaced currentUser with isPublic
- Added a new guard to check if the current app is not public or not

* Refactored some code

* Removed orga variable dependency from org module

* Resolved all PR changes

Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
2022-07-25 16:18:12 +05:30
Muhsin Shah C P
dc8f69e4b2
[Feature] Organisation level environment variables 🚀 (#3068)
* Added new page for env vars

* Changed a field name

* Added some backend files
- Entity, Dto, services

* Started working with api endpoints
- implmented create
- added ability

* Added fields validation
- Added env variables into module

* Added update, delete, get apis
- Also implemented delete feature in frontend

* Implemented update operation on frontend
- Solved an api problem

* Added encryption

* Added encryption to update operation
- Exposed env vars to editor
- working on viewer

* Exposed env vars in viewer also
- Resolved a bug

* Updated edit & delete icon sizes

* Added specs
- Resolved issues that occurred while testing

* removed logout code

* Changed api endpoint

* splitted page into 3 different parts, Form & table

* Now, non-admin users can see all org env vars

* Resolved divider missing issue

* Added variable_type field

* Now secret server values will be shown as 'SecureValue'

* Now you can't update variable_type

* Now server will resolve the secret env values

* Resolved variable name issue

* Added unique constraints

* Resolved some frontend bugs

* Changed error text

* Fixed failing specs

* Added group permissions for org env vars

* Added permission checking in the backend

* Implemented permission checking in the frontend

* Edited spec for new changes

* Changed some specs and fixed failing specs

* Resolved failing case that showed up after merging with the latest develop

* Added default admin seed permissions

* Refactored some code

* Changed value to organization_id

* Fixed a bug

* Resolved a failing case

* Resolved PR changes
- Changed permission name
- Changed column type to enum
- Fixed some errors
- Refactored the code

* minor code change

* added scope

* Fixed: hide table when 0 no of vars available

* Fixed table dark theme issues

* Fixed encryption switch style

* Fixed failing cases and updated a spec

* Added %% for environment variables

* Added code to resolve single variable

* Fixed multi-variable usage

* resolved an issue

* removed extra divider

* Suggestions will also show up for %% too

* now, suggestions dropdown will only show env variables results

* env vars suggestions will not be included  in js search results

* You can't resolve env variables from js code
- Also, we can't resolve js code from env variable enclosures

* added an info text

* Resolved variables issue

* fixed Viewer issue

* Resolved a bug
- client variable was not working on query preview and run actions

* Update error message while using server variable on canvas

* Revert "Update error message while using server variable on canvas"

This reverts commit 081e1c9e29.

* Resolved all PR changes
- removed prefix 'environmentVariable'
- redefined variable evaluation
- removed environmentVariable object from inspector
- fixed a small bug

* Fixed a server side issue

Co-authored-by: Sherfin Shamsudeen <sherfin94@gmail.com>
2022-07-01 16:20:37 +05:30
Kiran Ashok
336b099db7
Bugfix :: Canvas background made programmable and fix for alpha not working (#2807)
* fixing alpha not changing issue

* fixing possible undefined isues

* including codehinter for canvas bg colour updation

* updating styles

* codehinter with gloabla value access

* updating colour bug

* updating fx styles

* light mode updates

* fixing light bg bugs

* cleanup

* fixing flickering

* dynamic background changing using fx :: fix

* removing all logs and fixing state not updating correctly issue

* fixing layout

* updates useeffect trigger

* live typing component , bugfix

* viewer testing

* fixing issue in preview mode

* colour preview issue fix
2022-06-01 16:48:12 +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
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
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
Muhsin Shah C P
2e62d7480a
Improvement: Exposed dark mode as mode (#2595)
* darkmode globally exposed as mode

* PR changes
- Added mode feature to the viewer
- Changed mode object to a single value

* Changed mode to theme
2022-03-25 15:45:44 +05:30
Arpit
109e1baf4a
Hotfix/fix action for dropdown (#2349)
* fixes dropdown fireEvent for on select

* fixes value undefined at .then() chained to Promise?

* adds explicit return statement for viewer: onComponentOptionChanged
2022-02-25 15:20:34 +05:30
Sherfin Shamsudeen
401fdc6837
Show app name as window title when launched (#2229) 2022-02-11 17:32:32 +05:30
Sherfin Shamsudeen
f96ab6f795
Expose user groups as a global variable in viewer and editor (#1895) 2022-01-22 01:31:26 +05:30
navaneeth
9794668880 [HotFix] Fixes race condition in multiple query execution 2022-01-21 16:42:33 +05:30
Muhsin Shah C P
af178f59b4
completely replaced react-toastify with react-hot-toast (#1713) 2022-01-03 09:22:41 +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 <arpitnath42@gmail.com>
2021-12-10 08:43:05 +05:30
Gandharv
b78f9a8a90
Add global settings changes to app viewer (#1543)
* add hideHeader condition + maxwidth for canvas

* add background color to viewer

* add fallbacks
2021-12-09 12:30:58 +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
navaneeth
c4b24e645e Merge remote-tracking branch 'origin/main' into develop 2021-12-08 13:55:22 +05:30
navaneeth
bc19612b3a Merge branch 'release/v0.10.0' 2021-12-07 21:21:33 +05:30
navaneeth
0a6173bec1 Hoxfix for device window width 2021-12-03 18:34:33 +05:30
navaneeth
6ca57daf1e Merge remote-tracking branch 'origin/main' into develop 2021-12-03 18:28:27 +05:30
Navaneeth Pk
819f223b99
Default to desktop view if no widgets on mobile layout (#1506)
* Default to desktop view if no widgets on mobile layout

* Revert

* Fix
2021-12-03 18:27:53 +05:30
Navaneeth Pk
1408f5725e
Update logo colors (#1477) 2021-12-01 16:12:32 +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
Nishant Samel
89c1f3f02c
Fixes logo alignment issue (#1291) 2021-10-26 10:03:25 +05:30
Sherfin Shamsudeen
53f510796f
Enforce order of app execution (#913)
* Run queries only after componentState is fully computed

* Run queries in the editor after componentState is computed

* Use promise ensure queries run after state is fully computed
2021-10-06 18:47:56 +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
Sherfin Shamsudeen
bd7242ff03
Bugfix/datepicker crashing when user types on it (#794)
* Validate datepicker has a moment object before using it as one

This commit ensures that the value a date picker holds is a moment
object before it format it using moment function

* Set selectedComponent for Viewer whenever component is clicked
2021-09-20 15:14:45 +05:30
Arpit
eab706089b
Router updates the url but not the view for launched apps when go to app event is fired. (#727)
* loading the application with the slug when props changed fixes the issue

* show the spinner when a new app is being loaded

* refactored
2021-09-15 21:28:15 +05:30
Navaneeth Pk
c5bf740507
Fixes datepicker z-index issue (#745) 2021-09-13 21:23:57 +05:30
Navaneeth Pk
e8eda697e6
Order of state computation (#732) 2021-09-13 12:47:45 +05:30
Navaneeth Pk
268167a86d
Fixes inconsistent exposed variables on viewer (#719) 2021-09-09 22:51:36 +05:30
Akshay
82f76e2799
Feature: app version preview & edit (#639)
* add ability to preview and edit versions

* add specs for get app versions

* create new app versions from prev definition

* fixes

* move default slug creation outside typeorm transaction

* set slug as app id when null

* fix app creation response

* fix entities not loading on test env

* add e2e test for version creation scenarios

Co-authored-by: navaneeth <navaneethpk@outlook.com>
2021-08-30 17:13:27 +05:30
Gandharv
df1b7e905a
fix: dark mode toggle on app viewer (#556)
fix: dark mode toggle on app viewer
2021-08-20 15:35:39 +05:30
Navaneeth Pk
150961b591
Feature/dark mode (#366)
* Dark mode part 1

* Dark mode part 2

* Dark mode part 3

* Dark mode part 4

* Dark mode part 5

* Dark mode part 6

* Dark mode part 7

* Dark mode part 7

* Dark mode part 8

* set light mode as default

* Dark mode part 9

* Dark mode part 10

* Dark mode part 11
2021-07-03 19:47:47 +05:30
Navaneeth Pk
8ada8273a0
Feature: event action to switch apps (#342) 2021-06-28 12:06:23 +05:30
Navaneeth Pk
cc2983600e
Feature: url params should be accessible from apps (#337) 2021-06-27 12:59:55 +05:30
Akshay
b30b0b0b10
Feature: Friendly URLs for applications (#285)
* add migration to create slug for apps

* update migration file to include default slug population

* update schemafile

* add capability to get app by slug

* add capability to frontend to set and fetch app by slug

* remove unrelated changes from lint

* respond default 204 itself when success else render error

* make input field to show error when slug taken

* wip: show error message

* Cleanup

* add new route to fetch app by slug

* add slug to show json jbuilder

* update react components to fetch app by both id and slug

* fix launch link not being set

Co-authored-by: navaneeth <navaneethpk@outlook.com>
2021-06-22 20:03:13 +05:30
navaneeth
8bf5e32a8e Prevent widgets from scaling out of window 2021-06-04 09:22:29 +05:30
navaneeth
6e081e977d Remove menu button from viewer 2021-06-04 00:23:51 +05:30
navaneeth
4700063eef Feature: Scale widget width to fit mobile devices 2021-06-03 22:10:54 +05:30
navaneeth
5664f2ef95 Feature: Detect devices and switch layouts 2021-06-03 21:45:27 +05:30
navaneeth
94bede4269 Feature: Switch visibility on devices 2021-06-03 20:36:49 +05:30
navaneeth
c40dd34b32 Changed assets directory to work with firebase 2021-05-20 10:21:36 +05:30
navaneeth
2787d9efd5 Feature: Public applications 🎉 2021-05-07 13:55:09 +05:30
navaneeth
8ecad4ff9b Loading progress-bar for app viewer 2021-05-03 17:57:46 +05:30
navaneeth
afc56e80a9 Fix for incorrect value of globals in app currentstate 2021-05-02 12:09:37 +05:30
Navaneeth Pk
8b481ae9f4
ESLint fixes (#138)
* ESLint fixes

* Eslinted
2021-04-30 13:40:57 +05:30
navaneeth
2e3e637eb2 Setup prettier, suggested fixes 2021-04-30 12:01:32 +05:30
navaneeth
d7e7f3bb72 BugFix for changeSet of tables not being updated sometimes 2021-04-26 23:10:43 +05:30
navaneeth
de5b6194e9 Feature: Multi-select dropdown as table column type 2021-04-26 22:41:27 +05:30
navaneeth
ae5d9c64b7 Feature: Components should be able to fire events from editor 2021-04-26 11:02:02 +05:30
navaneeth
cf107747cb Fix for broken link in app viewer 2021-04-25 19:40:35 +05:30
navaneeth
537c9986e6 Feature: Bulk update query for tables, GUI mode for postgres 2021-04-24 18:27:15 +05:30
navaneeth
a3cf5114aa BugFix: Disable drag in viewer mode 2021-04-21 12:22:57 +05:30
navaneeth
7b1b2f2c30 Display alerts if queries fail 2021-04-20 15:22:00 +05:30
navaneeth
df612ac09d Display app name in viewer 2021-04-20 11:25:31 +05:30
navaneeth
7d90f6d068 Show transformer errors as toasts 2021-04-18 20:51:37 +05:30
navaneeth
1cd26c07e7 Transformers can access currentState data 2021-04-18 20:29:58 +05:30
navaneeth
02e48b0171 Momentjs in transformers, buffix for transform editor 2021-04-18 18:47:55 +05:30
navaneeth
2156c19e5e Frontend: Authorise OAuth2 services 2021-04-18 14:59:44 +05:30
navaneeth
2f01a36a9e Frontend changes for deploying to firebase 2021-04-16 12:25:40 +05:30
navaneeth
e448840b8a Query services should use encrypted credentials 2021-04-15 13:17:24 +05:30
navaneeth
c49eb98d60 Component: Multiselect dropdown 2021-04-14 22:31:34 +05:30
navaneeth
f926a4d680 Action: Open webpage 2021-04-14 19:01:37 +05:30
navaneeth
78ee171868 Fix for multiple alerts being triggered 2021-04-14 09:56:44 +05:30
navaneeth
7cde21f7db Feature: Checkbox component 2021-04-12 13:24:13 +05:30
navaneeth
ad0e89eb82 BugFix: refreshing query with dynamic vars won't work 2021-04-11 10:51:53 +05:30
navaneeth
8511965f9c Minor UI changes 2021-04-11 10:05:11 +05:30
navaneeth
d52cf98cb2 Featue: Show notification on query success 2021-04-11 08:44:29 +05:30
navaneeth
87a44130c1 Use svg for logo 2021-04-10 16:54:47 +05:30
navaneeth
0206fa783b Feature: request confirmation before running queries 2021-04-10 10:03:00 +05:30
navaneeth
977667e9d3 Feature: Executing transformations, trying new logo 2021-04-10 08:02:23 +05:30
navaneeth
099637ff5f Feature: Loading state for queries & prop for table 2021-04-08 20:49:18 +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
ad50b339cb OpenAPI editor for stripe - initial version 2021-04-08 11:53:39 +05:30
navaneeth
19455a605d BugFix: Issue in updating position of dropped components 2021-04-07 14:19:51 +05:30
navaneeth
336e76a45b Feature: Can run queries on page load 2021-04-07 12:33:03 +05:30
navaneeth
2e7eaa7fe3 Feature: Event selector for table action buttons 2021-04-06 19:46:32 +05:30
navaneeth
10ab817f22 Dynamic variables for postgres queries 2021-04-06 08:44:52 +05:30
navaneeth
cc782ab2f4 onRowClicked event for tables 2021-04-05 13:19:17 +05:30
navaneeth
bdd8ec3d70 Bindings for components results/other data 2021-04-04 18:41:17 +05:30
navaneeth
109204287e Dynamic bindings for queries 2021-04-04 12:16:53 +05:30