feat(HAI-024): remove PROMPT.md header from TaskDetailModal

- Remove the hard-coded PROMPT.md h4 heading from the task detail section
- Add test asserting the PROMPT.md heading is no longer rendered
This commit is contained in:
Dustin Byrne
2026-03-25 22:02:01 -04:00
2 changed files with 15 additions and 1 deletions

View File

@@ -115,7 +115,6 @@ export function TaskDetailModal({
{new Date(task.updatedAt).toLocaleDateString()}
</div>
<div className="detail-section">
<h4>PROMPT.md</h4>
{task.prompt ? (
<div className="markdown-body">
<ReactMarkdown remarkPlugins={[remarkGfm]}>

View File

@@ -74,4 +74,19 @@ describe("TaskDetailModal", () => {
expect(fallback.classList.contains("detail-prompt")).toBe(true);
expect(fallback.classList.contains("markdown-body")).toBe(false);
});
it("does not render a PROMPT.md heading", () => {
render(
<TaskDetailModal
task={makeTask({ prompt: "# Some prompt content" })}
onClose={noop}
onMoveTask={noopMove}
onDeleteTask={noopDelete}
onMergeTask={noopMerge}
addToast={noop}
/>,
);
expect(screen.queryByText("PROMPT.md")).toBeNull();
});
});