Skip to content

Conversation

@chohongm
Copy link
Contributor

@chohongm chohongm commented Mar 26, 2024

Fixes: AC-1230

  • 카루셀을 UIKit 에서 빼고 Core 쪽으로 옮긴다.
  • 카루셀은 View style 무시, container type 무시 (미래에 요청 있을 때 오픈)
  • container type full 은 뺀다 => default, wide 만 지원한다 => 지원 없는 container type 을 받으면 default 로 그려준다.
  • template version validation 을 추가한다.

Changelogs

  • Removed Carousel ui component as message template returns carousel component instead
  • Container type 'full' is no longer supported due to inconsistent default style of parent template components with other types
  • Added template version validation. If template's version is unsupported, fallback message will be rendered instead.

## [v3.14.0-beta] (Mar 22, 2024)

### Fixes
* Fixed a bug where swiping `Carousel` in mobile view displaying
flickering effect
* Added missing default `font-family` value to
`sendbird-message-template__root`
@chohongm chohongm self-assigned this Mar 26, 2024
...renderData.carouselItem,
items: renderData.filledMessageTemplateItemsList,
}] as ComponentsUnion['properties'][]
}
Copy link
Contributor

@bang9 bang9 Mar 26, 2024

Choose a reason for hiding this comment

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

이거 이제 합쳐졌으니, RenderData 에 carouselItem 없어져도 되지 않나유?

Copy link
Contributor

Choose a reason for hiding this comment

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

filledMessageTemplateItemsList 요기 안에 캐러셀 아이템 포멧으루 들어갈 수 있을것 같슴다

Co-authored-by: Ahyoung Ryu <irene.ryu@sendbird.com>
@chohongm chohongm changed the title feat: Remove carousel component and use message template instead feat: Remove carousel component and use message template instead + some spec changes Mar 27, 2024
@chohongm chohongm requested review from AhyoungRyu and bang9 March 27, 2024 07:50
@chohongm chohongm force-pushed the v3.14.0-beta branch 2 times, most recently from f30634f to d7adafb Compare March 27, 2024 08:03
result.carouselItem = carouselItem;
result.templateVersion = cachedTemplate.version;
result.filledMessageTemplateItemsList = [{
type: carouselItem.type as any,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
type: carouselItem.type as any,
type: carouselItem.type,

What happen if we remove as any here?

@chohongm chohongm deleted the branch v3.14.0-beta March 28, 2024 02:26
@chohongm chohongm closed this Mar 28, 2024
@chohongm chohongm reopened this Mar 28, 2024
@chohongm chohongm deleted the branch v3.14.0-beta March 28, 2024 03:03
@chohongm chohongm closed this Mar 28, 2024
@chohongm
Copy link
Contributor Author

This PR has been closed due to target branch is detached from HEAD.
Please review #1032 instead.

@AhyoungRyu AhyoungRyu deleted the feat/v3/AC-1230-remove-carousel-component-and-use-message-template-instead branch October 4, 2024 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants