Skip to content

Chat: Inline Image automatic download of preview URL#4044

Merged
JoshuaLai merged 27 commits intomainfrom
feature/inlineimages
Jan 26, 2024
Merged

Chat: Inline Image automatic download of preview URL#4044
JoshuaLai merged 27 commits intomainfrom
feature/inlineimages

Conversation

@JoshuaLai
Copy link
Copy Markdown
Member

What

Updating the API to remove the MessageThread onFetch method.
Introduced new resourceCache in the MessageWithStatus
New ability for the stateful client to automatically retrieve the preview url in the chat message.
New ability in the MessageThreadSelector to transform the tag within message content to include the appropriate / correct preview url.

Why

Updating to hide the fetch method on the composite as there were questions raised as to the usefulness of the API.

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.

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 23, 2024

Chat bundle size is increased❗.

  • Current size: 1442024
  • Base size: 1440450
  • Diff size: 1574

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 23, 2024

CallWithChat bundle size is increased❗.

  • Current size: 6459893
  • Base size: 6458319
  • Diff size: 1574

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 23, 2024

Calling bundle size is increased❗.

  • Current size: 5736674
  • Base size: 5736673
  • Diff size: 1

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 25, 2024

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

Lines Statements Functions Branches
Base 44648 / 71951
62.05%
44648 / 71951
62.05%
913 / 2019
45.22%
2631 / 4244
61.99%
Current 45002 / 73133
61.53%
45002 / 73133
61.53%
921 / 2050
44.92%
2588 / 4247
60.93%
Diff 354 / 1182
-0.52%
354 / 1182
-0.52%
8 / 31
-0.3%
-43 / 3
-1.06%

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 25, 2024

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

Lines Statements Functions Branches
Base 21414 / 34133
62.73%
21414 / 34133
62.73%
580 / 1026
56.53%
1694 / 2698
62.78%
Current 45012 / 73133
61.54%
45012 / 73133
61.54%
921 / 2050
44.92%
2584 / 4248
60.82%
Diff 23598 / 39000
-1.19%
23598 / 39000
-1.19%
341 / 1024
-11.61%
890 / 1550
-1.96%

Comment thread packages/chat-component-bindings/src/messageThreadSelector.ts Outdated
Comment thread packages/chat-component-bindings/src/messageThreadSelector.ts Outdated
Comment thread packages/chat-stateful-client/src/ChatContext.ts Outdated
Comment thread packages/chat-stateful-client/src/ChatContext.ts
Comment thread packages/chat-stateful-client/src/ResourceDownloadQueue.ts Outdated
Comment thread packages/chat-stateful-client/src/types/ChatMessageWithStatus.ts
Comment thread packages/chat-stateful-client/src/types/ChatMessageWithStatus.ts
@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

@JoshuaLai JoshuaLai enabled auto-merge (squash) January 26, 2024 22:24
@github-actions
Copy link
Copy Markdown
Contributor

@github-actions
Copy link
Copy Markdown
Contributor

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
@github-actions
Copy link
Copy Markdown
Contributor

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.

@JoshuaLai JoshuaLai disabled auto-merge January 26, 2024 22:55
@JoshuaLai JoshuaLai merged commit 3d46091 into main Jan 26, 2024
@JoshuaLai JoshuaLai deleted the feature/inlineimages branch January 26, 2024 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants