Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ Feature/article-56 ] 아티클 페이지 개발 및 이메일 템플릿 컴포넌트 구현 #57

Merged
merged 16 commits into from
Jun 19, 2024

Conversation

Happhee
Copy link
Collaborator

@Happhee Happhee commented Jun 19, 2024

🔥 Related Issues

resolved #56
close #56

💜 작업 내용

  • 아티클 페이지 구현
  • 워크북, 아티클 페이지의 title Section 공통으로 활용
  • 문제풀기 버튼 하단에 위치하도록 구현
  • 테스트 코드는 우선 title 렌더링만 진행

✅ PR Point

svg -> current

  • 외부에서 주입해서 사용하고 싶은 속성에 대해 원본 파일에 current 값을 부여하면, 외부에서 주입해서 사용할 수 있습니다!

📂 TitleSection

  • workbook, article에서 공통으로 사용하고 있어 common에 빼놓았습니다.
  • 다만, 작가부분이 다르니 이부분은 따로 사용해야 할것같습니다..! react component로 받을수있게 만들었습니다!
image

📂 EmailTemplate

  • html string을 뿌려주는 컴포넌트 입니다.

😡 Trouble Shooting

  • 아직 전역상태 도입전이라 문제풀기 버튼 이벤트를 구현하지 못했습니다.
  • 공유 팝업 개발이후 테스트 코드를 유저플로우로 만들어서 보완하도록 하겠습니다.

👀 스크린샷 / GIF / 링크

image

Copy link
Collaborator

Choose a reason for hiding this comment

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

이 부분을 common 으로 뺐네용!! 좋습니당 👍

export type ProblemListContextInfo = {
states: {
problemList: number[];
problemList: ProblemListInfo[];
Copy link
Collaborator

Choose a reason for hiding this comment

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

이거는 number[] 가 바뀔 수도 있다는 가정 하에 타입명을 지정해준건가용??

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@soomin9106 공통으로 관리하면 편할것같아서 지정했습니다.

case "1":
return HttpResponse.json(response[apiRoutes.article + "1"]);
}
return HttpResponse.json(response[apiRoutes.article + "1"]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

+ "1"/1 인가요...?

Copy link
Collaborator

Choose a reason for hiding this comment

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

아아 파일 이름이 article1 이군요 ㅋㅋㅋㅋ

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@soomin9106 아뇨! 이거 id별로 데이터달라서 설정한거에요! response 파일보시면 압니다!

@Happhee Happhee changed the title [ Feature/problem 51 ] 아티클 페이지 개발 및 이메일 템플릿 컴포넌트 구현 [ Feature/article-56 ] 아티클 페이지 개발 및 이메일 템플릿 컴포넌트 구현 Jun 19, 2024
@soomin9106
Copy link
Collaborator

오오 완전 고생하셨습니다 👍 💯
코멘트 + 어푸루브 했습니다 ㅎㅎ
퓨퓨 MVP 가보자고 ~

@Happhee Happhee merged commit 011b73b into develop Jun 19, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants