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

Live announcement update when a message is received/edited from/by other users #5540

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

vhuseinova-msft
Copy link
Member

What

  • Updated copies

Why

How Tested

Process & policy checklist

  • I have updated the project documentation to reflect my changes if necessary.
  • I have read the CONTRIBUTING documentation.

Is this a breaking change?

  • This change causes current functionality to break.

Copy link
Contributor

github-actions bot commented Jan 9, 2025

@@ -205,8 +205,12 @@ const extractContentForAllyMessage = (props: ChatMessageContentProps): string =>
};

const generateLiveMessage = (props: ChatMessageContentProps): string => {
const liveAuthor = _formatString(props.strings.liveAuthorIntro, { author: `${props.message.senderDisplayName}` });

const liveAuthorIntro = props.message.editedOn
Copy link
Member

Choose a reason for hiding this comment

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

Why do we toLowerCase on only one of these paths?

Copy link
Member Author

Choose a reason for hiding this comment

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

Edited string is added for edited message announcement. See the functionality in:

return `${props.message.editedOn ? props.strings.editedTag : ''} ${
    props.message.mine ? '' : liveAuthor
  } ${extractContentForAllyMessage(props)} `;

Copy link
Member

Choose a reason for hiding this comment

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

I'm curious then if this is the right place to lowercase it? We're doing that to make it fit with English word position, correct? Does this apply across all languages?

Copy link
Member Author

Choose a reason for hiding this comment

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

Will check o nthe strings with the accessibility team and update the PR

Copy link
Contributor

github-actions bot commented Jan 9, 2025

@azure/communication-react jest test coverage for beta.

Lines Statements Functions Branches
Base 56174 / 92227
60.9%
56174 / 92227
60.9%
1153 / 2655
43.42%
3414 / 5656
60.36%
Current 56225 / 92297
60.91%
56225 / 92297
60.91%
1153 / 2655
43.42%
3439 / 5690
60.43%
Diff 51 / 70
0.01%
51 / 70
0.01%
0 / 0
0%
25 / 34
0.07%

Copy link
Contributor

github-actions bot commented Jan 9, 2025

@azure/communication-react jest test coverage for stable.

Lines Statements Functions Branches
Base 27807 / 44245
62.84%
27807 / 44245
62.84%
780 / 1418
55%
2330 / 3678
63.34%
Current 27893 / 44283
62.98%
27893 / 44283
62.98%
780 / 1418
55%
2326 / 3696
62.93%
Diff 86 / 38
0.14%
86 / 38
0.14%
0 / 0
0%
-4 / 18
-0.41%

@vhuseinova-msft vhuseinova-msft marked this pull request as draft January 9, 2025 21:43
Copy link
Contributor

github-actions bot commented Jan 9, 2025

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot.

Copy link
Contributor

github-actions bot commented Jan 9, 2025

Chat bundle size is increased❗.

  • Current size: 1769248
  • Base size: 1768210
  • Diff size: 1038

Copy link
Contributor

github-actions bot commented Jan 9, 2025

CallWithChat bundle size is not changed.

  • Current size: 11767078
  • Base size: 11767078
  • Diff size: 0

Copy link
Contributor

github-actions bot commented Jan 9, 2025

Calling bundle size is not changed.

  • Current size: 11767065
  • Base size: 11767065
  • Diff size: 0

Copy link
Contributor

github-actions bot commented Jan 9, 2025

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot.

1 similar comment
Copy link
Contributor

github-actions bot commented Jan 9, 2025

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot.

Copy link
Contributor

github-actions bot commented Jan 9, 2025

Failed to pass the Static HTML UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot.

Copy link
Contributor

github-actions bot commented Jan 9, 2025

Copy link
Contributor

github-actions bot commented Jan 9, 2025

Failed to pass the composite UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot.

Copy link
Contributor

github-actions bot commented Jan 9, 2025

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot.

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.

3 participants