Skip to content

feat: add messageArchive #369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 13, 2025
Merged

feat: add messageArchive #369

merged 2 commits into from
Jun 13, 2025

Conversation

lyjeileen
Copy link
Collaborator

@lyjeileen lyjeileen commented Jun 12, 2025

Changes

  • add messageArchive component to show messages without ws connection
  • remove timeSeries example from messageSpace's story
  • bump version for release

Video

Screenshot 2025-06-12 at 2 44 31 PM Screenshot 2025-06-13 at 1 22 52 PM

Jun-13-2025 13-24-13

Jun-13-2025 13-24-56

Comment on lines 18 to 19
/** Previous chat messages */
receivedMessages: Message[]
Copy link
Contributor

Choose a reason for hiding this comment

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

Both Dev and end user experience would be better if expected a method fetchOldMessages:() =>Promise<Message[]> and an optional loadingIcon. It will make it easier for developers to define and provide custom fetch logic. The component could show the loading icon until the response is received.

infoMessage?: string
}

function getCombinedMessages(
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks like duplicate code from MessageSpace. We could avoid that by using Composition or Higher-Order Components.

@lyjeileen lyjeileen requested a review from Shiti June 13, 2025 20:25
@lyjeileen lyjeileen merged commit a7431ad into rustic-ai:main Jun 13, 2025
1 check passed
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.

2 participants