refactor(ui): replace middle-dot separators with clearer hierarchy (#6087)

* refactor(ui): replace middle-dot separators with clearer hierarchy

* refactor(ui): use layout instead of punctuation separators
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-07 15:19:55 +08:00
1 parent d6ddceed99
commit 7cb396788c
82 files changed
+433 -462

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ export class MentionMenu {
this.picker = new PickerMenu(renderer, theme, {
id: "nanobot-tui-mention-menu",
searchText: (item) => `${item.name} ${item.displayName} ${item.description}`,
render: (item) => `${item.displayName} @${item.name} · ${item.kind}`,
render: (item) => `${item.displayName} @${item.name} ${item.kind}`,
emptyText: "No matching sessions or tools",
})
this.root = this.picker.root
+2 -2
View File
@@ -189,7 +189,7 @@ describe("SessionMenu", () => {
menu.open(scoped, "one", 6)
await setup.renderOnce()
expect(setup.captureCharFrame()).not.toContain("nanobot · Codex")
expect(setup.captureCharFrame()).not.toContain("nanobot Codex")
menu.open([
scoped[0]!,
@@ -204,7 +204,7 @@ describe("SessionMenu", () => {
], "one", 6)
await setup.renderOnce()
const frame = setup.captureCharFrame()
expect(frame).toContain("nanobot · Codex")
expect(frame).toContain("nanobot Codex")
expect(frame).toContain("desktop")
menu.update("desktop", 6)
+1 -1
View File
@@ -64,7 +64,7 @@ export class SessionMenu {
this.modelOverride(session),
]
.filter(Boolean)
.join(" · ")
.join(" ")
const marker = this.marker(session)
const foreground = this.interrupted(session)
? this.theme.warning || this.theme.accent || this.theme.text