-
Notifications
You must be signed in to change notification settings - Fork 143
feat: Improve message template view #1207
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
Conversation
✅ Deploy Preview for sendbird-uikit-react ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
혹시 메세지 보내져있는 채널에 로그인 할 수 있는 정보 하나만 알려주실 수 있을까용! |
@bang9 어제까지만해도 아래걸로 테스트했었는데 오늘은 안되네요..? |
73913bf
to
a52d9f1
Compare
변경된 carousel template 구조로는 https://github.com/sendbird/sendbird-uikit-core-ts/pull/150 이 브랜치에서 캐러셀이 아직 버그가 수정은 안돼서 렌더링은 되지만 동작은 안할텐데요 [중요]
|
Co-authored-by: Hyungu Kang | Airen <gusrn1423@naver.com>
}; | ||
|
||
const totalBottom = useMemo(() => getTotalBottom(), [isTimestampBottom]); | ||
const totalBottom = useMemo(() => getTotalBottom(), []); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 totalBottom 도, wide 같은 layout 때문에 추가되었던 것 같은데.. 혹시 이전 상태 기억 나시나요?
돌리는게 좋을까요, 아니면 일단 두는게 좋을까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요건 없애는게 맞습니다. container type 이 default 가 아닐 때 bottom 값을 지정해두는 로직이었습니다. 이제는 없어졌기 때문에 위 로직도 같이 없애주는게 맞습니다.
export enum UI_CONTAINER_TYPES {
DEFAULT = '',
WIDE = 'ui_container_type__wide',
DEFAULT_CAROUSEL = 'ui_container_type__default-carousel',
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@liamcho 요고는 티켓 만들어서 진행해주시면 감사하겠습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
두는게 좋아보입니다. useMemo() 는 없애야 할것 같습니다. 있으면 실시간 업뎃이 안되네요. profile 의 bottom 위치를 메세지에 feedback button 들이 있을때, 또 thread replies 가 있을 때 계산하는 로직이라 필요합니다. 이전 로직은
.sendbird-message-content__left__avatar.use-thread-replies {
bottom: 35px;
}
를 사용했는데 extensible 하지 않고 constant 값을 사용해서 별로 좋은 방법 같지는 않습니다.
Co-authored-by: Hyungu Kang | Airen <gusrn1423@naver.com>
Co-authored-by: Hyungu Kang | Airen <gusrn1423@naver.com>
7e01cd9
to
8b20f7b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
Fixes CLNP-4852
Changelogs
How to test?
그룹채널에 유저 두명:
test_liam_1, test_liam_2 (닉네임도 유저id와 동일 함)
로컬 url:
http://localhost:5173/group_channel?appId=5D27A98C-D935-4EDA-846A-BCCD90E8E55B&userId=test_liam_1&nickname=test_liam_1&accessToken=3810634cd02e61956f08edf4fd614bfbe9e3e505
대시보드:
https://dashboard.sendbird.com/5D27A98C-D935-4EDA-846A-BCCD90E8E55B/settings/general
Figma
https://www.figma.com/design/SVbXU00FhjztekD8AiVukK/WIP_UIKit_React?node-id=2924-4031&m=dev
Default container type rendering (template message only)
WIP_UIKit_React.Figma.webm