Skip to content

chore(CLNP-2919): fixed issues from message threading QA #182

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 49 commits into from
Jul 3, 2024

Conversation

OnestarLee
Copy link
Collaborator

@OnestarLee OnestarLee commented Jun 4, 2024

For Internal Contributors

CLNP-2919

Description Of Changes

  • Thread page 상단에서 채널명 선택 시 채널로 이동되도록 수정
  • Thread 페이지에 리플이 있을때 Reply to thread 문구가 나오도록 수정
    image
  • Thread 페이지에서 New 메세지 버튼과, 하단이동버튼 나오지 않도록 수정
  • Thread 페이지에서 댓글단 유저 이름이 나오도록 수정
  • 초대되기 이전에 작성된 메세지에 대한 Thread페이지 진입 못하도록 수정하고, Toast 팝업 표시(Android 와 동일한 처리)
    image
  • GroupChannel 에서 본인이 발신한 메세지에 상대방이 리플을 달았을때 문구 수정 'A' replied to 'MyName' -> 'A' replied to You
  • 15명 이상이 초대된 방에서 태그 가능한 멤버 리스트가 알파벳 순서로 정렬되지 않는 이슈
    • 대소문자가 혼합되었을경우 org.webkit:android-jsc-intl 이 아닌 org.webkit:android-jsc 를사용하면 i18n 관련 처리가 되지않고 단순히 유니코드값 기준으로 정렬되어 문제발생 -> nickName 비교시 소문자로 변경후 비교하도록 수정
  • 채널룸 내에 모든 메세지 삭제시 no message 문구가 상하, 좌우 반전되어 노출되는 이슈
    • flatList inverted 값이 최신값을 반영하도록 수정
  • 100개 이상 리플라이 달렸을때 100 replies -> 99+ replies 로 표시하도록 변경
  • 업로드 가능한 파일 사이즈보다 클경우 에러 팝업 출력하도록 수정(Android 와 동일한 처리)
    • sbOptions.appInfo.uploadSizeLimit 추가
    • image
  • 그룹채널뷰와 쓰레드 뷰에서 보이스 메세지 플레이타임이 동기화 되지않은 이슈
    • VoiceMessageStatusManager 를 추가하고 채널 과 쓰레드 의 VoiceFileMessage 에서 subscribe
    • 컴포넌트 언마운트될때 unsubscribe
    • 채널에서 나갈때 VoiceMessageStatusManager clear 처리
  • Bugfix
  • New feature
  • Documentation (correction or otherwise)
  • Cosmetics (whitespace, appearance (ex) Prettier)
  • Build configuration
  • Improvement (refactor code)
  • Test

@OnestarLee OnestarLee requested a review from bang9 June 23, 2024 23:32
@OnestarLee
Copy link
Collaborator Author

QA수정 내용 완료되어 다시 요청드립니다 @bang9

return '0 B';
}
const units = ['B', 'KB', 'MB', 'GB', 'TB'];
const digitGroups = Math.floor(Math.log10(fileSize) / Math.log10(1024));
Copy link
Collaborator

Choose a reason for hiding this comment

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

awesome!

{headerTitle}
</Text>
{renderSubtitle()}
<PressBox onPress={onPressHeader}>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it expected to navigate back when the header title area is pressed, instead of using the back button? What behavior was the QA team expecting?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The QA team expects navigation to go back when either the back button or the header title is pressed. Also, the behavior on other platforms is consistent with that the QA team expects.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thank you for the explanation. Do you happen to know the reason why? 🤔

Copy link
Collaborator Author

@OnestarLee OnestarLee Jun 28, 2024

Choose a reason for hiding this comment

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

I understood the behavior incorrectly.
When the back button is pressed, it navigates back.
When the subtitle is pressed, it navigates to the parent message.
I will fix the issue. @bang9

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@bang9
Copy link
Collaborator

bang9 commented Jun 27, 2024

done!

@OnestarLee OnestarLee requested a review from bang9 June 28, 2024 06:31
Copy link
Collaborator

@bang9 bang9 left a comment

Choose a reason for hiding this comment

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

LGTM!

@OnestarLee OnestarLee requested a review from bang9 July 3, 2024 03:51
scrollToMessageWithCreatedAt(props.searchItem.startingPoint, false, MESSAGE_SEARCH_SAFE_SCROLL_DELAY);
}
}, [isFirstMount]);
}, [isChangedSearchItem]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

이거 하나 고려를 해봐야 할 게 있는데요, 아래처럼 searchItem 이 inline object 로 전달될 경우
렌더링마다 새로운 오브젝트가 생성 되어 전달됩니다.

<GroupChannelFragment
  searchItem={{ startingPoint: 12345678 }}
/>

이렇게 전달된 케이스에서는 렌더링마다 새로운 오브젝트가 생성되면서 (주소)값이 변했다고 인식되기 때문에
매 렌더링마다 side effect(useEffect 의 로직) 가 트리거 됩니다. (isFirstMount 를 추가해놓은 이유이기도 합니다.)

Copy link
Collaborator Author

@OnestarLee OnestarLee Jul 3, 2024

Choose a reason for hiding this comment

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

그럼 searchItem 말고 searchItem.startingPoint 기준으로 처리하는건 어떨까요?
기능상 searchItem에 변화가 되었을때 스크롤이 되어야 하는데 현재는 startingPoint만 가지고 있어서 searchItem.startingPoint 이걸로 처리하고 추후에 종류가 늘어나면 다시 고려해보는것도...

Copy link
Collaborator

Choose a reason for hiding this comment

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

옙 기존 로직에서 deps 에 [isFirstMount, props.searchItem?.startingPoint] 로만 업데이트 해서 적용 되는지 체크한번 해봐주실 수 있을까요?

Copy link
Collaborator Author

@OnestarLee OnestarLee Jul 3, 2024

Choose a reason for hiding this comment

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

기존 로직에서 if 조건에 isFirstMount 가있어서 GroupChannel -> Thread -> GroupChannel 로 넘어갈경우 isFirstMount 가 false라서 실행이 안되는데요
현재 Thread -> GroupChannel 가는 상황에서 isFirstMount 가 false 인게 문제라 어떻게 수정하든 isFirstMount 관련 처리는 빠져야 할것 같아요

Copy link
Collaborator

Choose a reason for hiding this comment

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

아 그러네유! 넵 일단 빼시죠

@OnestarLee OnestarLee merged commit 95c4848 into feat/message-threading Jul 3, 2024
6 checks passed
@OnestarLee OnestarLee deleted the feat/message-threading-qa branch July 3, 2024 04:33
@OnestarLee OnestarLee restored the feat/message-threading-qa branch July 3, 2024 04:33
@OnestarLee OnestarLee deleted the feat/message-threading-qa branch July 9, 2024 05:17
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.

3 participants