Bug: Suite entries linked via conversation_id are not rendered correctly in the Test Suite detail page
Summary
When a test suite contains entries linked by conversation_id (rather than test_id), the suite detail page displays them as:
- Type:
Suite (should be Conversation)
- Name:
Unknown Entry (should be the conversation name)
Root cause
In frontend/src/app/test-suites/[id]/page.tsx:
getEntryName only handles entry.test_id and entry.child_suite_id — there is no branch for entry.conversation_id:
const getEntryName = (entry: SuiteEntry): string => {
if (entry.test_id) { ... }
else if (entry.child_suite_id) { ... }
return 'Unknown Entry'; // conversation_id entries always fall here
};
- Type column uses
entry.test_id ? 'Test' : 'Suite', so conversation entries always render as Suite:
<TableCell>{entry.test_id ? 'Test' : 'Suite'}</TableCell>
useTestSuiteDetailData fetches allTests and allSuites but never fetches allConversations, so even if getEntryName had a conversation_id branch, it would have nothing to look up against.
Fix
- Fetch all conversations in
useTestSuiteDetailData and expose them (similar to allTests).
- Add a
conversation_id branch to getEntryName that looks up the conversation name.
- Fix the Type cell to return
'Conversation' when entry.conversation_id is set.
Steps to reproduce
- Create a test suite via the data-transfer import API with entries that reference conversations by name (using
conversation_name in ExportedSuiteEntry).
- Open the suite detail page in the frontend.
- All entries show as type
Suite / name Unknown Entry.
Impact
Purely cosmetic — the suite runs correctly (execution, scoring, and results all work). Only the display in the suite detail page is affected.
Bug: Suite entries linked via
conversation_idare not rendered correctly in the Test Suite detail pageSummary
When a test suite contains entries linked by
conversation_id(rather thantest_id), the suite detail page displays them as:Suite(should beConversation)Unknown Entry(should be the conversation name)Root cause
In
frontend/src/app/test-suites/[id]/page.tsx:getEntryNameonly handlesentry.test_idandentry.child_suite_id— there is no branch forentry.conversation_id:entry.test_id ? 'Test' : 'Suite', so conversation entries always render asSuite:useTestSuiteDetailDatafetchesallTestsandallSuitesbut never fetchesallConversations, so even ifgetEntryNamehad aconversation_idbranch, it would have nothing to look up against.Fix
useTestSuiteDetailDataand expose them (similar toallTests).conversation_idbranch togetEntryNamethat looks up the conversation name.'Conversation'whenentry.conversation_idis set.Steps to reproduce
conversation_nameinExportedSuiteEntry).Suite/ nameUnknown Entry.Impact
Purely cosmetic — the suite runs correctly (execution, scoring, and results all work). Only the display in the suite detail page is affected.