Commit Graph
126 Commits
Author SHA1 Message Date
Knotty Wyvern f9bdbe0467 Keep pasted card images in description drafts
A pasted image arrives while it still loads, so the draft save did not
start. A close of the card then cleared the image data from memory. The
draft kept the text and a reference to an image that RuneStone never
saved.

- A second draft file, <card hex>.images.json, keeps the data of the
  images that only the draft uses.
- Only a save of the description or the card writes image files. Save
  and Cancel empty the draft and its image record, so a discarded draft
  leaves no image file.
- A reopened card restores the images of its draft. The draft saves
  after a pasted image finishes loading. A card save also writes a
  cover image that only the draft has.

New tests: the pmDraftImages smoke test and the description-draft unit
tests.

(cherry picked from commit d9653da579bf8cfc0edd2457f72e658c9fe00fd6)
2026-10-31 19:58:04 -07:00
Knotty Wyvern 3c099e7f49 Link the 0.1.53 Windows installer
The Linux package stays at 0.1.51, and macOS stays at 0.1.44. The README also drops the owner's removed sentence about developer tools.
2026-10-31 19:51:20 -07:00
Knotty Wyvern 5c4d759c1b Pin browser engine 0.1.11
Engine 0.1.11 finds the link under a middle-click. It replaces engine 0.1.10 in the pin.
2026-10-31 19:42:17 -07:00
Knotty Wyvern 2ca7752c9d Open links and images in new browser tabs
- A middle-click on a link opens the link in a new tab. Scrolling
  starts at once, as before. The new engine command linkAt reads the
  link under the pointer in an isolated world. When it finds a web
  link, the tab stops the scroll and opens the link.
- The image menu of a page starts with Open image in new tab.

A new tab opens in front, like Open link in new tab. The engine smoke
test checks linkAt, and the interaction test checks both actions with
the real engine. Cards 333909d1 and f7ee842d.
2026-10-31 19:41:27 -07:00
Knotty Wyvern 68c302a271 Pin browser engine 0.1.10
Engine 0.1.10 keeps the display scale when a page replaces itself during its load. It replaces engine 0.1.9 in the pin.
2026-10-31 19:08:13 -07:00
Knotty Wyvern 19ef8f2e15 Keep the display scale when a page replaces itself during its load
The engine applied device emulation at did-finish-load. Each new
document gets a renderer widget without emulation. Google replaces its
first document with ?zx=... before that document finishes. Thus the
first document kept a scale of 1, and the page grew by the display
scale when the second document finished.

The engine now also applies emulation when a main-frame document
commits. In the real app at 125%, Google keeps the same size before and
after its second document. Card 40a8db13.
2026-10-31 19:06:45 -07:00
Knotty Wyvern 28661f28bc Draw the browser scroll marker with the scroll icon
Middle-click scrolling in the built-in browser showed the text arrow
"↕" at 20 px in a 24 px circle. The look of that glyph depends on the
font, and the circle cut it. It also showed only two directions, but
the scroll moves in four.

The marker now uses the four-way scroll icon of Project Management,
which the shared Icon component also gets. The marker has the size of
the Project Management marker: a 26 px circle with a 20 px icon. The
interaction smoke test checks the icon and keeps screenshots in both
themes. Card ac49c9ec.
2026-10-31 19:06:45 -07:00
Knotty Wyvern 33495d2bf7 Set the version to 0.1.53 2026-10-31 18:31:37 -07:00
Knotty Wyvern e4be352a2b Pin browser engine 0.1.9
Engine 0.1.9 keeps the original bytes for Copy image. The pin names its ZIP on the RuneStone releases page.
2026-10-31 18:24:37 -07:00
Knotty Wyvern 6e1b24e40f Keep the frames of pasted GIF, WebP, and AVIF images
A browser puts only the first frame of an image on the clipboard, with
HTML that names the image address.

- Documents and cards download the original of a GIF, WebP, or AVIF
  address. The host commands workspace_save_image_url and
  workspace_download_image read the format from the file contents and
  refuse other data. A failed download keeps the first frame and shows
  a message.
- Copy image in the RuneStone browser keeps the bytes that the page
  loaded. The engine reads them through the DevTools Protocol, so the
  website gets no second request. The new copiedImage command gives
  them in parts below the line limit of the host. A paste uses them
  first.
