Refine management terminal logs and command UX

This commit is contained in:
npc0-hue
2026-08-03 14:28:31 +08:00
parent a1bf3aa86a
commit cf4d0d0ba5
4 changed files with 295 additions and 58 deletions
+16 -2
View File
@@ -292,9 +292,23 @@ describe("first-party console pages", () => {
it("renders management terminal as a large command console with quick commands", () => {
expect(serverLiveOperationsSource).toContain("management-terminal-drawer");
expect(serverLiveOperationsSource).toContain("terminal-output-topbar");
expect(serverLiveOperationsSource).toContain("terminal-command-dock");
expect(serverLiveOperationsSource).toContain("terminalQuickCommands");
expect(serverLiveOperationsSource).toContain("setCommand(item.command)");
expect(serverLiveOperationsSource).toContain("terminalQuickCommandCatalog");
expect(serverLiveOperationsSource).toContain("terminalQuickCommandsForPlugin");
expect(serverLiveOperationsSource).toContain("selectQuickCommand(item)");
expect(serverLiveOperationsSource).toContain("hideHeader");
expect(serverLiveOperationsSource).toContain("handleCommandKeyDown");
expect(serverLiveOperationsSource).toContain("commandHistory");
expect(serverLiveOperationsSource).toContain("ArrowUp");
expect(serverLiveOperationsSource).toContain("listServerLiveLogs");
expect(serverLiveOperationsSource).toContain("queryLogStream");
expect(serverLiveOperationsSource).toContain("terminalLogPollMs = 1000");
expect(serverLiveOperationsSource).toContain("logStreamPollMs = 5000");
expect(serverLiveOperationsSource).toContain("mergeTerminalLines");
expect(serverLiveOperationsSource).toContain("nextCursorSeq");
expect(serverLiveOperationsSource).toContain("initialLogCursor");
expect(serverLiveOperationsSource).not.toContain("SaveWorld");
});
it("renders plugin catalog bridge readiness", () => {