Skip to content

feat: New Timestamp component on the Chat Input Toolbar and Support for Displaying it #987

@dhairyashiil

Description

@dhairyashiil

As an EmbeddedChat developer:
We want to allow timestamps to be displayed in different formats within the chat content. This will give users the ability to see dates and times in various styles, such as relative time (e.g., "5 minutes ago") or full date/time formats.
also
Add 1 new Timestamp component in the Chat Input Toolbar which will help users to create these timestamps in certain format.

I need to:
Integrate a chat input component for timestamp along with feature that renders timestamps with different formats (e.g., relative time, specific date/time formats)

So That:
Users can create timestamps om chat input box and see timestamps displayed in the appropriate format depending on the context (e.g., "5 minutes ago" for recent timestamps or a full date and time like "February 14, 2025, 3:00 PM GMT+02:00" for older ones).

Acceptance Criteria

  • Add support for rendering timestamps in various formats like relative time ("5 minutes ago") or full date and time.
  • The timestamp format should be flexible, supporting options like short time, full date, and long-form date with time.
  • Ensure that the TimestampElement correctly handles and displays the timestamp based on the provided format in the content data.
  • Create a new chat input component that will create these timestamps in the required format

Refer RC: (RC doesn't have a component to add timestamps in the chat input yet but it supports displaying of timestamps)

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions