-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
feat: add chat history time label #3024
base: main
Are you sure you want to change the base?
Conversation
Hey @Patrickill, here is an example of how you can ask me to improve this pull request: @Sweep Add unit tests for the `formatTimeToChatTime` function in `packages/global/common/string/time.ts` to test: 📖 For more information on how to use Sweep, please read our documentation. |
勤劳上班的卑微小张 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
1 similar comment
勤劳上班的卑微小张 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
projects/app/src/components/core/chat/ChatContainer/ChatBox/components/ChatItem.tsx
Outdated
Show resolved
Hide resolved
projects/app/src/components/core/chat/ChatContainer/ChatBox/index.tsx
Outdated
Show resolved
Hide resolved
if (now.isSame(target, 'day')) { | ||
return target.format('HH : mm'); | ||
return 'common:' + target.format('HH#mm'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
去掉
|
||
// 如果时间是今天,展示几时:几分 | ||
if (now.isSame(target, 'day')) { | ||
return 'common:' + detailTime; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
去掉
@@ -34,6 +34,7 @@ export type ChatProviderProps = OutLinkChatAuthProps & { | |||
|
|||
// not chat test params | |||
chatId?: string; | |||
isLog?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
改成 chatType 把,后面可能还会分其他的
{isChatting && type === ChatRoleEnum.AI && isLastChild ? null : ( | ||
<Box order={styleMap.order} ml={styleMap.ml}> | ||
<Flex order={styleMap.order} ml={styleMap.ml} align={'center'} gap={'0.62rem'}> | ||
{chat.time && type === ChatRoleEnum.Human && (isPc || isLog) && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
讨论了下,这里不用 human,都可以展示
No description provided.