From ae3c752df2bf4bba7c51b0100fbe3e328e9e7dde Mon Sep 17 00:00:00 2001 From: Valentin Millet Date: Fri, 18 Sep 2026 13:47:09 +0200 Subject: [PATCH] Spend a card's two rows on what is left to do A checklist card drew a flat slice of the list, so a ticked item kept its seat while the things still to do sat behind '+N autres'. The preview is a selection now: the item a search matched keeps its place whatever its state, the remaining seats go to what is undone, and a finished list falls back on its last items rather than going blank. Each row carries the position it holds in the note, so ticking no longer has a window offset to get wrong. Closes #202 --- e2e/specs/07-checklists.e2e.ts | 104 ++++++++++++++++-- .../canvas/note-card/note-card.component.html | 4 +- .../note-card/note-card.component.spec.ts | 77 +++++++++++-- .../canvas/note-card/note-card.component.ts | 46 +++++--- 4 files changed, 189 insertions(+), 42 deletions(-) diff --git a/e2e/specs/07-checklists.e2e.ts b/e2e/specs/07-checklists.e2e.ts index dc5d8c8..64e619f 100644 --- a/e2e/specs/07-checklists.e2e.ts +++ b/e2e/specs/07-checklists.e2e.ts @@ -2,7 +2,7 @@ import { browser, expect } from '@wdio/globals'; import { canvas } from '../pageobjects/canvas.page.js'; import { editor } from '../pageobjects/editor.page.js'; -import { clipboardText, reloadCanvas, testid } from '../support/app.js'; +import { clipboardText, eventually, reloadCanvas, testid } from '../support/app.js'; import { bridge, draft, homeSpaceId, query } from '../support/bridge.js'; /** @@ -56,11 +56,15 @@ describe('Todo lists', () => { // ⚠️ The items sit on a layer above the card button, which is why they can be clicked // at all — a `
` inside a `