refactor: dedupe split-view render, strengthen persistence test

- Extract ConsoleArea helper to eliminate ~60 lines of duplicated layout
  toggle + grid rendering shared between currentLane and !currentLane branches
- Fix persistence test to validate the component's actual write path instead
  of manually re-seeding localStorage (proves writeSplitViewState is called)
- Remove orphaned grid/pane code left by incomplete merge
This commit is contained in:
2026-08-14 13:36:02 +07:00
parent d542fbbf4b
commit 6f22aed47c
2 changed files with 123 additions and 124 deletions
@@ -671,12 +671,6 @@ describe("split terminal view", () => {
await settle();
unmount();
localStorage.clear();
localStorage.setItem(
"ccam.workspace.splitView",
JSON.stringify({ layout: 2, paneLaneIds: [null, lanesToReturn[1]!.id] })
);
await renderWorkspace();
const persistedSelects = screen.getAllByTestId("pane-lane-select");
expect(persistedSelects).toHaveLength(2);