fix(tui): show current location in working copies; order by created; change shortcut; tab to cycle actions in dialog select (#30989)

This commit is contained in:
James Long 2026-06-05 13:14:13 -04:00 committed by GitHub
commit ecdfcd91ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 151 additions and 51 deletions

View file

@ -65,7 +65,7 @@ describe("Project directories schemas", () => {
}),
)
it.effect("lists stored project directories only for the requested project", () =>
it.effect("lists stored project directories newest first for the requested project", () =>
Effect.gen(function* () {
const project = yield* ProjectV2.Service
const { db } = yield* Database.Service
@ -82,16 +82,16 @@ describe("Project directories schemas", () => {
yield* db
.insert(ProjectDirectoryTable)
.values([
{ project_id: projectID, directory: AbsolutePath.make("/repo/z"), type: "root" },
{ project_id: projectID, directory: AbsolutePath.make("/repo/a"), type: "main" },
{ project_id: otherID, directory: AbsolutePath.make("/other"), type: "main" },
{ project_id: projectID, directory: AbsolutePath.make("/repo/z"), type: "root", time_created: 2 },
{ project_id: projectID, directory: AbsolutePath.make("/repo/a"), type: "main", time_created: 1 },
{ project_id: otherID, directory: AbsolutePath.make("/other"), type: "main", time_created: 3 },
])
.run()
.pipe(Effect.orDie)
expect(yield* project.directories({ projectID })).toEqual([
AbsolutePath.make("/repo/a"),
AbsolutePath.make("/repo/z"),
AbsolutePath.make("/repo/a"),
])
}),
)