mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-11 03:43:30 +08:00
feat: add ecc2 merge queue reporting
This commit is contained in:
@@ -4371,6 +4371,35 @@ impl Dashboard {
|
||||
lines.push(format!("- conflict {conflict}"));
|
||||
}
|
||||
}
|
||||
if let Ok(merge_queue) = manager::build_merge_queue(&self.db) {
|
||||
let entry = merge_queue
|
||||
.ready_entries
|
||||
.iter()
|
||||
.chain(merge_queue.blocked_entries.iter())
|
||||
.find(|entry| entry.session_id == session.id);
|
||||
if let Some(entry) = entry {
|
||||
lines.push("Merge queue".to_string());
|
||||
if let Some(position) = entry.queue_position {
|
||||
lines.push(format!(
|
||||
"- ready #{} | {}",
|
||||
position, entry.suggested_action
|
||||
));
|
||||
} else {
|
||||
lines.push(format!("- blocked | {}", entry.suggested_action));
|
||||
}
|
||||
for blocker in entry.blocked_by.iter().take(2) {
|
||||
lines.push(format!(
|
||||
" blocker {} [{}] | {}",
|
||||
format_session_id(&blocker.session_id),
|
||||
blocker.branch,
|
||||
blocker.summary
|
||||
));
|
||||
for conflict in blocker.conflicts.iter().take(3) {
|
||||
lines.push(format!(" conflict {conflict}"));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
lines.push(format!(
|
||||
|
||||
Reference in New Issue
Block a user