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

Messages collation #10

Merged
merged 15 commits into from
Nov 30, 2023
Merged

Messages collation #10

merged 15 commits into from
Nov 30, 2023

Conversation

kwinto
Copy link
Contributor

@kwinto kwinto commented Nov 28, 2023

This PR implements message collation: subsequent messages from the same source are rendered without header (if they are within a 1-minute limit from the previous message).

See #55736 in Azure for ref.

Also moved GitHub action configs to a proper directory. This should enable test pipeline in the repo after the PR is merged.

Changes necessary to test this in Webchat are already on the v3 branch.

@kwinto kwinto requested a review from fabclj November 28, 2023 13:09
src/utils.ts Outdated Show resolved Hide resolved
src/utils.ts Outdated Show resolved Hide resolved
test/Collation.spec.tsx Outdated Show resolved Hide resolved
src/demo.tsx Show resolved Hide resolved
src/messages/Message.tsx Outdated Show resolved Hide resolved
@fabclj
Copy link
Contributor

fabclj commented Nov 30, 2023

@kwinto I did functional test, and looks working to me.
Just a question: the collation is working for all message types. Is it expected? Or maybe the idea was just to apply collation only to text messages?

@kwinto
Copy link
Contributor Author

kwinto commented Nov 30, 2023

@kwinto I did functional test, and looks working to me. Just a question: the collation is working for all message types. Is it expected? Or maybe the idea was just to apply collation only to text messages?

Yes, it should be independent of message type.

@kwinto kwinto closed this Nov 30, 2023
@kwinto kwinto reopened this Nov 30, 2023
@kwinto kwinto merged commit b0c3d23 into main Nov 30, 2023
2 checks passed
@kwinto kwinto deleted the messages-collation branch November 30, 2023 11:13
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