Refine editor action shell and add regression tests

This commit is contained in:
2026-03-27 12:06:24 +08:00
parent c33404767e
commit 4b9a63098e
21 changed files with 838 additions and 308 deletions

View File

@@ -32,25 +32,8 @@ void ConsolePanel::Render() {
if (!content.IsOpen()) {
return;
}
const auto logs = sink->GetLogs();
size_t logIndex = 0;
for (const auto& log : logs) {
if (!m_filterState.Allows(log.level)) {
continue;
}
ImGui::PushID(static_cast<int>(logIndex));
const std::string fullMessage = UI::BuildConsoleLogText(log);
if (UI::DrawConsoleLogRow(fullMessage.c_str())) {
ImGui::SetClipboardText(fullMessage.c_str());
}
ImGui::PopID();
logIndex++;
}
Actions::DrawConsoleLogRows(*sink, m_filterState);
}
}