Display SPEC.md content in task detail panel
This commit is contained in:
@@ -216,6 +216,7 @@ function renderDetail(task) {
|
||||
const stIcon = stStatus === 'pass' ? '✓' : stStatus === 'fail' ? '✗' : '○';
|
||||
return `<li><span class="${stStatus}">${stIcon}</span><span>${st.name}</span></li>`;
|
||||
}).join('')}</ul></div>` : ''}
|
||||
${task.spec_content ? `<div class="detail-section"><h4>Specification</h4><pre class="detail-content-text">${escapeHtml(task.spec_content)}</pre></div>` : ''}
|
||||
${task.verdict_content ? `<div class="detail-section"><h4>Verdict</h4><pre class="detail-content-text">${escapeHtml(task.verdict_content)}</pre></div>` : ''}
|
||||
${task.bug_report_content ? `<div class="detail-section"><h4>Bug Report</h4><pre class="detail-content-text">${escapeHtml(task.bug_report_content)}</pre></div>` : ''}`;
|
||||
}
|
||||
|
||||
@@ -124,6 +124,7 @@ class DashboardHandler(SimpleHTTPRequestHandler):
|
||||
],
|
||||
"verdict_content": t.verdict_content,
|
||||
"bug_report_content": t.bug_report_content,
|
||||
"spec_content": t.spec_content,
|
||||
"review": self._get_review_status(t.name),
|
||||
}
|
||||
for t in tasks
|
||||
@@ -183,6 +184,7 @@ class DashboardHandler(SimpleHTTPRequestHandler):
|
||||
],
|
||||
"verdict_content": task.verdict_content,
|
||||
"bug_report_content": task.bug_report_content,
|
||||
"spec_content": task.spec_content,
|
||||
"review": self._get_review_status(task.name),
|
||||
}
|
||||
self._send_json(task_data)
|
||||
|
||||
Reference in New Issue
Block a user