Skip to content

feat: 이클래스 과제 동기화 기능 추가 - #6

Draft
rdyjun wants to merge 1 commit into
developfrom
feature/eclass-assignment
Draft

feat: 이클래스 과제 동기화 기능 추가#6
rdyjun wants to merge 1 commit into
developfrom
feature/eclass-assignment

Conversation

@rdyjun

@rdyjun rdyjun commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • 홈 화면 인기 모집 영역을 이클래스 과제 카드(EclassAssignment)로 교체
  • 과제 갱신 버튼 클릭 시 이클래스 프록시 팝업 오픈 → 스크래퍼 스크립트로 수강 과목별 과제 수집
  • 수집된 데이터를 postMessage로 부모 창에 전달 → clientRequestAuth로 백엔드 저장
  • 저장된 과제를 미제출 / 제출 완료로 구분 표시

변경 파일

  • EclassAssignment.tsx (신규) - 과제 카드 컴포넌트
  • HomePageContent.tsx - PopularRecruits → EclassAssignment 교체
  • api/eclass/proxy/route.ts - 이클래스 HTML 프록시 + 스크립트 주입
  • api/eclass/sync/route.ts - 스크래핑 데이터 백엔드 저장
  • api/eclass/assignments/route.ts - 저장된 과제 목록 조회

Test plan

  • 과제 갱신 버튼 클릭 시 팝업 오픈 확인
  • 이클래스 로그인 후 과제 스크래핑 동작 확인
  • 미제출/제출 완료 분리 표시 확인
  • 백엔드 미실행 시 빈 상태 표시 확인

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Apr 13, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: d0a5f75a-dfc6-4045-bcde-2d86ef0dbc24

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/eclass-assignment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

- 홈 화면의 인기 모집 영역을 이클래스 과제 카드로 교체
- 과제 갱신 버튼 클릭 시 이클래스 프록시 팝업 오픈
- api/eclass/proxy: HTML 중계 + 스크래퍼 스크립트 주입
- 스크래퍼: /my/ 수강 과목 -> 각 과목 과제 페이지 순회 -> postMessage로 부모에 전달
- 부모 창 clientRequestAuth로 /api/eclass/sync 호출하여 백엔드 저장
- 저장된 과제를 미제출/제출 완료로 구분 표시

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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