Skip to content

Fix(#272, #274, #276): 피드백에서 제보된 메모 관련 문제 해결 #277

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

Merged
merged 5 commits into from
Dec 12, 2023

Conversation

Byeonjin
Copy link
Collaborator

작업 개요

메모지 영어, 한글 폰트가 다른 문제 해결, 폰트 크기 제어시 메모지 배경 크기 조절 close #272
메모지와 다른 요소를 같이 선택할 경우 메모 편집 패널 표시 오류 close #274
메모지 입력 시 백스페이스 문제 해결 close #276

작업 사항

메모지 영어, 한글 폰트가 다른 문제 해결, 폰트 크기 제어시 메모지 배경 크기 조절

해당 조작시 배경이 되는 Rect 객체의 height를 늘려주는 것으로 해결했습니다.

메모지와 다른 요소를 같이 선택할 경우 메모 편집 패널 표시 오류

메모지 1개만 선택했을 때 편집 패널이 나오도록 수정

메모지 입력 시 백스페이스 문제 해결

백스페이스를 누르면 객체를 지우는 이벤트가 발생. 텍스트를 편집 중인가 여부를 포함하는 상태(isMemoEditingState)를 만들어 이를 추적해 이벤트를 등록, 제거해 해결

고민한 점들(필수 X)

스크린샷(필수 X)

- 메모지 1개만 선택했을 때 편집 패널이 나오도록 수정
- 백스페이스를 누르면 객체를 지우는 이벤트가 발생. 텍스트를 편집 중인가 여부를 포함하는 상태를 하나 만들어 이를 추적해 이벤트를 등록, 제거해 해결
@Byeonjin Byeonjin added 🐞 Fix 버그 수정 🛠️ Refactor 리팩토링 작업 FE 프론트엔드 작업 labels Dec 12, 2023
@Byeonjin Byeonjin added this to the 6주차 milestone Dec 12, 2023
@Byeonjin Byeonjin self-assigned this Dec 12, 2023
Copy link

netlify bot commented Dec 12, 2023

Deploy Preview for boarlog ready!

Name Link
🔨 Latest commit b2b4ac9
🔍 Latest deploy log https://app.netlify.com/sites/boarlog/deploys/65781eb598222000083a280c
😎 Deploy Preview https://deploy-preview-277--boarlog.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@Jw705 Jw705 left a comment

Choose a reason for hiding this comment

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

고생 많으셨습니다! 👍👍👍

@@ -132,6 +147,7 @@ const Toolbar = () => {

// 더미 텍스트박스를 생성합니다.
const dummyTextBox = new fabric.Textbox(textBox.text, {
fontFamily: "Pretendard Variable",
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
Collaborator

@LellowMellow LellowMellow left a comment

Choose a reason for hiding this comment

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

고생 많으셨습니다! 드디어... 마침내...

@@ -27,8 +29,12 @@ const QuestionList = () => {
<h2 className="semibold-18 inline-block mt-1 p-4">질문 리스트</h2>
<div className="h-[36rem] px-4 overflow-y-auto">
<ul ref={listRef}>
{questions.map((question, index) => (
<li className={`p-4 h-fit mb-4 min-h-[6.25rem] ${MEMO_COLOR} relative`} key={index}>
{questions.map(({ content, questionId }, index) => (
Copy link
Collaborator

Choose a reason for hiding this comment

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

구조분해할당 좋습니다 :)

Comment on lines +97 to +98
const textBoxHeight = textBox.get("height") <= 145 ? 145 : textBox.get("height") + 20;
memoBackground.set({ height: textBoxHeight });
Copy link
Collaborator

Choose a reason for hiding this comment

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

상수 관리 같이 고민해봐요 :)

const textBoxHeight = textBox.get("height") <= 145 ? 145 : textBox.get("height") + 20;
memoBackground.set({ height: textBoxHeight });

// @ts-ignore
Copy link
Collaborator

Choose a reason for hiding this comment

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

화나는 ts-ignore....... 진짜 ㅠㅠㅠ webRTC 관련해서 처리한 것처럼 저희도 직접 type을 지정...해...줄까요...?

const canvas = useRecoilValue(canvasInstanceState);
const setVisibilityEditPanel = useSetRecoilState(stickyNoteEditPanelVisibilityState);
const setStickyNoteInstance = useSetRecoilState(stickyNoteInstance);
const questionContents = useRecoilValue(clickedQuestionContentsState);
const setDefaultQuestionContents = useResetRecoilState(clickedQuestionContentsState);
const setIsQuestionListOpen = useSetRecoilState(isQuestionListOpenState);
const questionSocket = useRecoilValue(instructorSocketRefState);
const roomId = new URLSearchParams(useLocation().search).get("roomid") || "999999";
Copy link
Collaborator

Choose a reason for hiding this comment

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

이것도 뭔가 999999 말고 나중에 무조건 값을 받아오게끔? 하는건 어떨까요? 없으면 잘못된 접근이라고 error로 넘겨버리는거죠.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

좋은 아이디어 같습니다!

@Byeonjin Byeonjin merged commit e4427f6 into boostcampwm2023:dev Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FE 프론트엔드 작업 🐞 Fix 버그 수정 🛠️ Refactor 리팩토링 작업
Projects
None yet
3 participants