Skip to content
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

refactor: replace ChatInput with antdx component #2972

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

agatha197
Copy link
Contributor

@agatha197 agatha197 commented Dec 20, 2024

resolves #2973

Replaces the custom ChatInput component with Ant Design X's Sender component and updates AI SDK dependencies to their latest versions. The new Sender component provides better chat input functionality while maintaining existing features like auto-focus and loading states.

Key changes:

  • Upgraded @ai-sdk/openai from 0.0.72 to 1.0.10
  • Upgraded ai package from 3.4.33 to 4.0.20
  • Added @ant-design/x dependency
  • Replaced ChatInput.tsx with ChatSender.tsx using Ant Design X's Sender component
  • Updated LLMChatCard to use the new ChatSender component
  • Updated stream handling to use toDataStreamResponse()

What to test:

test: dogbowl

  • Is the chat with the LLM model working fine? (Send -> Receive -> Send...)
  • Is autofocus works well?

Checklist:

  • Mention to the original issue
  • Documentation
  • Minium required manager version
  • Specific setting for review
  • Minimum requirements to check during review
  • Test case(s) to demonstrate the difference of before/after

@github-actions github-actions bot added the size:L 100~500 LoC label Dec 20, 2024
Copy link
Contributor Author

agatha197 commented Dec 20, 2024


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • flow:merge-queue - adds this PR to the back of the merge queue
  • flow:hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has required the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link

github-actions bot commented Dec 20, 2024

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements
5.01% (+0% 🔼)
398/7945
🔴 Branches
4.33% (+0.01% 🔼)
237/5478
🔴 Functions 3.01% 78/2595
🔴 Lines
4.93% (+0% 🔼)
383/7773
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🔴
... / ChatSender.tsx
0% 0% 0% 0%

Test suite run success

124 tests passing in 14 suites.

Report generated by 🧪jest coverage report action from 8071aa8

@agatha197 agatha197 force-pushed the refactor/replace-chatInput-with-antdx-component branch from a5986b0 to 7441617 Compare December 20, 2024 07:02
@agatha197 agatha197 requested a review from yomybaby December 20, 2024 07:03
@agatha197 agatha197 force-pushed the refactor/replace-chatInput-with-antdx-component branch from 7441617 to 59ada26 Compare December 20, 2024 07:06
@github-actions github-actions bot added size:XL 500~ LoC and removed size:L 100~500 LoC labels Dec 20, 2024
@agatha197 agatha197 force-pushed the refactor/replace-chatInput-with-antdx-component branch from 59ada26 to 0b072f9 Compare December 20, 2024 08:25
@agatha197 agatha197 requested a review from lizable December 20, 2024 08:26
@agatha197 agatha197 force-pushed the refactor/replace-chatInput-with-antdx-component branch from 0b072f9 to d66abb0 Compare December 26, 2024 06:52
@agatha197 agatha197 marked this pull request as ready for review December 26, 2024 06:53
@yomybaby yomybaby force-pushed the refactor/replace-chatInput-with-antdx-component branch from d66abb0 to c806e76 Compare December 30, 2024 10:29
Copy link
Member

@yomybaby yomybaby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make sure that the multiline is output as entered. There's no need to apply markdown; just ensure simple line breaks are added.

Whe I enter

asdf
asdf
asdf

it displays like below:
image.png

@agatha197 agatha197 force-pushed the refactor/replace-chatInput-with-antdx-component branch 4 times, most recently from a464d31 to 21ed5a4 Compare January 2, 2025 04:30
Copy link
Contributor Author

Applied.

@agatha197 agatha197 requested a review from yomybaby January 2, 2025 04:31
Copy link
Member

@yomybaby yomybaby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

graphite-app bot commented Jan 2, 2025

Merge activity

resolves #2973

Replaces the custom ChatInput component with Ant Design X's Sender component and updates AI SDK dependencies to their latest versions. The new Sender component provides better chat input functionality while maintaining existing features like auto-focus and loading states.

