feat(creator_name): add creator_name field to agents and knowledge bases for enhanced visibility

Introduced a new optional field, creator_name, in both CustomAgent and KnowledgeBase types to allow the front end to display the creator's name. This enhancement enables better differentiation between resources created by the current user and those created by other members of the same tenant. Updated relevant API handlers to populate this field during list operations, ensuring accurate representation in the UI. Additionally, modified the ResourceOriginBadge component to utilize the creator_name for improved context in resource listings.

Refs: #1303
This commit is contained in:
wizardchen
2026-05-18 00:28:16 +08:00
committed by lyingbug
parent 8b681e4a2e
commit 8d4c58c5fa
13 changed files with 894 additions and 433 deletions
+9 -1
View File
@@ -517,6 +517,11 @@ export default {
mine: 'My Agents',
sharedToMe: 'Shared to Me'
},
sections: {
tenantReadonly: 'Рабочая область · Только просмотр',
sharedEditable: 'Доступно мне · Можно редактировать',
sharedReadonly: 'Доступно мне · Только просмотр'
},
empty: {
title: 'No Custom Agents',
description: 'Click the button in the top right to create your first agent',
@@ -1850,7 +1855,10 @@ export default {
},
sections: {
pinned: 'Закреплённые',
others: 'Другие'
others: 'Другие',
tenantReadonly: 'Рабочая область · Только просмотр',
sharedEditable: 'Доступно мне · Можно редактировать',
sharedReadonly: 'Доступно мне · Только просмотр'
},
messages: {
deleted: 'База знаний удалена',