🐛 fix: fixed the agents list the show updateAt time error (#12103)

* feat: refactor community user pages

* feat: add the agents-group like in social types

* feat: add the user favoitor filter

* fix: slove the agents list show the updateAt time
This commit is contained in:
Shinji-Li
2026-02-04 17:05:56 +08:00
committed by GitHub
parent f61ab26081
commit 3063ceef8c
3 changed files with 4 additions and 1 deletions

View File

@@ -62,6 +62,7 @@ export interface DiscoverAssistantItem extends Omit<LobeAgentSettings, 'meta'>,
status?: AgentStatus;
tokenUsage: number;
type?: AgentType;
updatedAt?: string;
userName?: string;
}

View File

@@ -56,6 +56,7 @@ const styles = createStaticStyles(({ css, cssVar }) => {
const AssistantItem = memo<DiscoverAssistantItem>(
({
createdAt,
updatedAt,
author,
avatar,
title,
@@ -225,7 +226,7 @@ const AssistantItem = memo<DiscoverAssistantItem>(
<Icon icon={ClockIcon} size={14} />
<PublishedTime
className={styles.secondaryDesc}
date={createdAt}
date={updatedAt || createdAt}
template={'MMM DD, YYYY'}
/>
</Flexbox>

View File

@@ -745,6 +745,7 @@ export class DiscoverService {
title: item.name || item.identifier,
tokenUsage: item.tokenUsage || 0,
type: item.type,
updatedAt: item.updatedAt,
userName: normalizedAuthor.userName,
};
});