惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog
The Cloudflare Blog
J
Java Code Geeks
Apple Machine Learning Research
Apple Machine Learning Research
T
Tailwind CSS Blog
L
LangChain Blog
Recent Announcements
Recent Announcements
Hugging Face - Blog
Hugging Face - Blog
Microsoft Security Blog
Microsoft Security Blog
F
Fortinet All Blogs
Microsoft Azure Blog
Microsoft Azure Blog
V
V2EX
I
InfoQ
博客园 - 司徒正美
T
The Blog of Author Tim Ferriss
G
Google Developers Blog
云风的 BLOG
云风的 BLOG
aimingoo的专栏
aimingoo的专栏
小众软件
小众软件
H
Help Net Security
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
B
Blog RSS Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
test: table navigation metadata · openclaw/openclaw@44b7f5b
shakkernerd · 2026-05-13 · via Recent Commits to openclaw:main

@@ -15,42 +15,34 @@ import {

1515

/** All valid tab identifiers derived from TAB_GROUPS */

1616

const ALL_TABS: Tab[] = TAB_GROUPS.flatMap((group) => group.tabs) as Tab[];

171718-

const nonEmptyTabMetadataCases = [

19-

{ name: "iconForTab", resolve: iconForTab },

20-

{ name: "titleForTab", resolve: titleForTab },

21-

];

22-2318

const leadingSlashNormalizerCases = [

2419

{ name: "normalizeBasePath", normalize: normalizeBasePath, input: "ui", expected: "/ui" },

2520

{ name: "normalizePath", normalize: normalizePath, input: "chat", expected: "/chat" },

2621

];

272228-

describe("tab metadata string helpers", () => {

29-

it.each(nonEmptyTabMetadataCases)(

30-

"$name returns a non-empty string for every tab",

31-

({ resolve }) => {

32-

for (const tab of ALL_TABS) {

33-

const value = resolve(tab);

34-

expect(typeof value).toBe("string");

35-

expect(value.length).toBeGreaterThan(0);

36-

}

37-

},

38-

);

39-

});

40-4123

describe("iconForTab", () => {

42-

it("returns stable icons for known tabs", () => {

43-

expect(iconForTab("chat")).toBe("messageSquare");

44-

expect(iconForTab("overview")).toBe("barChart");

45-

expect(iconForTab("channels")).toBe("link");

46-

expect(iconForTab("instances")).toBe("radio");

47-

expect(iconForTab("sessions")).toBe("fileText");

48-

expect(iconForTab("cron")).toBe("loader");

49-

expect(iconForTab("skills")).toBe("zap");

50-

expect(iconForTab("nodes")).toBe("monitor");

51-

expect(iconForTab("config")).toBe("settings");

52-

expect(iconForTab("debug")).toBe("bug");

53-

expect(iconForTab("logs")).toBe("scrollText");

24+

it("returns stable icons for every tab", () => {

25+

expect(Object.fromEntries(ALL_TABS.map((tab) => [tab, iconForTab(tab)]))).toEqual({

26+

chat: "messageSquare",

27+

overview: "barChart",

28+

channels: "link",

29+

instances: "radio",

30+

sessions: "fileText",

31+

usage: "barChart",

32+

cron: "loader",

33+

agents: "folder",

34+

skills: "zap",

35+

nodes: "monitor",

36+

dreams: "moon",

37+

config: "settings",

38+

communications: "send",

39+

appearance: "spark",

40+

automation: "terminal",

41+

infrastructure: "globe",

42+

aiAgents: "brain",

43+

debug: "bug",

44+

logs: "scrollText",

45+

});

5446

});

55475648

it("returns a fallback icon for unknown tab", () => {

@@ -61,24 +53,54 @@ describe("iconForTab", () => {

6153

});

62546355

describe("titleForTab", () => {

64-

it("returns expected titles", () => {

65-

expect(titleForTab("chat")).toBe("Chat");

66-

expect(titleForTab("overview")).toBe("Overview");

67-

expect(titleForTab("cron")).toBe("Cron Jobs");

56+

it("returns expected titles for every tab", () => {

57+

expect(Object.fromEntries(ALL_TABS.map((tab) => [tab, titleForTab(tab)]))).toEqual({

58+

chat: "Chat",

59+

overview: "Overview",

60+

channels: "Channels",

61+

instances: "Instances",

62+

sessions: "Sessions",

63+

usage: "Usage",

64+

cron: "Cron Jobs",

65+

agents: "Agents",

66+

skills: "Skills",

67+

nodes: "Nodes",

68+

dreams: "Dreaming",

69+

config: "Config",

70+

communications: "Communications",

71+

appearance: "Appearance",

72+

automation: "Automation",

73+

infrastructure: "Infrastructure",

74+

aiAgents: "AI & Agents",

75+

debug: "Debug",

76+

logs: "Logs",

77+

});

6878

});

6979

});

70807181

describe("subtitleForTab", () => {

72-

it("returns a string for every tab", () => {

73-

for (const tab of ALL_TABS) {

74-

const subtitle = subtitleForTab(tab);

75-

expect(typeof subtitle).toBe("string");

76-

}

77-

});

78-79-

it("returns descriptive subtitles", () => {

80-

expect(subtitleForTab("chat")).toContain("quick interventions");

81-

expect(subtitleForTab("config")).toContain("openclaw.json");

82+

it("returns expected subtitles for every tab", () => {

83+

expect(Object.fromEntries(ALL_TABS.map((tab) => [tab, subtitleForTab(tab)]))).toEqual({

84+

chat: "Gateway chat for quick interventions.",

85+

overview: "Status, entry points, health.",

86+

channels: "Channels and settings.",

87+

instances: "Connected clients and nodes.",

88+

sessions: "Active sessions and defaults.",

89+

usage: "API usage and costs.",

90+

cron: "Wakeups and recurring runs.",

91+

agents: "Workspaces, tools, identities.",

92+

skills: "Skills and API keys.",

93+

nodes: "Paired devices and commands.",

94+

dreams: "Memory dreaming, consolidation, and reflection.",

95+

config: "Edit openclaw.json.",

96+

communications: "Channels, messages, and audio settings.",

97+

appearance: "Theme, UI, and setup wizard settings.",

98+

automation: "Commands, hooks, cron, and plugins.",

99+

infrastructure: "Gateway, web, browser, and media settings.",

100+

aiAgents: "Agents, models, skills, tools, memory, session.",

101+

debug: "Snapshots, events, RPC.",

102+

logs: "Live gateway logs.",

103+

});

82104

});

83105

});

84106

@@ -185,11 +207,7 @@ describe("inferBasePathFromPathname", () => {

185207186208

describe("TAB_GROUPS", () => {

187209

it("contains all expected groups", () => {

188-

const labels = TAB_GROUPS.map((g) => g.label);

189-

expect(labels).toContain("chat");

190-

expect(labels).toContain("control");

191-

expect(labels).toContain("agent");

192-

expect(labels).toContain("settings");

210+

expect(TAB_GROUPS.map((g) => g.label)).toEqual(["chat", "control", "agent", "settings"]);

193211

});

194212195213

it("all tabs are unique", () => {