From e6d22c0c6ebcd78e19c3cffca4d487e723cafc96 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 26 Apr 2026 03:40:46 +0000 Subject: [PATCH 1/3] Initial plan From 388b144279a7ae8bacef117759794a9df65305dc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 26 Apr 2026 03:50:09 +0000 Subject: [PATCH 2/3] Clarify content page progress detection Agent-Logs-Url: https://github.com/IntelliTect/EssentialCSharp.Web/sessions/f5be1600-71fd-4098-a682-ac672e0cd2d8 Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com> --- EssentialCSharp.Web.Tests/FunctionalTests.cs | 15 ++++++++++++++- .../src/composables/useSiteShell.js | 3 ++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/EssentialCSharp.Web.Tests/FunctionalTests.cs b/EssentialCSharp.Web.Tests/FunctionalTests.cs index 31aa723e..2380b859 100644 --- a/EssentialCSharp.Web.Tests/FunctionalTests.cs +++ b/EssentialCSharp.Web.Tests/FunctionalTests.cs @@ -44,6 +44,19 @@ public async Task WhenPagesAreAccessed_TheyReturnHtml(string relativeUrl) await Assert.That(content).Contains(" (windowWidth.value || 0) < SMALL_SCREEN_SIZE); const currentPage = findCurrentPage([], tocData) ?? []; const chapterParentPage = currentPage.find((parent) => parent.level === 0) ?? null; - const isContentPage = computed(() => percentComplete.value !== null); + const isContentPage = computed(() => !NON_CONTENT_PERCENT_COMPLETE_VALUES.includes(percentComplete.value)); for (const item of currentPage) { expandedTocs.add(item.key); From 886566d87979bf63110b652a328a70d77aece758 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 26 Apr 2026 03:58:07 +0000 Subject: [PATCH 3/3] Rename non-content percent complete test Agent-Logs-Url: https://github.com/IntelliTect/EssentialCSharp.Web/sessions/f5be1600-71fd-4098-a682-ac672e0cd2d8 Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com> --- EssentialCSharp.Web.Tests/FunctionalTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EssentialCSharp.Web.Tests/FunctionalTests.cs b/EssentialCSharp.Web.Tests/FunctionalTests.cs index 2380b859..005f27f7 100644 --- a/EssentialCSharp.Web.Tests/FunctionalTests.cs +++ b/EssentialCSharp.Web.Tests/FunctionalTests.cs @@ -46,7 +46,7 @@ public async Task WhenPagesAreAccessed_TheyReturnHtml(string relativeUrl) [Test] [Arguments("/guidelines", "window.PERCENT_COMPLETE = null;")] - public async Task WhenPagesAreRendered_LayoutIncludesExpectedPercentCompleteValue(string relativeUrl, string expectedSnippet) + public async Task WhenNonContentPageIsRendered_LayoutIncludesNullPercentComplete(string relativeUrl, string expectedSnippet) { HttpClient client = factory.CreateClient(); using HttpResponseMessage response = await client.GetAsync(relativeUrl);