From 871ac3e6f511ee53ddcb0598162a10956ba6def4 Mon Sep 17 00:00:00 2001 From: iam-truongtrungnghia Date: Fri, 27 Nov 2026 22:37:02 +0700 Subject: [PATCH 1/2] fix: show the note text after leaving All Sprints or a task --- app/notes.css | 4 ++-- tests-e2e/app.e2e.js | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app/notes.css b/app/notes.css index 7be0dc3..7e62868 100644 --- a/app/notes.css +++ b/app/notes.css @@ -317,8 +317,8 @@ body:not(.viewing-deleted) #recover-button { display: none; } .task-list { max-width: 60%; padding: 0.2rem 0.4rem; border: 0; border-radius: 6px; background: none; color: var(--secondary); font: inherit; text-align: right; } .task-list option { background: var(--card); color: var(--text); } -/* The note text belongs to a sprint screen; the other screens hide it. */ -.board[data-screen="all"] ~ .editor, .board[data-screen="task"] ~ .editor { display: none; } +/* The note text belongs to a sprint screen; the other screens hide it. A hidden board keeps its last screen, so it must not hide a plain note. */ +.board:not([hidden])[data-screen="all"] ~ .editor, .board:not([hidden])[data-screen="task"] ~ .editor { display: none; } .board-notes-label { margin: 0 0 0.4rem; font-size: 1.05rem; font-weight: 700; } /* In a narrow window the status moves under the task so the title keeps most of the row. */ @container (max-width: 300px) { diff --git a/tests-e2e/app.e2e.js b/tests-e2e/app.e2e.js index e707351..e5eb146 100644 --- a/tests-e2e/app.e2e.js +++ b/tests-e2e/app.e2e.js @@ -124,6 +124,16 @@ test("browser keys do nothing: reload, zoom and print", async () => { assert.equal(await app.execute("return window.__printed"), false); }); +test("a note opened after All Sprints shows its text", async () => { + await app.press({ alt: true, code: "KeyS" }); + await app.waitFor("return document.querySelector('#board:not([hidden]) [data-action=\"all-sprints\"]') !== null"); + await app.execute("document.querySelector('#board [data-action=\"all-sprints\"]').click()"); + await app.waitFor("return document.getElementById('board').dataset.screen === 'all'"); + await app.press({ alt: true, code: "KeyN" }); + await app.waitFor("return document.getElementById('board').hidden"); + assert.equal(await app.execute("return document.getElementById('editor').checkVisibility()"), true); +}); + test("a note survives a restart", async () => { const marker = `persist-${Date.now()}`; await newNoteInEditor(marker); From aa216a1601ad2271b336836e015e384943094848 Mon Sep 17 00:00:00 2001 From: iam-truongtrungnghia Date: Fri, 27 Nov 2026 22:37:02 +0700 Subject: [PATCH 2/2] chore: release 0.11.1 --- desktop/Cargo.toml | 2 +- desktop/tauri.conf.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/desktop/Cargo.toml b/desktop/Cargo.toml index 69a30f8..38409a2 100644 --- a/desktop/Cargo.toml +++ b/desktop/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "notelet" -version = "0.11.0" +version = "0.11.1" description = "Lightweight notes with sprint tracking" edition = "2021" publish = false diff --git a/desktop/tauri.conf.json b/desktop/tauri.conf.json index 5485e29..19c9f96 100644 --- a/desktop/tauri.conf.json +++ b/desktop/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Notelet", - "version": "0.11.0", + "version": "0.11.1", "identifier": "com.ttncode.notelet", "build": { "frontendDist": "../app" diff --git a/package-lock.json b/package-lock.json index 7d1af29..79cb52f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "notelet", - "version": "0.11.0", + "version": "0.11.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "notelet", - "version": "0.11.0", + "version": "0.11.1", "devDependencies": { "@tauri-apps/cli": "^2.12.4", "linkedom": "^0.18.13" diff --git a/package.json b/package.json index f37ef6e..e1e8c05 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "notelet", - "version": "0.11.0", + "version": "0.11.1", "private": true, "type": "module", "scripts": {