From 8e02235a71dd82ad2c75fa5fb536f8b7db35f1e6 Mon Sep 17 00:00:00 2001 From: Cam Proudlock Date: Thu, 27 Aug 2026 15:43:00 -0400 Subject: [PATCH] section ticking covers the section --- CHANGELOG.md | 11 +++ .../frontend/components/GuideBlocks.vue | 80 ++++++++++++++++--- plugins/guides/services/htmlimport.py | 7 +- tests/test_plugins/test_guides_htmlimport.py | 11 +++ 4 files changed, 97 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aeba1ac2..30191b88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -115,6 +115,17 @@ ADR-007 and ADR-002. ### Fixed +- **Ticking a section off crossed out its title and nothing else.** The strike + now covers everything under that heading, including its sub-sections, which + is what "this section is done" means to somebody who ticked the thing that + contained them. It needed the heading RANK, which the HTML importer was + discarding: every heading arrived as a sibling, so a parent had no children + to cross out. Headings now carry their level, render at their rank, and a + guide written before this reads as flat, exactly as it did. Code blocks, + tables and images inside a finished section are faded but not struck - a line + through a command makes it unreadable, and re-reading the command is usually + why somebody looks back at a step they have already done. + - **Tech Tools was invisible to anyone without an account**, even though every tool on the page is deliberately usable without one and Secure Send is the single write this product offers a guest. The nav item named no permission, diff --git a/plugins/guides/frontend/components/GuideBlocks.vue b/plugins/guides/frontend/components/GuideBlocks.vue index b446ca12..c839a4a5 100644 --- a/plugins/guides/frontend/components/GuideBlocks.vue +++ b/plugins/guides/frontend/components/GuideBlocks.vue @@ -12,7 +12,8 @@ Reading only: in the editor a tick would be an edit. -->

+ :class="['gb-h' + levelOf(block), + { 'gb-sectiondone': isTicked(block.id) || inDoneSection(index) }]">

+ :class="{ 'gb-sectiondone': isTicked(block.id) || inDoneSection(index) }">