Commit graph

13 commits

Author SHA1 Message Date
Nakul Nagargade
f321c19265
Move showComments and currentLayout to zustand store (#6646)
* Move version manager editor states to zustand

* Update appDataStore to appVersionsManagerStore

* Move released version popup state to global

* Move isVersionReleased to global store

* Rename appVersionsManagerStore to appVersionStore and destructure zustand data inside components

* Move showComments and toggleComments states to zustand store

* Move current layout from editor local states to editor store

* Resolve code comments

* Bug fixes
2023-07-18 13:11:31 +05:30
Muhsin Shah C P
4331b40869
[Improvements] Environment changes (#6762)
* Added priority, enabled, current_environment_id columns
- added data-migrations to backfill the priority and current environment id for each version

* working on multi environments improvement
- added checks for promoted env
- promote env feature
- released app & production env check
- promoted version definition check

* added import support

* working on migration issues

* fixed failing migration

* fixed failing migration once again

* Fixed possible bugs
- seed
- test case helpers
- app version release

* fixed migration bug

* working on migration progress

* working on migration progress class

* added migration progress

* fixed unit tests

* fixed e2e cases

* added default priority

* added PR changes

* changed import logic

* added global datasource design and api changes

* changed default env if the id is null

* added unique constraint and a bug fix

* changed app versions api
- added current environment id to the where conditions

* fixed failing test cases

* added new test cases

* added new api changes

* added back the enabled check

* fixed test case

* change: added environment to create versions dto

* typo: environmentId

* added new api for fetching versions

* added appVersions count changes to CE

* Changed app versions by environmentid logic

* added PR changes for EE

* fixed wrong promoted env id issue

* fix: can't switch to staging

* added import export changes
- update delete modal text

* added EE import export code, modal updated text

* added common migration code for CE and EE

* fixes
- enable run button for released version
- disable change datasource for queries

* changed released version popup design to new EE design

* add: hide delete icons for released version
2023-07-11 10:10:03 +05:30
Nakul Nagargade
0a82e50afb
Move Editor's version manager regarding states to zustand store (#6593)
* Move version manager editor states to zustand

* Update appDataStore to appVersionsManagerStore

* Move released version popup state to global

* Move isVersionReleased to global store

* Rename appVersionsManagerStore to appVersionStore and destructure zustand data inside components

* Remove closeCreateVersionModalPrompt and showCreateVersionModalPrompt

* Refactor isVersionReleased

* Resolve code comments

* update action on clicking release version btn

* Resolve code comments

* Resolve code comments

* Resolve code comments

* Fix isVersionReleased not getting updated on editor mount

* Fix released version error message not shaking on editng released version

* Resolve code comments

* Fix preview in query giving internal server error
2023-06-29 15:30:10 +05:30
Manish Kushare
e44e16bbe4
Database drawer is not opening from the left sidebar (#6778)
* bug fixed

* not displaying the icon when datasources are not added

* when leftsidebar drawer in pinned from the app whose having database configured, and switched to app whose not having any database connected, empty drawer is displayed in such cases, fixed it

* fix: fixed breaking of sidebar on delete of all datasources

* fix: fixed issue that caused sidebar to not close

---------

Co-authored-by: Johnson Cherian <johnsonc.dev@gmail.com>
2023-06-20 11:08:56 +05:30
Johnson Cherian
c218b27a94
Improving user experience of left side drawer in app builder (#6659)
* style: Store pinned state of left sidebar tabs in localstorgae to persist across refresh

* style: Fixed popover width. Add scroll for canvas so for user view to remain same  when popover is open

* feat: added horizontal scrollbar for canvas when sidebar popup is open

* feat: added logic to calculate canvas height on resize

* feat: prevent flickering of popover when switching tabs

* style: made modal width and position inside canvas relative to canvas container positon

* fix: removed extra offset added to the dragged element placeholder.

* fix: hide extra scroll bar added when dragging new component to canvas

* fix: hide canvas scrollbar on dragging of new component

* fix: removed extra margin to main container

* fix: fixed canvas alignment when mobile screen is selected

* fix: revert the debugger error notification badge behaviour

* fix: fixed width issue for old apps

* fix: fixed issue with width when user set max width in %

* fix: resolved conflicts in style file

* fix: fixed whitespace issue in large screen

* Update frontend/src/Editor/LeftSidebar/index.jsx

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>

* Update frontend/src/Editor/LeftSidebar/index.jsx

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>

* Update frontend/src/Editor/LeftSidebar/index.jsx

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>

* Update frontend/src/Editor/LeftSidebar/index.jsx

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>

* refactor: removed unnecessory rerendering of Editor component

* perf: unsubscribe to querypanelstore on unmount of editor component

* perf: rerender editor only when query panel resizing over

* refactor: removed unused logs

* Update frontend/src/Editor/Editor.jsx

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>

* Update frontend/src/Editor/Editor.jsx

Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>

* fix: added style to hide extrascrollbar in macbook screens when mouse connected

---------

Co-authored-by: Johnson Cherian <johnsoncherian@Johnsons-MacBook-Pro.local>
Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>
2023-06-15 12:58:44 +05:30
Muhsin Shah C P
f215d1df96
App version creation flow enhancement - New released version warning popup - Current version issues (#5947)
* current version issue

* working on modal design

* Added released version popup and shake animation

* refactoring the code

* improved the experience

* extra changes

* css revert

* fix: disable components & properties

* fix: switched released version saving & create version modal input value retain issues

* fix: retained values issues

* fix: edit version modal current name issue
- disabled comment's icon

* override grayed out effect for preview

* fix: text overflow issue

* css fix: overflow

* added check for sub-containers

* fixed and added specs

* UI and UX fixes

* lint fix

* added clearInternal fn

* change:added clearInternal fn

* refactoring the code

* removed the comments

* added some code that were missing after the merge

* fixed merge issues

* fixed undo redo

* reverted the store changes
2023-05-11 12:32:21 +05:30
Kavin Venkatachalam
6d07cd34cc
Introduced global state management (#5980)
* global store init

* Moved query data to new component

* Removed unwanted code

* Removed data queries prop drilling

* Moved query state out of editor

* Added unsafe to componentWillReceiveProps

* Selected first query when the version is changed

* Fixed bug on renaming query

* Fixed issue on dark theme

* Fixed running query on page load in viewer

* Added global data source in store

* Disabled devtools on production

* Fixed bug on selecting query after deletion

* Reset store when editor is loaded

* Fixed losing events on renaming first query
2023-05-10 15:44:38 +05:30
arpitnath
a60ffb3dc7 fixes: app crash for adding a new gds from marketplace 2023-04-28 19:48:36 +05:30
vjaris42
bb9a211e55
[Feature] :: Global datasources (#5504)
* add: columns and migrations for data queries and sources

* add: migrations for app environments

* fix: datasources and queries api

* fix: import apis

* add: radixui colors

* create: global datasource page

* fix: version creation not including global datasources queries

* fix: version deletion failure

* fix: ui and other bugs

* add: check for abilities on global ds

* fix: bugs

* fix: existing test cases

* fix: migration and bugs

* fix: rest api oauthorize bugs

* hide: add button for local ds

* fix: query bugs

* fix: new organization environment creation

* fix: local ds label showing for new apps

* fix: on page load queries for preview app and published app

* fix: import bugs from v1

* fix: merge conflicts

* fix: import apis

* fix: apss with mulit envs

* fix: ui bugs

* fix: environments not being created on db:seed

* fix: ui bugs

* fix: route settings for global datasources

* fix: customer dashboard template

* fix: local ds queries not being saved

* fix: runpy issues

* changes: ui

* fix: migration issues

* fix: ui

* hide datasources when no local datasources

* fix: test cases

* fix: unit test cases and global queries on app import/export

* cleanup

* add: package-lock file

* undo: migration rename

* cleanup

* fix: ui bugs

* migration fixes

* fix: dark mode issues

* fix: change datasource failing on query create mode

* fix: workspace selector issues

* fix: clickoutside for change scope option

* migration changes

* fix: open api issue

* reverting configs changes

* [Fix] Global datasources & Environment Id issue (#5830)

* fix: oauth env id issue

* code changes

---------

Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
Co-authored-by: Muhsin Shah <muhsinshah21@gmail.com>
2023-03-24 21:41:21 +05:30
Manish Kushare
01f93fb405
[ Bug fixed ] : dark theme bug fixes (#5239)
* dark theme bug fixes

* made popover content of the real time avatar consistent with the dark theme
2023-01-06 17:14:56 +05:30
Manish Kushare
1cf35a9e0a
[ Bug fixed ] : Popover content in left sidebar is not scrollable (#5195)
* bug fixed

* bug fix

* Revert "bug fix"

This reverts commit eefdb4cc9e.

* avoided Editor component to render while dragging the query panel

on first render made popoverContent height as 95vh if query panel is not expanded

* made the suggested changes

* made text inside notification center consistent with the dark theme
2023-01-05 14:47:24 +05:30
Kiran Ashok
32aa59fda4
split onboarding css , bugfixes , code improvements (#5050) 2022-12-30 12:09:07 +05:30
Gandharv
f9aa596994
feat: app builder design changes (#5041)
* feat: version manager, realtime avatars + popover addition
2022-12-29 17:18:24 +05:30
Renamed from frontend/src/Editor/LeftSidebar/index.js (Browse further)