refactor: replace skill code with skill ID across the application
- Updated skill handling to use skill IDs instead of skill codes in various components, services, and models. - Modified tests to reflect changes in skill identification. - Removed references to skill codes in favor of skill IDs for consistency and clarity. - Updated localization files to remove skill code references and adjust error messages accordingly.
This commit is contained in:
@@ -122,7 +122,7 @@ export function AgentRunLogDetailDialog({
|
||||
title={t("agentRunLog.planningStage")}
|
||||
lines={[
|
||||
`plannedAction: ${activeLog.plannedAction || "-"}`,
|
||||
`plannedSkillCode: ${activeLog.plannedSkillCode || "-"}`,
|
||||
`plannedSkillId: ${activeLog.plannedSkillId || "-"}`,
|
||||
`plannedSkillName: ${activeLog.plannedSkillName || "-"}`,
|
||||
`graphToolCode: ${activeLog.graphToolCode || "-"}`,
|
||||
`recommendedAction: ${activeLog.recommendedAction || "-"}`,
|
||||
|
||||
@@ -239,14 +239,19 @@ export default function DashboardAgentRunLogsPage() {
|
||||
</div>
|
||||
|
||||
<div className="min-w-0 text-sm">
|
||||
{item.plannedSkillCode || item.graphToolCode || item.plannedToolCode ? (
|
||||
{item.plannedSkillId || item.graphToolCode || item.plannedToolCode ? (
|
||||
<div className="min-w-0 space-y-1">
|
||||
<div className="truncate font-medium">
|
||||
{item.plannedSkillCode || item.graphToolCode || item.plannedToolCode}
|
||||
{item.plannedSkillName ||
|
||||
(item.plannedSkillId
|
||||
? `Skill #${item.plannedSkillId}`
|
||||
: "") ||
|
||||
item.graphToolCode ||
|
||||
item.plannedToolCode}
|
||||
</div>
|
||||
{item.plannedSkillName ? (
|
||||
{item.plannedSkillId ? (
|
||||
<div className="truncate text-xs text-muted-foreground">
|
||||
{item.plannedSkillName}
|
||||
Skill #{item.plannedSkillId}
|
||||
</div>
|
||||
) : item.handoffReason ? (
|
||||
<div className="truncate text-xs text-muted-foreground">
|
||||
|
||||
Reference in New Issue
Block a user