Skip to content
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

Fix message datetime #29

Merged
merged 2 commits into from
May 14, 2024
Merged

Conversation

brichet
Copy link
Collaborator

@brichet brichet commented May 13, 2024

This PR fixes the time displayed in the header of the message.
The message can have a different timestamp computed on server side, but before this PR the representation of this timestamp was cached using the message ID, so it did not change on the chat UI.
This PR caches the string representation using the timestamp instead of message ID.

It also moves the react state input in the input widget (instead of the chat widget), to avoid reloading all the messages when the input changes.

@brichet brichet added the bug Something isn't working label May 13, 2024
…ing the input state to the input itself instead of the chat
@brichet brichet merged commit 0d21e56 into jupyterlab:main May 14, 2024
9 checks passed
@brichet brichet deleted the fix_message_datetime branch May 14, 2024 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant