Update ChatMessage component to use new components and styles #325
Labels
Frontend 🖥
Issues corresponding to the frontend/client.
Good first issue
Good for newcomers
Improvement
Important changes made that are not described by an optimization or refactor
In order to implement sent-message and message-grouping logic for our UI we will first need to make a couple of small graphical changes. Here is our current design:
(current)

Planned design:

I forgot to change the profile picture of the second user here, but you get this idea.
In order to complete this, there are a few objects/styles I think we should refactor to:
msg
object:Message
type.author
should be changed from a string to aUser
type in order to neatly include displayName and profilePicture data. Further, theUser
type should include auserId
string. That way both profile pictures and display names will be able to be updated after a message is sent or received.msg-header
object:msg-sent
style:ack
status) all self-createdmsg
objects should also have this style applied.opacity: 50%
to show that the message hasn't been received by the server yet.As this will make messages more modular, further changes to profile data, the addition of reactions, etc will become much easier.
Make sure to reference this issue in your PR in order for this to be marked done.
The text was updated successfully, but these errors were encountered: