From bcedf0a29f7a0f574e0efce2098a9546844ee0a7 Mon Sep 17 00:00:00 2001 From: MokireddySampath <120497218+MokireddySampath@users.noreply.github.com> Date: Mon, 14 Aug 2023 21:51:58 +0530 Subject: [PATCH] Max value has been added to throughput for unsharded and sharded collections (#1506) * 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 --- src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx | 1 + .../__snapshots__/ThroughputInput.test.tsx.snap | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx b/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx index 1a6d633d7..b3b90b085 100644 --- a/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx +++ b/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx @@ -249,6 +249,7 @@ export const ThroughputInput: FunctionComponent = ({ onChange={(event, newInput?: string) => onThroughputValueChange(newInput)} step={AutoPilotUtils.autoPilotIncrementStep} min={AutoPilotUtils.autoPilotThroughput1K} + max={isSharded ? Number.MAX_SAFE_INTEGER.toString() : "10000"} value={throughput.toString()} ariaLabel={`${isDatabase ? "Database" : getCollectionName()} max RU/s`} required={true} diff --git a/src/Explorer/Controls/ThroughputInput/__snapshots__/ThroughputInput.test.tsx.snap b/src/Explorer/Controls/ThroughputInput/__snapshots__/ThroughputInput.test.tsx.snap index d9ffce3b4..4848f04f8 100644 --- a/src/Explorer/Controls/ThroughputInput/__snapshots__/ThroughputInput.test.tsx.snap +++ b/src/Explorer/Controls/ThroughputInput/__snapshots__/ThroughputInput.test.tsx.snap @@ -1644,6 +1644,7 @@ exports[`ThroughputInput Pane should render Default properly 1`] = ` errorMessage="" id="autoscaleRUValueField" key=".0:$.2" + max="9007199254740991" min={1000} onChange={[Function]} required={true} @@ -1667,6 +1668,7 @@ exports[`ThroughputInput Pane should render Default properly 1`] = ` deferredValidationTime={200} errorMessage="" id="autoscaleRUValueField" + max="9007199254740991" min={1000} onChange={[Function]} required={true} @@ -1964,6 +1966,7 @@ exports[`ThroughputInput Pane should render Default properly 1`] = ` aria-label="Container max RU/s" className="ms-TextField-field field-64" id="autoscaleRUValueField" + max="9007199254740991" min={1000} onBlur={[Function]} onChange={[Function]}