-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat: Collapsible activity #5506
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
Changes from 17 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
f56286c
WIP
OEvgeny 7aa39d9
Proper layout for avatar and attachment
OEvgeny b15bff8
fix dom integrity
OEvgeny 81da0bf
Fix more tests
OEvgeny 951859a
WIP more tests and fixes
OEvgeny ffed3fa
Improve
OEvgeny b2de1a7
Brign decorator back and update new citation tests
OEvgeny f856ae5
Better react render tree naming
OEvgeny b9cf74f
Changelog
OEvgeny 03dc153
Fix review points
OEvgeny 3bc236f
Fix more comments
OEvgeny c72a86f
More preciesly
OEvgeny 4e61020
Fix collapsible summary selection cut for copilot
OEvgeny e1db3bf
Update packages/fluent-theme/src/private/FluentThemeProvider.tsx
OEvgeny 9372f45
Fix font
OEvgeny ce9d4bc
Merge branch 'main' into feat/collapsible-activity
OEvgeny 8b3815c
Fix snaps
OEvgeny ac63f70
Fix one more snap
OEvgeny File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+54 Bytes
(100%)
...pty-initials-js-avatar-with-empty-initials-should-leave-gutter-space-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-22 Bytes
(100%)
...-accordion-js-citation-accordion-should-expand-and-collapse-on-click-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-14 Bytes
(100%)
...-accordion-js-citation-accordion-should-expand-and-collapse-on-click-2-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-22 Bytes
(100%)
...-accordion-js-citation-accordion-should-expand-and-collapse-on-click-3-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-23 Bytes
(100%)
..._/__image_snapshots__/html/citation-basic-js-citation-should-display-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-18 Bytes
(100%)
...-js-citation-modal-dialog-should-close-when-clicking-on-close-button-2-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-18 Bytes
(100%)
...ape-js-citation-modal-dialog-should-close-when-escape-key-is-pressed-2-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-15 Bytes
(100%)
...dal-width-desktop-js-citation-modal-dialog-should-show-60-on-desktop-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-11 Bytes
(100%)
...dal-width-desktop-js-citation-modal-dialog-should-show-60-on-desktop-2-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-22 Bytes
(100%)
...ile-js-citation-modal-dialog-should-show-full-width-on-mobile-device-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-18 Bytes
(100%)
...s-string-js-link-definition-should-display-identifier-of-type-string-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+54 Bytes
(100%)
...napshots__/html/reference-js-link-definition-should-reference-sample-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+448 Bytes
(100%)
...ge_snapshots__/html/timestamp-prepend-text-js-timestamp-prepend-text-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-23 Bytes
(100%)
...n-should-word-wrap-pure-identifier-to-next-line-but-not-text-content-1-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+138 Bytes
(100%)
__tests__/html2/activity/citation.longRef.copilot.html.snap-1.png
OEvgeny marked this conversation as resolved.
Show resolved
Hide resolved
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-41 Bytes
(100%)
__tests__/html2/activity/citation.longRef.fluent.html.snap-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| <!doctype html> | ||
| <html> | ||
| <head> | ||
| <title>Collapsible activity (copilot, dark)</title> | ||
| <script> | ||
| location = './collapsible?variant=copilot&fluent-theme=dark'; | ||
| </script> | ||
| </head> | ||
| <body></body> | ||
| </html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OEvgeny marked this conversation as resolved.
Show resolved
Hide resolved
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| <!doctype html> | ||
| <html> | ||
| <head> | ||
| <title>Collapsible activity (copilot)</title> | ||
| <script> | ||
| location = './collapsible?variant=copilot'; | ||
| </script> | ||
| </head> | ||
| <body></body> | ||
| </html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| <!doctype html> | ||
| <html> | ||
| <head> | ||
| <title>Collapsible activity (fluent, dark)</title> | ||
| <script> | ||
| location = './collapsible?variant=fluent&fluent-theme=dark'; | ||
| </script> | ||
| </head> | ||
| <body></body> | ||
| </html> |
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
OEvgeny marked this conversation as resolved.
Show resolved
Hide resolved
|
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| <!doctype html> | ||
| <html> | ||
| <head> | ||
| <title>Collapsible activity (fluent)</title> | ||
| <script> | ||
| location = './collapsible?variant=fluent'; | ||
| </script> | ||
| </head> | ||
| <body></body> | ||
| </html> |
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
OEvgeny marked this conversation as resolved.
Show resolved
Hide resolved
|
Oops, something went wrong.
Oops, something went wrong.
OEvgeny marked this conversation as resolved.
Show resolved
Hide resolved
OEvgeny marked this conversation as resolved.
Show resolved
Hide resolved
|
Oops, something went wrong.
OEvgeny marked this conversation as resolved.
Show resolved
Hide resolved
|
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-20 Bytes
(100%)
__tests__/html2/copyButton/layout.copilot.dark.html.snap-1.png
Oops, something went wrong.
Binary file modified
BIN
-24 Bytes
(100%)
__tests__/html2/copyButton/layout.copilot.light.html.snap-1.png
Oops, something went wrong.
Binary file modified
BIN
-22 Bytes
(100%)
__tests__/html2/copyButton/layout.fluent.dark.html.snap-1.png
Oops, something went wrong.
Binary file modified
BIN
-43 Bytes
(100%)
__tests__/html2/copyButton/layout.fluent.light.html.snap-1.png
Oops, something went wrong.
Oops, something went wrong.
OEvgeny marked this conversation as resolved.
Show resolved
Hide resolved
OEvgeny marked this conversation as resolved.
Show resolved
Hide resolved
|
Oops, something went wrong.
Binary file modified
BIN
+332 Bytes
(100%)
__tests__/html2/linkDefinition/badge.copilot.html.snap-1.png
Oops, something went wrong.
Binary file modified
BIN
-105 Bytes
(100%)
__tests__/html2/linkDefinition/badge.dark.copilot.html.snap-1.png
Oops, something went wrong.
Binary file modified
BIN
+2 Bytes
(100%)
__tests__/html2/linkDefinition/badge.dark.fluent.html.snap-1.png
Oops, something went wrong.
Binary file modified
BIN
+224 Bytes
(100%)
__tests__/html2/linkDefinition/badge.fluent.html.snap-1.png
OEvgeny marked this conversation as resolved.
Show resolved
Hide resolved
|
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-31 Bytes
(100%)
__tests__/html2/side-by-side/codeblock-dark.navigation.dark.html.snap-1.png
Oops, something went wrong.
Binary file modified
BIN
-40 Bytes
(100%)
__tests__/html2/side-by-side/codeblock-dark.navigation.dark.html.snap-2.png
Oops, something went wrong.
Binary file modified
BIN
-34 Bytes
(100%)
__tests__/html2/side-by-side/codeblock-dark.navigation.dark.html.snap-3.png
Oops, something went wrong.
Binary file modified
BIN
+44 Bytes
(100%)
__tests__/html2/side-by-side/codeblock-dark.navigation.dark.html.snap-4.png
Oops, something went wrong.
Binary file modified
BIN
-35 Bytes
(100%)
__tests__/html2/side-by-side/codeblock-dark.navigation.dark.html.snap-5.png
Oops, something went wrong.
Binary file modified
BIN
-159 Bytes
(100%)
__tests__/html2/side-by-side/codeblock-dark.navigation.html.snap-1.png
Oops, something went wrong.
Binary file modified
BIN
-183 Bytes
(100%)
__tests__/html2/side-by-side/codeblock-dark.navigation.html.snap-2.png
Oops, something went wrong.
Binary file modified
BIN
-208 Bytes
(100%)
__tests__/html2/side-by-side/codeblock-dark.navigation.html.snap-3.png
Oops, something went wrong.
Binary file modified
BIN
+27 Bytes
(100%)
__tests__/html2/side-by-side/codeblock-dark.navigation.html.snap-4.png
Oops, something went wrong.
Binary file modified
BIN
-202 Bytes
(100%)
__tests__/html2/side-by-side/codeblock-dark.navigation.html.snap-5.png
Oops, something went wrong.
Binary file modified
BIN
-20 Bytes
(100%)
__tests__/html2/side-by-side/codeblock.navigation.dark.html.snap-1.png
Oops, something went wrong.
Binary file modified
BIN
-16 Bytes
(100%)
__tests__/html2/side-by-side/codeblock.navigation.dark.html.snap-2.png
Oops, something went wrong.
Binary file modified
BIN
-20 Bytes
(100%)
__tests__/html2/side-by-side/codeblock.navigation.dark.html.snap-3.png
Oops, something went wrong.
Binary file modified
BIN
+48 Bytes
(100%)
__tests__/html2/side-by-side/codeblock.navigation.dark.html.snap-4.png
Oops, something went wrong.
Binary file modified
BIN
-20 Bytes
(100%)
__tests__/html2/side-by-side/codeblock.navigation.dark.html.snap-5.png
Oops, something went wrong.
Binary file modified
BIN
-106 Bytes
(100%)
__tests__/html2/side-by-side/codeblock.navigation.html.snap-1.png
Oops, something went wrong.
Binary file modified
BIN
-102 Bytes
(100%)
__tests__/html2/side-by-side/codeblock.navigation.html.snap-2.png
Oops, something went wrong.
Binary file modified
BIN
-100 Bytes
(100%)
__tests__/html2/side-by-side/codeblock.navigation.html.snap-3.png
Oops, something went wrong.
Binary file modified
BIN
+32 Bytes
(100%)
__tests__/html2/side-by-side/codeblock.navigation.html.snap-4.png
Oops, something went wrong.
Binary file modified
BIN
-103 Bytes
(100%)
__tests__/html2/side-by-side/codeblock.navigation.html.snap-5.png
OEvgeny marked this conversation as resolved.
Show resolved
Hide resolved
|
Oops, something went wrong.
Binary file modified
BIN
-35 Bytes
(100%)
__tests__/html2/side-by-side/feedback.navigation.dark.html.snap-1.png
Oops, something went wrong.
Binary file modified
BIN
-36 Bytes
(100%)
__tests__/html2/side-by-side/feedback.navigation.dark.html.snap-2.png
Oops, something went wrong.
Binary file modified
BIN
-35 Bytes
(100%)
__tests__/html2/side-by-side/feedback.navigation.dark.html.snap-3.png
Oops, something went wrong.
Binary file modified
BIN
-35 Bytes
(100%)
__tests__/html2/side-by-side/feedback.navigation.dark.html.snap-4.png
Oops, something went wrong.
Binary file modified
BIN
-38 Bytes
(100%)
__tests__/html2/side-by-side/feedback.navigation.dark.html.snap-5.png
Oops, something went wrong.
Binary file modified
BIN
-40 Bytes
(100%)
__tests__/html2/side-by-side/feedback.navigation.dark.html.snap-6.png
Oops, something went wrong.
Binary file modified
BIN
-38 Bytes
(100%)
__tests__/html2/side-by-side/feedback.navigation.dark.html.snap-7.png
Oops, something went wrong.
Binary file modified
BIN
-137 Bytes
(100%)
__tests__/html2/side-by-side/feedback.navigation.html.snap-1.png
Oops, something went wrong.
Binary file modified
BIN
-137 Bytes
(100%)
__tests__/html2/side-by-side/feedback.navigation.html.snap-2.png
Oops, something went wrong.
Binary file modified
BIN
-134 Bytes
(100%)
__tests__/html2/side-by-side/feedback.navigation.html.snap-3.png
Oops, something went wrong.
Binary file modified
BIN
-149 Bytes
(100%)
__tests__/html2/side-by-side/feedback.navigation.html.snap-4.png
Oops, something went wrong.
Binary file modified
BIN
-140 Bytes
(100%)
__tests__/html2/side-by-side/feedback.navigation.html.snap-5.png
Oops, something went wrong.
Binary file modified
BIN
-136 Bytes
(100%)
__tests__/html2/side-by-side/feedback.navigation.html.snap-6.png
Oops, something went wrong.
Binary file modified
BIN
-137 Bytes
(100%)
__tests__/html2/side-by-side/feedback.navigation.html.snap-7.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Binary file modified
BIN
-22 Bytes
(100%)
__tests__/html2/side-by-side/pre-chat.navigation.dark.html.snap-1.png
Oops, something went wrong.
Binary file modified
BIN
-30 Bytes
(100%)
__tests__/html2/side-by-side/pre-chat.navigation.dark.html.snap-2.png
Oops, something went wrong.
Binary file modified
BIN
-34 Bytes
(100%)
__tests__/html2/side-by-side/pre-chat.navigation.dark.html.snap-3.png
Oops, something went wrong.
Binary file modified
BIN
-27 Bytes
(100%)
__tests__/html2/side-by-side/pre-chat.navigation.dark.html.snap-4.png
Oops, something went wrong.
Binary file modified
BIN
-40 Bytes
(100%)
__tests__/html2/side-by-side/pre-chat.navigation.dark.html.snap-5.png
Oops, something went wrong.
Binary file modified
BIN
-36 Bytes
(100%)
__tests__/html2/side-by-side/pre-chat.navigation.dark.html.snap-6.png
Oops, something went wrong.
Binary file modified
BIN
-40 Bytes
(100%)
__tests__/html2/side-by-side/pre-chat.navigation.dark.html.snap-7.png
Oops, something went wrong.
Binary file modified
BIN
-44 Bytes
(100%)
__tests__/html2/side-by-side/pre-chat.navigation.dark.html.snap-8.png
Oops, something went wrong.
Binary file modified
BIN
-39 Bytes
(100%)
__tests__/html2/side-by-side/pre-chat.navigation.dark.html.snap-9.png
Oops, something went wrong.
Binary file modified
BIN
-892 Bytes
(100%)
__tests__/html2/side-by-side/pre-chat.navigation.html.snap-1.png
Oops, something went wrong.
Binary file modified
BIN
-885 Bytes
(100%)
__tests__/html2/side-by-side/pre-chat.navigation.html.snap-2.png
Oops, something went wrong.
Binary file modified
BIN
+15 Bytes
(100%)
__tests__/html2/side-by-side/pre-chat.navigation.html.snap-3.png
Oops, something went wrong.
Binary file modified
BIN
+828 Bytes
(100%)
__tests__/html2/side-by-side/pre-chat.navigation.html.snap-4.png
Oops, something went wrong.
Binary file modified
BIN
+47 Bytes
(100%)
__tests__/html2/side-by-side/pre-chat.navigation.html.snap-5.png
Oops, something went wrong.
Binary file modified
BIN
+772 Bytes
(100%)
__tests__/html2/side-by-side/pre-chat.navigation.html.snap-6.png
Oops, something went wrong.
Binary file modified
BIN
+47 Bytes
(100%)
__tests__/html2/side-by-side/pre-chat.navigation.html.snap-7.png
Oops, something went wrong.
Binary file modified
BIN
+740 Bytes
(100%)
__tests__/html2/side-by-side/pre-chat.navigation.html.snap-8.png
Oops, something went wrong.
Binary file modified
BIN
+772 Bytes
(100%)
__tests__/html2/side-by-side/pre-chat.navigation.html.snap-9.png
Oops, something went wrong.
Binary file modified
BIN
-34 Bytes
(100%)
__tests__/html2/side-by-side/pre-liner.dark.html.snap-1.png
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-660 Bytes
(100%)
__tests__/html2/side-by-side/streaming.dark.html.snap-1.png
OEvgeny marked this conversation as resolved.
Show resolved
Hide resolved
|
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OEvgeny marked this conversation as resolved.
Show resolved
Hide resolved
OEvgeny marked this conversation as resolved.
Show resolved
Hide resolved
|
Oops, something went wrong.
Binary file modified
BIN
-81 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.dark.html.snap-1.png
Oops, something went wrong.
Binary file modified
BIN
-86 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.dark.html.snap-10.png
Oops, something went wrong.
Binary file modified
BIN
-75 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.dark.html.snap-11.png
Oops, something went wrong.
Binary file modified
BIN
-73 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.dark.html.snap-12.png
Oops, something went wrong.
Binary file modified
BIN
-1.76 KB
(99%)
__tests__/html2/side-by-side/transcript.navigation.dark.html.snap-13.png
OEvgeny marked this conversation as resolved.
Show resolved
Hide resolved
|
Oops, something went wrong.
Binary file modified
BIN
-81 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.dark.html.snap-14.png
Oops, something went wrong.
Binary file modified
BIN
-64 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.dark.html.snap-15.png
Oops, something went wrong.
Binary file modified
BIN
-78 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.dark.html.snap-16.png
Oops, something went wrong.
Binary file modified
BIN
-27 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.dark.html.snap-17.png
Oops, something went wrong.
Binary file modified
BIN
-86 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.dark.html.snap-2.png
Oops, something went wrong.
Binary file modified
BIN
-76 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.dark.html.snap-3.png
Oops, something went wrong.
Binary file modified
BIN
-104 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.dark.html.snap-4.png
Oops, something went wrong.
Binary file modified
BIN
-38 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.dark.html.snap-5.png
Oops, something went wrong.
Binary file modified
BIN
-82 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.dark.html.snap-6.png
Oops, something went wrong.
Binary file modified
BIN
-61 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.dark.html.snap-7.png
Oops, something went wrong.
Binary file modified
BIN
-67 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.dark.html.snap-8.png
Oops, something went wrong.
Binary file modified
BIN
-2 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.dark.html.snap-9.png
Oops, something went wrong.
Binary file modified
BIN
-39 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.fluent.dark.html.snap-1.png
Oops, something went wrong.
Binary file modified
BIN
-38 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.fluent.dark.html.snap-2.png
Oops, something went wrong.
Binary file modified
BIN
-47 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.fluent.dark.html.snap-3.png
Oops, something went wrong.
Binary file modified
BIN
-32 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.fluent.dark.html.snap-4.png
Oops, something went wrong.
Binary file modified
BIN
-24 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.fluent.dark.html.snap-5.png
Oops, something went wrong.
Binary file modified
BIN
-44 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.fluent.dark.html.snap-6.png
Oops, something went wrong.
Binary file modified
BIN
-58 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.fluent.dark.html.snap-7.png
Oops, something went wrong.
Binary file modified
BIN
-140 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.fluent.dark.html.snap-8.png
Oops, something went wrong.
Binary file modified
BIN
-41 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.fluent.dark.html.snap-9.png
Oops, something went wrong.
Binary file modified
BIN
-78 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.fluent.html.snap-1.png
Oops, something went wrong.
Binary file modified
BIN
-76 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.fluent.html.snap-2.png
Oops, something went wrong.
Binary file modified
BIN
-66 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.fluent.html.snap-3.png
Oops, something went wrong.
Binary file modified
BIN
-65 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.fluent.html.snap-4.png
Oops, something went wrong.
Binary file modified
BIN
-30 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.fluent.html.snap-5.png
Oops, something went wrong.
Binary file modified
BIN
-61 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.fluent.html.snap-6.png
Oops, something went wrong.
Binary file modified
BIN
-124 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.fluent.html.snap-7.png
Oops, something went wrong.
Binary file modified
BIN
-104 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.fluent.html.snap-8.png
Oops, something went wrong.
Binary file modified
BIN
-48 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.fluent.html.snap-9.png
Oops, something went wrong.
Binary file modified
BIN
-214 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.html.snap-1.png
Oops, something went wrong.
Binary file modified
BIN
-70 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.html.snap-10.png
Oops, something went wrong.
Binary file modified
BIN
-35 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.html.snap-11.png
Oops, something went wrong.
Binary file modified
BIN
-80 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.html.snap-12.png
Oops, something went wrong.
Binary file modified
BIN
-1.72 KB
(99%)
__tests__/html2/side-by-side/transcript.navigation.html.snap-13.png
OEvgeny marked this conversation as resolved.
Show resolved
Hide resolved
|
Oops, something went wrong.
Binary file modified
BIN
-83 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.html.snap-14.png
Oops, something went wrong.
Binary file modified
BIN
-76 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.html.snap-15.png
Oops, something went wrong.
Binary file modified
BIN
-85 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.html.snap-16.png
Oops, something went wrong.
Binary file modified
BIN
+9 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.html.snap-17.png
Oops, something went wrong.
Binary file modified
BIN
-181 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.html.snap-2.png
Oops, something went wrong.
Binary file modified
BIN
+218 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.html.snap-3.png
Oops, something went wrong.
Binary file modified
BIN
-777 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.html.snap-4.png
Oops, something went wrong.
Binary file modified
BIN
-84 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.html.snap-5.png
Oops, something went wrong.
Binary file modified
BIN
-800 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.html.snap-6.png
Oops, something went wrong.
Binary file modified
BIN
-127 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.html.snap-7.png
Oops, something went wrong.
Binary file modified
BIN
-778 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.html.snap-8.png
Oops, something went wrong.
Binary file modified
BIN
-745 Bytes
(100%)
__tests__/html2/side-by-side/transcript.navigation.html.snap-9.png
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
packages/api/src/decorator/ActivityBorder/private/ActivityBorderDecoratorRequestContext.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| import { createContext } from 'react'; | ||
| import { ActivityBorderDecoratorMiddlewareRequest } from './ActivityBorderDecoratorMiddleware'; | ||
|
|
||
| type ActivityBorderDecoratorRequestContextType = Readonly<{ | ||
| request: ActivityBorderDecoratorMiddlewareRequest; | ||
| }>; | ||
|
|
||
| const ActivityBorderDecoratorRequestContext = createContext<ActivityBorderDecoratorRequestContextType>( | ||
| Object.freeze({ | ||
| request: Object.freeze({ | ||
| from: undefined, | ||
| livestreamingState: undefined | ||
| }) | ||
| }) | ||
| ); | ||
|
|
||
| export default ActivityBorderDecoratorRequestContext; | ||
| export { type ActivityBorderDecoratorRequestContextType }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| import { useContext } from 'react'; | ||
| import { ActivityBorderDecoratorRequest } from './ActivityBorder/ActivityBorderDecorator'; | ||
|
|
||
| export default function useDecoratorRequest(type: typeof ActivityBorderDecoratorRequest) { | ||
| const request = useContext(type)?.request; | ||
|
|
||
| if (!request) { | ||
| throw new Error(`useDecoratorRequest must be used within a ${type}Provider`); | ||
| } | ||
|
|
||
| return request; | ||
| } | ||
|
|
||
| export type InferDecoratorRequest<T extends typeof ActivityBorderDecoratorRequest> = | ||
| T extends React.Context<infer U> ? (U extends { request: infer R } ? R : never) : never; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| import { useStyles } from 'botframework-webchat-styles/react'; | ||
| import { reactNode, validateProps } from 'botframework-webchat-react-valibot'; | ||
| import cx from 'classnames'; | ||
| import React, { memo } from 'react'; | ||
| import { boolean, object, optional, pipe, readonly, string, type InferInput } from 'valibot'; | ||
|
|
||
| import ScreenReaderText from '../ScreenReaderText'; | ||
| import Bubble from './Bubble'; | ||
|
|
||
| import styles from './StackedLayout.module.css'; | ||
|
|
||
| const attachmentRowPropsSchema = pipe( | ||
| object({ | ||
| attachedAlt: string(), | ||
| children: optional(reactNode()), | ||
| fromUser: boolean(), | ||
| hasAvatar: boolean(), | ||
| hasNub: boolean(), | ||
| showBubble: optional(boolean()) | ||
| }), | ||
| readonly() | ||
| ); | ||
|
|
||
| type AttachmentRowProps = InferInput<typeof attachmentRowPropsSchema>; | ||
|
|
||
| function AttachmentRow(props: AttachmentRowProps) { | ||
| const { | ||
| attachedAlt, | ||
| children, | ||
| fromUser, | ||
| hasAvatar, | ||
| hasNub, | ||
| showBubble = true | ||
| } = validateProps(attachmentRowPropsSchema, props); | ||
| const classNames = useStyles(styles); | ||
|
|
||
| return ( | ||
| <div aria-roledescription="attachment" className={classNames['stacked-layout__attachment-row']} role="group"> | ||
| <ScreenReaderText text={attachedAlt} /> | ||
| {showBubble ? ( | ||
| <Bubble | ||
| className={classNames['stacked-layout__attachment']} | ||
| fromUser={fromUser} | ||
| nub={hasAvatar || hasNub ? 'hidden' : false} | ||
| > | ||
| {children} | ||
| </Bubble> | ||
| ) : ( | ||
| <div className={cx(classNames['stacked-layout__attachment'])}>{children}</div> | ||
| )} | ||
| </div> | ||
| ); | ||
| } | ||
|
|
||
| export default memo(AttachmentRow); | ||
| export { attachmentRowPropsSchema, type AttachmentRowProps }; |
38 changes: 38 additions & 0 deletions
38
packages/component/src/Activity/CodeBlockContent.module.css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| :global(.webchat) .code-block-content { | ||
| border-block: var(--webchat__border-width--bubble) var(--webchat__border-style--bubble) | ||
| var(--webchat__border-color--bubble); | ||
| border-radius: var(--webchat__border-radius--bubble); | ||
| display: block; | ||
| font-family: var(--webchat__font--primary); | ||
| font-size: 14px; | ||
| font-style: normal; | ||
| font-weight: 400; | ||
| margin-block-end: calc(var(--webchat__border-width--bubble) * -1); | ||
| overflow: hidden; | ||
| overflow: clip; | ||
| position: relative; | ||
| } | ||
|
|
||
| :global(.webchat) .code-block-content__header { | ||
| align-items: center; | ||
| display: flex; | ||
| gap: var(--webchat__padding--regular); | ||
| justify-content: space-between; | ||
| padding: var(--webchat__padding--regular); | ||
| } | ||
|
|
||
| :global(.webchat) .code-block-content__title { | ||
| font-weight: 600; | ||
|
|
||
| &::first-letter { | ||
| text-transform: uppercase; | ||
| } | ||
| } | ||
|
|
||
| :global(.webchat) .code-block-content__code-block { | ||
| border: none; | ||
| margin: 0; | ||
| max-height: 360px; | ||
| overflow-y: auto; | ||
| padding: var(--webchat__padding--regular) 8px var(--webchat__padding--regular) var(--webchat__padding--regular); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| import { useStyles } from 'botframework-webchat-styles/react'; | ||
| import { validateProps } from 'botframework-webchat-react-valibot'; | ||
| import cx from 'classnames'; | ||
| import React, { memo } from 'react'; | ||
| import { object, optional, pipe, readonly, string, type InferInput } from 'valibot'; | ||
|
|
||
| import useCodeBlockTag from '../providers/CustomElements/useCodeBlockTagName'; | ||
|
|
||
| import styles from './CodeBlockContent.module.css'; | ||
|
|
||
| const codeBlockContentPropsSchema = pipe( | ||
| object({ | ||
| code: string(), | ||
| language: optional(string()), | ||
| title: optional(string()) | ||
| }), | ||
| readonly() | ||
| ); | ||
|
|
||
| type CodeBlockContentProps = InferInput<typeof codeBlockContentPropsSchema>; | ||
|
|
||
| function CodeBlockContent(props: CodeBlockContentProps) { | ||
| const { code, language, title } = validateProps(codeBlockContentPropsSchema, props); | ||
| const classNames = useStyles(styles); | ||
| const [, CodeBlock] = useCodeBlockTag(); | ||
|
|
||
| return ( | ||
| <div className={classNames['code-block-content']}> | ||
| {title && ( | ||
| <div className={cx(classNames['code-block-content__header'])}> | ||
| <div className={cx(classNames['code-block-content__title'])}>{title}</div> | ||
| </div> | ||
| )} | ||
| <CodeBlock className={cx(classNames['code-block-content__code-block'])} language={language}> | ||
| <code>{code}</code> | ||
| </CodeBlock> | ||
| </div> | ||
| ); | ||
| } | ||
|
|
||
| export default memo(CodeBlockContent); | ||
| export { codeBlockContentPropsSchema, type CodeBlockContentProps }; |
29 changes: 29 additions & 0 deletions
29
packages/component/src/Activity/CollapsibleContent.module.css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| :global(.webchat) .collapsible-content { | ||
| &[open] .collapsible-content__chevron { | ||
| transform: rotate(180deg); | ||
| } | ||
| } | ||
|
|
||
| :global(.webchat) .collapsible-content__summary { | ||
| cursor: pointer; | ||
| display: inline-flex; | ||
| font-family: var(--webchat__font--primary); | ||
| gap: calc(var(--webchat__padding--regular) / 2); | ||
| list-style: none; | ||
| margin: var(--webchat__padding--regular); | ||
| padding: 0; | ||
|
|
||
| &::-webkit-details-marker { | ||
| display: none; | ||
| } | ||
|
|
||
| &:focus-visible { | ||
| outline-offset: 3px; | ||
| } | ||
| } | ||
|
|
||
| :global(.webchat) .collapsible-content__content { | ||
| display: flex; | ||
| flex-direction: column; | ||
| margin-block-start: calc(var(--webchat__padding--regular) * -1); | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.