Skip to content

Commit 60b5a7a

Browse files
ironAiken2agatha197
authored andcommitted
fix(FR-2467): disable session commit button until session is Running (#6452)
Resolves #6443 (FR-2467) ## Summary - Disable commit button when session status is not RUNNING - Previously only checked isActive() which allowed non-running states like PREPARING, PENDING, PULLING to enable the button ## Test plan - [ ] Verify commit button is disabled when session is in PREPARING state - [ ] Verify commit button is disabled when session is in PENDING state - [ ] Verify commit button is enabled when session is in RUNNING state - [ ] Verify commit button remains disabled for non-owners regardless of session status 🤖 Generated with [Claude Code](https://claude.com/claude-code)
1 parent ccbcac9 commit 60b5a7a

5 files changed

Lines changed: 619 additions & 458 deletions

File tree

.specs/draft-auto-scaling-rule-ux/spec.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
| GREATER_THAN | `[threshold] < [metric_name]` (반전) |
2525
| 범위 (minThreshold + maxThreshold) | `[minThreshold] < [metric_name] < [maxThreshold]` |
2626

27-
에디터 모달의 비교 연산자 드롭다운은 `<` (LESS_THAN)과 `>` (GREATER_THAN) 두 가지만 표시한다.
27+
에디터 모달의 비교 연산자 드롭다운은 **단일 모드에서만** 표시하며, `<` (LESS_THAN)과 `>` (GREATER_THAN) 두 가지만 제공한다. 범위 모드에서는 드롭다운 없이 `<`로 고정된다.
2828

2929
#### 2. 조건 모드 선택 (단일/범위)
3030

3131
Auto Scaling Rule 에디터 모달에 Ant Design `Segmented` 컴포넌트를 추가하여 "단일" / "범위" 모드를 전환한다.
3232

3333
- **단일 모드** (기본): 비교 연산자(`<`, `>`) 하나와 threshold 값을 입력
34-
- **범위 모드**: `[하한값]` ~ `[상한값]` 범위를 지정 (`minThreshold`/`maxThreshold` 사용)
34+
- **범위 모드**: `[하한값]` ~ `[상한값]` 범위를 지정 (`minThreshold`/`maxThreshold` 사용). 비교 연산자는 `<`로 고정 (드롭다운 미표시)
3535
- 하한값 >= 상한값이면 validation 에러를 표시
3636

3737
#### 3. Prometheus Preset 기반 메트릭 선택
@@ -55,7 +55,8 @@ Prometheus Preset 모드(>=26.4.0)에서 메트릭 설정 form item의 `extra`
5555
- [ ] Rules 목록 테이블에서 모든 조건이 `<` 방향으로 통일되어 표시된다
5656
- [ ] GREATER_THAN으로 저장된 Rule은 threshold와 metric_name이 교환되어 표시된다
5757
- [ ] 범위 Rule(minThreshold + maxThreshold)은 `[min] < [metric] < [max]` 형태로 표시된다
58-
- [ ] 에디터 모달의 비교 연산자 드롭다운에 `<``>`만 표시된다
58+
- [ ] 에디터 모달의 비교 연산자 드롭다운은 단일 모드에서만 표시되며, `<``>`만 제공된다
59+
- [ ] 범위 모드에서는 비교 연산자가 `<`로 고정되고 드롭다운이 표시되지 않는다
5960
- [ ] 에디터 모달에서 Segmented로 "단일"/"범위" 모드를 전환할 수 있다
6061
- [ ] 범위 모드에서 하한값 >= 상한값이면 validation 에러가 표시된다
6162
- [ ] 범위 모드는 `minThreshold`/`maxThreshold` 필드를 사용하여 하나의 Rule로 저장된다

0 commit comments

Comments
 (0)