Skip to content

Commit 9d5c95b

Browse files
committed
Merge branch 'main' into jamescheung/bug-fix/remove-preview-loading-activities
2 parents 5c7aa84 + 5838525 commit 9d5c95b

825 files changed

Lines changed: 8512 additions & 6311 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.react.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins:
22
- react
33
- react-hooks
4+
- local-rules
45

56
extends:
67
- plugin:react/recommended
@@ -15,6 +16,7 @@ settings:
1516
version: detect
1617

1718
rules:
19+
local-rules/forbid-use-hook-producer: error
1820
react/button-has-type: error
1921
react/default-props-match-prop-types: error
2022
react/destructuring-assignment: error

.github/workflows/pull-request-validation.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ jobs:
5858
./__tests__/
5959
./packages/bundle/dist/
6060
./packages/fluent-theme/dist/
61-
./packages/test/fluent-bundle/dist/
6261
./packages/test/harness/
6362
./packages/test/page-object/dist/
6463
./packages/test/web-server/dist/

ACHIEVEMENTS.md

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
# 🎉 BotFramework Web Chat — Achievements
2+
3+
A curated list of major achievements by the Web Chat team. This document celebrates impactful changes, forward-looking designs, and key architectural wins.
4+
5+
<!-- Template for future additions. Add new to the top of a corresponding section.
6+
7+
## 🏆 \[Achievement Title]
8+
9+
**Goal:** Briefly describe the purpose of the change.
10+
**By:** [@username](https://github.com/username) in [PR #XXXX](https://github.com/microsoft/BotFramework-WebChat/pull/XXXX)
11+
12+
* Summary of what was done and why it mattered.
13+
14+
-->
15+
16+
---
17+
18+
## 🧱 Architecture & Core Systems
19+
20+
### 🛠️ Migration to `micromark`
21+
22+
**Goal:** Replace `markdown-it` with a modern and extensible markdown parser.
23+
**By:** [@compulim](https://github.com/compulim) in [PR #5330](https://github.com/microsoft/BotFramework-WebChat/pull/5330)
24+
25+
- Switched to `micromark`, enabling MathML support and consistent parsing.
26+
- Foundation for better Markdown extensibility and performance.
27+
28+
### 🧼 HTML Content Transformer Middleware
29+
30+
**Goal:** Move HTML sanitization into a dedicated middleware layer.
31+
**By:** [@compulim](https://github.com/compulim) in [PR #5338](https://github.com/microsoft/BotFramework-WebChat/pull/5338)
32+
33+
- Clean separation of concerns for Markdown rendering and sanitation.
34+
- Easier customization and more secure rendering.
35+
36+
### 🧩 Migration to npm Workspaces
37+
38+
**Goal:** Modernize monorepo tooling for better dependency and package management.
39+
**By:** [@compulim](https://github.com/compulim) in [PR #5301](https://github.com/microsoft/BotFramework-WebChat/pull/5301)
40+
41+
- Dropped Lerna in favor of native npm workspaces.
42+
- Improves build performance and developer experience.
43+
44+
---
45+
46+
## 🎨 UI & Theming
47+
48+
### 🎨 Icon Customization via CSS Variables
49+
50+
**Goal:** Enable developers to customize Web Chat and Fluent theme icons without JavaScript overrides.
51+
**By:** [@OEvgeny](https://github.com/OEvgeny) in [PR #5413](https://github.com/microsoft/BotFramework-WebChat/pull/5413), [#5502](https://github.com/microsoft/BotFramework-WebChat/pull/5502)
52+
53+
- Introduced CSS variable-based icon customization system for Web Chat and Fluent theme.
54+
- Reworked existing icons and fully enabled across Web Chat components.
55+
56+
### 📎 Attachment Preview for `sendAttachmentOn: "send"`
57+
58+
**Goal:** Improve multi-file upload UX by introducing persistent attachment previews.
59+
**By:** [@compulim](https://github.com/compulim), [@OEvgeny](https://github.com/OEvgeny) in [PR #5464](https://github.com/microsoft/BotFramework-WebChat/pull/5464), [#5491](https://github.com/microsoft/BotFramework-WebChat/pull/5491), [#5492](https://github.com/microsoft/BotFramework-WebChat/pull/5492)
60+
61+
- Added `SendBoxAttachmentBar` to allow users to preview and remove attachments before sending.
62+
- Previews switch between thumbnails and list mode based on count and accessibility settings.
63+
- Enhances multi-folder upload workflows and aligns with modern messaging UX.
64+
65+
### 🧾 Code Block Rendering & Highlighting System
66+
67+
**Goal:** Unify and polish code block rendering across Markdown and UI components.
68+
**By:** [@OEvgeny](https://github.com/OEvgeny), [@compulim](https://github.com/compulim) in [PR #5334](https://github.com/microsoft/BotFramework-WebChat/pull/5334), [#5335](https://github.com/microsoft/BotFramework-WebChat/pull/5335), [#5336](https://github.com/microsoft/BotFramework-WebChat/pull/5336), [#5389](https://github.com/microsoft/BotFramework-WebChat/pull/5389)
69+
70+
- Introduced syntax highlighting for markdown blocks using Shiki.
71+
- Added copy buttons to all rendered code blocks and dialogs.
72+
- Unified presentation of fenced blocks with accessibility and clipboard improvements.
73+
74+
### ✨ Fluent Theme Overhaul
75+
76+
**Goal:** Expand and refine Fluent UI styling across all components.
77+
**By:** [@OEvgeny](https://github.com/OEvgeny) in [PR #5258](https://github.com/microsoft/BotFramework-WebChat/pull/5258) and others
78+
79+
- Introduced "Copilot" variant and transcript-wide theming.
80+
- Improved accessibility, visual consistency, and component modularity.
81+
82+
### 🧱 Decorator System for Activity Styling
83+
84+
**Goal:** Enable pluggable, dynamic visual enhancements per activity.
85+
**By:** [@OEvgeny](https://github.com/OEvgeny) in [PR #5205](https://github.com/microsoft/BotFramework-WebChat/pull/5205), [#5312](https://github.com/microsoft/BotFramework-WebChat/pull/5312)
86+
87+
- Introduced `WebChatDecorator` and `ActivityDecorator`.
88+
- Supports animated borders and style options with minimal code changes.
89+
90+
### 🗂️ Starter Prompts
91+
92+
**Goal:** Enhance onboarding by offering users suggested starter prompts before interaction.
93+
**By:** [@compulim](https://github.com/compulim), [@OEvgeny](https://github.com/OEvgeny)
94+
95+
- Experimental pre-chat messages added in [PR #5255](https://github.com/microsoft/BotFramework-WebChat/pull/5255) and [#5263](https://github.com/microsoft/BotFramework-WebChat/pull/5263)
96+
- Fluent blueprint implementation in [#5270](https://github.com/microsoft/BotFramework-WebChat/pull/5270), [#5276](https://github.com/microsoft/BotFramework-WebChat/pull/5276), [#5279](https://github.com/microsoft/BotFramework-WebChat/pull/5279), [#5284](https://github.com/microsoft/BotFramework-WebChat/pull/5284)
97+
98+
---
99+
100+
## 🗣️ Voice & Accessibility
101+
102+
### 🎙️ Speech Recognition Enhancements
103+
104+
**Goal:** Improve real-world usability of voice input.
105+
**By:** [@compulim](https://github.com/compulim), [@RushikeshGavali](https://github.com/RushikeshGavali) in [PR #5400](https://github.com/microsoft/BotFramework-WebChat/pull/5400), [#5426](https://github.com/microsoft/BotFramework-WebChat/pull/5426)
106+
107+
- Support for initial silence timeout and continuous barge-in mode.
108+
- Makes Azure Speech more responsive and accessible.
109+
110+
### 🔊 Centralized Live Region Announcements
111+
112+
**Goal:** Improve screen reader support via centralized ARIA updates.
113+
**By:** [@OEvgeny](https://github.com/OEvgeny) in [PR #5251](https://github.com/microsoft/BotFramework-WebChat/pull/5251)
114+
115+
- Added `usePushToLiveRegion` hook.
116+
- Enables consistent and predictable accessibility behavior.
117+
118+
---
119+
120+
## 🧪 Advanced & Experimental
121+
122+
### 🧩 Shadow DOM Support
123+
124+
**Goal:** Enable safe embedding of Web Chat in custom element trees.
125+
**By:** [@OEvgeny](https://github.com/OEvgeny) in [PR #5196](https://github.com/microsoft/BotFramework-WebChat/pull/5196)
126+
127+
- Added `stylesRoot`, `ThemeProvider.styles`, and nonce support.
128+
- Ensures style encapsulation and isolation in Web Component environments.
129+
130+
### 🧮 TeX/MathML Markdown Support
131+
132+
**Goal:** Support use cases requiring math rendering.
133+
**By:** [@compulim](https://github.com/compulim), [@OEvgeny](https://github.com/OEvgeny) in [PR #5332](https://github.com/microsoft/BotFramework-WebChat/pull/5332), [#5381](https://github.com/microsoft/BotFramework-WebChat/pull/5381)
134+
135+
- Integrated `katex` via `micromark-extension-math`.
136+
- Supports `\\[ \\]`, `\\( \\)`, and `$$ $$` syntax.
137+
138+
---
139+
140+
## 🚀 Performance & Developer Experience
141+
142+
### 🧠 Memoization & Hook Optimizations
143+
144+
**Goal:** Reduce rerenders and memory footprint.
145+
**By:** [@OEvgeny](https://github.com/OEvgeny), [@compulim](https://github.com/compulim) across [#5163](https://github.com/microsoft/BotFramework-WebChat/pull/5163), [#5183](https://github.com/microsoft/BotFramework-WebChat/pull/5183), [#5190](https://github.com/microsoft/BotFramework-WebChat/pull/5190)
146+
147+
- Rewrote key hooks (`useActivityWithRenderer`, `useMemoized`) for efficiency.
148+
- Prevents excessive renders in large conversations.
149+
150+
### 🧮 Multi-Dimensional Grouping Support
151+
152+
**Goal:** Improve activity grouping logic and performance.
153+
**By:** [@compulim](https://github.com/compulim) in [PR #5471](https://github.com/microsoft/BotFramework-WebChat/pull/5471)
154+
155+
- Added `styleOptions.groupActivitiesBy` and `useGroupActivitiesByName` hook.
156+
- Keeps existing `sender` + `status` behavior as default.
157+
- New hook preferred for performance.
158+
- Middleware can optionally compute groupings by name.
159+
160+
### 🧪 `valibot` Props Validation
161+
162+
**Goal:** Modernize runtime prop validation for performance and clarity.
163+
**By:** [@compulim](https://github.com/compulim) in [PR #5476](https://github.com/microsoft/BotFramework-WebChat/pull/5476)
164+
165+
- Introduced `valibot` to improve schema-based prop safety.
166+
- Reduces runtime errors and simplifies validation logic.
167+
168+
---

0 commit comments

Comments
 (0)