Skip to content

[운동 탭] 수업 종료 이벤트 전달 안정화#101

Merged
tmin002 merged 2 commits intodevelopfrom
fix/exercise-done-broadcast
Jan 21, 2026
Merged

[운동 탭] 수업 종료 이벤트 전달 안정화#101
tmin002 merged 2 commits intodevelopfrom
fix/exercise-done-broadcast

Conversation

@tmin002
Copy link
Copy Markdown
Contributor

@tmin002 tmin002 commented Jan 21, 2026

Summary

  • 수업 창이 닫히는 타이밍에 CLASS_DONE 신호가 유실되어 완료 페이지로 이동이 안 되는 케이스를 방지합니다.
  • CLASS_DONE를 localStorage에 먼저 기록하고, window.close()를 짧게 지연시켜 부모 탭이 안정적으로 수신하도록 했습니다.
  • (부수) CI의 prettier/prettier lint 실패를 막기 위해 일부 파일을 CI Prettier 출력과 맞췄습니다.

Test plan

  • 수업 시작(새 창) → 마지막 영상 종료 → 부모 탭이 /exercise/done/[id]로 자동 이동
  • 완료 버튼("종료") 클릭 시에도 동일하게 /exercise/done/[id]로 이동
  • npm run lint -- --quiet / npm run typecheck 통과

Reformat files to match the Prettier output used by CI (npm ci), preventing prettier/prettier lint failures.
Write CLASS_DONE to localStorage before BroadcastChannel and delay window.close slightly to avoid losing the done signal.
@tmin002 tmin002 requested a review from a team as a code owner January 21, 2026 09:14
@tmin002 tmin002 requested review from SaltySalt77 and removed request for a team January 21, 2026 09:14
@tmin002 tmin002 added this pull request to the merge queue Jan 21, 2026
Merged via the queue into develop with commit 0f6e3f7 Jan 21, 2026
5 checks passed
tmin002 added a commit that referenced this pull request Feb 3, 2026
[운동 탭] 수업 종료 이벤트 전달 안정화
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