Commit graph

80 commits

Author SHA1 Message Date
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