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

+6 -6
View File
@@ -35,9 +35,9 @@ describe("UsagePanel", () => {
const frame = setup.captureCharFrame()
expect(frame).toContain("Context 9k / 262k")
expect(frame).toContain("3%")
expect(frame).toContain("Input tokens · max 9k")
expect(frame).toContain("Round 3/3 · In 9,000 · Out 800")
expect(frame).toContain("Cache 67% · 1.5s · includes estimated usage")
expect(frame).toContain("Input tokens (max 9k)")
expect(frame).toContain("Round 3/3 In 9,000 Out 800")
expect(frame).toContain("Cache 67% 1.5s includes estimated usage")
expect(frame).toContain("Uncached")
expect(frame).toContain("Unknown cache")
expect(frame).toContain("███")
@@ -50,7 +50,7 @@ describe("UsagePanel", () => {
panel.move(-1)
panel.move(-1)
await setup.renderOnce()
expect(setup.captureCharFrame()).toContain("Round 1/3 · In 3,000 · Out 200")
expect(setup.captureCharFrame()).toContain("Round 1/3 In 3,000 Out 200")
expect(setup.captureCharFrame()).toContain("Cache ?")
})
@@ -189,7 +189,7 @@ describe("UsagePanel", () => {
const frame = setup.captureCharFrame()
expect(frame).toContain("Context 2k / 1k")
expect(frame).toContain("100%")
expect(frame).toContain("In 2,000 · Out ?")
expect(frame).toContain("In 2,000 Out ?")
expect(frame).toContain("Cache 100%")
})
@@ -235,7 +235,7 @@ describe("UsagePanel", () => {
panel.resize(80, 30)
panel.setTheme({ ...theme, text: "#18181B", border: "#D4D4D8" })
await setup.renderOnce()
expect(setup.captureCharFrame()).toContain("Round 3/3 · In 9,000 · Out 800")
expect(setup.captureCharFrame()).toContain("Round 3/3 In 9,000 Out 800")
panel.hide()
await setup.renderOnce()
expect(setup.captureCharFrame()).not.toContain("Context")