Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/notes.css
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion desktop/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion desktop/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "notelet",
"version": "0.11.0",
"version": "0.11.1",
"private": true,
"type": "module",
"scripts": {
Expand Down
10 changes: 10 additions & 0 deletions tests-e2e/app.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading