From e3815734db33e1be02a2dbed462a44dc2f3333db Mon Sep 17 00:00:00 2001 From: JustinKol <144163838+JustinKol@users.noreply.github.com> Date: Mon, 28 Jul 2025 13:24:19 -0400 Subject: [PATCH] Min/Max UX changes for Scale & Settings tab (#2192) * master pull * changed min max text boxes for autoscale * test update * Update .npmrc * Update settings.json * Prettier run --- .npmrc | 2 +- .../ThroughputInputAutoPilotV3Component.tsx | 95 +++++++--- ...putInputAutoPilotV3Component.test.tsx.snap | 165 +++++++++++++++--- 3 files changed, 215 insertions(+), 47 deletions(-) diff --git a/.npmrc b/.npmrc index bcfa17a91..0a81fc707 100644 --- a/.npmrc +++ b/.npmrc @@ -1,4 +1,4 @@ save-exact=true # Ignore peer dependency conflicts -force=true # TODO: Remove this when we update to React 17 or higher! \ No newline at end of file +force=true # TODO: Remove this when we update to React 17 or higher! diff --git a/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputInputAutoPilotV3Component.tsx b/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputInputAutoPilotV3Component.tsx index 0a9b90254..16ec09f80 100644 --- a/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputInputAutoPilotV3Component.tsx +++ b/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputInputAutoPilotV3Component.tsx @@ -559,26 +559,81 @@ export class ThroughputInputAutoPilotV3Component extends React.Component< private getThroughputTextField = (): JSX.Element => ( <> {this.props.isAutoPilotSelected ? ( - { - const sanitizedValue = getSanitizedInputValue(value); - return sanitizedValue % 1000 - ? "Throughput value must be in increments of 1000" - : this.props.throughputError; - }} - validateOnLoad={false} - /> + + {/* Column 1: Minimum RU/s */} + + + + Minimum RU/s + + + + + {AutoPilotUtils.getMinRUsBasedOnUserInput(this.props.maxAutoPilotThroughput)} + + + + {/* Column 2: "x 10 =" Text */} + + x 10 = + + + {/* Column 3: Maximum RU/s */} + + + + Maximum RU/s + + + + { + const sanitizedValue = getSanitizedInputValue(value); + return sanitizedValue % 1000 + ? "Throughput value must be in increments of 1000" + : this.props.throughputError; + }} + validateOnLoad={false} + /> + + ) : ( - + verticalAlign="end" + > + + + + Minimum RU/s + + + + + 400 + + + + x 10 = + + + + + Maximum RU/s + + + + + +