- An empty dropped image file shows a message. Firefox gives such a
  file when the website refuses its download.

Copy image needs a new browser engine build. Card 0d5c18f7.
2026-10-31 17:33:08 -07:00
Knotty Wyvern 31ce7e73ce Close the workspace menu on a second click of its button
The menu is an automatic popover. A press on the button closed the open
menu, and the click that followed opened it again. The picker now
records an open menu when the press starts on the button. The click
then leaves the menu closed.

The workspace smoke test clicks the button two times. Card 53db89fc.
2026-10-31 17:33:07 -07:00
Knotty Wyvern 8e2df5544a Show the label colors in Manage labels again
The default field rule of Project Management excluded the find bar with
:not(.rs-find-bar input). That exclusion raised the specificity of the
rule above the rule of each control. Thus the color swatches, the card
title field, the switches, and the date field got the default field
background.

:where() inside :not() keeps the exclusion and adds no specificity.
A new smoke test checks the 16 swatch colors and the card title field in
both themes. Card 0efb6b6e.
2026-10-31 17:33:07 -07:00
Knotty Wyvern bc15f70a34 Link the 0.1.52 Windows installer
The Linux package stays at 0.1.51, because 0.1.52 has no Linux build.
2026-10-30 16:41:23 -07:00
Knotty Wyvern 648a5672e7 Set the version to 0.1.52 2026-10-30 16:12:19 -07:00
Knotty Wyvern 9fc1490988 Make menus and hover fills translucent over a background image
With a background image, menus use the surface transparency of Appearance
(82% by default) instead of at least 92%, and they keep the blur.
Hovered rows and controls in the work area, hovered menu rows, and the
workspace button use the new --rs-hover-bg token. With an image, it is a
6% veil of the strong text color. The image stays visible, and the hover
shows over light and dark image areas. Without an image, nothing changes.

Silver Serpent dim text is now #c2c6cc. It keeps 4.5:1 contrast on a
hovered row over a white image.

