mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-16 13:00:55 +00:00
* refactor: Move the Message Rows Into @librechat/chat MessageRender, Message, MessageContent, ContentRender, MessageParts and the thread's ThreadMessage now live in the package, and the thread renders them directly, retiring MessagesHost.renderMessageRow. Pieces owned elsewhere reach the rows through new host slots. * test: Render the Real Thread Message in the Thread Specs The thread specs replaced ThreadMessage with a fabricated row, so sibling paging and edit assertions drove the stub. They now render the real row chain with fake hosts and page and edit through its real controls. * test: Keep a 12,000-Message Chain Covered at the Row Resolver The thread specs now render real rows, so their large-chain case was cut to 60 messages. The 12,000-message chain, which guards the iterative branch walk and row reuse on a long conversation, moves to the resolver spec where it does not mount every row. * test: Keep the Child Thread Spec Rendering Real Rows Under the Client Mock The child-thread spec relied on the test host's renderMessageRow slot to draw nothing. The thread now mounts the package rows directly, so the spec's agents map and client package mocks have to cover them. |
||
|---|---|---|
| .. | ||
| babel-plugin-transform-import-meta-hot.cjs | ||
| canvasMock.ts | ||
| chatHost.tsx | ||
| composerHost.tsx | ||
| dropdown.ts | ||
| harness.tsx | ||
| intersectionObserver.mock | ||
| itemFactories.ts | ||
| layout-test-utils.tsx | ||
| localStorage.mock | ||
| matchMedia.mock | ||
| messagesHost.tsx | ||
| mockMorphIcon.tsx | ||
| polyfills.js | ||
| resizeObserver.mock | ||
| setupTests.js | ||
| steerHost.tsx | ||
| streamHost.tsx | ||
| turnServices.ts | ||