* Update message de->fabric to v3
* Reinstate get authorization token path which doesn't get called every 5 minutes anymore
* Remove obsolete comment
* Add missing types
* Fix format
* Fix build issue
* Revert "Reinstate get authorization token path which doesn't get called every 5 minutes anymore"
This reverts commit a3f3511043.
* Keep 3 old fabric message types enums for compatibility with the portal
* Re-add warning comment about not changing existing message type enums
---------
Co-authored-by: Laurent Nguyen <languye@microsoft.com>
* Fix initial container loading in Fabric
There is a rendering issue where the documents table doesn't resize properly if explorer is loaded in the beackground (invisible).
To workaround this, track DE visibility from Fabric RPC and open the first container only once DE becomes visible. If DE has been already shown, open the container right away.
* Preserve glitchy behavior if Fabric UX doesn't send isVisible
* Preserve Fabric visibility in global status
and fix a race condition where visibility might change during initialization.
* add feedback policies integration with copilot
* remove teaching bubble and welcome modal
* force prod phoenix endpoint in MPAC
* force prod phoenix endpoint in MPAC
* Mostly working - some cosmetic changes remaining.
* Cosmetic changes and other tidy ups.
* More clean up.
* Move msal back to dependencies. Fix typo.
* msal should be prod dependency
* Revert msal package update as it is causing issues with unit test
execution.
* Add tracing for unhandled exceptions when acquiring tokens.
* Mongo Proxy backend API
* merge main into current
* allow mongo proxy endpoints to be constants
* allow mongo proxy endpoints to be constants
* fix test
* show ip address warning for Mongo and Cassandra accounts
* show ip address warning for Mongo and Cassandra accounts
* removed string from prod
* make mongo proxy endpoint mandatory
* added MongoProxyEndpointsV2
* added MongoProxyEndpointsV2
* moved mongo and cassandra endpoints to Constants
* moved mongo and cassandra endpoints to Constants
* moved mongo and cassandra endpoints to Constants
---------
Co-authored-by: Asier Isayas <aisayas@microsoft.com>
* initial commit
* Add change partition key logic
* Update snapshot
* Update snapshot
* Update snapshot
* Update snapshot
* Cleanup code
* Disable Change on progress job
* add the database information in the panel
* add the database information in the panel
* clear in progress message and remove large partition key row
* hide from national cloud
* hide from national cloud
* Add check for public cloud
* Mongo Proxy backend API
* merge main into current
* allow mongo proxy endpoints to be constants
* allow mongo proxy endpoints to be constants
* fix test
* check for allowed mongo proxy endpoint
* check for allowed mongo proxy endpoint
---------
Co-authored-by: Asier Isayas <aisayas@microsoft.com>
* Use Promise for allResourceToken fabric message. Cleanup token message handling and add debounce.
* Improve rpc and update initalization flow
* Fix format
* Rev up message names for new version
* Refactor RPC with Fabric
* Build fix
* Fix build
* Fix format
* Update Message types
* Fix format
* Fix comments
* Fabric toolbar style and support to show/hide it (#1720)
* Add Fabric specific Toolbar design
* Add Fabric message to show/hide the Toolbar
* Fix CommandBarUtil formatting
* Update zustand state on setToolbarStatus to trigger a redraw of the command bar with updated visibility
---------
Co-authored-by: Laurent Nguyen <laurent.nguyen@microsoft.com>
* Fix format
---------
Co-authored-by: Vsevolod Kukol <sevoku@microsoft.com>
* Implement copilot for user database
* Fix minor bugs
* fix bugs
* Add user database copilot
* Add placeholder text on copilot
* Add AFEC adn killswitch
* Add new v2 sampledatabase endpoint
* Add telemetry
* fix telemetry bug
* Add query edited telemetry
* add authorization header
* Add back to the staging env for phoenix
* point to stage for phoenix
* Preview commit for test env
* Preview link for staging
* change the staging url
* fix lint, unit tests
* fix lint, unit tests
* fix formatting
* Update contracts for new all resource messages
* Add timestamp to token message signature
* Reconstruct resource tree with databases and collections parsed from token dictionary keys
* Create FabricDatabase and FabricCollection to turn off interaction
* Remove unnecessary FabricCollection derived class
* Handle resource tokens
* Bug fix
* Fix linting issues
* Fix update document
* Fix partitition keys
* Remove special case for FabricDatabase tree node
* Modify readCollections to follow normal flow with Fabric
* Move fabric databases refresh to data access and remove special case in Explorer
* Revert Explorer.tsx changes
* Disable database context menu and delete container context menu
* Remove create database/container button for Fabric
* Fix format
* Renew token logic
* Parallelize read collections calls to speed up
* Disable readDatabaseOffer, because it is too slow for now
* Reduce TOKEN_VALIDITY_MS a bit to make sure renewal happens before expiration. Receving new tokens new refreshes databases
* Add container element for Main app in HTML
* Do not handle "openTab" message anymore
* Fix style of main div
* Simplify conditional load of the fabric .css
* Fix format
* Fix tsc can't find dynamic less import
---------
Co-authored-by: Armando Trejo Oliver <artrejo@microsoft.com>
* For Fabric, send message to get Authorization token from iframe parent
* tokenProvider: set date header and return token
* Expect account endpoint on initialize message from Fabric
* Fix format
---------
Co-authored-by: artrejo <artrejo@microsoft.com>
* For connection-string based authentication, the request would be made with low priority request header and for AAD based authentication, users can select the priority-request option from the settings panel
* removed unused imports
* prettier checks
---------
Co-authored-by: Faiz Chachiya <faizchachiya@microsoft.com>
* clear query results and handle error with no query generated
* clear query results and handle error with no query generated
* Update the query guidelines link
* Update the query guidelines link
* Listen to iframe messages. Test posting message.
* Plug new container message to show New Container dialog
* Rename message action to type
* Fix format
* Fix format
* Remove console.log() statement
* Rework fabric init flow. Implement open Collection Tab from fabric.
* Rename method to better match its purpose
* Update src/hooks/useKnockoutExplorer.ts
Use connectionString from message
Co-authored-by: Vsevolod Kukol <sevoku@microsoft.com>
* Fix format
* For openTab action open first collection if not specified. Clean up FabricContract.
* Reformat FabricContracts
* Highlight current node selection using them token
* Reformat
* Automatically expand nodes in resource tree if underlying database or collection is expanded. Fix AllowedOrigins. Cleanup code.
* Fix format
* Fix lint issue
* Don't show the home screen for Fabric (#1636)
* Fix formatting
* Database name to open can be overridden by value in session storage
---------
Co-authored-by: Vsevolod Kukol <sevoku@microsoft.com>
* Add Platform.Fabric to run in context of Fabric
* Use separate StyleConstants
We want to have more flexibility with Styles at runtime
but Constants depend on ConfigContext and therefore
get loaded very early at startup.
* Add Fabric specific styles and Fluent theme
documentDBFabric.less contains all styles for Fabric.
We use React.lazy to import them conditionally at
runtime preventing webpack from preprocessing
them into main.css.
* Restyle CommandBar for Fabric
with more roundness and native colors.
* Disable Notebooks when running in Fabric
* Disable Synapse and Scripts commands for Fabric
* Fix code formatting issues
* Fetch encrypted token from sessionStorage for fabric platform
* Fix Tabs style
* Dark refresh icons for Fabric
* Use new ResourceTree2 for Fabric
* Fluent tree should have a fixed width
otherwise the action buttons jump around on hover.
* Disable remaining Script actions in Fabric
* Revert accidentally committed change
which broke a test
* Fix cross-origin error second try
* Adjust @FabrixBoxMargin css
* Hide Database Scale node on Fabric
* Remove all Collection child nodes on Fabric
* Add a comment about why we need FabricPlatform.tsx
* Fix equality checks
* Fix more Colors for Fabric
* Switch resource tree to "medium" size
* Fix formatting again
* Fix formatting again
* Disable no-var-requires error on some intended var import.
* Increase memory limit for build
* Use standard Segoe UI font for Fabric
* Improve Tabs design for Fabric
* Fix active Tab style bug in Portal
introduced with 39a7765aef
---------
Co-authored-by: Laurent Nguyen <laurent.nguyen@microsoft.com>
* Initial wiring of copilot backend and bubble
* Additional changes in explanation bubbles
* Changes based on checks
* test snapshots updated
---------
Co-authored-by: Predrag Klepic <v-prklepic@microsoft.com>
* Initial implementetation of backend integration
* Added parameters and interfaces moved
* Initial client implementation
* Additional changes for React FC's
* Updated snapshot of Footer
* Additional Copilot implementation
* Test adjustments and client implementation
* Additional test implementations
* Naming convetion for functions
* Changing {} to any
* Additional changes to the type
* Additional test changes
* Removal of prevention
* adding comment
* Additional changes to tests
* Moving logic based on comments
* client implementation along with corrected tests
---------
Co-authored-by: Predrag Klepic <v-prklepic@microsoft.com>
* Changing order of the features
* test name changed
* updates snapshots
* Bubble implementation
* Bubble tests implemented
* Correction for CopilotSampleDB implementation
* rollback to previous query tab changes
---------
Co-authored-by: Predrag Klepic <v-prklepic@microsoft.com>
* Switch to tools federation endpoints for query copilot
* Remove extra / in url
* Initial allocateContainer implementation
* Additional feedback modal changes
* updated tests
* PhoenixClient reverted to previous endpoint
* Changes based on PR comments
* Update based on tests
* updated endpoint
* Back to previous implementation and test improve
* removing notebook
---------
Co-authored-by: Victor Meng <vimeng@microsoft.com>
Co-authored-by: Predrag Klepic <v-prklepic@microsoft.com>
* Query Copilot Sidecar initial commit
* additional improvements with the Welcome pop
* Additional implementation and messages for sidecar
* introducing copilot version
* Renaming from car to bar
* Image names changed
* fixing PR errors
* additional changes related with the versions
* Additional implementations and fixes
* Removing unused interface
* Additional styling changes and state management
* Additional changes related with Sidebar
---------
Co-authored-by: Predrag Klepic <v-prklepic@microsoft.com>
* Sample implementation for saving states
* Maintaining Query Copilot state
* Fixing failed PR checks
* Additional changes based on checks
* snapshots updated
* Changes based on merging previous PR
* test mock changed
* Fixing minor bug for close button
* Destruct of queryCopilotState
* passing only function in Tabs component
* Maintaining copilot state with zustand store
* additional test changes
* test snapshot updated
---------
Co-authored-by: Predrag Klepic <v-prklepic@microsoft.com>
* Styling implemented related with the work item
* Sample container New query button implementation
* Fixing related with the not rendering Sample Data
* Fix race condition when rendering sample data resource tree
* Remove export keyword for updateContextForSampleData
* Copilot New Query should open Copilot tab
* showing buttons in sample command bar
---------
Co-authored-by: Predrag Klepic <v-prklepic@microsoft.com>
Co-authored-by: Victor Meng <vimeng@microsoft.com>
* Move footer when save button is enabled to the bottom, remove gap between notification console and right panel
* Change the way panel height is calculated
* Remove unnecessary operator
* Change condition
* Fix snapshot
* Update panel height after animation ends and use different css for showing save button to the bottom of the page
* Fix ts compile
* Implementation of filtering suggestion and history
* Error message if query is not received
* Exclamation mark on fail and button disabled
* Changed from hook to const for suggestions
* Test snapshots and formatting updated
* Fix based on comment
---------
Co-authored-by: Predrag Klepic <v-prklepic@microsoft.com>
* Add Sample Data to Resource Tree
* Format
* Fix strict build
* Fix lint
* Fixed implementation to show Sample data container
* Udated logic based on TokenCollection
* Re-configure copilot flag
---------
Co-authored-by: Predrag Klepic <v-prklepic@microsoft.com>