Key changes:
- Upgraded @ai-sdk/openai from 0.0.72 to 1.0.10
- Upgraded ai package from 3.4.33 to 4.0.20
- Added @ant-design/x dependency
- Replaced ChatInput.tsx with ChatSender.tsx using Ant Design X's Sender component
- Updated LLMChatCard to use the new ChatSender component
- Updated stream handling to use toDataStreamResponse()

What to test:
> test: dogbowl
- [ ] Is the chat with the LLM model working fine? (Send -> Receive -> Send...)
- [ ] Is autofocus works well?

**Checklist:**

- [x] Mention to the original issue
- [ ] Documentation
- [ ] Minium required manager version
- [x] Specific setting for review
- [x] Minimum requirements to check during review
- [ ] Test case(s) to demonstrate the difference of before/after
@yomybaby yomybaby force-pushed the refactor/replace-chatInput-with-antdx-component branch from 21ed5a4 to 8071aa8 Compare January 2, 2025 04:43
@graphite-app graphite-app bot merged commit 8071aa8 into main Jan 2, 2025
7 checks passed
@graphite-app graphite-app bot deleted the refactor/replace-chatInput-with-antdx-component branch January 2, 2025 04:45
ironAiken2 pushed a commit that referenced this pull request Jan 2, 2025
resolves #2973

Replaces the custom ChatInput component with Ant Design X's Sender component and updates AI SDK dependencies to their latest versions. The new Sender component provides better chat input functionality while maintaining existing features like auto-focus and loading states.

Key changes:
- Upgraded @ai-sdk/openai from 0.0.72 to 1.0.10
- Upgraded ai package from 3.4.33 to 4.0.20
- Added @ant-design/x dependency
- Replaced ChatInput.tsx with ChatSender.tsx using Ant Design X's Sender component
- Updated LLMChatCard to use the new ChatSender component
- Updated stream handling to use toDataStreamResponse()

What to test:
> test: dogbowl
- [ ] Is the chat with the LLM model working fine? (Send -> Receive -> Send...)
- [ ] Is autofocus works well?

**Checklist:**

- [x] Mention to the original issue
- [ ] Documentation
- [ ] Minium required manager version
- [x] Specific setting for review
- [x] Minimum requirements to check during review
- [ ] Test case(s) to demonstrate the difference of before/after
ironAiken2 pushed a commit that referenced this pull request Jan 8, 2025
resolves #2973

Replaces the custom ChatInput component with Ant Design X's Sender component and updates AI SDK dependencies to their latest versions. The new Sender component provides better chat input functionality while maintaining existing features like auto-focus and loading states.

Key changes:
- Upgraded @ai-sdk/openai from 0.0.72 to 1.0.10
- Upgraded ai package from 3.4.33 to 4.0.20
- Added @ant-design/x dependency
- Replaced ChatInput.tsx with ChatSender.tsx using Ant Design X's Sender component
- Updated LLMChatCard to use the new ChatSender component
- Updated stream handling to use toDataStreamResponse()

What to test:
> test: dogbowl
- [ ] Is the chat with the LLM model working fine? (Send -> Receive -> Send...)
- [ ] Is autofocus works well?

**Checklist:**

- [x] Mention to the original issue
- [ ] Documentation
- [ ] Minium required manager version
- [x] Specific setting for review
- [x] Minimum requirements to check during review
- [ ] Test case(s) to demonstrate the difference of before/after
ironAiken2 pushed a commit that referenced this pull request Jan 8, 2025
resolves #2973

Replaces the custom ChatInput component with Ant Design X's Sender component and updates AI SDK dependencies to their latest versions. The new Sender component provides better chat input functionality while maintaining existing features like auto-focus and loading states.

Key changes:
- Upgraded @ai-sdk/openai from 0.0.72 to 1.0.10
- Upgraded ai package from 3.4.33 to 4.0.20
- Added @ant-design/x dependency
- Replaced ChatInput.tsx with ChatSender.tsx using Ant Design X's Sender component
- Updated LLMChatCard to use the new ChatSender component
- Updated stream handling to use toDataStreamResponse()