UI-061 replaces the image rule of UI-043. Card 05b9bfa1.
2026-10-30 13:38:47 -07:00
Knotty Wyvern b2993e81a3 Link the 0.1.51 Windows and Linux packages
The README names the native features and their off switch in Settings > Features.
The installation guide links the 0.1.51 checksum file for Linux.
2026-10-30 00:51:20 -07:00
Knotty Wyvern 7c2d526e13 Remove AGENTS.md and raise the lowest Opus subagent effort to high
AGENTS.md only pointed to CLAUDE.md. No tracked file outside docs/archive links to it.
2026-10-30 00:48:21 -07:00
Knotty Wyvern 424a817c90 Give the unstaged group of Source control its own title
The Changes section and its unstaged group both showed "Changes (2)".
The group title is now "Unstaged changes (2)". The section title keeps the total count.
2026-10-30 00:21:43 -07:00
Knotty Wyvern d849c3c1b5 Name a plugin that stays in two usage examples 2026-10-29 22:22:23 -07:00
Knotty Wyvern c68a1afb6d Set the version to 0.1.51 2026-10-29 22:22:01 -07:00
Knotty Wyvern 956ead818b Translate Project Management and add its tests and guide
- Every interface string of Project Management goes through the catalog: 539 new rows with fr, ja, and zh-CN.
- Storage and model messages use a local message() marker and stay free of host imports. The interface translates them.
- A board renders again when the language changes. Dates use the interface language.
- Fix: the ribbon button waits for the feature switches at startup, and the settings code loads no feature module.
- Add six smoke tests: board state, cards, menus, drag and drop, views, and language.
- Add docs/guides/project-management.md and UI-060. Update the user, plugin, SDK, host, development, and interface docs and CLAUDE.md.
- Name the fake board view of tree/renameUndo "Board fixture", because the native Project Management button is now in the ribbon.
2026-10-29 21:53:09 -07:00
Knotty Wyvern e66f089176 Make Project Management a native feature
- Move the storage and model of the plugin into src/lib/features/pm/ as pure TypeScript, so the skill can still bundle them.
- Move the DOM interface onto the host menus, the shared tooltip, and the host icons.
- A ribbon button opens Project Management. Board tabs keep the owner runestone.pm and the board-<hex> view IDs through view patterns.
- Read only .runestone/pm/. Offer the plugin migration, with backups, for legacy notes.
- A save, move, or delete reads only that card again. Watcher paths reach the feature.
- Add Settings → Project Management and the projectManagement section. View states move to localStorage.
- Background reads the boards from workspace.json. Remove api.backgrounds and the boards service.
- Add yaml 2.9.1. Use the host markdown-it.
- Move 18 plugin test files to tests/unit/features/pm/ and add native tests.
2026-10-29 20:54:29 -07:00
Knotty Wyvern e6deecc092 Make PDF Viewer a native feature
- Move the PDF Viewer plugin into src/lib/features/pdf/ with pdfjs-dist 6.4.299 (minified builds).
- A static pdf document type marks PDF files and opens them as tabs. The first PDF tab loads the module.
- The worker, the character maps, the fonts, and the decoders come from the app. One worker for each tab.
- The toolbar uses IconButton and the shared tooltip, with the new zoom-in, zoom-out, fit-width, and rotate icons.
- Add THIRD_PARTY_NOTICES.md for PDF.js and xterm.
- Update the tests, the menu inventory, the docs, and UI-059.
2026-10-29 19:41:17 -07:00
Knotty Wyvern 833f793244 Make Terminal a native feature
- Move the Terminal plugin into src/lib/features/terminal/ on the host Svelte runtime, with xterm 6.0.0 and addon-fit 0.11.0.
- Buttons, shortcuts, Help rows, and the close guard follow the Terminal switch. The first use loads the module.
- Add Settings → Terminal and the terminal settings section. The first start copies the old runestone.terminal key.
- The 16 ANSI colors come from the --rs-ansi-* tokens.
- Off asks first when a shell runs in any window (pty_running).
- Rust: no pty-data or pty-exit events, an owner check for write, resize, and close, output joined up to 64 KiB or 8 ms, and the sessions of a reloaded page close.
- Remove api.pty, the terminal contribution, TerminalSlot, and the plugin loader of the smoke harness.
- Check only the tested switches in the Background smoke test.
- Update the tests, the menu inventory, the docs, and UI-058.
2026-10-29 19:02:58 -07:00
Knotty Wyvern 53b9cea7f0 Fix the folder path of the Background measurement
realpath from node:fs/promises has no native form. Use realpathSync.native from node:fs.
2026-10-29 17:43:18 -07:00
Knotty Wyvern ab868bbe8e Make Background a native feature
- Background replaces the Background Slideshow plugin and the background image of Appearance. It shows a folder as a slideshow, or one image.
- It is on by default. Its module loads at launch only when a folder or an image is chosen.
- Rust keeps the one folder in background-folder.json. The interface never sends a path. Eight background_* commands replace the six deprecated backgrounds_* commands.
- The first start moves the slideshow folder and settings, and keeps the saved image as the image source.
- One blur worker with a cache, fewer folder reads, and a decode before each fade. The hub writes only the changed properties.
- Remove the deprecated folder methods of api.backgrounds. set, get, and subscribe stay for the Project Management plugin.
- Show the view buttons in the workbench test without text, after UI-056.
- Update the tests, the measurement tool, the docs, and UI-057.
2026-10-29 17:25:17 -07:00
Knotty Wyvern 115c32fa92 Show the view control with icons only
- Write, Source, Read, and Split show icons only, at every width.
- Each control keeps its accessible name and a tooltip with its shortcut.
- UI-056 records the rule. It replaces the names of UI-049.
2026-10-29 16:28:25 -07:00
Knotty Wyvern 8c43f598fb Set the version to 0.1.50 2026-10-29 16:20:11 -07:00
Knotty Wyvern 4e5c3cb165 Add the memory and response measurement of native features
- scripts/measureFeatures.mjs starts a test build with remote debugging, runs each scenario 3 times, and writes the medians to output/phase-7/<stage>/.
- It records the private bytes and the working set of the process tree, the JS heap, the start time, the first-need time, and long tasks.
- It refuses the installed RuneStone and its identifier, and it stops only the process tree that it started.
- Plugin mode installs the plugin ZIPs through a local Gitea-format server. Native mode uses the features settings section.
2026-10-29 15:52:19 -07:00
Knotty Wyvern d3218b2501 Make Git a native feature with an off switch
- Add the native feature runtime in src/lib/features/: the catalog, the switches, the first-start migration, the loader, and the feature sessions.
- Add Settings → Features and the features settings section.
- Add features_legacy. It reads the old plugin packages and changes nothing.
- Move Git from the plugin into src/lib/features/git/, on host internals.
- Remove api.git, the git contribution key, and the SDK Git types.
- Add pnpm check:features. It fails when a feature module loads at start.
- Update the tests, the menu inventory, the docs, and UI-055.
2026-10-29 15:51:21 -07:00
Knotty Wyvern 58f77b2e9f Link the 0.1.49 installer on the RuneStone releases page
The rebuilt 0.1.49 downloads the browser engine from the RuneStone releases page.
2026-10-29 13:22:04 -07:00
Knotty Wyvern f019d5d8d4 Move the engine download to the RuneStone releases page
The pin keeps the size and the SHA-256 of engine 0.1.8. Only the URL changes.
2026-10-29 13:08:32 -07:00
Knotty Wyvern 135e6d6d92 Set the SDK version to 0.1.2 2026-10-29 13:05:31 -07:00
Knotty Wyvern a950edfb13 Release the plugin SDK as a package file
pnpm release:sdk now packs runestone-plugin-sdk-<version>.tgz and sdk.json
into releases/plugin-sdk/<version>/. Plugins install the SDK from the URL
of that file on the RuneStone releases page. The script no longer uses a
clone of a separate SDK repository.

