Coder Social home page Coder Social logo

message-renderer's People

Contributors

advaith1 avatar johnythecarrot avatar mason-rogers avatar yomanz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

smithster

message-renderer's Issues

Optimistic messages support

Add support for optimistic messages to be grayed out or red there was an error with sending the message like how discord has it

Examples:

image

error message:
image

Resolves FR-110

Add support for non snowflake IDs

If a user's ID isn't in snowflake format, the embed errors and crashes. This is a problem because in the embed created Guest Account IDs aren't in snowflake format

image

Image rendering on smaller viewports causes overflow issues.

Rendering messages with

  • Attachment images
  • Emotes
  • A name with a Bot/Server badge

all cause overflow issues on mobile devices when rendering with lists such as React Virtuoso, which causes blank spaces and jumping.

I'm sure its the images causing this, because when tested with channels that only have text content and no image attachments, it renders fine on mobile.

Video of issue:
https://github.com/widgetbot-io/message-renderer/assets/94828874/a6bffae4-96fb-45aa-836f-20f5a0e25147

Resolving author color

The only way to get the renderer to resolve the authors roles/nick color is by having to provide a 'joined_at' property on the author and then after that you have to provide a 'user' object which is just the author object

This seems like the culprit

const isGuildMember = "joined_at" in author;
const user = isGuildMember ? author.user : author;
const displayName = isGuildMember
? author.nick ?? getDisplayName(author.user)
: getDisplayName(author);
const dominantRoleIconRole = useMemo(() => {
if (!isGuildMember || !resolveRole) return null;

A few bugs with tooltips

  1. Reaction tooltips do not have a background and do not follow hovered emoji, also setting the me property to true on a reaction has no effect (all reactions have the property set to true and the last one is hovered)
    obraz
  2. The same happens to normal emojis
    obraz
  3. Timestamp tooltips also do not have the background and do not follow hovered timestamp (tested with margin-left: 200px)
    obraz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.