Commit fbb3556
authored
docs: add AI migration guide and drop legacy stream-chat-css wiring (#3129)
### π― Goal
**Add** `ai-docs/ai-migration.md` β a token-optimized, execution-only
guide for coding agents performing the v13 β v14 migration. Distills the
62 confirmed breaking changes from `ai-docs/breaking-changes.md` into
ordered phases, rename lists, and code-level rewrites.
**Prune** the now-legacy `@stream-io/stream-chat-css` wiring. The
package is no longer installed (absent from `package.json` and
`yarn.lock`; `dist/` has no `scss/`, `css/v2/`, or `assets/`), but stale
tooling and docs around it remained. This PR removes those references so
the repo reflects reality.
### π Implementation details
**New `ai-docs/ai-migration.md`** (~415 lines), organized into 8 ordered
phases:
1. Source of Truth + import/symbol renames (read installed `.d.ts`
files; never rely on pretraining knowledge)
2. Removed symbols with code-level rewrites (HOCs, `MessageOptions`,
`EditMessageForm`, `MessageListNotifications`, `ConnectionStatus`, etc.)
3. Move UI overrides from `Channel` / `ChannelList` props to
`WithComponents`
4. Composer / edit / cooldown rewrites
5. Message-actions model (`messageActionSet`, `quick-dropdown-toggle`,
`handleDelete` semantics)
6. Search, sidebar, `ChatView`, explicit query limits
7. Behavior changes that compile cleanly (timestamps, date separator,
typing indicator, etc.)
8. CSS / DOM / selector audit
Style is optimized for token efficiency: bullet lists instead of
markdown tables (no pipe/padding overhead), no commit SHAs, no audit
metadata, no motivation prose. Verification section is package-manager
agnostic (detects `pnpm` / `yarn` / `bun` / `npm` from lockfiles).
**Legacy `@stream-io/stream-chat-css` cleanup:**
- Remove `ai-docs/DEPRECATED_API_REMOVAL_PLAN.md` β superseded by the
new guide.
- Remove `./dist/scss/*` and `./scss/*` entries from `package.json`
`exports` β `dist/scss/` is no longer emitted.
- Delete `scripts/copy-css.sh` β not wired into the build script;
unreferenced outside stale docs.
- Delete `scripts/merge-stream-chat-css-docs.sh` β copies docs into
`./docusaurus/docs/React`, a directory that no longer exists in this
repo.
- Drop the `@stream-io/stream-chat-css` entry from
`.github/dependabot.yml` since the package isn't installed.
- Update `CLAUDE.md` to reflect the current 4-step build
(`build-translations`, `vite build`, `tsc`, `build-styling`) and the
single-source styling tree under `src/styling/`.
### π¨ UI Changes
N/A β docs + build tooling only.1 parent f8c9600 commit fbb3556
File tree
8 files changed
+481
-188
lines changed- .github
- ai-docs
- scripts
8 files changed
+481
-188
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
262 | 262 | | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
268 | 267 | | |
269 | 268 | | |
270 | 269 | | |
271 | 270 | | |
272 | 271 | | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
| 272 | + | |
279 | 273 | | |
280 | 274 | | |
281 | 275 | | |
282 | 276 | | |
283 | | - | |
| 277 | + | |
284 | 278 | | |
285 | 279 | | |
286 | 280 | | |
| |||
300 | 294 | | |
301 | 295 | | |
302 | 296 | | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
| 297 | + | |
311 | 298 | | |
312 | | - | |
| 299 | + | |
313 | 300 | | |
314 | 301 | | |
315 | 302 | | |
316 | 303 | | |
317 | 304 | | |
318 | 305 | | |
319 | | - | |
| 306 | + | |
320 | 307 | | |
321 | 308 | | |
322 | 309 | | |
| |||
329 | 316 | | |
330 | 317 | | |
331 | 318 | | |
332 | | - | |
| 319 | + | |
333 | 320 | | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
339 | 325 | | |
340 | 326 | | |
341 | 327 | | |
| |||
0 commit comments