Repository navigation
feat(arena): 체험 공간 설정 저장·조회 API와 블록 검증 연동 (#159) - #160
Merged
Merged
Conversation
- 가로·세로·벽 여유·출발점·방향 저장, 프리셋 6x6-박람회/3x3-부스, 변경 이력 - 공간에서 1회 이동 한도·기본 이동 거리를 계산해 #118 검증·블록 카탈로그·AI 초안 검증에 반영 - 설정이 없으면 6x6 기본값(기존 동작) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #159
변경
domain/arena: 설정 모델(검증·파생 값), 프리셋 2종, 저장(단일 행)·이력 테이블(V20), 서비스, 컨트롤러GET /api/v1/arena-settings,GET /api/v1/arena-settings/presets(공개),PUT /api/v1/admin/arena-settings,GET /api/v1/admin/arena-settings/history(관리자)maxMovePerCommandM = min(3.0, 내림0.1(가용 영역 짧은 변 − 0.8))— 이동 후에도 제자리 회전 지름 0.8 m 확보. 6×6 → 3.0 / 3×3 → 1.2.defaultMoveDistanceM6×6 → 1.0 / 3×3 → 0.5.BlockProgramLimitValidator), 블록 카탈로그, AI 초안 검증이 위 값을 따른다. 설정이 없으면(또는 DB 없는 구성)DefaultArenaSettingsProvider(6×6) → 기존과 동일.docs/arena-settings.md판단
테스트
전체 397건 통과(신규 13). 프리셋 계산, 하한·상한·출발점 검증, 3×3 에서 1.3 m 이동 거부, 6×6 기본값 불변, 관리자 인증 경계, 이력, 잘못된 값이 아무것도 바꾸지 않음.
🤖 Generated with Claude Code