Skip to content

[Engineer] feat: chat add allowsend #2825

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

DaiQiangReal
Copy link
Collaborator

中文模板 / Chinese Template

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Test Case
  • TypeScript definition update
  • Document improve
  • CI/CD improve
  • Branch sync
  • Other, please describe:

PR description

Fixes #

Changelog

🇨🇳 Chinese

  • Feat: Chat 组件新增 allowSend 控制是否允许发送消息和文件

🇺🇸 English

  • Feat: Chat component adds allowSend to control whether to allow sending messages and files

Checklist

  • Test or no need
  • Document or no need
  • Changelog or no need

Other

  • Skip Changelog

Additional information

Copy link

codesandbox-ci bot commented May 6, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 757fa38:

Sandbox Source
pr-story Configuration

Copy link

cypress bot commented May 6, 2025

semi-design    Run #3208

Run Properties:  status check passed Passed #3208  •  git commit cef51fd3e8 ℹ️: Merge 757fa38f3058c40c835276ab1e7b588273c59204 into 0b7c01445856d08364b7331e9080...
Project semi-design
Branch Review feat_chat_allowSend
Run status status check passed Passed #3208
Run duration 08m 09s
Commit git commit cef51fd3e8 ℹ️: Merge 757fa38f3058c40c835276ab1e7b588273c59204 into 0b7c01445856d08364b7331e9080...
Committer SudoUser
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 13
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 278
View all changes introduced in this branch ↗︎

@@ -1632,6 +1632,7 @@ render(DefaultChat);
| onInputChange | 输入区域信息变化时触发 | (props: { value?: string, attachment?: FileItem[] }) => void; | - |
| onMessageBadFeedback | 消息负向反馈时触发 | (message: Message) => void | - |
| onMessageCopy | 复制消息时触发 | (message: Message) => void | - |
| allowSend | 是否允许输入框发送文本和文件,受控属性,默认 true | boolean | true |
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个位置不太对。后续估计得加一下prompt 约束,要按字母序改。

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.

2 participants