Skip to content

Add virtualized conversation content#432

Open
Jaksenc wants to merge 1 commit into
vercel:mainfrom
Jaksenc:codex/chat-conversation-virtualization
Open

Add virtualized conversation content#432
Jaksenc wants to merge 1 commit into
vercel:mainfrom
Jaksenc:codex/chat-conversation-virtualization

Conversation

@Jaksenc
Copy link
Copy Markdown

@Jaksenc Jaksenc commented May 13, 2026

Summary

  • add an opt-in ConversationVirtualizedContent component backed by @tanstack/react-virtual
  • reuse the existing use-stick-to-bottom scroll element so auto-scroll and the scroll button keep working in the same Conversation surface
  • add tests for visible-row rendering and custom class names
  • update the conversation docs and preview example with virtualized usage

Fixes #103.

Testing

  • pnpm --filter @repo/elements test
  • pnpm exec oxlint packages/elements/src/conversation.tsx packages/elements/tests/conversation.test.tsx packages/examples/src/conversation.tsx
  • pnpm exec oxfmt --check packages/elements/src/conversation.tsx packages/elements/tests/conversation.test.tsx packages/examples/src/conversation.tsx 'apps/docs/content/components/(chatbot)/conversation.mdx'
  • git diff --check

Notes

  • I also ran pnpm run check. It currently stops on pre-existing formatting issues in apps/docs/content/components/(chatbot)/confirmation.mdx, apps/docs/content/components/(chatbot)/message.mdx, and apps/docs/package.json before reaching lint; those files are unrelated and left untouched.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 13, 2026

@Jaksenc is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​tanstack/​react-virtual@​3.13.241001006795100

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ChatConversation]: Virtualization planned?

1 participant