Commit 15d6897
committed
Resolves #6485 (FR-2494)
> [!NOTE]
> Translation is handled in #6642
## Summary
- Add `AutoScalingRuleEditorModal.tsx` (Strawberry API, >=26.4.0) with:
- Segmented single/range condition mode toggle
- Single mode: direction selector (Upper sets `maxThreshold`, Lower sets `minThreshold`)
- Range mode: both `minThreshold` + `maxThreshold` with validation (min >= max shows error)
- Metric source dropdown with KERNEL, INFERENCE_FRAMEWORK, PROMETHEUS options
- Prometheus preset selection: auto-fills `metricName`, shows `queryTemplate` read-only, auto-applies `timeWindow`
- `prometheusQueryPresetId` stored as raw UUID via `toLocalId(globalId)`
- Strawberry `createAutoScalingRule` / `updateAutoScalingRule` mutations
- Wire `AutoScalingRuleEditorModal` into `AutoScalingRuleList.tsx` (create + edit flows)
- Add i18n keys for new UI elements (Single, Range, Upper, Lower, QueryTemplate, validation messages, etc.)
## Verification
```
=== Relay: PASS ===
=== Lint: PASS ===
=== Format: PASS ===
=== TypeScript: PASS ===
=== ALL PASS ===
```
1 parent 80fd0f2 commit 15d6897
3 files changed
Lines changed: 819 additions & 4 deletions
File tree
- react/src/components
- resources/i18n
0 commit comments