rustic-ai / ui-components

React component library for crafting user-friendly and engaging conversational experiences
https://rustic-ai.github.io/ui-components/
MIT License
38 stars 10 forks source link

Timestamp component - edits to message info #111

Closed RenataDzotova closed 1 week ago

RenataDzotova commented 2 weeks ago

Describe the bug

  1. A comma is missing between the date and the year.
  2. I recommend mentioning a year stamp only if the message was sent last year. So, if a message was sent on December 31, 2023 (which is last year), there is a year stamp, whereas for a message sent on January 1, 2024 (which is current year), the year is not shown.
  3. In addition to that, for messages sent last year, let's add a preposition "at" to the time stamp in between the time and the date.

To Reproduce

  1. Go to storybook & open "Message Canvas" component
  2. Hover over the component

Expected behavior

Screenshot 2024-05-01 at 1 17 58 PM

Current behavior

Screenshot 2024-05-01 at 10 44 48 AM