Skip to content

Conversation

@constantly-dev
Copy link
Member

@constantly-dev constantly-dev commented Dec 30, 2025

📌 Related Issues

✅ 체크 리스트

  • PR 제목의 형식을 잘 작성했나요? e.g. [Feat] PR 템플릿 작성
  • 빌드가 성공했나요? (pnpm build)
  • 리뷰어와 라벨을 지정했나요?

📄 Tasks

class 수정 url로 접근시 비정상 접근 모달 추가

⭐ PR Point

useEffect로 구현하긴 했는데 근거가 불충분 해보이거나 다른 방법이 생각나신다면 편하게 말해주세요!

추가로 한가지 문제가 건휘님이 구현해주신 작성 중 내용있을 때 이탈 방지 모달이 저기서 뜨더라고요. 아무것도 변경 안했는데도 떠서 저 비정상 접근 모달 이후에 겹쳐서 뜨는데.. 아마 그거 해결되면 여기서도 안뜰 것 같아요!

📷 Screenshot

image

🔔 ETC

@github-actions
Copy link

github-actions bot commented Dec 30, 2025

✅ Storybook 배포 완료! 🔗 https://67e4fd1fd2c7078dceec04a4-furzkdwecp.chromatic.com/

Copy link
Collaborator

@rtttr1 rtttr1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

const now = new Date();

if (now >= startDateTime) {
console.log('비정상적인 접근입니다.');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

콘솔 지우기!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

예리홍

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

예리홍 감사합니다~

<Modal
type="single"
content={'비정상적인 접근입니다.'}
onClose={close}
Copy link
Member

@hansoojeongsj hansoojeongsj Dec 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

비정상 접근 모달이 떴을 때, 모달 뒤 배경 클릭 시 모달이 그냥 닫힐 것 같은데 괜찮을지 확인 부탁드립니다 !!

Copy link
Member Author

@constantly-dev constantly-dev Dec 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

헉 그렇네요! onClose에 close대신 onClickHandler와 동일하게 navigate(-1) 동작으로 수정했습니다! 감사합니다~
6aae4e4

Copy link
Collaborator

@heesunee heesunee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM~

useBlockBackWithUnsavedChanges({ methods });

useEffect(() => {
if (isValidId && lessonData?.lessonRound?.lessonRounds?.length) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

id의 유효성만 확인하기 보다는 isEditMode 사용하는건 어떨까용? isEditMode = isValidId && !!lessonData일거 같은데

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

그렇네요! 이미 isEditMode에도 valid 조건이 포함되어 있어서 isEditMode를 써도 될 것 같습니다! 수정했습니다~
92a4f74

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 30, 2025

Deploying dash-client-dev with  Cloudflare Pages  Cloudflare Pages

Latest commit: 92a4f74
Status: ✅  Deploy successful!
Preview URL: https://8f9ec8a8.dash-client-dev.pages.dev
Branch Preview URL: https://feat--640-class-edit-url-mod.dash-client-dev.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 30, 2025

Deploying dash-client with  Cloudflare Pages  Cloudflare Pages

Latest commit: 92a4f74
Status: ✅  Deploy successful!
Preview URL: https://3626c0ca.dash-client.pages.dev
Branch Preview URL: https://feat--640-class-edit-url-mod.dash-client.pages.dev

View logs

@constantly-dev constantly-dev merged commit e61189d into develop Dec 30, 2025
8 checks passed
@constantly-dev constantly-dev deleted the feat/#640/class-edit-url-modal branch December 30, 2025 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

진혁 이지녁 🛠️ Feature 기능 개발

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat] 클래스 수정 url로 접근 시 차단하는 모달 추가

5 participants