Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
d9e5cc7
fix(editor): keep prose when re-selecting the active view or undoing …
smith-and-web Sep 24, 2026
7533c97
chore(release): bump version to 1.3.0
smith-and-web Sep 24, 2026
19ca0ab
docs(security): describe the updater and feedback network requests
smith-and-web Sep 24, 2026
9d475dc
ci(release): read release notes from the committed changelog
smith-and-web Sep 24, 2026
7fdab36
fix(scrivener): keep paragraphs, quotes, tabs and images out of prose…
smith-and-web Sep 24, 2026
efb959d
fix(longform): stop deleting prose lines that contain "::"
smith-and-web Sep 24, 2026
97daaa7
fix(plottr): import titled cards that have no description
smith-and-web Sep 24, 2026
e23846a
fix(export): strip XML-invalid control characters from DOCX and EPUB
smith-and-web Sep 24, 2026
161897d
fix(scrivener): never overwrite an existing project with Create New
smith-and-web Sep 24, 2026
afe0ec5
fix(editor): reopen a beat with its unsaved text after a failed save
smith-and-web Sep 24, 2026
1cdef0e
fix(editorial): keep emoji edits whole so a review can still be saved
smith-and-web Sep 24, 2026
adc95dc
fix(references): show imported descriptions as plain formatted prose
smith-and-web Sep 24, 2026
2388a21
fix(ui): keep keyboard focus inside the export and Help dialogs
smith-and-web Sep 24, 2026
d21afdc
fix(export): strip XML-invalid characters from Scrivener and novelWri…
smith-and-web Sep 24, 2026
c18c3e9
fix(sync): stop novelWriter sync from reverting kindling edits
smith-and-web Sep 24, 2026
7df7de3
fix(editorial): load the review workspace on macOS versions before Sa…
smith-and-web Sep 24, 2026
59c7364
fix(editor): keep a collapsed beat's preview in step with its unsaved…
smith-and-web Sep 24, 2026
a8cea48
fix(sync): let novelWriter conflicts be settled by keeping the kindli…
smith-and-web Sep 24, 2026
dc916f5
fix(db): keep locked scenes safe from chapter delete, moves and mode …
smith-and-web Sep 24, 2026
aa9fa08
fix(export): show a finished workspace export in its folder
smith-and-web Sep 24, 2026
f726369
fix(ui): keep export previews and draft comparisons on manuscript pap…
smith-and-web Sep 24, 2026
fa3011b
fix(editor): give the prose editor an accessible name
smith-and-web Sep 24, 2026
39b3cd1
fix(ui): keep the chosen Beats/Page view visible when a scene is locked
smith-and-web Sep 24, 2026
9e1d6da
fix(editorial): let draft history close while the review is busy or a…
smith-and-web Sep 24, 2026
e1b7d70
fix(feedback): show readable send errors, time out, and say what is sent
smith-and-web Sep 24, 2026
f0decc8
fix(db): back up the library before a new version migrates it
smith-and-web Sep 24, 2026
626e20e
ci(release): rehearse the release bundle build before tagging
smith-and-web Sep 24, 2026
155b694
fix(scrivener): drop image placeholders and decode the declared code …
smith-and-web Sep 24, 2026
26d0e9d
fix(longform): keep locked metadata fields out of scene prose
smith-and-web Sep 24, 2026
214a67b
test(sync): pin the writer's scene order when Plottr card additions sync
smith-and-web Sep 24, 2026
5d9b6f2
test(scrivener): pin the published bundle root to default folder perm…
smith-and-web Sep 24, 2026
97ae9f6
fix(export): keep the previous file when a DOCX, EPUB or treatment ex…
smith-and-web Sep 24, 2026
1870a3c
fix(editorial): keep separate suggestions separate in long scenes
smith-and-web Sep 24, 2026
46532e1
build(deps): update tiptap to 3.31.3 and devalue to 5.9.4
smith-and-web Sep 24, 2026
f021518
build(deps): update rustls, crossbeam-epoch and quick-xml for advisories
smith-and-web Sep 24, 2026
be67012
build(release): leave the unlicensed MCP QA plugin out of release builds
smith-and-web Sep 24, 2026
2deea2d
fix(export): make workspace Word manuscripts follow Standard Manuscri…
smith-and-web Sep 24, 2026
34e1951
fix(ui): keep keyboard focus inside every dialog and close only the t…
smith-and-web Sep 24, 2026
a4f49d6
fix(ui): ignore menu shortcuts while a dialog or file picker is open
smith-and-web Sep 24, 2026
60f5029
test(ui): give the Archive dialog case real archive data
smith-and-web Sep 24, 2026
3652996
test(export): call the workspace writer directly in the permissions test
smith-and-web Sep 24, 2026
426448d
fix(sync): give scenes, beats and chapters added by sync their own place
smith-and-web Sep 24, 2026
2797cfe
fix(longform): only import files that are inside the vault
smith-and-web Sep 24, 2026
8c6649b
fix(ui): tell the writer when an outline, beat, note or tag action fails
smith-and-web Sep 24, 2026
4c40c44
fix(editor): keep a typed chapter synopsis or beat title when saving …
smith-and-web Sep 24, 2026
8ef31e3
fix(ui): make the sidebar menus work from the keyboard
smith-and-web Sep 24, 2026
3f8b1d7
fix(ui): let chapters, scenes, beats and references be reordered with…
smith-and-web Sep 24, 2026
955b2da
fix(editorial): read review and search prose without activating it, a…
smith-and-web Sep 24, 2026
f321d70
fix(revisions): keep draft history from growing without limit
smith-and-web Sep 24, 2026
6ebef56
fix(snapshots): keep draft history when replacing a project from a sn…
smith-and-web Sep 24, 2026
6aa9db3
fix(ui): show why a rename was refused
smith-and-web Sep 24, 2026
f37866b
fix(export): only replace Markdown and Longform folders kindling created
smith-and-web Sep 24, 2026
3a6aff4
fix(export): leave Notes, To-do and Unused scenes out of DOCX, EPUB a…
smith-and-web Sep 24, 2026
8b16fe0
fix(export): curl quotes across italics and decode typographic entities
smith-and-web Sep 24, 2026
4a9f7f0
fix(export): set Word chapter and Part headings at body weight
smith-and-web Sep 24, 2026
2bea259
fix(novelwriter): import every Novel root and every heading in a docu…
smith-and-web Sep 24, 2026
750c79e
fix(sync): match novelWriter beats by title and apply only what was r…
smith-and-web Sep 24, 2026
f09dee0
fix(export): save pending prose before exporting and refuse unsaved d…
smith-and-web Sep 24, 2026
e8c1ea1
fix(sync): save pending prose before comparing with the outline file
smith-and-web Sep 24, 2026
31969df
fix(editor): keep the new scene panel's prose flush when an old one u…
smith-and-web Sep 24, 2026
c896d61
fix(sync): pair reordered novelWriter beats instead of duplicating them
smith-and-web Sep 24, 2026
ecca8d8
fix(export): re-read the manuscript through the workspace loader befo…
smith-and-web Sep 24, 2026
7eca6c8
fix(sync): place new novelWriter beats beside the beat they follow
smith-and-web Sep 24, 2026
3de3e0e
fix(sync): keep scene separators when accepting novelWriter prose
smith-and-web Sep 24, 2026
4ad6744
fix(novelwriter): keep documents imported before 1.3 in their one-sce…
smith-and-web Sep 24, 2026
2934667
perf(longform): resolve only symlinks when walking a vault for notes
smith-and-web Sep 24, 2026
20fe7a8
fix(ui): only offer Move up/down when the move can actually happen
smith-and-web Sep 24, 2026
a1f8b06
fix(export): keep notes the writer adds to a Markdown or Longform export
smith-and-web Sep 24, 2026
0c32b08
refactor(export): share the running header's surname and short title
smith-and-web Sep 24, 2026
bd20283
fix(export): set the workspace Word manuscript's font for every script
smith-and-web Sep 24, 2026
b119b2b
docs(changelog): add the 1.3.0 release notes
smith-and-web Sep 24, 2026
174de0f
fix(revisions): say so when the draft you were comparing is pruned
smith-and-web Sep 24, 2026
c395efe
fix(sync): check reviewed changes before taking the pre-sync snapshot
smith-and-web Sep 24, 2026
3a14e01
fix(novelwriter): keep a document split after its later scenes are de…
smith-and-web Sep 24, 2026
31e3162
fix(longform): keep sentences that look like unmapped Dataview fields
smith-and-web Sep 24, 2026
5b4c076
fix(db): renumber both chapters when a scene moves to another chapter
smith-and-web Sep 24, 2026
2a655b9
fix(export): drop the author part of the Word running header when the…
smith-and-web Sep 24, 2026
6e268ba
fix(export): drop the space before an em dash typed as -- after italics
smith-and-web Sep 24, 2026
b168162
docs(changelog): note that unrecognised Longform fields stay in the p…
smith-and-web Sep 24, 2026
c01274c
fix(revisions): keep both sides of a draft comparison apart when one …
smith-and-web Sep 24, 2026
49db6b5
fix(novelwriter): keep reading a document per heading after a heading…
smith-and-web Sep 24, 2026
54aea11
perf(sync): read and compare the novelWriter project once per apply
smith-and-web Sep 24, 2026
60f8db4
fix(longform): tell Dataview fields from prose by key case and link v…
smith-and-web Sep 24, 2026
13a7032
fix(db): describe a refused scene move accurately in either direction
smith-and-web Sep 24, 2026
f9c0495
refactor(db): share the scene renumbering loop and drop the unused mo…
smith-and-web Sep 24, 2026
99f2088
fix(longform): keep reading capitalised fields like POV:: Zoe as meta…
smith-and-web Sep 24, 2026
34d8b6f
docs(changelog): describe how Longform fields are told apart from prose
smith-and-web Sep 24, 2026
21e6d5b
fix(longform): read capitalised kindling fields as 1.2 did and allow …
smith-and-web Sep 24, 2026
9297667
fix(snapshots): remove the snapshot file when its record can't be saved
smith-and-web Sep 24, 2026
fbd0379
fix(revisions): name each pruned draft even when two share a name
smith-and-web Sep 24, 2026
efedec3
docs(changelog): update the Longform field rule
smith-and-web Sep 24, 2026
c516cfe
test(ui): strip every asterisk in the move-order test helper
smith-and-web Sep 24, 2026
fa087d2
fix(editor): let Escape collapse the beat you are typing in
smith-and-web Sep 24, 2026
544e066
build(deps): update plist to 1.10 to drop quick-xml 0.38
smith-and-web Sep 24, 2026
42b7363
ci(security): accept the quick-xml advisories in the debug-only QA pl…
smith-and-web Sep 24, 2026
a23f4a5
build(deps): apply npm audit fixes to development dependencies
smith-and-web Sep 24, 2026
f5a0d28
ci(security): fail the npm audit on shipped dependencies only
smith-and-web Sep 24, 2026
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
111 changes: 111 additions & 0 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
name: Release Build

# Rehearses the release matrix (universal macOS, ubuntu-22.04 bundles, Windows
# MSI/NSIS) before a tag is pushed. release.yml is the only other place these
# bundles are built, so without this a bundling break surfaces at tag time.
# Artifacts are unsigned and have no updater signatures; nothing is published.

on:
workflow_dispatch:
pull_request:
branches: [main]
paths:
- "package.json"
- "package-lock.json"
- "src-tauri/Cargo.toml"
- "src-tauri/Cargo.lock"
- "src-tauri/tauri.conf.json"
- "src-tauri/build.rs"
- "src-tauri/capabilities/**"
- "src-tauri/icons/**"
- "src-tauri/*.plist"
- ".github/workflows/release.yml"
- ".github/workflows/release-build.yml"
schedule:
# Weekly, so drift in runners or toolchains shows up between releases.
- cron: "0 3 * * 0"

env:
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

permissions:
contents: read

concurrency:
group: release-build-${{ github.ref }}
cancel-in-progress: true

jobs:
bundle:
name: Bundle (${{ matrix.target }})
strategy:
fail-fast: false
matrix:
include:
- platform: macos-latest
target: universal-apple-darwin
args: "--target universal-apple-darwin -- --no-default-features"
- platform: ubuntu-22.04
target: x86_64-unknown-linux-gnu
args: "-- --no-default-features"
- platform: windows-latest
target: x86_64-pc-windows-msvc
args: "-- --no-default-features"

runs-on: ${{ matrix.platform }}

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "20"
cache: "npm"

- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}

- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.9

- name: Cache cargo registry
uses: actions/cache@v5
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-registry-

- name: Install system dependencies (Linux)
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: Install frontend dependencies
run: npm ci

# Updater artifacts need the signing key, which PRs don't get.
- name: Build bundles
timeout-minutes: 60
shell: bash
run: npx tauri build --config '{"bundle":{"createUpdaterArtifacts":false}}' ${{ matrix.args }}

- name: List bundles
shell: bash
run: find src-tauri/target -maxdepth 6 -path '*/release/bundle/*' -type f | sort

- name: Upload bundles
uses: actions/upload-artifact@v7
with:
name: bundles-${{ matrix.target }}
path: src-tauri/target/**/release/bundle/
retention-days: 7
60 changes: 21 additions & 39 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,65 +11,47 @@ env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

# Required for creating releases and committing changelog
# Required for creating releases
permissions:
contents: write

jobs:
# Generate changelog and commit it back to the repo
# Read this version's release notes from the CHANGELOG.md committed at the tag.
# Notes are generated and hand-edited before tagging (see CLAUDE.md): once
# package.json matches the tag, `npm run changelog` has nothing left to emit,
# so regenerating here would only produce an empty section.
changelog:
name: Update Changelog
name: Read Changelog
runs-on: ubuntu-latest
outputs:
changelog: ${{ steps.changelog.outputs.content }}
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
ref: main

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "20"
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Generate changelog
run: npm run changelog

- name: Extract changelog for this version
id: changelog
shell: bash
run: |
# Extract the changelog section for this version
VERSION="${{ github.ref_name }}"
VERSION="${VERSION#v}" # Remove 'v' prefix if present
# Extract content between this version header and the next version header (or --- separator)
CHANGELOG=$(awk "/^## \[?${VERSION}\]?/{flag=1; next} /^## \[?[0-9]|^---/{flag=0} flag" CHANGELOG.md | head -100)
# Everything between this version's "## [x.y.z]" / "## x.y.z" header and the next version header.
CHANGELOG=$(awk -v v="$VERSION" '
/^## / { flag = (index($0, "## [" v "]") == 1 || $0 == "## " v || index($0, "## " v " ") == 1); if (flag) next }
flag' CHANGELOG.md)
# If no specific changelog found, use a default message
if [ -z "$CHANGELOG" ]; then
CHANGELOG="See [CHANGELOG.md](https://github.com/smith-and-web/kindling/blob/main/CHANGELOG.md) for details."
if [ -z "$(printf '%s' "$CHANGELOG" | tr -d '[:space:]')" ]; then
echo "::error file=CHANGELOG.md::No release notes for $VERSION. Bump package.json, run npm run changelog, edit and commit the section, then re-tag."
exit 1
fi
# Write to output (handle multiline)
echo "content<<EOF" >> $GITHUB_OUTPUT
echo "$CHANGELOG" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Check changelog changes
run: |
if git diff --quiet CHANGELOG.md; then
echo "No changelog changes to report"
else
echo "::warning::CHANGELOG.md updated during release build; commit manually to main."
git --no-pager diff --stat CHANGELOG.md
fi
{
echo "content<<CHANGELOG_EOF"
echo "$CHANGELOG"
echo "CHANGELOG_EOF"
} >> "$GITHUB_OUTPUT"
# Build and release for each platform
release:
Expand All @@ -82,15 +64,15 @@ jobs:
# macOS Universal (Apple Silicon + Intel in one binary)
- platform: macos-latest
target: universal-apple-darwin
args: "--target universal-apple-darwin"
args: "--target universal-apple-darwin -- --no-default-features"
# Linux x64
- platform: ubuntu-22.04
target: x86_64-unknown-linux-gnu
args: ""
args: "-- --no-default-features"
# Windows x64
- platform: windows-latest
target: x86_64-pc-windows-msvc
args: ""
args: "-- --no-default-features"

runs-on: ${{ matrix.platform }}

Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,15 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Run security audit
# Shipped dependencies must be clean. Development-only advisories are reported
# without failing: some have no fixed release (extract-zip, reached through
# WebdriverIO's browser downloader) and never run in the app.
- name: Run security audit (shipped dependencies)
run: npm audit --omit=dev --audit-level=moderate

- name: Report development dependency advisories
run: npm audit --audit-level=moderate
continue-on-error: true

- name: Check for outdated packages
run: npm outdated || true
Expand Down
Loading
Loading