* 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
* 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
* 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
* 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>
* 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>
* 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
* 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
* 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>
* 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