Installers, browser engine ZIPs, and SDK packages now share the RuneStone
releases page.
2026-10-29 13:05:10 -07:00
Knotty Wyvern 54ccea199e Link the 0.1.49 Windows installer
The Windows download now points to release v0.1.49 in RuneStone_Releases. The docs also say that the browser engine is a separate download.
2026-10-29 11:55:23 -07:00
Knotty Wyvern 2928bc220b Set the version to 0.1.49 2026-10-29 02:58:51 -07:00
Knotty Wyvern 0bf7d47496 Pin browser engine 0.1.8
The engine ZIP is the release browser-engine-v0.1.8 of the public
RuneStone_Releases repository: 163632595 bytes, SHA-256
d704003bf5fe047b100a3cf0ab84f3321fd272510cf287a229e50d1653d0856b.
2026-10-29 02:49:02 -07:00
Knotty Wyvern 516671a235 Ignore local access tokens 2026-10-29 02:47:09 -07:00
Knotty Wyvern 4f8d91e70b Set the SDK version to 0.1.1
SDK 0.1.1 is tagged v0.1.1 in the public SDK repository. It adds the
action icons duplicate, template, and tab, and the optional URL of the
browser contribution's newTab.
2026-10-29 02:42:17 -07:00
Knotty Wyvern 0cc83b7b93 Point the SDK install lines at v0.1.1 2026-10-29 02:40:40 -07:00
Knotty Wyvern 5958c9c252 Describe the engine release without a fixed host
The engine ZIP waits for a public release location. The steps no longer
name the current Git server, its proxy, or its upload limit. They also
say how to move a published engine: upload the same ZIP and change only
the URL in the pin.
2026-10-29 02:21:04 -07:00
Knotty Wyvern d10615d903 Refuse a browser engine pin with another protocol
The pin names the protocol of its engine. An engine of another protocol
would fail at its first start, so the host now refuses its pin before the
download. This also uses the protocol field, which the build reported as
unread.
2026-10-29 01:40:35 -07:00
Knotty Wyvern aebe700366 Ship the browser engine as its own release file
The installer no longer bundles the engine, and the installer script
stops when the bundle names it or when the setup file is over 30 MB.
pnpm build:browser-engine packages the engine, writes a deterministic
ZIP and its record to releases/browser-engine/<version>/, and pins the
ZIP in the host. The installer hooks remove the engine folder that 0.1.48
leaves behind, and uninstall removes the downloaded engine.
2026-10-29 01:25:53 -07:00
Knotty Wyvern c06d48f250 Show the engine setup until the browser engine is installed
A browser tab shows the download size, Download the engine, Install from
file, and Open in default browser until the engine can start. It shows
progress, Cancel, the cause of a failure, and Retry, and then opens the
page. Settings -> Browser shows the engine state and Remove engine. Web
links open in the system browser until the engine is installed. Open
link in app browser always opens a browser tab.
2026-10-29 01:18:21 -07:00
Knotty Wyvern 6004e126f7 Download, verify, and install the browser engine
Each host build pins one engine version in src-tauri/browser-engine.json.
The new engine manager downloads that ZIP over HTTPS, makes sure that its
size and SHA-256 match the pin, extracts it safely to the local app data
folder, and marks the installation last. It can also install a local
ZIP, cancel, report progress, and remove the engine. The host refuses an
engine that sends another protocol with its ready event.
2026-10-29 00:57:51 -07:00
Knotty Wyvern 48b8249ba6 Remove the special cases for the old Browser package
A browser request now needs the session token of its window. Disabling
an old runestone.browser package no longer stops the engine. One list of
built-in modules starts the browser and the theme editor, and the plugin
menus skip their tools. The access rules no longer treat the browser ID
in a special way.
2026-10-29 00:48:37 -07:00
Knotty Wyvern 5dc53e4a5e Keep the browser profiles in Local AppData
The browser data moves from the roaming app data folder to the local
app data folder before the engine starts. A failed rename falls back
to a copy. The old folder stays when the copy fails or when the new
folder exists.
2026-10-29 00:38:08 -07:00
Knotty Wyvern 8bc11c801f Set the version to 0.1.48
0.1.48 is the test installer for Phase 5a and Phase 5: the theme
rework, the command palette, the view control, the title bar and
ribbon, keyboard and focus, the layout and Settings fixes, and the
plain fixes. It is for the owner's tests and is not published.
2026-10-28 23:57:19 -07:00
Knotty Wyvern c271e2bae1 Put the global actions in a bottom bar and the tools in the ribbon
Decision 3 correction and the owner's ribbon direction of 2026-10-28.

- One bar at the bottom of the side pane holds the workspace switcher,
  Help, and Settings, as in Obsidian. The switcher opens the workspace
  list above it. The header has no workspace button.
- While the side pane is closed, the workspace switcher, Help, and
  Settings move to the bottom of the left ribbon, so they stay
  reachable.
- New browser tab, Terminal, Plug-in views, and Commands moved from the
  header to the top of the left ribbon, so the tabs have more room.
  Their menus open at the right of the ribbon. The header keeps Save,
  the outline toggle, and the window controls. A detached tab window
  has no ribbon and keeps these tools in its header.
- Docs: decision 3 and the ribbon tools in UI-050, ui-design.md, and
  the user guide.

Tests: layout/titleBar checks the bottom bar, the ribbon fallback, and
the header buttons. workspace/openAndCreate uses the ribbon switcher in
a narrow window. tree/renameUndo reads the tools in the ribbon.
2026-10-28 23:57:19 -07:00
Knotty Wyvern eeddd880e1 Ask Save or Don't save, and show useful status facts
Phase 5-7.

- A changed tab asks Save, Don't save, or Cancel through the native
  dialog, instead of OK and Cancel to discard.
- The conflict banner uses --rs-warn with a warning icon. Keep my
  edits is the primary choice and comes first. Use disk version comes
  last, in the error color. The banner wraps in a narrow pane.
- The status bar shows the save state, the line and column, the word
  count, the line endings, and the view. It shows the watch mode only
  when it polls a network folder.
- The outline and the document facts follow the active tab. A tab
  without a document has no outline and no document facts.
- Tables: only formula cells have a hover hint, so no hint covers the
  next cell. The table adds no gap above its control area. The add
  controls show while a cell has focus.
- The plugin review marks Install and enable as the primary action. The
  other choice is Install, keep disabled.
- Read follows CommonMark soft breaks. Settings, General, Keep line
  breaks shows each source line break. The table preview and cell
  editors of Write keep their line breaks, because their editing
  depends on them.
- Catalog rows in French, Japanese, and Simplified Chinese.
- Docs: UI-053, the user guide, and plugins.md.

Tests: the new layout/plainFixes, the keepLineBreaks cases in the
settings unit tests, and the new install button name.
2026-10-28 22:06:13 -07:00