Skip to content

Conversation

@kaseyvee
Copy link
Collaborator

@kaseyvee kaseyvee commented May 27, 2024

BREAKING CHANGE: Changes in classnames.

Changes

  • rustic-message-actions-container is now rustic-message-container
  • rustic-message-actions-container is now applied to the message actions, as before it was added to the message content
  • remove 'last updated:' next to timestamp
  • update styling to match updated design

The message actions on mobile in the design are accessed by clicking/holding the message and having a drawer menu appear. We don't have logic implemented for this yet, so I've moved the message actions to the bottom on mobile.

Screenshots

Design

Desktop

Screenshot 2024-05-27 at 10 23 49 AM

Mobile

Screenshot 2024-05-27 at 10 24 16 AM

Before

No hover

Screenshot 2024-05-27 at 3 35 16 PM

On hover

Screenshot 2024-05-27 at 3 35 20 PM

Message space no hover

Screenshot 2024-05-27 at 3 36 53 PM

Message space on hover

Screenshot 2024-05-27 at 3 36 48 PM

After

No hover

Screenshot 2024-05-27 at 3 42 17 PM

On hover

Screenshot 2024-05-27 at 3 42 14 PM

On hover mobile

Screenshot 2024-05-27 at 3 32 09 PM

Message space no hover

Screenshot 2024-05-27 at 3 41 59 PM

Message space on hover

Screenshot 2024-05-27 at 3 41 55 PM

@kaseyvee kaseyvee marked this pull request as ready for review May 27, 2024 22:40
ref={ref}
>
<Box className="rustic-sender-info">
<Stack className="rustic-sender-info">
Copy link
Collaborator

Choose a reason for hiding this comment

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

You could remove the classname if you use Stack

Suggested change
<Stack className="rustic-sender-info">
<Stack direction="row" alignItems="center" spacing={1}>

@kaseyvee kaseyvee requested a review from lyjeileen May 27, 2024 23:10
<Typography variant="caption" color="textSecondary">
<Typography
variant="caption"
color="textSecondary"
Copy link
Contributor

@Shiti Shiti May 29, 2024

Choose a reason for hiding this comment

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

Suggested change
color="textSecondary"
color="text.secondary"

Comment on lines 20 to 21
margin-left: 16px;
align-self: flex-end;
Copy link
Contributor

Choose a reason for hiding this comment

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

If its aligned to flex-end, what does adding margin-left help with? should we be setting margin-right instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It had to do with vertical alignment as it's not completely centred in the design but I'm thinking now it might be too low with flex-end. What do you think?

with align-self: flex-end;
Screenshot 2024-05-29 at 3 59 36 PM

without align-self: flex-end;
Screenshot 2024-05-29 at 3 59 43 PM

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we could do without the align-self styling.

@lyjeileen
Copy link
Collaborator

lyjeileen commented May 29, 2024

Design has a border around the profile icon. Do we want to add it in MessageCanvas? LGTM otherwise.

@Shiti
Copy link
Contributor

Shiti commented May 29, 2024

Design has a border around the profile icon. Do we want to add it in MessageCanvas? LGTM otherwise.

shouldnt that be handled through the styling for the profile component ?

@kaseyvee
Copy link
Collaborator Author

Design has a border around the profile icon. Do we want to add it in MessageCanvas? LGTM otherwise.

shouldnt that be handled through the styling for the profile component ?

This is what I was thinking. We could update the stories in a follow up

@Shiti
Copy link
Contributor

Shiti commented May 30, 2024

Design has a border around the profile icon. Do we want to add it in MessageCanvas? LGTM otherwise.

shouldnt that be handled through the styling for the profile component ?

This is what I was thinking. We could update the stories in a follow up

yes, please update agent profile icon in storybook in a follow-up

@Shiti Shiti merged commit 95cd1b3 into rustic-ai:main May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants