fix: address Task 4 review findings

This commit is contained in:
lda
2026-08-04 20:41:24 +07:00 Verified
parent ad3090e5be
commit 6a5af51813
11 changed files with 162 additions and 7 deletions
+3
View File
@@ -7,6 +7,9 @@ import { AppRoutes } from "./AppRoutes.js";
afterEach(() => cleanup());
describe("AppRoutes", () => {
// Task 5-7 replace pending leaves and restore the deferred ConsoleHome surfaces.
it.todo("restores source, demo, and lifecycle application coverage after Task 5-7");
it.each([
["/", "Discover"],
["/console", "Discover"],
+1
View File
@@ -148,6 +148,7 @@ describe("success", () => {
expect(next.serverStatus).toBe("ok");
expect(next.storeRoot).toBe("/tmp/store");
expect(next.durationMs).toBe(10);
expect(next.sourcesLoading).toBe(false);
});
it("persists target to sessionStorage when available", () => {
+2 -1
View File
@@ -122,7 +122,8 @@ export const connectionReducer = (
storeRoot: action.data.connection.storeRoot,
durationMs: action.data.connection.durationMs,
message: null,
sourcesLoading: true,
// The routed workspace does not fetch sources until a later task owns that surface.
sourcesLoading: false,
};
}