adds schema view and schema generating command

This commit is contained in:
2026-11-03 09:35:41 +01:00
parent cc41decccb
commit 600d4874d2
62 changed files with 4416 additions and 105 deletions
@@ -102,6 +102,26 @@ private struct MemorySession: SessionStoring {
#expect(!layout.isGitViewOpen)
}
@Test func theSchemaAndGitViewsCloseEachOtherAndNeitherSurvivesASwitch() {
let store = FakeLayouts()
let layout = LayoutStore(session: MemorySession(), persistence: store)
layout.restore(root: "/p")
layout.openGitView()
layout.openSchemaView()
#expect(layout.isSchemaViewOpen)
#expect(!layout.isGitViewOpen)
layout.toggleGitView()
#expect(layout.isGitViewOpen)
#expect(!layout.isSchemaViewOpen)
layout.openSchemaView()
#expect(store.saved["/p"] == nil)
layout.restore(root: "/q")
#expect(!layout.isSchemaViewOpen)
layout.openSchemaView()
layout.closeSchemaView()
#expect(!layout.isSchemaViewOpen)
}
@Test func theGitViewIsNeitherSavedNorKeptAcrossAProjectSwitch() {
let store = FakeLayouts()
let layout = LayoutStore(session: MemorySession(), persistence: store)