Skip to content

시뮬레이션 모드, guide 수정#67

Merged
Jaymyong66 merged 3 commits into
mainfrom
feature/logo
May 11, 2026
Merged

시뮬레이션 모드, guide 수정#67
Jaymyong66 merged 3 commits into
mainfrom
feature/logo

Conversation

@Jaymyong66
Copy link
Copy Markdown
Contributor

목적

주요 변경사항

Jaymyong66 and others added 3 commits May 11, 2026 16:15
- PolicyMonitorTable의 Settle Claim/NoClaim 버튼이 mode 분기 없이
  on-chain 경로만 타서 simulation 모드에서 'Wallet or master agreement
  not available' 토스트 후 상태가 변하지 않던 문제. mode === 'simulation'
  분기를 추가하여 신규 store 액션 simSettleClaim/simSettleNoClaim 호출.

- runOracle이 'On Time' 입력(delay<120) 시 contract 상태를 갱신하지
  않아 'No trigger' 표시 후에도 contract.status가 'active'로 잔존하던
  문제. on-chain onChainResolve와 동일하게 contract를 'noClaim'으로
  전이시키도록 수정. contract 검증을 tier 분기보다 앞으로 이동.

- 부수 결함: settleClaims가 claim만 'settled'로 바꾸고 contract는
  'claimed' 잔존시키던 문제 수정. PolicyMonitorTable에서 Settle 버튼이
  사라지지 않던 원인.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- store partialize의 simulation 분기에 진행 상태(processStep,
  masterActive, contracts/claims/acc/pool/premHist/poolHist 및
  participants/reinsurer의 confirmed)를 모두 영속화. 새로고침 후에도
  사용자의 시뮬레이션 진행이 유지됨.

- persist version 1 + migrate 함수 추가. 이전 mixed-format 사용자의
  stale 진행 상태를 1회 정리하여 새 스키마와 충돌 방지.

- AdminHeader 우측 SIM 토글 옆에 'Sim Reset' 버튼 노출(simulation
  모드 전용). 클릭 시 confirm 다이얼로그 → resetAll() 호출 →
  workflow + form + contracts + claims + pool + logs 전부 기본값으로
  초기화. on-chain 모드에선 자동 숨김.

- i18n 신규 키: header.simReset.btn, header.simReset.confirm
  (ko/en 양쪽 추가).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Jaymyong66 Jaymyong66 self-assigned this May 11, 2026
@Jaymyong66 Jaymyong66 merged commit 9d137f7 into main May 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant