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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Leafdown uses lightweight [Keep a Changelog](https://keepachangelog.com/en/1.1.0

## [Unreleased]

## [0.1.0-alpha.2] - 2026-10-05

### Added

- Open bundled, read-only Getting started, Markdown reference, File and folder workflows, and Settings reference pages from Help, including offline navigation between pages and explicit web links through the system browser.
Expand Down
13 changes: 8 additions & 5 deletions e2e/desktop/specs/release-notes-first-install.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { $, browser, expect } from "@wdio/globals";
import { readFile } from "node:fs/promises";

import { CURRENT_RELEASE_HIGHLIGHT, CURRENT_VERSION } from "../support/releaseNotes.js";
import { getDesktopE2ERunContext } from "../support/runContext.js";
import { findMenuItem, openMenu } from "../support/ui.js";

Expand All @@ -17,10 +18,12 @@ describe("release notes on first installation", () => {

await openMenu("Help");
await (await findMenuItem((text) => text.startsWith("What's new"))).click();
await expect($("aria/Changes in Leafdown 0.1.0-alpha.1")).toBeDisplayed();
await expect($("aria/Initial internal alpha release.")).toBeDisplayed();
await expect($(`aria/Changes in Leafdown ${CURRENT_VERSION}`)).toBeDisplayed();
await expect($("[role='dialog'] article")).toHaveText(
expect.stringContaining(CURRENT_RELEASE_HIGHLIGHT),
);
await browser.keys("Escape");
await expect($("aria/Changes in Leafdown 0.1.0-alpha.1")).not.toExist();
await expect($(`aria/Changes in Leafdown ${CURRENT_VERSION}`)).not.toExist();

await openMenu("Help");
await (await findMenuItem((text) => text === "Changelog")).click();
Expand Down Expand Up @@ -64,9 +67,9 @@ describe("release notes on first installation", () => {
unknown
>;
return (
state.lastVersion === "0.1.0-alpha.1" &&
state.lastVersion === CURRENT_VERSION &&
Array.isArray(state.seenVersions) &&
state.seenVersions.includes("0.1.0-alpha.1")
state.seenVersions.includes(CURRENT_VERSION)
);
} catch {
return false;
Expand Down
9 changes: 6 additions & 3 deletions e2e/desktop/specs/release-notes-restart.spec.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
import { $, browser, expect } from "@wdio/globals";

import { CURRENT_RELEASE_HIGHLIGHT, CURRENT_VERSION } from "../support/releaseNotes.js";
import { findMenuItem, openMenu } from "../support/ui.js";

describe("release notes after restart", () => {
it("does not repeat automatic notes and still permits manual reopening", async () => {
await expect($("aria/Help")).toBeDisplayed();
await expect($("aria/Changes in Leafdown 0.1.0-alpha.1")).not.toExist();
await expect($(`aria/Changes in Leafdown ${CURRENT_VERSION}`)).not.toExist();

await openMenu("Help");
await (await findMenuItem((text) => text.startsWith("What's new"))).click();
await expect($("aria/Initial internal alpha release.")).toBeDisplayed();
await expect($("[role='dialog'] article")).toHaveText(
expect.stringContaining(CURRENT_RELEASE_HIGHLIGHT),
);
await browser.keys("Escape");
await expect($("aria/Changes in Leafdown 0.1.0-alpha.1")).not.toExist();
await expect($(`aria/Changes in Leafdown ${CURRENT_VERSION}`)).not.toExist();
});
});
13 changes: 8 additions & 5 deletions e2e/desktop/specs/release-notes-upgrade.spec.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import { $, browser, expect } from "@wdio/globals";
import { readFile } from "node:fs/promises";

import { CURRENT_RELEASE_HIGHLIGHT, CURRENT_VERSION } from "../support/releaseNotes.js";
import { getDesktopE2ERunContext } from "../support/runContext.js";

describe("release notes after an upgrade", () => {
it("automatically shows current notes once and records the seen version", async () => {
const { releaseNotesPath } = await getDesktopE2ERunContext();
await expect($("aria/Changes in Leafdown 0.1.0-alpha.1")).toBeDisplayed();
await expect($("aria/Initial internal alpha release.")).toBeDisplayed();
await expect($(`aria/Changes in Leafdown ${CURRENT_VERSION}`)).toBeDisplayed();
await expect($("[role='dialog'] article")).toHaveText(
expect.stringContaining(CURRENT_RELEASE_HIGHLIGHT),
);

await browser.waitUntil(
async () => {
Expand All @@ -17,9 +20,9 @@ describe("release notes after an upgrade", () => {
unknown
>;
return (
state.lastVersion === "0.1.0-alpha.1" &&
state.lastVersion === CURRENT_VERSION &&
Array.isArray(state.seenVersions) &&
state.seenVersions.includes("0.1.0-alpha.1")
state.seenVersions.includes(CURRENT_VERSION)
);
} catch {
return false;
Expand All @@ -28,6 +31,6 @@ describe("release notes after an upgrade", () => {
{ timeoutMsg: "Upgrade release-note state was not persisted." },
);
await browser.keys("Escape");
await expect($("aria/Changes in Leafdown 0.1.0-alpha.1")).not.toExist();
await expect($(`aria/Changes in Leafdown ${CURRENT_VERSION}`)).not.toExist();
});
});
9 changes: 9 additions & 0 deletions e2e/desktop/support/releaseNotes.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { readFileSync } from "node:fs";

export const CURRENT_VERSION = (
JSON.parse(readFileSync(new URL("../../../package.json", import.meta.url), "utf8")) as {
version: string;
}
).version;

export const CURRENT_RELEASE_HIGHLIGHT = "Open bundled, read-only Getting started";
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "leafdown",
"version": "0.1.0-alpha.1",
"version": "0.1.0-alpha.2",
"private": true,
"license": "GPL-3.0-or-later",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

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

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "leafdown"
version = "0.1.0-alpha.1"
version = "0.1.0-alpha.2"
description = "A local-first Markdown editor for ordinary files and folders"
authors = ["Azganoth"]
license = "GPL-3.0-or-later"
Expand Down
4 changes: 2 additions & 2 deletions src-tauri/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": "Leafdown",
"version": "0.1.0-alpha.1",
"version": "0.1.0-alpha.2",
"identifier": "com.azganoth.leafdown",
"build": {
"beforeDevCommand": "pnpm dev",
Expand Down Expand Up @@ -36,7 +36,7 @@
"installerHooks": "windows/installer-hooks.nsh"
},
"wix": {
"version": "0.1.0.1",
"version": "0.1.0.2",
"fragmentPaths": ["windows/file-associations.wxs"],
"componentRefs": ["MarkdownFileAssociations"]
}
Expand Down