完成:aide/022 - 开始任务准备: 调整 aide 体系的 finish 清理、提交信息和 decide 界面

This commit is contained in:
2025-12-19 04:50:05 +08:00
parent af40327146
commit 3313dc1fb8
11 changed files with 252 additions and 36 deletions

View File

@@ -88,10 +88,22 @@ function renderItemCard(item) {
}
if (item.location && item.location.file) {
const location = document.createElement("div");
location.className = "item-location";
location.textContent = `位置: ${item.location.file}:${item.location.start}-${item.location.end}`;
card.appendChild(location);
const locationWrap = document.createElement("div");
locationWrap.className = "item-location";
const locationLabel = document.createElement("div");
locationLabel.className = "location-label";
locationLabel.textContent = `来源: ${item.location.file} (行 ${item.location.start}-${item.location.end})`;
locationWrap.appendChild(locationLabel);
if (item.source_content) {
const sourceContent = document.createElement("pre");
sourceContent.className = "source-content";
sourceContent.textContent = item.source_content;
locationWrap.appendChild(sourceContent);
}
card.appendChild(locationWrap);
}
const options = renderOptions(item);

View File

@@ -130,6 +130,26 @@ body {
line-height: 1.6;
}
.location-label {
font-size: var(--font-size-sm);
margin-bottom: var(--spacing-xs);
}
.source-content {
background: var(--color-background);
border: 1px solid var(--color-border);
border-radius: var(--radius-sm);
padding: var(--spacing-sm);
margin: var(--spacing-xs) 0 0 0;
font-family: "SF Mono", Monaco, Consolas, monospace;
font-size: 13px;
line-height: 1.5;
overflow-x: auto;
white-space: pre-wrap;
word-break: break-word;
color: var(--color-text);
}
.options-list {
margin-top: var(--spacing-md);
display: grid;