What to test:
> test: dogbowl
- [ ] Is the chat with the LLM model working fine? (Send -> Receive -> Send...)
- [ ] Is autofocus works well?

**Checklist:**

- [x] Mention to the original issue
- [ ] Documentation
- [ ] Minium required manager version
- [x] Specific setting for review
- [x] Minimum requirements to check during review
- [ ] Test case(s) to demonstrate the difference of before/after
ironAiken2 pushed a commit that referenced this pull request Jan 13, 2025
resolves #2973

Replaces the custom ChatInput component with Ant Design X's Sender component and updates AI SDK dependencies to their latest versions. The new Sender component provides better chat input functionality while maintaining existing features like auto-focus and loading states.

Key changes:
- Upgraded @ai-sdk/openai from 0.0.72 to 1.0.10
- Upgraded ai package from 3.4.33 to 4.0.20
- Added @ant-design/x dependency
- Replaced ChatInput.tsx with ChatSender.tsx using Ant Design X's Sender component
- Updated LLMChatCard to use the new ChatSender component
- Updated stream handling to use toDataStreamResponse()

What to test:
> test: dogbowl
- [ ] Is the chat with the LLM model working fine? (Send -> Receive -> Send...)
- [ ] Is autofocus works well?

**Checklist:**

- [x] Mention to the original issue
- [ ] Documentation
- [ ] Minium required manager version
- [x] Specific setting for review
- [x] Minimum requirements to check during review
- [ ] Test case(s) to demonstrate the difference of before/after
ironAiken2 pushed a commit that referenced this pull request Jan 14, 2025
resolves #2973

Replaces the custom ChatInput component with Ant Design X's Sender component and updates AI SDK dependencies to their latest versions. The new Sender component provides better chat input functionality while maintaining existing features like auto-focus and loading states.

Key changes:
- Upgraded @ai-sdk/openai from 0.0.72 to 1.0.10
- Upgraded ai package from 3.4.33 to 4.0.20
- Added @ant-design/x dependency
- Replaced ChatInput.tsx with ChatSender.tsx using Ant Design X's Sender component
- Updated LLMChatCard to use the new ChatSender component
- Updated stream handling to use toDataStreamResponse()

What to test:
> test: dogbowl
- [ ] Is the chat with the LLM model working fine? (Send -> Receive -> Send...)
- [ ] Is autofocus works well?

**Checklist:**

- [x] Mention to the original issue
- [ ] Documentation
- [ ] Minium required manager version
- [x] Specific setting for review
- [x] Minimum requirements to check during review
- [ ] Test case(s) to demonstrate the difference of before/after
ironAiken2 pushed a commit that referenced this pull request Jan 14, 2025
resolves #2973

Replaces the custom ChatInput component with Ant Design X's Sender component and updates AI SDK dependencies to their latest versions. The new Sender component provides better chat input functionality while maintaining existing features like auto-focus and loading states.

Key changes:
- Upgraded @ai-sdk/openai from 0.0.72 to 1.0.10
- Upgraded ai package from 3.4.33 to 4.0.20
- Added @ant-design/x dependency
- Replaced ChatInput.tsx with ChatSender.tsx using Ant Design X's Sender component
- Updated LLMChatCard to use the new ChatSender component
- Updated stream handling to use toDataStreamResponse()

What to test:
> test: dogbowl
- [ ] Is the chat with the LLM model working fine? (Send -> Receive -> Send...)
- [ ] Is autofocus works well?

**Checklist:**

- [x] Mention to the original issue
- [ ] Documentation
- [ ] Minium required manager version
- [x] Specific setting for review
- [x] Minimum requirements to check during review
- [ ] Test case(s) to demonstrate the difference of before/after
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XL 500~ LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace ChatCard components with antdx
2 participants