Skip to content

Conversation

@HoonBaek
Copy link
Contributor

@HoonBaek HoonBaek commented May 19, 2023

Description Of Changes

  • Create components
    • ReactedMembersBottomSheet
    • MobileEmojisReactions
  • Add util function: getEmojiUrl
    • you can get the emoji URL from the emojiContainer with this util function
  • Add some menu options to the MobileContextMenu
    • Reply in Thread
    • Reply to Thread
  • Add a new props avatarSize to the UserListItem comp
  • Set the type of breakpoint to string and boolean
  • Apply browserSupportMimeType to record voice messages in several browsers

UIKIT-3882

@HoonBaek HoonBaek requested review from AhyoungRyu and sravan-s May 19, 2023 06:12
@HoonBaek HoonBaek self-assigned this May 19, 2023
@HoonBaek HoonBaek changed the title Fix/UI kit 3882/fix critical issues for mobile compatibility fix: Critical issues for mobile compatibility May 19, 2023
import ImageRenderer from '../ImageRenderer';
import Icon, { IconColors, IconTypes } from '../Icon';
import Label, { LabelColors, LabelTypography } from '../Label';
import { useChannelContext } from '../../modules/Channel/context/ChannelProvider';
Copy link
Contributor

Choose a reason for hiding this comment

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

MobileEmojisBottomSheet wont be used inn thread?

Copy link
Contributor Author

@HoonBaek HoonBaek May 23, 2023

Choose a reason for hiding this comment

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

Yes, so I changed it to get the channel through props!
btw I will make the hybrid hook function to get context from multiple context provider!

const ReactorList = useMemo(() => {
const memberList = message.reactions?.find(reaction => reaction.key === selectedEmoji)
?.userIds.map((userId) => members.find((member) => member.userId === userId) ?? null)
.filter((member) => member !== null) as Array<Member>;
Copy link
Contributor

Choose a reason for hiding this comment

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

as Array<Member> is this type-casting really necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It says the memberList type is Array<Member | null> even I filtered null

<EmojiReactions
userId={userId}
message={message as UserMessage | FileMessage}
channel={channel}
Copy link
Contributor

Choose a reason for hiding this comment

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

Cant we use hook?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

MessageContent is used under the Channel and Thread modules, do you have any good ideas to support both?

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah, I can share in chat ~

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let me apply it in the different PR

@HoonBaek HoonBaek requested a review from AhyoungRyu May 23, 2023 05:32
Copy link
Contributor

@AhyoungRyu AhyoungRyu left a comment

Choose a reason for hiding this comment

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

👍 👍👍

@HoonBaek HoonBaek merged commit 407d1c2 into develop/Mobile-compatibility May 23, 2023
@HoonBaek HoonBaek deleted the fix/UIKIT-3882/Fix-critical-issues-for-Mobile-compatibility branch May 23, 2023 06:07
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.

4 participants