From fc9f2ea78b294f20b5c863026e9808e973c4456e Mon Sep 17 00:00:00 2001 From: "Craig Boger (from Dev Box)" Date: Thu, 26 Dec 2024 16:49:46 -0800 Subject: [PATCH] Add standin region selection to settings menu. --- .../Panes/SettingsPane/SettingsPane.tsx | 46 ++++++++++++++++--- 1 file changed, 39 insertions(+), 7 deletions(-) diff --git a/src/Explorer/Panes/SettingsPane/SettingsPane.tsx b/src/Explorer/Panes/SettingsPane/SettingsPane.tsx index aedf517eb..f921d507e 100644 --- a/src/Explorer/Panes/SettingsPane/SettingsPane.tsx +++ b/src/Explorer/Panes/SettingsPane/SettingsPane.tsx @@ -6,6 +6,7 @@ import { Checkbox, ChoiceGroup, DefaultButton, + Dropdown, IChoiceGroupOption, ISpinButtonStyles, IToggleStyles, @@ -669,10 +670,41 @@ export const SettingsPane: FunctionComponent<{ explorer: Explorer }> = ({ + + + +
Region Selection
+
+ +
+
+ Select region for read and write operations. +
+ + +
+
+
)} + {(userContext.apiType === "SQL" || userContext.apiType === "Tables" || userContext.apiType === "Gremlin") && ( - +
Retry Settings
@@ -745,7 +777,7 @@ export const SettingsPane: FunctionComponent<{ explorer: Explorer }> = ({
)} - +
Enable container pagination
@@ -768,7 +800,7 @@ export const SettingsPane: FunctionComponent<{ explorer: Explorer }> = ({
{shouldShowCrossPartitionOption && ( - +
Enable cross-partition query
@@ -793,7 +825,7 @@ export const SettingsPane: FunctionComponent<{ explorer: Explorer }> = ({
)} {shouldShowParallelismOption && ( - +
Max degree of parallelism
@@ -826,7 +858,7 @@ export const SettingsPane: FunctionComponent<{ explorer: Explorer }> = ({
)} {shouldShowPriorityLevelOption && ( - +
Priority Level
@@ -849,7 +881,7 @@ export const SettingsPane: FunctionComponent<{ explorer: Explorer }> = ({
)} {shouldShowGraphAutoVizOption && ( - +
Display Gremlin query results as: 
@@ -870,7 +902,7 @@ export const SettingsPane: FunctionComponent<{ explorer: Explorer }> = ({
)} {shouldShowCopilotSampleDBOption && ( - +
Enable sample database