* add feedback policies integration with copilot
* remove teaching bubble and welcome modal
* force prod phoenix endpoint in MPAC
* force prod phoenix endpoint in MPAC
* arialabel has been added to close button of invitational youtube video
* heading role has been addedd and tag has been changed to h1
* outline has been restored to choose columns link in entities page
* Update QuickstartCarousel.tsx
* Update SplashScreen.tsx
* Update TableEntity.tsx
* outline for edit entity has been added on focus
* keyboard accessibility added to rows in table entities
* Update queryBuilder.less
* Update TableEntity.tsx
* Update PanelComponent.less
* Update DataTableBindingManager.ts
* Update DataTableBindingManager.ts
* Update DataTableBindingManager.ts
* Update DataTableBindingManager.ts
* Update DataTableBindingManager.ts
* Hide the RU Threshold Message in Fabric
Fabric is RO and the Settings button is hidden, hence the message doesn't make sense. If customers hit the limits they can go to Portal and change the settings there.
* Change the toolbar font size and icon color in Fabric
* 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>
* Added TableAPI whitespace check and trim values
* Reverted value is not required unless Row or PrimaryKey
* Prettier Run
* Add full whitespace check on Keys
* Prettier formatting
* Fixed type
* Added whitespace check for tabs, vertical tabs, formfeeds, line breaks, etc
* Fixed logic
* 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>
* text color of link has been changed to get the contrast ratio of atleaast 4.5:1
* screen reader names have been added to the buttons
* Update QueryCopilotPromptbar.tsx
* Fix datatables issue and indicator not loading for Table API > Entities
* Fix jquery and datatables compile issues. Add patch for datatables.net-colreorder error in types
* Fix side panel size. Fix bug resizing side panel.
* Update PanelContainerComponent unit test snapshot
* Fix commented code
* Added query retry settings
* prettier run
* Fixed tests and queryDocuments
* Fixed tests
* corrected logic
* Updated tests and logic
* Removed optional flag
* Added default value text
* Reworded text
* moved retry options to CosmosClient
* removed unused references to retryOptions
* Reverting formatting
* reverting
* revert
* prettier run
* Correct default and added options directly to the client
* Prettier run and unit test update
* Corrected tooltip and constant name
* Added inSeconds to WaitTime
* Alert is being updated for every change, hence the screenreader readsout the alert everytime a change occursin the input
* Update DeleteCollectionConfirmationPane.tsx
* Update DeleteCollectionConfirmationPane.tsx
* Keyboard navigation was not present to the back button on the add row table dialog which has been added through this commit
* Update PanelComponent.less
* Setting enableEndpointDiscovery to true to test client resilience during region outage.
When this is set to false, it can impact the SDK's failover behavior.
* 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
* Cassandra null value handling
* prettier run
* Added boolean and date
* Reverted null handling switch statement and added editing warning
* ran prettier
* putting new line back in
* prettier run
* changed warning message
* updated snapshot
* fixed undefined condition
* removed toString from undefined
* Call Portal Backend to check for accounts that are restricted from
connection string login.
* Remove debug logging and revert to actual backend endpoint.
* Use React hooks for displaying error message.
* Move accountrestrictions route under guest.
* Check restrictions before resource token check.
* Revert test changes.
* arialabel has been added to close button of invitational youtube video
* heading role has been addedd and tag has been changed to h1
* outline has been restored to choose columns link in entities page
* header text color changed to meet luminosity ratio requirement
* capacity calculator link has been added with underline on focus
* add property is readout twice while using screenreader
* arialabel added to the add property button
* screenreader content changed to announce the entire alert
* alert message is partially readout on error
* Update fulldatatables.less
* Update queryBuilder.less
* Update TableEntity.tsx
* Update ThroughputInput.less
* Update ThroughputInput.tsx
* Update ThroughputInput.test.tsx.snap
* Update NewVertexComponent.tsx
* Update PanelInfoErrorComponent.tsx
* Update AddTableEntityPanel.tsx
* Update AddTableEntityPanel.test.tsx.snap
* Update SplashScreen.tsx
* Update QuickstartCarousel.tsx
* Update RightPaneForm.tsx
* Update fulldatatables.less
* 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>
* cancel query option
* query timeout
* run prettier
* removed comments
* fixed npm run compile errors
* fixed tests
* fixed unit test errors
* fixed unit test errors
* fixed unit test errors
* fixed unit test errors
* fixed unit test errors
* increased min timeout
* added automatican cancel query option
* added react string format
* npm run format
* added unless automatic cancellation has been enabled
---------
Co-authored-by: Asier Isayas <aisayas@microsoft.com>
* Add redirect for /aad to /?feature.enableAadDataPlane=true
* Add feature to hide the connection string login link. Enable this new
feature for the aad redirect.
* 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>
* arialabel has been added to close button of invitational youtube video
* heading role has been addedd and tag has been changed to h1
* outline has been restored to choose columns link in entities page
* Update QuickstartCarousel.tsx
* Update SplashScreen.tsx
* Update TableEntity.tsx
* outline for edit entity has been added on focus
* keyboard accessibility added to rows in table entities
* learn more link under analytical store
* Column header is populated with text
* aria label has been changed for the screen readers to read placeholder text along with label text
* Update queryBuilder.less
* Update TableEntity.tsx
* Update ThroughputInputAutoPilotV3Component.tsx
* Update ThroughputInputAutoPilotV3Component.tsx
* Update ThroughputInputAutoPilotV3Component.test.tsx.snap
* Update ThroughputInput.less
* Update PanelComponent.less
* Update DataTableBindingManager.ts
* Update AddCollectionPanel.tsx
* Update AddCollectionPanel.test.tsx.snap
* spec.ts files updated for the tests
* update to container.spec files
* Update container.spec.ts
* Update container32.spec.ts
* Update AddCollectionPanel.tsx
* Update AddCollectionPanel.tsx
* Update AddCollectionPanel.test.tsx.snap
* Update container.spec.ts
* Update container.spec.ts
* Update container32.spec.ts
* Update container.spec.ts
* Update container.spec.ts
* arialabel has been added to close button of invitational youtube video
* heading role has been addedd and tag has been changed to h1
* outline has been restored to choose columns link in entities page
* Update QuickstartCarousel.tsx
* Update SplashScreen.tsx
* Update TableEntity.tsx
* outline for edit entity has been added on focus
* keyboard accessibility added to rows in table entities
* learn more link under analytical store
* Column header is populated with text
* aria label has been changed for the screen readers to read placeholder text along with label text
* Update queryBuilder.less
* Update TableEntity.tsx
* Update ThroughputInputAutoPilotV3Component.tsx
* Update ThroughputInputAutoPilotV3Component.tsx
* Update ThroughputInputAutoPilotV3Component.test.tsx.snap
* Update ThroughputInput.less
* Update PanelComponent.less
* Update DataTableBindingManager.ts
* Update AddCollectionPanel.tsx
* Update AddCollectionPanel.test.tsx.snap
* spec.ts files updated for the tests
* update to container.spec files
* info button in stats tab is made accessible with keyboard
* Update AddCollectionPanel.tsx
* Update AddCollectionPanel.tsx
* Update AddCollectionPanel.test.tsx.snap
* Update container.spec.ts
* Update container.spec.ts
* Update container.spec.ts
* Update container32.spec.ts
* Update container.spec.ts
* Update container.spec.ts
* info icons are added as a column item and keyboard focus has been added to them
* Update QueryTabComponent.tsx
* arialabel has been added to close button of invitational youtube video
* heading role has been addedd and tag has been changed to h1
* outline has been restored to choose columns link in entities page
* Update QuickstartCarousel.tsx
* Update SplashScreen.tsx
* Update TableEntity.tsx
* outline for edit entity has been added on focus
* keyboard accessibility added to rows in table entities
* learn more link under analytical store
* Column header is populated with text
* aria label has been changed for the screen readers to read placeholder text along with label text
* Update queryBuilder.less
* Update TableEntity.tsx
* Update ThroughputInputAutoPilotV3Component.tsx
* Update ThroughputInputAutoPilotV3Component.tsx
* Update ThroughputInputAutoPilotV3Component.test.tsx.snap
* Update ThroughputInput.less
* Update PanelComponent.less
* Update DataTableBindingManager.ts
* Update AddCollectionPanel.tsx
* Update AddCollectionPanel.test.tsx.snap
* spec.ts files updated for the tests
* update to container.spec files
* info button in stats tab is made accessible with keyboard
* focus order after invoking entities has been made to move logicallt from the entities tab instead of the table getting focus
* Update AddCollectionPanel.tsx
* Update AddCollectionPanel.test.tsx.snap
* Update QueryTabComponent.tsx
* Update container.spec.ts
* Update container.spec.ts
* Update container.spec.ts
* Update container32.spec.ts
* Update container.spec.ts
* Update container.spec.ts
* Update DataTableBindingManager.ts
* arialabel has been added to close button of invitational youtube video
* heading role has been addedd and tag has been changed to h1
* outline has been restored to choose columns link in entities page
* Update QuickstartCarousel.tsx
* Update SplashScreen.tsx
* Update TableEntity.tsx
* outline for edit entity has been added on focus
* keyboard accessibility added to rows in table entities
* learn more link under analytical store
* Update queryBuilder.less
* Update TableEntity.tsx
* Update PanelComponent.less
* Update DataTableBindingManager.ts
* Update DataTableBindingManager.ts
* dropdown,input elements have been updated to grasp screenreadercontent for all the elements
* Update EntityValue.tsx
* Update TableEntity.tsx
* Update AddTableEntityPanel.tsx
* entityvalue.tsx has been removed from tsconfig.strict file since the changes for the files are not getting compiled
* changed the variable enablePriorityBasedThrottling to enablePriorityBasedExecution
* Update the arm client version to '2023-09-15-preview' to fetch the status for the 'enablePriorityBasedExecution' property and performed the respective changes for priority based execution to grab the changes from the DatabaseAccount data model
* formatting changes to all the committed files
* review comments - removed the variable and added the check in the if loop itself
* check style changes
---------
Co-authored-by: Faiz Chachiya <faizchachiya@microsoft.com>
* Added tooltip to the filename and status columns. There is an InfoTooltip function that can reduce the boilerplate.
* Changed tooltip to be constructed with the DetailsList column and changed orientation to rightCenter.
That orientation prevents issues with topCenter orientation getting off center from the width of the cell.
Also looks a bit nicer, but will get feedback.
* Updated formatting.
* Removing uneccessary column formatting.
---------
Co-authored-by: Craig Boger <craig.boger@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>
* Alternate tree running fluentui v9 Tree component
* Fix tree update after sp, udf and trigger load
* Enable scrolling for subtrees
* Clean up duplicates
* Restore current tree
* Reformat
* Update package-lock.json
* 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 rough of keeping textfield blank. Still need to disable save button.
* Rough implementation with state moved up to settings component. Allows for discarding of new TTL when TTL is already enabled.
* Updating unit tests to include new display variable.
* Brought formatting back from master.
* Updating unit test snapshots.
* Ran prettier and renormalized modified files.
* Correct lint issues.
* Undo prettier changes to add collection code and testing snapshot.
* Restoring AddCollectionPanel to match master. Not modifying snapshot.
---------
Co-authored-by: Craig Boger <craig.boger@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>
* Execute the queries with high/low priority
* improvement made to the Cosmos client and created separate plugin class for setting priority header
* added test cases for the priority execution utility
* removed unwanted code
* fix compile time issues
* fix compile time issues
* fixed lint and stylinkg issues
* fixed lint and styling issues
* skip the lint check for src/Utils/PriorityBasedExecutionUtils.ts
* incorporating review comments, added the default priority level changes
* changed the priority to default instead of low
* removed the unwanted if condition
---------
Co-authored-by: Faiz Chachiya <faizchachiya@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>
* Border at the bottom has been added for the tabs to differntiate from unselected tabs while using contrast themes
* Update Tabs.tsx
* Update Tabs.tsx
* 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>
* arialabel has been added to close button of invitational youtube video
* heading role has been addedd and tag has been changed to h1
* outline has been restored to choose columns link in entities page
* Update QuickstartCarousel.tsx
* Update SplashScreen.tsx
* Update TableEntity.tsx
* outline for edit entity has been added on focus
* keyboard accessibility added to rows in table entities
* learn more link under analytical store
* Column header is populated with text
* aria label has been changed for the screen readers to read placeholder text along with label text
* Update queryBuilder.less
* Update TableEntity.tsx
* Update ThroughputInputAutoPilotV3Component.tsx
* Update ThroughputInputAutoPilotV3Component.tsx
* Update ThroughputInputAutoPilotV3Component.test.tsx.snap
* Update ThroughputInput.less
* Update PanelComponent.less
* Update DataTableBindingManager.ts
* Update AddCollectionPanel.tsx
* Update AddCollectionPanel.test.tsx.snap
* spec.ts files updated for the tests
* update to container.spec files
* info button in stats tab is made accessible with keyboard
* focus order after invoking entities has been made to move logicallt from the entities tab instead of the table getting focus
* For unsharded collections the max value has been added
* Update AddCollectionPanel.tsx
* Update AddCollectionPanel.test.tsx.snap
* Update DataTableBindingManager.ts
* Update QueryTabComponent.tsx
* Update QueryTabComponent.tsx
* Update container.spec.ts
* Update container.spec.ts
* Update container32.spec.ts
* Update container.spec.ts
* Update container.spec.ts
* id has been removed for the input elements in add table row dialog since they have no significance in selection of elements and they are repetetive which is not a good practice
* Update EntityValue.tsx
* Update EntityValue.tsx
* Adding example endpoint with trailing forward slash.
* Move backend and ARM endpoint validation to configContext for initialization from config.json.
* Added debugging script and attempts to relocate endpoint validation list.
* Move default endpoint list to endpoint validation code and allow falling back to the default list during unit tests if configContext is not initialized.
* Remove leftover debugger statements.
* Remove test debug script in package.json for debugging unit tests in browser.
* Run prettier on modified files.
* Overwriting with package.json from master.
* Overwriting with version from master.
* Remove test ARM endpoint.
* Replace ternary operator with || for more concise arguments per Victor's feedback.
---------
Co-authored-by: Craig Boger <craig.boger@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>
* Update feature flag if sample data exists
* Add additional conditional
* Revert useknockout to starting condition
* Use tracked property for rendering conditiona
* arialabel has been added to close button of invitational youtube video
* heading role has been addedd and tag has been changed to h1
* Update QuickstartCarousel.tsx
* Update QuickstartCarousel.tsx
* Update SplashScreen.tsx
* arialabel has been added to close button of invitational youtube video
* heading role has been addedd and tag has been changed to h1
* outline has been restored to choose columns link in entities page
* Update QuickstartCarousel.tsx
* Update SplashScreen.tsx
* Update TableEntity.tsx
* outline for edit entity has been added on focus
* Improving test coverage
* Not leaving empty functions
* Additional test editing
* Correction of the unit test
* Changes made so the tests work correctly
* removing problematic tests
* QueryCopilotUtilities
* Changes based on Lint suggestion
* Changes based on lint
* Additional lint suggestion solved
* sample implementation
* removing console log
* Fixing non empty lint function error
* Changed any to void in mocked function
---------
Co-authored-by: Predrag Klepic <v-prklepic@microsoft.com>
* Improving test coverage
* Not leaving empty functions
* Additional test editing
* Correction of the unit test
* Changes made so the tests work correctly
* removing problematic tests
---------
Co-authored-by: Predrag Klepic <v-prklepic@microsoft.com>