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:
1 parent
d6ddceed99
commit
7cb396788c
82 files changed
+433
-462
No files matched your search
@@ -90,12 +90,12 @@ describe("TUI /usage", () => {
|
||||
await setup!.flush()
|
||||
let frame = setup!.captureCharFrame()
|
||||
expect(frame).toContain("Context 9k / 262k")
|
||||
expect(frame).toContain("Round 2/2 · In 9,000 · Out 200")
|
||||
expect(frame).toContain("Round 2/2 In 9,000 Out 200")
|
||||
expect(frame).toContain("←→ round")
|
||||
expect(sent).toEqual([])
|
||||
setup!.mockInput.pressArrow("left")
|
||||
await setup!.renderOnce()
|
||||
expect(setup!.captureCharFrame()).toContain("Round 1/2 · In 3,000 · Out 100")
|
||||
expect(setup!.captureCharFrame()).toContain("Round 1/2 In 3,000 Out 100")
|
||||
expect(setup!.captureCharFrame()).toContain("Cache 0%")
|
||||
for (const [width, height] of [[56, 18], [40, 10], [80, 30]] as const) {
|
||||
setup!.resize(width, height)
|
||||
@@ -140,7 +140,7 @@ describe("TUI /usage", () => {
|
||||
await waitUntil(() => requests === 2)
|
||||
await setup!.flush()
|
||||
const frame = setup!.captureCharFrame()
|
||||
expect(frame).toContain("Round 2/2 · In 12,000 · Out 200")
|
||||
expect(frame).toContain("Round 2/2 In 12,000 Out 200")
|
||||
expect(frame).not.toContain("Round 4/4")
|
||||
expect(sent).toEqual([])
|
||||
})
|
||||
@@ -287,7 +287,7 @@ describe("TUI /usage", () => {
|
||||
await close(ui)
|
||||
fail = true
|
||||
await open(ui)
|
||||
expect(setup!.captureCharFrame()).toContain("Usage unavailable · reopen /usage to retry")
|
||||
expect(setup!.captureCharFrame()).toContain("Usage unavailable. Reopen /usage to retry.")
|
||||
await setup!.mockInput.typeText("hello")
|
||||
expect(ui.usagePanel.visible).toBe(false)
|
||||
expect(ui.composer.plainText).toBe("hello")
|
||||
|
||||
Reference in new issue
Block a user