Skip to content

refactor: hotspot 4파일 중첩 삼항/캐스트 중복 제거 - #108

Merged
GoBeromsu merged 2 commits into
devfrom
feature/C-refactor-simplify-hotspots
May 28, 2026
Merged

refactor: hotspot 4파일 중첩 삼항/캐스트 중복 제거#108
GoBeromsu merged 2 commits into
devfrom
feature/C-refactor-simplify-hotspots

Conversation

@GoBeromsu

Copy link
Copy Markdown
Owner

Summary

오늘 머지된 PR의 hotspot 4파일에 대해 simplify dry-run + code-review 거쳐 low-risk 정리 6건 적용.

  • frontend/app/(app)/portfolio/page.tsx: RISK_BAR_COLOR map, toRiskLevel 함수
  • frontend/app/(app)/report/page.tsx: hasReport 분기 Link 중복 단일화
  • agent/src/agentModeParser.ts: qa 분기 캐스트 3회→1회 로컬변수
  • agent/src/pi/piSession.ts: sessionOptions spread + traceEnabled 1회

동작/시그니처 변화 없음. 테스트 통과 + 타입체크 통과 확인.

Test plan

  • agent tsc --noEmit pass
  • agent npm test (agentServiceModeContract) pass (pre-existing fetchDisclosures 1건 실패는 base branch와 동일)
  • frontend tsc --noEmit pass
  • 시각적 회귀 없음 (스타일 속성 누락 없음)

🤖 Generated with Claude Code

- portfolio: RISK_BAR_COLOR map + toRiskLevel 함수로 중첩 삼항 평탄화
- report: hasReport 분기 60줄 Link 중복 단일화
- agentModeParser: qa 분기 parsed 캐스트 3회→1회 로컬변수
- piSession: sessionOptions 공통 7필드 spread, traceEnabled toLowerCase 3회→1회

동작 변화 없음. simplify dry-run 6건 전부 low-risk 적용.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@GoBeromsu
GoBeromsu merged commit a6f8d6c into dev May 28, 2026
8 checks passed
@GoBeromsu
GoBeromsu deleted the feature/C-refactor-simplify-hotspots branch May 28, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant