From 9152ced6686298e6f7b0d52bdd07d596da9c9c80 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Nov 2026 21:55:39 +0000 Subject: [PATCH 01/10] docs(release): 0.6.0 notes, and the changelog cut at the 0.5.0 tag The notes for the fifth preview: the workbench facelift, a board for each jar, the two-phase Seal, and the Zest tools in their own window, offline. CHANGELOG: v0.5.0 is a7941bc (#90), so #78 to #90 move out of Unreleased and into 0.5.0, where they shipped. 0.6.0 is #91 to #102. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01D6Hz8oqdbXgs3NyZBZea29 --- CHANGELOG.md | 34 +++++++++++++----------- docs/releases/v0.6.0.md | 57 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+), 15 deletions(-) create mode 100644 docs/releases/v0.6.0.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d23f46..eb05a4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,28 +4,20 @@ Notable changes to NetRelish. Release notes for each preview are in `docs/releas ## Unreleased +Nothing yet. + +## 0.6.0 — 2026-11-18 + ### Added -- The workbench facelift: attached tabs, the Shelf as a rail of jars, a two-phase Seal, the floating ⌘K (ADR 0035). -- The Workstation v5 window (#95). +- The workbench facelift: attached tabs, the Shelf as a rail of jars, a two-phase Seal, the floating ⌘K (#102, ADR 0035). +- The Workstation v5 window, with a board for each jar (#95, ADR 0034). - The Zest tools inside NetRelish.app, offline, under Window › Zest (#93, ADR 0033). -- The Direct build's license key (#88, ADR 0027). -- Right-click and drag, the Mason Jar, and a seal that shows when it's broken (#89). -- Sandbox and privacy review (#91, ADR 0032). +- Sandbox and privacy review: privacy manifests, Help › Privacy Policy, camera and microphone refused, a reason for the local network prompt (#91, ADR 0032). - ZestMail canvas at full size and 1:1 on phones; ZestImage stage fits the window; the eight Zest cards redesigned (#92). -- Simpler Zest tools, with sound (#89). - -### Changed -- 0.5.0 notes, and a preview that leaves Pro unlocked (#90). -- The CodeQL gate decides what code scanning sees; approved endpoints aren't alerts (#86). ### Fixed - Image: malformed SVG brand logos no longer freeze the app (#99). - Mail: merge-tag scanning, image-placeholder scans and image-like comments no longer hang the native preview (#96, #97, #98). -- Security: Fill from Me no longer discloses through clipping, mixed direction, or unsupported writing-mode geometry (#84, #85). -- Security: Zest tools check what they're given; the pipeline pins what it runs (#82). -- Security: code scanning alerts closed; timestamps that check out; Fill from Me only where you can see (#81, #83). -- Repaired the CodeQL gate and Fill from Me script after the #83 merge (#87). -- CI: release notes come from git objects, and write access is limited to publish jobs (#78). ## 0.5.0 — 2026-11-13 @@ -34,10 +26,22 @@ Notable changes to NetRelish. Release notes for each preview are in `docs/releas - Reseal & diff (Pro): seal a page again and compare the two copies side by side (#74). - Provenance (Pro): fingerprint, RFC 3161 timestamp, and Export Proof (#75). - Buying Pro with StoreKit 2 (#76). +- The Direct build's license key (#88, ADR 0027). +- Right-click and drag, the Mason Jar, and a seal that shows when it's broken (#89). +- Simpler Zest tools, with sound (#89). ### Changed - ROADMAP.md describes the native plan (#73). - Swift CodeQL runs on supported Xcode 26 (#71). +- 0.5.0 notes, and a preview that leaves Pro unlocked (#90, ADR 0031). +- The CodeQL gate decides what code scanning sees; approved endpoints aren't alerts (#86). + +### Fixed +- Security: Fill from Me no longer discloses through clipping, mixed direction, or unsupported writing-mode geometry (#84, #85). +- Security: Zest tools check what they're given; the pipeline pins what it runs (#82). +- Security: code scanning alerts closed; timestamps that check out; Fill from Me only where you can see (#81, #83). +- Repaired the CodeQL gate and Fill from Me script after the #83 merge (#87). +- CI: release notes come from git objects, and write access is limited to publish jobs (#78). ## 0.4.2 — 2026-11-02 diff --git a/docs/releases/v0.6.0.md b/docs/releases/v0.6.0.md new file mode 100644 index 0000000..c45ab70 --- /dev/null +++ b/docs/releases/v0.6.0.md @@ -0,0 +1,57 @@ +The fifth preview of the native NetRelish for Mac. Same as 0.5.0, plus a new look for the window, a board for each jar, a Seal you can watch, and the Zest tools built in. It's the direct-download build, signed with our Developer ID and notarized by Apple. It needs macOS 27. + +This is a preview, not 1.0. Things will change, and the Pantry it makes may not carry over to 1.0. 1.0 comes to the Mac App Store on Dec 14. + +## New in 0.6.0 + +- **A new look for the window.** + - **Tabs join the page.** The front tab is white and attached to the page under it, with a lip on top in its jar's color. The tabs behind it are light gray. + - **The Shelf is a rail of big jars.** Each jar is drawn in its own color, above its name. Today, Sealed and Sinking soon sit below the jars, and Zest sits at the bottom. ⌘1–9, ⌃⌘1–4, the right-click menus and dragging all work as before. + - **Brine is a pill in the bottom bar.** It lights up only for tabs that sank since you last opened Brine. + - **⌘K floats over the window.** What it finds is grouped: Pantry, Open tabs, Commands. Esc gives the keyboard back to the page. + - **The Panel starts closed.** ⌘⌥I opens it. If you already chose open or closed, your choice is kept. +- **A board for each jar.** Click the NetRelish mark at the top left, or the jar's name beside it. The board shows the jar's open tabs and what it keeps. A page you sealed is a card with a **Sealed** pill. Cards take the keyboard, and Space or Return opens one. +- **A Seal you can watch.** Press ⌘S and a green band runs along the top of the window while the copy is saved. When it's written, a **Sealed** pill lands, the tab closes, and the jar fills in its own color. If the save fails, the tab stays open and the address field says so. With Reduce Motion on, Seal is a plain fade. +- **The Zest tools, built in.** **Window › Zest** opens Studio, Mail, MD and Image in a window of their own. + - **They work with Wi-Fi off.** The Zest window can't reach the web at all. Its fonts and everything else it needs ship inside NetRelish. + - **Files open and save the Mac way.** Choosing a file opens the usual open panel, and an export opens the usual save panel. + - **File › Print…** prints the tool in front. Save as PDF works from there. + - **A web link you click in a tool** opens as a page in your active jar, in the main window. + - **Zest keeps its own storage,** apart from every jar. + - **While Zest is in front**, Seal, Capture, Fill from Me and Reader are grayed out. Click back into a page and they return. +- **Help › Privacy Policy and Help › Acknowledgments.** The policy opens on netrelish.com. Acknowledgments lists the open-source code and fonts NetRelish includes. +- **A page can't use your camera or microphone.** A page that asks is told no, and your Mac is never asked on its behalf. Choosing this page by page comes later. +- **Your Mac asks before a page reaches your network.** Open a router or printer page in a tab and macOS asks first, and says why. + +## Still in this preview + +- **Right-click and drag:** jars, tabs and Brine rows have menus, and you can move them with the mouse. +- **A saved copy that has changed says so:** a sealed page's header says **Unchanged since sealed**, or says the copy has changed. +- **Seal & Summarize:** two or three sentences about every page you seal, written on your Mac. It needs Apple Intelligence on. +- **Reseal & diff (Pro):** seal a page again and see the two copies side by side. +- **Proof of what a page said (Pro):** a fingerprint, a signed timestamp, and **Export Proof…** in the Panel. +- **Shortcuts:** Seal in NetRelish, Capture in NetRelish, Open a Jar, and Search Your Pantry, in Shortcuts, Spotlight and Siri. +- **Capture from the Share menu:** Share → NetRelish puts a page in Brine. +- **Bench:** tabs and an address bar on WebKit. ⌘T opens a new tab and ⌘W closes one. Links that open a new window or a popup open as a new tab in the same Jar. +- **Jars as browsing profiles:** each Jar has its own cookies, logins and storage. +- **Brine:** idle tabs sink after their Jar's shelf life, and Restore brings them back where you left them. Pinned tabs never sink. +- **Smart Jars:** Brine, Today, Sealed and Sinking soon fill themselves. ⌃⌘1–4. +- **Capture** with ⌘D, into Brine. +- **Seal** with ⌘S: preserve-and-close a page as a web archive, full-text indexed. A sealed page opens its saved copy, read only. +- **Reader view** with ⌘⇧R: the article alone, in clean type. Press it again for the page. +- **The Panel** with ⌘⌥I: the page in front of you, as your Pantry sees it. +- **Fill a form** from your Me card with ⌘⇧F. The card stays in your Mac's Keychain. + +## Not in this preview + +- Buying a license key for this direct-download build. Until you can, Pro stays unlocked here. +- Ask the Pantry. It comes in 1.1. +- In Zest: drafting with Claude, and images from the web. A web image in Mail shows a placeholder here, and the email you export still has the real image. + +## Good to know + +- **Pro is unlocked in this build.** Everything Pro works with no purchase. That changes when license keys go on sale, and we'll say so in the notes first. +- **Signing in with a passkey doesn't work in a jar yet.** Use a password for now. +- **No updater.** This build doesn't check for updates and never will. New previews are posted here. To update, quit NetRelish and replace it in Applications; your Pantry stays. +- **Your browsing never leaves your Mac.** No accounts, no analytics, no cloud sync. 0.6.0 adds no new network use: the timestamp still sends a fingerprint and nothing else. +- **Verify the download:** each disk image comes with its SHA-256 checksum. From a5ce403a161902cfbe1e7944582933388a2fed3f Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Nov 2026 21:55:56 +0000 Subject: [PATCH 02/10] docs(wiki): two release traps, the changelog's cut and a job with no runner Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01D6Hz8oqdbXgs3NyZBZea29 --- docs/operations/releasing-a-preview.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/operations/releasing-a-preview.md b/docs/operations/releasing-a-preview.md index dbffb03..4bb79d9 100644 --- a/docs/operations/releasing-a-preview.md +++ b/docs/operations/releasing-a-preview.md @@ -9,6 +9,7 @@ sources: - code: Config/Base.xcconfig - code: Sources/App/License.swift - code: Sources/App/NetRelishApp.swift + - code: CHANGELOG.md verified_at: 2c4c510 --- @@ -67,6 +68,16 @@ switch. > that produced something wrong. Open the published release and check its name, its notes > and that the disk image and its checksum are both attached. +> ⚠️ **`CHANGELOG.md` is cut at the tag, not at the notes.** What a release contains is +> every commit up to its tag: list them from the previous tag to `main` before writing the +> next section. The first changelog left #78 to #90 under Unreleased although `v0.5.0` +> already contained them, because the 0.5.0 notes named only its headline features. + +> ⚠️ **A job that fails in seconds with no runner and no log never ran.** It says nothing +> about the commit. Every workflow failed that way on 2026-11-18, on every runner image at +> once, and the cause was the GitHub account, not the code. Don't start a release, or read +> a pull request's checks, until one job has actually been given a runner. + ## What this page does not cover The Apple account, the certificate and the notarization secrets are in `docs/RELEASING.md` From a718f266c340e58dcab10fd2e4a927e7f126a545 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Nov 2026 21:56:10 +0000 Subject: [PATCH 03/10] docs(wiki): say only what the no-runner failures showed Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01D6Hz8oqdbXgs3NyZBZea29 --- docs/operations/releasing-a-preview.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/operations/releasing-a-preview.md b/docs/operations/releasing-a-preview.md index 4bb79d9..7841cfe 100644 --- a/docs/operations/releasing-a-preview.md +++ b/docs/operations/releasing-a-preview.md @@ -75,8 +75,9 @@ switch. > ⚠️ **A job that fails in seconds with no runner and no log never ran.** It says nothing > about the commit. Every workflow failed that way on 2026-11-18, on every runner image at -> once, and the cause was the GitHub account, not the code. Don't start a release, or read -> a pull request's checks, until one job has actually been given a runner. +> once, while `main` had passed on the same commit that morning: the cause was on GitHub's +> side of the account (billing was the suspect), not in the code. Don't start a release, +> or read a pull request's checks, until one job has actually been given a runner. ## What this page does not cover From b61210be4d419ae119e155fbda88bf20b047d437 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Nov 2026 23:52:15 +0000 Subject: [PATCH 04/10] docs(wiki): the no-runner failures were a billing lock, and where GitHub says so Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01D6Hz8oqdbXgs3NyZBZea29 --- docs/operations/releasing-a-preview.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/operations/releasing-a-preview.md b/docs/operations/releasing-a-preview.md index 7841cfe..4633bae 100644 --- a/docs/operations/releasing-a-preview.md +++ b/docs/operations/releasing-a-preview.md @@ -75,9 +75,11 @@ switch. > ⚠️ **A job that fails in seconds with no runner and no log never ran.** It says nothing > about the commit. Every workflow failed that way on 2026-11-18, on every runner image at -> once, while `main` had passed on the same commit that morning: the cause was on GitHub's -> side of the account (billing was the suspect), not in the code. Don't start a release, -> or read a pull request's checks, until one job has actually been given a runner. +> once, while `main` had passed on the same commit that morning. GitHub's reason is in the +> failed job's annotations, and only there: "The job was not started because your account +> is locked due to a billing issue." The job log is empty and the GitHub phone app doesn't +> show annotations; the run's page on the web does, under Annotations. Don't start a +> release, or read a pull request's checks, until one job has actually been given a runner. ## What this page does not cover From 94ebdbc0307dda54b68cfead02a6476a71ec6b20 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Nov 2026 08:51:00 +0000 Subject: [PATCH 05/10] fix(shell): main builds again after the Seal origin-chrome merge #107 removed the sealed tab's hold on the front (sealHeldFrontTab) but left three uses of what it deleted, so neither flavor compiled: - SearchRow.leaveField read `held`; Esc now restores the live page's address. - AddressField's VoiceOver hint read `shownTab`; it asks the tab in front. - TabStrip passed an `order` that was no longer declared; it is the open tabs' order again, which never counts Seal's retained chip. It also put the address row's bottom line back to the soft hairline, which undid Increase Contrast there (ADR 0036). The manifest's v2.1.1 note says no token changed, so the line follows the contrast setting again, as the title strip and the bottom bar do. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01D6Hz8oqdbXgs3NyZBZea29 --- Sources/Bench/ShellRows.swift | 6 +++--- Sources/Bench/TabStrip.swift | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Sources/Bench/ShellRows.swift b/Sources/Bench/ShellRows.swift index 73b8fec..6f875c1 100644 --- a/Sources/Bench/ShellRows.swift +++ b/Sources/Bench/ShellRows.swift @@ -141,7 +141,7 @@ struct SearchRow: View { // One stop for Tab and the arrow keys under Full Keyboard Access: the row, then the Bench. .focusSection() .background(NRColor.surface) - .overlay(alignment: .bottom) { Rectangle().fill(NRColor.hairlineSoft).frame(height: NRSpace.hairline) } + .overlay(alignment: .bottom) { Rectangle().fill(ShellInk.separator(contrast)).frame(height: NRSpace.hairline) } .onChange(of: tab?.id, initial: true) { _, _ in show(pageAddress) } .onChange(of: focused) { _, editing in if editing { address = pageAddress } @@ -210,7 +210,7 @@ struct SearchRow: View { /// keyboard. Only from the field itself, not from a button inside it. private func leaveField() { guard focused else { return } - address = held?.url ?? web?.url?.absoluteString ?? tab?.url ?? "" + address = pageAddress focused = false givePageTheKeyboard() } @@ -272,7 +272,7 @@ private struct AddressField: View { .onSubmit(go) .accessibilityLabel("Address") // The value stays the field's own text, so editing still works. - .accessibilityHint(ShellText.connectionHint(hasPage: shownTab != nil, scheme: pageURL?.scheme)) + .accessibilityHint(ShellText.connectionHint(hasPage: tab != nil, scheme: pageURL?.scheme)) .accessibilityIdentifier("address-field") .overlay(alignment: .leading) { if let parts { diff --git a/Sources/Bench/TabStrip.swift b/Sources/Bench/TabStrip.swift index 8881a7e..8e6dcd6 100644 --- a/Sources/Bench/TabStrip.swift +++ b/Sources/Bench/TabStrip.swift @@ -102,6 +102,9 @@ struct TabStrip: View { @ViewBuilder private func strip(for jar: Jar) -> some View { let tabs = workbench.stripTabs + // Where a tab sits is counted in the open tabs, never in what the strip draws, so the + // held picture of a sealed tab is never one of them. + let order = workbench.tabs.map(\.id) // The retained Seal chip is only an animation anchor, never the selected tab. let frontId = workbench.benchTab?.id let clip = max(0, available - Self.trailingReserve) From 3dd63cc6808085475f96d016641d830ea2d8dc43 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Nov 2026 08:52:24 +0000 Subject: [PATCH 06/10] test(ui): launch the fixture with whole -key value pairs The UI test has never seen the app's window: on a commit that builds, the app launches, its menu bar is there, and XCUITest counts no windows. The fixture's flag was passed with no value, ahead of -ApplePersistenceIgnoreState YES, so the argument pairs slip by one and "YES" is left alone, which AppKit takes for a file to open instead of opening a window. Giving the flag a value keeps every argument in a pair. The app only checks that the flag is present. Not proven until the UI tests job runs on a commit that builds. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01D6Hz8oqdbXgs3NyZBZea29 --- Tests/NetRelishUITests/CaptureJarSealUITests.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Tests/NetRelishUITests/CaptureJarSealUITests.swift b/Tests/NetRelishUITests/CaptureJarSealUITests.swift index be78b4f..39651b7 100644 --- a/Tests/NetRelishUITests/CaptureJarSealUITests.swift +++ b/Tests/NetRelishUITests/CaptureJarSealUITests.swift @@ -107,8 +107,12 @@ final class CaptureJarSealUITests: XCTestCase { @MainActor private func launch() -> XCUIApplication { let app = XCUIApplication() + // Every argument is a "-key value" pair, so none is left standing alone: AppKit takes a + // lone argument for a file to open, and a launch that opens a file opens no window. The + // fixture's flag had no value at first; it then took the next key as its value and left + // that key's "YES" alone. The app reads only that the flag is there, not its value. app.launchArguments = [ - "-NRUITestFixture", + "-NRUITestFixture", "YES", "-ApplePersistenceIgnoreState", "YES", // no windows restored from a last run "-panel.visible", "NO", // the Panel closed, whatever this Mac remembers ] From 4e51b16104a393ffdf408c4b694cbf7a8d519cdd Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Nov 2026 08:59:55 +0000 Subject: [PATCH 07/10] test(ui): say what the address field holds when the page doesn't open MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The window opens now, and both UI tests fail one step on: after ⌘L, the fixture address and Return, no tab called "Invoice terms" appears. The bare assertion can't tell a typing problem from a page that never gave its title or a tab under another name, so the failure prints the field's value and the element tree, as the window failure does. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01D6Hz8oqdbXgs3NyZBZea29 --- Tests/NetRelishUITests/CaptureJarSealUITests.swift | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Tests/NetRelishUITests/CaptureJarSealUITests.swift b/Tests/NetRelishUITests/CaptureJarSealUITests.swift index 39651b7..21f6ac3 100644 --- a/Tests/NetRelishUITests/CaptureJarSealUITests.swift +++ b/Tests/NetRelishUITests/CaptureJarSealUITests.swift @@ -161,8 +161,18 @@ final class CaptureJarSealUITests: XCTestCase { app.typeText(Self.pageURL) app.typeKey(.return, modifierFlags: []) // The tab knows the page's name once the page has settled: its chip says the title. - XCTAssertTrue(chip(in: app, jar: Self.firstJar).waitForExistence(timeout: Self.timeout), - "The page didn't open in Juniper Bakery's tabs") + if !chip(in: app, jar: Self.firstJar).waitForExistence(timeout: Self.timeout) { + // Which of three it was can't be told from "didn't open": the typing never reached + // the field, the tab opened but the page never gave its title, or the tab is there + // under another name. What the field holds and the whole tree say which. + XCTFail(""" + The page didn't open in Juniper Bakery's tabs. + address field value = \(String(describing: field.value)) + tree as XCUITest sees it: + \(app.debugDescription) + """) + return + } waitForPage(in: app) } From 26fe706d9bb0fb0ebb773318f0158ed6a3fe10df Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Nov 2026 09:09:46 +0000 Subject: [PATCH 08/10] =?UTF-8?q?test(ui):=20the=20fixture=20puts=20Junipe?= =?UTF-8?q?r=20Bakery=20in=20front,=20and=20Meridian=20is=20=E2=8C=984?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The UI test's page opened, in the wrong jar. A Pantry always starts with Read Later and Reference (PantrySeed), in memory too, so the fixture's two jars are the Shelf's third and fourth. The fixture activated index 0, which is Read Later, and the test waited for the page in Juniper Bakery's strip. The second test's ⌘2 would have shown Reference for the same reason. - UITestFixture.stock adds the two jars and finds the first by name to put it in front. makeWorkbench calls it. - The UI test presses ⌘4 for Meridian (targetJarKey). - A unit test builds the same jars on a Workbench and checks the jar in front and the key the UI test presses, so the two can't drift again. - The wiki's accessibility page gets both traps this test hit: launch arguments as whole pairs, and the seeded jars. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01D6Hz8oqdbXgs3NyZBZea29 --- Sources/App/UITestFixture.swift | 20 ++++++++++++----- .../UITestFixtureAccessibilityTests.swift | 20 +++++++++++++++++ .../CaptureJarSealUITests.swift | 22 +++++++++++-------- docs/subsystems/accessibility.md | 18 ++++++++++++++- 4 files changed, 65 insertions(+), 15 deletions(-) diff --git a/Sources/App/UITestFixture.swift b/Sources/App/UITestFixture.swift index 6eef373..83c5171 100644 --- a/Sources/App/UITestFixture.swift +++ b/Sources/App/UITestFixture.swift @@ -1,6 +1,6 @@ // UITestFixture.swift — DEBUG only: what the capture → jar → seal UI test // (Tests/NetRelishUITests) launches the app with. `-NRUITestFixture` gives the app a -// throwaway Pantry and defaults, two jars, and one page served from inside the app on +// throwaway Pantry and defaults, two jars of its own, and one page served from inside the app on // `nr-fixture:`, so the test never touches your data and never reaches the network // (non-negotiable 5: no new endpoint; the page is a string in this file). The whole file is // compiled out of Release, and so is every line that calls it. @@ -29,7 +29,9 @@ enum UITestFixture { /// A line only the page has, so the test can tell the page arrived in the web view. static let pageMarker = "Payment is due 30 days after delivery." - /// The jars on the fixture's Shelf, in order: ⌘1 and ⌘2. The test seals into the second. + /// The jars the fixture adds, in order. The test opens its page in the first and seals into + /// the second. They come after the jars every fresh Pantry starts with (`PantrySeed`: Read + /// Later and Reference), so on the fixture's Shelf they are the third and fourth: ⌘3 and ⌘4. static let jarNames = ["Juniper Bakery", "Meridian"] /// The fixture page: a title, a heading and enough of an article for Seal's extraction. @@ -96,11 +98,19 @@ enum UITestFixture { vault: VaultStore(service: "com.shepdesign.netrelish.vault.uitest"), inbox: nil, summarizer: nil, timestamps: nil, pro: ProStore(unlocked: true), defaults: defaults) - // The jars the Shelf's New Jar would make, through the same call; the first is in front. + stock(workbench) + return workbench + } + + /// Adds the fixture's jars to a Workbench and puts the first of them in front. The jars are + /// the ones the Shelf's New Jar would make, through the same call. The first is found by its + /// name, not its place: a fresh Pantry already has jars of its own ahead of these, and the + /// jar in front after `newJar` is the one just made. + @MainActor + static func stock(_ workbench: Workbench) { workbench.newJar(name: jarNames[0], tint: nil, shelfLifeDays: 7) workbench.newJar(name: jarNames[1], tint: nil, shelfLifeDays: 3) - workbench.activate(index: 0) - return workbench + workbench.activate(workbench.jars.first { $0.name == jarNames[0] }) } } diff --git a/Tests/NetRelishTests/Accessibility/UITestFixtureAccessibilityTests.swift b/Tests/NetRelishTests/Accessibility/UITestFixtureAccessibilityTests.swift index 74fe64e..9f4faad 100644 --- a/Tests/NetRelishTests/Accessibility/UITestFixtureAccessibilityTests.swift +++ b/Tests/NetRelishTests/Accessibility/UITestFixtureAccessibilityTests.swift @@ -65,6 +65,26 @@ import WebKit #expect(source.contains("static let pageHost = \"\(host)\"")) } + @Test("The fixture's jars follow the ones a fresh Pantry starts with, the first of them in front, and the UI test presses the second's key") + func jarsAndTheirKeys() throws { + let defaults = try #require(UserDefaults(suiteName: "netrelish.tests.\(UUID().uuidString)")) + let bench = Workbench(store: try PantryStore(), defaults: defaults) + let seeded = bench.jars.count + UITestFixture.stock(bench) + // Nothing the Pantry started with is taken away, and the fixture's two come last. + #expect(bench.jars.count == seeded + 2) + #expect(Array(bench.jars.map(\.name).suffix(2)) == UITestFixture.jarNames) + // The page opens in the jar in front: the first of the fixture's, not the Shelf's first. + #expect(bench.activeJar?.name == UITestFixture.jarNames[0]) + // ⌘1–9 go by place on the Shelf (the Jars menu), so the second's key is its place. + let index = try #require(bench.jars.firstIndex { $0.name == UITestFixture.jarNames[1] }) + let place = index + 1 + #expect(place <= 9) + let source = try uiTest() + #expect(source.contains("static let targetJarKey = \"\(place)\"")) + #expect(source.contains("app.typeKey(Self.targetJarKey, modifierFlags: .command)")) + } + @Test("The UI test waits for the words VoiceOver hears at each step") func uiTestHearsTheAppsWords() throws { let source = try uiTest() diff --git a/Tests/NetRelishUITests/CaptureJarSealUITests.swift b/Tests/NetRelishUITests/CaptureJarSealUITests.swift index 21f6ac3..23b369f 100644 --- a/Tests/NetRelishUITests/CaptureJarSealUITests.swift +++ b/Tests/NetRelishUITests/CaptureJarSealUITests.swift @@ -7,10 +7,10 @@ // spoken name at every step and a route that needs no pointer gesture. // // The app is launched with -NRUITestFixture (Sources/App/UITestFixture.swift, Debug builds -// only): a throwaway Pantry and defaults, the jars Juniper Bakery (⌘1) and Meridian (⌘2), and -// one page served from inside the app. Nothing is read from your Pantry and nothing goes to the -// network. The constants below are the fixture's; UITestFixtureAccessibilityTests checks they -// still match it. +// only): a throwaway Pantry and defaults, the jars Juniper Bakery (in front) and Meridian after +// the two every fresh Pantry starts with, and one page served from inside the app. Nothing is +// read from your Pantry and nothing goes to the network. The constants below are the fixture's; +// UITestFixtureAccessibilityTests checks they still match it. import XCTest @@ -22,6 +22,9 @@ final class CaptureJarSealUITests: XCTestCase { static let pageHost = "juniperbakery.example" static let firstJar = "Juniper Bakery" static let targetJar = "Meridian" + /// ⌘ and this digit show Meridian: it is the fourth jar on the fixture's Shelf, after Read + /// Later, Reference and Juniper Bakery. + static let targetJarKey = "4" /// Generous: a CI Mac can be slow to start WebKit's processes the first time. static let timeout: TimeInterval = 30 @@ -75,7 +78,7 @@ final class CaptureJarSealUITests: XCTestCase { } /// The keyboard route into a jar for a page that's open: Tab › Move Tab to Jar › Meridian - /// in the menu bar (Ctrl-F2 or VO-M reaches it), then ⌘2 (Jars › Meridian), then ⌘S. + /// in the menu bar (Ctrl-F2 or VO-M reaches it), then ⌘4 (Jars › Meridian), then ⌘S. @MainActor func testMoveTabToJarFromTheMenuBarAndSeal() throws { let app = launch() @@ -92,7 +95,7 @@ final class CaptureJarSealUITests: XCTestCase { target.click() // The tab left Juniper Bakery's strip; Meridian's has it. - app.typeKey("2", modifierFlags: .command) + app.typeKey(Self.targetJarKey, modifierFlags: .command) XCTAssertTrue(chip(in: app, jar: Self.targetJar).waitForExistence(timeout: Self.timeout), "The tab isn't in Meridian's tabs after Move Tab to Jar") // It changed jars, so it loads again in Meridian's own profile (non-negotiable 6). @@ -162,9 +165,10 @@ final class CaptureJarSealUITests: XCTestCase { app.typeKey(.return, modifierFlags: []) // The tab knows the page's name once the page has settled: its chip says the title. if !chip(in: app, jar: Self.firstJar).waitForExistence(timeout: Self.timeout) { - // Which of three it was can't be told from "didn't open": the typing never reached - // the field, the tab opened but the page never gave its title, or the tab is there - // under another name. What the field holds and the whole tree say which. + // "Didn't open" alone can't say which it was: the typing never reached the field, + // the tab opened but the page never gave its title, or it opened in another jar's + // strip (it did once: the fixture had Read Later in front). What the field holds and + // the whole tree say which. XCTFail(""" The page didn't open in Juniper Bakery's tabs. address field value = \(String(describing: field.value)) diff --git a/docs/subsystems/accessibility.md b/docs/subsystems/accessibility.md index 1f1e7cb..0018b92 100644 --- a/docs/subsystems/accessibility.md +++ b/docs/subsystems/accessibility.md @@ -2,7 +2,7 @@ title: Accessibility — what VoiceOver hears, and what works without a mouse type: subsystem created: 2026-11-18 -updated: 2026-11-18 +updated: 2026-11-21 sources: - code: Sources/UI/Accessibility.swift - code: Sources/UI/Components.swift @@ -135,6 +135,22 @@ only, which is why it is also the VoiceOver proof. It runs under its own scheme, > `ProcessInfo.arguments`, never a default or an environment variable, so nothing a page or > a file can set turns it on. +> ⚠️ **Every launch argument the UI test passes is a `-key value` pair.** AppKit reads the +> command line as defaults, two at a time. A flag with no value takes the next key as its +> value and leaves that key's `YES` standing alone; AppKit takes a lone argument for a file to +> open, and a launch that opens a file opens no main window. The test then fails with "The +> main window didn't open" and nothing in the app is wrong. `-NRUITestFixture` is passed as +> `-NRUITestFixture YES` for this reason only: the app reads that the flag is there +> (`Sources/App/UITestFixture.swift:19`), not its value. + +> ⚠️ **The fixture's jars are not the Shelf's first two.** Every Pantry, in memory or not, +> starts with Read Later and Reference (`Sources/Pantry/Models/Seed.swift:10`), and `newJar` +> leaves the jar it made in front. So `UITestFixture.stock` finds Juniper Bakery by name to +> put it in front, and Meridian is ⌘4, not ⌘2. `activate(index: 0)` here opens the test's +> page in Read Later, and the test says "The page didn't open in Juniper Bakery's tabs" about +> a page that opened. `UITestFixtureAccessibilityTests.jarsAndTheirKeys` holds the fixture and +> the key the UI test presses together. + > ⚠️ **XCUITest cannot fire a named VoiceOver action** — there is no public macOS API. The > test right-clicks the row and picks the same-named menu item, which is why each VoiceOver > action has a menu item with the same words. Rename one and rename both. From d3e2aa85e4996943e88daba6135dbb8705554976 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Nov 2026 10:31:58 +0000 Subject: [PATCH 09/10] docs(release): 0.6.0 notes and changelog brought up to main The notes and the 0.6.0 changelog section were written at #102. main has moved four commits since, and a release contains every commit up to its tag. - Notes: VoiceOver and the keyboard (#103) are in New in 0.6.0, with the new keys and menu items and the four accessibility settings. - Changelog: #103 under Added; #104 and #105 under Changed; #107 and #109 under Fixed. The date is the day main went green again, 2026-11-21. #107 and #109 are not in the public notes: the Seal they fix first ships in 0.6.0, so no released build had either fault. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01D6Hz8oqdbXgs3NyZBZea29 --- CHANGELOG.md | 9 ++++++++- docs/releases/v0.6.0.md | 8 +++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eb05a4f..a37c99d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,16 +6,23 @@ Notable changes to NetRelish. Release notes for each preview are in `docs/releas Nothing yet. -## 0.6.0 — 2026-11-18 +## 0.6.0 — 2026-11-21 ### Added +- Accessibility: VoiceOver says what capture, Seal, sinking, restore and a move did; keys and menu items for what needed the pointer (⌘L, ⌃Tab, ⌘[ and ⌘], Tab › Move Tab to Jar, Jars › Show Board); Reduce Motion, Reduce Transparency, Increase Contrast and Differentiate Without Color followed live (#103, ADR 0036). - The workbench facelift: attached tabs, the Shelf as a rail of jars, a two-phase Seal, the floating ⌘K (#102, ADR 0035). - The Workstation v5 window, with a board for each jar (#95, ADR 0034). - The Zest tools inside NetRelish.app, offline, under Window › Zest (#93, ADR 0033). - Sandbox and privacy review: privacy manifests, Help › Privacy Policy, camera and microphone refused, a reason for the local network prompt (#91, ADR 0032). - ZestMail canvas at full size and 1:1 on phones; ZestImage stage fits the window; the eight Zest cards redesigned (#92). +### Changed +- CI no longer pays for abandoned runs or for commits that can't change what it builds (#104, ADR 0037). +- 0.6.0 notes and the changelog cut (#105). + ### Fixed +- Security: during Seal, the address row and the selected tab follow the page in front, not the tab being sealed (#107). +- `main` builds again after #107, and the capture → jar → seal UI test passes for the first time (#109). - Image: malformed SVG brand logos no longer freeze the app (#99). - Mail: merge-tag scanning, image-placeholder scans and image-like comments no longer hang the native preview (#96, #97, #98). diff --git a/docs/releases/v0.6.0.md b/docs/releases/v0.6.0.md index c45ab70..3a9dbf1 100644 --- a/docs/releases/v0.6.0.md +++ b/docs/releases/v0.6.0.md @@ -1,4 +1,4 @@ -The fifth preview of the native NetRelish for Mac. Same as 0.5.0, plus a new look for the window, a board for each jar, a Seal you can watch, and the Zest tools built in. It's the direct-download build, signed with our Developer ID and notarized by Apple. It needs macOS 27. +The fifth preview of the native NetRelish for Mac. Same as 0.5.0, plus a new look for the window, a board for each jar, a Seal you can watch, the Zest tools built in, and VoiceOver and keyboard support. It's the direct-download build, signed with our Developer ID and notarized by Apple. It needs macOS 27. This is a preview, not 1.0. Things will change, and the Pantry it makes may not carry over to 1.0. 1.0 comes to the Mac App Store on Dec 14. @@ -19,6 +19,12 @@ This is a preview, not 1.0. Things will change, and the Pantry it makes may not - **A web link you click in a tool** opens as a page in your active jar, in the main window. - **Zest keeps its own storage,** apart from every jar. - **While Zest is in front**, Seal, Capture, Fill from Me and Reader are grayed out. Click back into a page and they return. +- **VoiceOver and the keyboard.** + - **NetRelish says what happened.** With VoiceOver on, a capture, a Seal, a tab sinking, a restore and a move are each spoken, and so is a failure. + - **New keys.** ⌘L goes to the address field. ⌃Tab and ⌃⇧Tab show the next and previous tab. ⌘[ and ⌘] go back and forward. + - **New menu items.** **Tab › Move Tab to Jar**, **Move Tab Left** and **Move Tab Right**. **Jars › Show Board**, **Move Jar Up** and **Move Jar Down**, and every jar by name. + - **Opening a page, moving it to a jar and sealing it** all work from the keyboard and the menu bar. + - **Your Mac's accessibility settings are followed** as you change them: Reduce Motion, Reduce Transparency, Increase Contrast and Differentiate Without Color. - **Help › Privacy Policy and Help › Acknowledgments.** The policy opens on netrelish.com. Acknowledgments lists the open-source code and fonts NetRelish includes. - **A page can't use your camera or microphone.** A page that asks is told no, and your Mac is never asked on its behalf. Choosing this page by page comes later. - **Your Mac asks before a page reaches your network.** Open a router or printer page in a tab and macOS asks first, and says why. From 58fc4b73976fdbbead126a0e6ca0c5286c6e8213 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Nov 2026 12:27:08 +0000 Subject: [PATCH 10/10] =?UTF-8?q?docs(wiki):=20sync=20after=200.6.0=20?= =?UTF-8?q?=E2=80=94=20citations,=20the=20held=20tab,=20CI's=20seventh=20j?= =?UTF-8?q?ob?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Run after the v0.6.0 release, as docs/CLAUDE.md asks. Code had moved under eight pages since each was last checked (#102, #103, #104, #107, #109). - About 65 file:line citations pointed at the wrong line. Each is re-pointed and read against the symbol its sentence is about. - workbench-shell: the Seal trap named sealHeldFrontTab, which #107 removed. Rewritten, with a trap for what replaced it: the held picture is an animation anchor only, and the address row, the lock and the selection follow benchTab (manifest v2.1.1). - building-without-a-mac: CI runs seven things. A trap: ui-tests has no needs/if pair, so a docs-only pull request still takes an xcode-27 runner. - zest-sound: two traps were wrong. The suites allow no outside host, and the kit ships in the Mac app since ADR 0033. - releasing-a-preview: where the run says Pro is unlocked, and a trap from this release about notes and a changelog date written early. - zest-window, accessibility, privacy-and-sandbox, rearranging: smaller corrections, listed in docs/log.md. No code, no CI, no page added. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01D6Hz8oqdbXgs3NyZBZea29 --- docs/log.md | 26 ++++++++++++++ docs/operations/building-without-a-mac.md | 35 ++++++++++-------- docs/operations/releasing-a-preview.md | 16 +++++++-- docs/reference/privacy-and-sandbox.md | 14 +++++--- docs/subsystems/accessibility.md | 21 ++++++----- docs/subsystems/rearranging.md | 34 +++++++++--------- docs/subsystems/workbench-shell.md | 44 +++++++++++++---------- docs/subsystems/zest-sound.md | 23 ++++++------ docs/subsystems/zest-window.md | 12 +++---- 9 files changed, 143 insertions(+), 82 deletions(-) diff --git a/docs/log.md b/docs/log.md index 0a82447..e7e649b 100644 --- a/docs/log.md +++ b/docs/log.md @@ -213,3 +213,29 @@ Append-only. Newest entries at the bottom. A trap: a new target or scheme in `project.yml` is as stale-making as a new Swift file, because the committed project holds `xcshareddata/xcschemes/` - workbench-shell: unchanged. Its hover-at-opacity-0 trap is linked, not copied +## [2026-11-21] sync after 0.6.0: citations, the held tab, CI's seventh job + +Run after the v0.6.0 release. Code had moved under eight pages since each was last checked +(#102, #103, #104, #107, #109). + +- Citations: about 65 `file:line` references pointed at the wrong line and were re-pointed, most of + them in `Sources/App/Workbench.swift`, which had gained about 60 lines. Checked by reading + the line each one names against the symbol the sentence is about +- workbench-shell: the Seal trap named `sealHeldFrontTab`, which #107 removed. Rewritten, and + a trap added for what replaced it: the held picture is an animation anchor only, and the + address row, the lock and the selection follow `benchTab` (manifest v2.1.1) +- accessibility: the held-tab trap says the same in a sentence and links there +- building-without-a-mac: CI runs seven things, not six. A trap: `ui-tests` has no + `needs:`/`if:` pair, so a docs-only pull request still takes an `xcode-27` runner for it +- zest-sound: two traps were wrong. The suites allow no outside host now (fonts and + libraries are vendored), and the kit does ship in the Mac app since ADR 0033 +- zest-window: the two menu routes the accessibility pass added stand down with the rest. + Its `verified_at` named a commit that isn't in the repository; it names one that is now +- releasing-a-preview: where the run says Pro is unlocked, and a trap from this release: + notes and a changelog date written three days early were wrong by the day of the tag +- privacy-and-sandbox: the fixture's Debug-only `UserDefaults` suite, noted as not shipped +- rearranging: citations only +- Not done: no new pages. The commit hook asks for one covering + `Tests/NetRelishTests/Accessibility/UITestFixtureAccessibilityTests.swift`; [[accessibility]] + already describes that test in its fixture trap, so it is added there as a source + diff --git a/docs/operations/building-without-a-mac.md b/docs/operations/building-without-a-mac.md index 1829bdb..c354b30 100644 --- a/docs/operations/building-without-a-mac.md +++ b/docs/operations/building-without-a-mac.md @@ -2,7 +2,7 @@ title: Building without a Mac — CI is the compiler type: operation created: 2026-11-13 -updated: 2026-11-18 +updated: 2026-11-21 sources: - code: .github/workflows/ci.yml - code: .github/workflows/codeql.yml @@ -16,7 +16,7 @@ sources: - code: design/NetRelish.json - code: Resources/PrivacyInfo.xcprivacy - code: Sources/ShareExtension/PrivacyInfo.xcprivacy -verified_at: def9940 +verified_at: 0d45775 --- # Building without a Mac @@ -35,22 +35,22 @@ CI is the compiler and the test runner. This page is the routine, and what goes | If a Swift file was added, removed or moved: regenerate the Xcode project | `.github/workflows/regen-project.yml`, started by hand with the branch name (`.github/workflows/regen-project.yml:19`) | | Read the result of each job and fix | `.github/workflows/ci.yml` | -`.github/workflows/ci.yml` runs six things. Three are free: "What changed" -(`.github/workflows/ci.yml:47`), "Generated files match their sources" -(`.github/workflows/ci.yml:152`) and the CodeQL gate self-test -(`.github/workflows/ci.yml:334`). The two builds (`.github/workflows/ci.yml:194`), the tests -(`.github/workflows/ci.yml:260`) and the PantryKit package -(`.github/workflows/ci.yml:296`) run on `xcode-27`, the only image with the macOS 27 SDK, -and can sit in the queue for a long time. +`.github/workflows/ci.yml` runs seven things. Three are free: "What changed" +(`.github/workflows/ci.yml:48`), "Generated files match their sources" +(`.github/workflows/ci.yml:153`) and the CodeQL gate self-test +(`.github/workflows/ci.yml:390`). The two builds (`.github/workflows/ci.yml:195`), the tests +(`.github/workflows/ci.yml:261`), the UI tests (`.github/workflows/ci.yml:297`) and the +PantryKit package (`.github/workflows/ci.yml:352`) run on `xcode-27`, the only image with +the macOS 27 SDK, and can sit in the queue for a long time. -**Those four paid `xcode-27` jobs now run only when the commit can change what they -compile** (ADR 0037). "What changed" diffs against the base and sets one output the four +**The builds, the tests and the PantryKit package run only when the commit can change what +they compile** (ADR 0037). "What changed" diffs against the base and sets one output they depend on, through the `needs:`/`if:` pair on each of them -(`.github/workflows/ci.yml:200`); a commit touching nothing but `docs/`, `zest/`, +(`.github/workflows/ci.yml:201`, `:210`); a commit touching nothing but `docs/`, `zest/`, `.claude/`, a root `*.md` or the other workflows skips them, and the three free jobs still run. CodeQL skips the same kind of commit through its own `paths-ignore` (`.github/workflows/codeql.yml:241`), analyzes one flavour on a pull request and both on -`main` and in the weekly scan, and CI (`.github/workflows/ci.yml:31`), CodeQL +`main` and in the weekly scan, and CI (`.github/workflows/ci.yml:32`), CodeQL (`.github/workflows/codeql.yml:273`), the Zest suites (`.github/workflows/zest-tests.yml:24`) and the disk-image preview (`.github/workflows/dmg-preview.yml:36`) each cancel a superseded pull-request run. @@ -76,6 +76,13 @@ suites do run in the session. > accepts. The CodeQL workflow does use `paths-ignore`, so **the day `Analyze (swift)` is made a > required check, that filter has to become a job-level gate too** (ADR 0037). +> ⚠️ **`ui-tests` is not behind the gate.** It has no `needs:`/`if:` pair +> (`.github/workflows/ci.yml:297`), so it takes an `xcode-27` runner on every pull request, +> a docs-only one included: it ran on the release-notes pull request for 0.6.0 while the +> builds and the tests were skipped. The gate was written on one branch and the job on +> another, and ADR 0037 says the job takes the same pair when it lands. It hasn't yet. +> Giving it the pair is a change to CI, and Ryan's to approve. + > ⚠️ **"What changed" must fail open.** Every path through its filter either names the files > it found or sets `code=true`: no usable base, a diff that will not run, a bad regex. Being > wrong there costs minutes; being wrong the other way skips the compiler on a commit that @@ -110,7 +117,7 @@ suites do run in the session. > not tell you. > ⚠️ **Only the app's privacy manifest goes in `Resources/`.** Everything in `Resources/` is -> copied flat into the app's Contents/Resources (`project.yml:84`), so a second +> copied flat into the app's Contents/Resources (`project.yml:85`), so a second > `PrivacyInfo.xcprivacy` anywhere in the app's folders fails the build with "Multiple > commands produce". XcodeGen treats a `.xcprivacy` it doesn't know as a resource of the > target whose folder holds it: the Share extension's sits in `Sources/ShareExtension`, the diff --git a/docs/operations/releasing-a-preview.md b/docs/operations/releasing-a-preview.md index 4633bae..6d1c79f 100644 --- a/docs/operations/releasing-a-preview.md +++ b/docs/operations/releasing-a-preview.md @@ -2,7 +2,7 @@ title: Releasing a preview — the Direct build as a disk image type: operation created: 2026-11-13 -updated: 2026-11-18 +updated: 2026-11-21 sources: - code: .github/workflows/release.yml - code: scripts/release_notes.py @@ -10,7 +10,7 @@ sources: - code: Sources/App/License.swift - code: Sources/App/NetRelishApp.swift - code: CHANGELOG.md -verified_at: 2c4c510 +verified_at: 0d45775 --- # Releasing a preview @@ -47,7 +47,10 @@ launch (`Sources/App/License.swift:153`, `Sources/App/NetRelishApp.swift:43`): The workflow's **Leave Pro unlocked** switch builds that one release with an empty address (ADR 0031). It then reads the built app and fails the run if the app does not match the -switch. +switch. When they match it says so as a notice on the build job, "Pro is unlocked in this +build: it has no license address" (`.github/workflows/release.yml:217`). The notice is in +the job's annotations, which can be read without signing in, so a release can be checked +for it afterward. > ⚠️ **`main` has the license address set.** A release started without the switch locks > Pro for everyone who installs it. Until the Creem store issues keys (ADR 0027's last @@ -73,6 +76,13 @@ switch. > next section. The first changelog left #78 to #90 under Unreleased although `v0.5.0` > already contained them, because the 0.5.0 notes named only its headline features. +> ⚠️ **Notes and a changelog date written early are wrong by the time of the tag.** The +> 0.6.0 notes and its changelog section were merged on 2026-11-18, three days and four +> commits before the release: they left out the accessibility pass and dated the release +> the 18th. A second pull request brought both up to `main` on the 21st. Write them last, +> or check both against `git log ..main` and today's date on the day the +> run starts. + > ⚠️ **A job that fails in seconds with no runner and no log never ran.** It says nothing > about the commit. Every workflow failed that way on 2026-11-18, on every runner image at > once, while `main` had passed on the same commit that morning. GitHub's reason is in the diff --git a/docs/reference/privacy-and-sandbox.md b/docs/reference/privacy-and-sandbox.md index 5ef4ab2..666f58e 100644 --- a/docs/reference/privacy-and-sandbox.md +++ b/docs/reference/privacy-and-sandbox.md @@ -2,7 +2,7 @@ title: Privacy and sandbox — what each bundle declares type: reference created: 2026-11-13 -updated: 2026-11-18 +updated: 2026-11-21 sources: - code: Resources/PrivacyInfo.xcprivacy - code: Sources/ShareExtension/PrivacyInfo.xcprivacy @@ -14,7 +14,7 @@ sources: - code: Sources/App/Workbench.swift - code: scripts/tests/test_privacy_manifests.py - code: .github/workflows/ci.yml -verified_at: 38edcae +verified_at: 0d45775 --- # Privacy and sandbox @@ -27,7 +27,7 @@ How the files get into the bundles is [[building-without-a-mac]]. | Bundle | Manifest | UserDefaults reasons | Why | |---|---|---|---| -| NetRelish.app | `Resources/PrivacyInfo.xcprivacy` | `CA92.1`, `1C8F.1` | Tab icons (`Sources/App/Workbench.swift:962`), the Panel's open or closed (`Sources/App/Workbench.swift:1386`), the Brine pill's last-seen date, `brine.seenAt` (`Sources/App/Workbench.swift:1042`), the Direct build's revoked activations (`Sources/App/License.swift:102`); the App Group suite through Pantry | +| NetRelish.app | `Resources/PrivacyInfo.xcprivacy` | `CA92.1`, `1C8F.1` | Tab icons (`Sources/App/Workbench.swift:998`), the Panel's open or closed (`Sources/App/Workbench.swift:1445`), the Brine pill's last-seen date, `brine.seenAt` (`Sources/App/Workbench.swift:1096`), the Direct build's revoked activations (`Sources/App/License.swift:102`); the App Group suite through Pantry | | NetRelishShare.appex | `Sources/ShareExtension/PrivacyInfo.xcprivacy` | `1C8F.1` | Leaves shared pages in the App Group suite (`Sources/Pantry/Store/ShareInbox.swift:33`) | | Pantry.framework, PantryKit | `Sources/Pantry/PrivacyInfo.xcprivacy` | `1C8F.1` | ShareInbox, compiled into the framework; the package lists it as a resource (`Package.swift`) | @@ -37,6 +37,10 @@ How the files get into the bundles is [[building-without-a-mac]]. > for that reason (`Sources/Bench/WindowChrome.swift:139`). A read of a system key needs a > reason the manifest declares, or it doesn't ship. +One more `UserDefaults` use is in Debug builds only: the UI test's fixture empties and opens +a suite of its own (`Sources/App/UITestFixture.swift:87`). The whole file is inside +`#if DEBUG`, so no released build has it ([[accessibility]]). + All three: no tracking, no tracking domains, nothing collected. No other required-reason API is used. `scripts/tests/test_privacy_manifests.py` sweeps each bundle's Swift for them. @@ -56,7 +60,7 @@ is used. `scripts/tests/test_privacy_manifests.py` sweeps each bundle's Swift fo |---|---| | `app-sandbox` | Everything. The Pantry, saved copies and each jar's website data live in the container | | `network.client` | Page loads, StoreKit, the timestamp authority, the Direct build's license relay | -| `files.user-selected.read-write` | Export Proof's save panel (`Sources/App/Workbench.swift:467`) | +| `files.user-selected.read-write` | Export Proof's save panel (`Sources/App/Workbench.swift:488`) | | `print` | File › Print… for the Zest tool in front: Zest MD's Print and Save as PDF (ADR 0033) | | `personal-information.addressbook` | Import from my card, once (ADR 0006); paired with `NSContactsUsageDescription` | | `application-groups` | The Share extension's hand-off (ShareInbox) | @@ -77,7 +81,7 @@ The Share extension has the sandbox and the App Group only. Both builds use the | Request | 1.0 | |---|---| -| Camera, microphone | Refused in the app before macOS is asked (`Sources/Bench/WebView.swift:205`) | +| Camera, microphone | Refused in the app before macOS is asked (`Sources/Bench/WebView.swift:211`) | | Location | Refused: no entitlement | | Passkeys, security keys | Fail until Apple grants the browser passkey entitlement (ADR 0032, open item 1) | | Local network devices | macOS asks, with the line above | diff --git a/docs/subsystems/accessibility.md b/docs/subsystems/accessibility.md index 0018b92..b9aa5ed 100644 --- a/docs/subsystems/accessibility.md +++ b/docs/subsystems/accessibility.md @@ -18,7 +18,8 @@ sources: - code: Sources/Shelf/ShelfView.swift - code: Sources/App/UITestFixture.swift - code: Tests/NetRelishUITests/CaptureJarSealUITests.swift -verified_at: def9940 + - code: Tests/NetRelishTests/Accessibility/UITestFixtureAccessibilityTests.swift +verified_at: 0d45775 --- # Accessibility @@ -32,21 +33,21 @@ forced, are in ADR 0036. This page is how it is put together. The window it sits | Piece | Where | What it does | |---|---|---| -| `NRAnnounce.post(_:priority:)` | `Sources/UI/Accessibility.swift:13` | Speaks a result nothing on screen announces. Posts `.announcementRequested` against the key window, so it is silent when no window is up. | +| `NRAnnounce.post(_:priority:)` | `Sources/UI/Accessibility.swift:15` | Speaks a result nothing on screen announces. Posts `.announcementRequested` against the key window, so it is silent when no window is up. | | `nrSystemAccessibility()` | `Sources/UI/Accessibility.swift:40` | Hands SwiftUI's live `accessibilityReduceMotion` to the design system's `\.nrReduceMotion`. Applied once per window root (`Sources/App/NetRelishApp.swift:93`, `:215`, `:222`). | | `nrFocusRing(cornerRadius:inset:)` | `Sources/UI/Components.swift:114` | The one `--nr-focus` ring (manifest §4, placement 7), with its own `@FocusState` and `focusEffectDisabled()`. `NRFocusRing` (`:82`) is the same ring where the caller already tracks focus. | ## What gets spoken, and by whom Spoken lines are user-facing copy and live as named statics beside the code that fires -them, so a test pins each one: `Workbench.capturedLine` (`Sources/App/Workbench.swift:1611`), +them, so a test pins each one: `Workbench.capturedLine` (`Sources/App/Workbench.swift:1586`), `sealedLine(jarName:)` (`:1210`), `sankLine(titles:)` (`:1074`), `ShelfView.boardLine(jarName:)`, `JarTile.movedLine(jarName:)`, `SmartJarRowView.restoreAnnouncement(jarName:)` (`Sources/Bench/BrineView.swift:207`), `CommandSpeech` (`Sources/App/NetRelishApp.swift:324`). > ⚠️ **A result is spoken once, by one owner.** The address row's status line speaks every -> `fillStatus` change itself (`Sources/Bench/ShellRows.swift:157`), so nothing may also +> `fillStatus` change itself (`Sources/Bench/ShellRows.swift:156`), so nothing may also > announce what `Workbench.report(_:)` already showed. A second announcement is not a > duplicate word on screen — VoiceOver says the whole sentence twice. @@ -74,7 +75,9 @@ hint says what pressing it does. > ⚠️ **The held sealed tab is hidden from VoiceOver.** During Seal's phase B the strip draws > a copy of the sealed tab (`Workbench.sealHeldTab`). It is `accessibilityHidden(true)` as > well as hit-test-free, or VoiceOver finds two tabs with one title and offers actions on a -> tab that is already gone. +> tab that is already gone. The copy is a picture and nothing else: since the v2.1.1 +> security correction the address row, its spoken connection hint and the selected tab all +> follow the page in front, never the copy ([[workbench-shell]]). > ⚠️ **The address field's real `TextField` must stay in the tree and keep the click.** The > styled host and path are an overlay that takes no hits. At opacity 0 VoiceOver loses @@ -99,12 +102,12 @@ at both ends rather than wrapping. The tab strip has the same shape with `focusSection()` so focus arrives as a whole. New keys and menu items are the table in ADR 0036. ⌘L goes through -`Workbench.focusAddress()` (`Sources/App/Workbench.swift:1583`), a counter the address row -watches (`Sources/Bench/ShellRows.swift:161`), because the field is in another view. +`Workbench.focusAddress()` (`Sources/App/Workbench.swift:1558`), a counter the address row +watches (`Sources/Bench/ShellRows.swift:160`), because the field is in another view. > ⚠️ **Every menu route into a jar must play the jar fill.** Tab › Move Tab to Jar > (`Sources/App/NetRelishApp.swift:186`), the tab's own Move to Jar -> (`Sources/Bench/TabStrip.swift:270`) and Brine's Restore all take the drop's path so +> (`Sources/Bench/TabStrip.swift:269`) and Brine's Restore all take the drop's path so > `fillJar(_:)` runs exactly once. A plain `moveTab` is silent and leaves the jar unfilled. > The same trap, from the drag side, is in [[rearranging]]. @@ -112,7 +115,7 @@ watches (`Sources/Bench/ShellRows.swift:161`), because the field is in another v Reduce Motion, Reduce Transparency, Increase Contrast and Differentiate Without Color each change something; the table is in ADR 0036. The alternates are picked per surface — -`ShellInk` (`Sources/Bench/ShellRows.swift:618`) is the shared pair for hairlines and edges +`ShellInk` (`Sources/Bench/ShellRows.swift:609`) is the shared pair for hairlines and edges — because `tokens.css` carries no contrast set yet. > ⚠️ **Read the settings from SwiftUI's environment, not once at launch.** diff --git a/docs/subsystems/rearranging.md b/docs/subsystems/rearranging.md index 27183ea..0822b8f 100644 --- a/docs/subsystems/rearranging.md +++ b/docs/subsystems/rearranging.md @@ -2,7 +2,7 @@ title: Rearranging — right-click and drag on the Shelf and tab strip type: subsystem created: 2026-11-13 -updated: 2026-11-18 +updated: 2026-11-21 sources: - code: Sources/App/Workbench.swift - code: Sources/App/NetRelishApp.swift @@ -12,7 +12,7 @@ sources: - code: Sources/Bench/BrineView.swift - code: Sources/UI/Components.swift - code: Tests/NetRelishTests/RearrangeTests.swift -verified_at: def9940 +verified_at: 0d45775 --- # Rearranging @@ -25,18 +25,18 @@ and tested, see [[building-without-a-mac]]. ## The split: views ask, the Workbench decides The views carry no rules. They call one of a handful of functions on `Workbench`, under -`// MARK: Rearranging` (`Sources/App/Workbench.swift:809`), and those decide what moves +`// MARK: Rearranging` (`Sources/App/Workbench.swift:845`), and those decide what moves and what is left behind. That is why the tests in `Tests/NetRelishTests/RearrangeTests.swift` drive the Workbench directly and never a view. | Gesture | View | Workbench | |---|---|---| -| Slide a jar along the Shelf | `slideGesture` (`Sources/Shelf/ShelfView.swift:178`) | `moveJar(_:to:)` (`Sources/App/Workbench.swift:817`) | -| Move Up, Move Down, color | jar menu (`Sources/Shelf/ShelfView.swift:140`) | `moveJar(_:by:)`, `setTint` | -| Tab onto a tab | `.draggable` + `.dropDestination` on `TabChip` (`Sources/Bench/TabStrip.swift:191`) | `drop(_:onTab:)` (`Sources/App/Workbench.swift:945`) | -| Tab or Brine row onto a jar | `.dropDestination` on `JarTile` (`Sources/Shelf/ShelfView.swift:99`) | `drop(_:onJar:)` (`Sources/App/Workbench.swift:925`) | -| Tab menu | `menu(for:)` (`Sources/Bench/TabStrip.swift:206`) | `togglePin`, `setGlyph`, `copyLink`, `moveTab(_:toJar:)`, `closeOtherTabs` | +| Slide a jar along the Shelf | `slideGesture` (`Sources/Shelf/ShelfView.swift:327`) | `moveJar(_:to:)` (`Sources/App/Workbench.swift:853`) | +| Move Up, Move Down, color | jar menu (`Sources/Shelf/ShelfView.swift:244`) | `moveJar(_:by:)`, `setTint` | +| Tab onto a tab | `.draggable` + `.dropDestination` on `TabChip` (`Sources/Bench/TabStrip.swift:233`) | `drop(_:onTab:)` (`Sources/App/Workbench.swift:981`) | +| Tab or Brine row onto a jar | `.dropDestination` on `JarTile` (`Sources/Shelf/ShelfView.swift:190`) | `drop(_:onJar:)` (`Sources/App/Workbench.swift:961`) | +| Tab menu | `menu(for:)` (`Sources/Bench/TabStrip.swift:248`) | `togglePin`, `setGlyph`, `copyLink`, `moveTab(_:toJar:)`, `closeOtherTabs` | | Jars › Move Jar Up / Down, Tab › Move Tab Left / Right, Tab › Move Tab to Jar | menu bar (`Sources/App/NetRelishApp.swift`) | `moveJar(_:by:)`, `moveTab(_:onto:)`, `drop(_:onJar:)` | > ⚠️ **Every drag and every right-click item needs a menu-bar route too.** A right-click @@ -55,7 +55,7 @@ offset, held to the two ends of the list of jars, and the order is written once `DragPayload.init?(_:)`; anything else dragged in (a link, text from another app) reads as nil and nothing happens. -The thing a drag would land on shows `NRDropMark` (`Sources/UI/Components.swift:147`), +The thing a drag would land on shows `NRDropMark` (`Sources/UI/Components.swift:203`), relish placement 9 in the manifest. A tab or Brine row that lands on a jar also plays the jar-fill drip on its tile: `drop(_:onJar:)` calls `fillJar(_:)` once something landed. The drip itself is [[workbench-shell]]'s. @@ -76,7 +76,7 @@ drip itself is [[workbench-shell]]'s. > ⚠️ **A web view left behind in another window is still a live page.** Until that window > lets it go, it can navigate and report back by tab id. So `tabDidNavigate` -> (`Sources/App/Workbench.swift:987`) is told which jar's web view is reporting and +> (`Sources/App/Workbench.swift:1023`) is told which jar's web view is reporting and > ignores one that isn't the tab's jar, and each window drops moved tabs' web views in > `forgetStale` (`Sources/Bench/BenchView.swift:69`) when the open tabs change. The same > function lets go of pages whose tab was closed in the other window. A new @@ -84,27 +84,27 @@ drip itself is [[workbench-shell]]'s. > ⚠️ **`moveTab(_:toJar:)` clears `interactionState` deliberately.** History and form > state were made with the old jar's sign-ins. The same rule is in -> `restore(_:into:)` (`Sources/App/Workbench.swift:1590`): a Brine row gets its history +> `restore(_:into:)` (`Sources/App/Workbench.swift:1655`): a Brine row gets its history > back only in the jar it sank from. Both look like lost data. Both are the rule. > ⚠️ **Anything that awaits and then acts on a tab must check the tab's jar again.** A > move keeps the tab's id and address, so a check on those two alone passes for a tab that > is now somewhere else. Seal froze a page, came back, and closed the tab in the jar it -> had just been moved to. `closeIfStillOn` (`Sources/App/Workbench.swift:1294`) now -> requires the same jar as well, and so does `toggleReader` (`Sources/App/Workbench.swift:1464`), +> had just been moved to. `closeIfStillOn` (`Sources/App/Workbench.swift:1352`) now +> requires the same jar as well, and so does `toggleReader` (`Sources/App/Workbench.swift:1522`), > which would otherwise lay the old jar's article over the tab in its new jar. > ⚠️ **`sortOrder` has gaps.** Closing or moving a tab does not renumber the strip. A new -> tab takes `max + 1` (`Sources/App/Workbench.swift:741`), never the count of tabs. The +> tab takes `max + 1` (`Sources/App/Workbench.swift:777`), never the count of tabs. The > count put new tabs in the middle of a strip that had lost its first tabs. > ⚠️ **Do not call `load()` after reordering jars.** `load()` resets the active jar from > the database, which throws the user out of Brine or any other smart jar. Use -> `reloadJars()` (`Sources/App/Workbench.swift:812`), which re-reads the order and +> `reloadJars()` (`Sources/App/Workbench.swift:848`), which re-reads the order and > nothing else. > ⚠️ **Every way into a jar plays the jar fill, through `fillJar(_:)`.** A drop on a jar -> calls it in `drop(_:onJar:)` (`Sources/App/Workbench.swift:939`), and Seal's overlay calls +> calls it in `drop(_:onJar:)` (`Sources/App/Workbench.swift:975`), and Seal's overlay calls > it when its chip lands. A new path that puts something in a jar (a menu item, a Shortcut > with a window) must call it too, once, after the write, or the jar's level changes with no > drip and no count badge. @@ -119,7 +119,7 @@ drip itself is [[workbench-shell]]'s. > ⚠️ **Tab icons live in `UserDefaults`, not the Pantry**, because `Tab` has no field for > them (ADR 0028). They are pruned in `forgetGlyphsOfGoneTabs` -> (`Sources/App/Workbench.swift:966`) against every open tab in the database. A test that +> (`Sources/App/Workbench.swift:995`) against every open tab in the database. A test that > sets an icon must give its `Workbench` its own `UserDefaults`, or another test's > Workbench on a different Pantry prunes it. diff --git a/docs/subsystems/workbench-shell.md b/docs/subsystems/workbench-shell.md index c8663c8..cd04f4a 100644 --- a/docs/subsystems/workbench-shell.md +++ b/docs/subsystems/workbench-shell.md @@ -2,7 +2,7 @@ title: Workbench shell — the window's chrome, the Shelf's tiles, Seal's overlay and the jar fill type: subsystem created: 2026-11-18 -updated: 2026-11-18 +updated: 2026-11-21 sources: - code: Sources/App/NetRelishApp.swift - code: Sources/App/Workbench.swift @@ -19,7 +19,7 @@ sources: - code: Sources/UI/FloatShadow.swift - code: Tests/NetRelishTests/ShellMeasureTests.swift - code: Tests/NetRelishTests/Seal/SealPhaseTests.swift -verified_at: 38edcae +verified_at: 0d45775 --- # Workbench shell @@ -36,17 +36,17 @@ copy either. Moving tabs and jars with the mouse is [[rearranging]]; compiling a | Part | Code | |---|---| -| The window's rows, the Panel's slide, ⌘K as an overlay | `ContentView` (`Sources/App/NetRelishApp.swift:187`) | +| The window's rows, the Panel's slide, ⌘K as an overlay | `ContentView` (`Sources/App/NetRelishApp.swift:366`) | | The measures that aren't tokens | `NRShell` (`Sources/Bench/ShellRows.swift:15`), pinned by `ShellMeasureTests` | | Title strip, address row and field, bottom bar | `TitleRow`, `SearchRow`, `AddressField`, `BottomBar` (`Sources/Bench/ShellRows.swift:40`, `:94`, `:182`, `:366`) | | The tabs, their widths, the jar's chip | `TabStrip` (`Sources/Bench/TabStrip.swift:63`), `TabStripLayout` (`Sources/Bench/TabStrip.swift:15`) | | The window's buttons on the 44pt strip | `WindowButtons.place` (`Sources/Bench/WindowChrome.swift:97`) | -| The Shelf's tiles | `JarTile` (`Sources/Shelf/ShelfView.swift:289`) | +| The Shelf's tiles | `JarTile` (`Sources/Shelf/ShelfView.swift:460`) | | The drawn jar and its shades | `NRFilledJar` (`Sources/UI/JarGlyph.swift:255`), `JarPaint.edge300` / `edgeInk` (`Sources/UI/JarGlyph.swift:70`, `:88`) | -| The float shadow | `nrFloat(cornerRadius:)` (`Sources/UI/FloatShadow.swift:33`) | -| Seal's phases | `Workbench.sealActiveTab` (`Sources/App/Workbench.swift:1075`), `sealPhase` (`:1059`) | -| Seal's one overlay | `SealOverlay` (`Sources/Bench/Seal/SealOverlay.swift:27`), placed by `sealOverlay(_:)` and fed by `sealAnchor(_:)` (`Sources/Bench/Seal/SealAnchors.swift:42`, `:34`) | -| The jar-fill drip | `JarFillDriver` (`Sources/Shelf/JarFill.swift:27`), started by `Workbench.fillJar(_:)` (`Sources/App/Workbench.swift:1186`) | +| The float shadow | `nrFloat(cornerRadius:)` (`Sources/UI/FloatShadow.swift:47`) | +| Seal's phases | `Workbench.sealActiveTab` (`Sources/App/Workbench.swift:1129`), `sealPhase` (`:1113`) | +| Seal's one overlay | `SealOverlay` (`Sources/Bench/Seal/SealOverlay.swift:27`), placed by `sealOverlay(_:)` and fed by `sealAnchor(_:)` (`Sources/Bench/Seal/SealAnchors.swift:43`, `:34`) | +| The jar-fill drip | `JarFillDriver` (`Sources/Shelf/JarFill.swift:27`), started by `Workbench.fillJar(_:)` (`Sources/App/Workbench.swift:1244`) | ## Seal: the Workbench decides, the overlay presents @@ -63,16 +63,24 @@ has already happened when it starts B. The overlay only paces the picture, then > Non-negotiable 3. The comp closes it at +640ms; the app can't, because the write can fail > and Seal from Shortcuts has no motion. So the Workbench keeps a picture of the closed tab, > `sealHeldTab`, which the strip draws at its old place through `stripTabs` -> (`Sources/App/Workbench.swift:1162`), and `sealHeldFrontTab` (`:1179`) keeps that picture -> in front and the address field on its address until the chip leaves. A 4s safety task -> (`endSealLater`, `:1141`) lets go of it if no overlay does. - -> ⚠️ **The failure line waits for phase B.** `reportSealFailure` (`Sources/App/Workbench.swift:1127`) +> (`Sources/App/Workbench.swift:1230`). A 4s safety task (`endSealLater`, `:1209`) lets go of it +> if no overlay does. + +> ⚠️ **The held picture is an animation anchor and nothing else.** It is never the selected +> tab, and the address row never reads it: the address, the lock and its spoken hint, and +> the selection all follow the live Bench content, `benchTab` (`Sources/App/Workbench.swift:206`), +> from the moment the tab closes (manifest v2.1.1, a security correction). Before it, +> `sealHeldFrontTab` kept the sealed page's address and lock in the row while another page +> was already in front. Don't bring it back, and don't count a tab's place in `stripTabs`: +> the strip counts places in `workbench.tabs` (`Sources/Bench/TabStrip.swift:107`), so the +> picture is never one of them. `SealPhaseTests` holds this. + +> ⚠️ **The failure line waits for phase B.** `reportSealFailure` (`Sources/App/Workbench.swift:1185`) > says "Couldn’t seal this page" no sooner than 700ms after the press. A test that checks > `fillStatus` after a failed Seal must wait for it, as `SealPhaseTests` does. > ⚠️ **`.sealOverlay(workbench)` must stay before `.ignoresSafeArea`** in `ContentView` -> (`Sources/App/NetRelishApp.swift:227`). Inside the safe-area change, the overlay covers +> (`Sources/App/NetRelishApp.swift:422`). Inside the safe-area change, the overlay covers > the title strip and reads every anchor in the window's own space. Move it after, and the > overlay no longer spans the title strip, so the band and the drops are drawn against a > space that doesn't match where the tabs are (`(unverified)` in a running build). @@ -98,16 +106,16 @@ has already happened when it starts B. The overlay only paces the picture, then > ⚠️ **The address field's real `TextField` must keep the click and stay in the > accessibility tree.** Idle with a page in front, its text is clear and the styled host and -> path are an overlay that takes no hits (`AddressField`, `Sources/Bench/ShellRows.swift:182`). +> path are an overlay that takes no hits (`AddressField`, `Sources/Bench/ShellRows.swift:231`). > At opacity 0, VoiceOver loses "Address" and a click can't place the caret. > ⚠️ **The Panel's inset changes once, after the slide** (`ContentView`'s -> `.task(id: workbench.showPanel)`, `Sources/App/NetRelishApp.swift:236`). A real page +> `.task(id: workbench.showPanel)`, `Sources/App/NetRelishApp.swift:431`). A real page > reflows once and never per frame. Animating the inset itself would resize the web view on > every frame. > ⚠️ **⌘K is an overlay, not a sheet, so nothing gives the keyboard back when it closes.** -> `ContentView` hands it to the page in front (`Sources/App/NetRelishApp.swift:295`). A new +> `ContentView` hands it to the page in front (`Sources/App/NetRelishApp.swift:502`). A new > overlay with a text field needs the same, or typing goes nowhere until the page is > clicked. @@ -118,4 +126,4 @@ has already happened when it starts B. The overlay only paces the picture, then > ⚠️ **A view at opacity 0 leaves the accessibility tree.** A smart-jar row's Restore or Open > button fades in on hover, so the row carries the action itself (`SmartJarRowView`, -> `Sources/Bench/BrineView.swift:219`). Any hover-only control needs the same. +> `Sources/Bench/BrineView.swift:343`). Any hover-only control needs the same. diff --git a/docs/subsystems/zest-sound.md b/docs/subsystems/zest-sound.md index 6191036..1a529bf 100644 --- a/docs/subsystems/zest-sound.md +++ b/docs/subsystems/zest-sound.md @@ -2,7 +2,7 @@ title: Zest sound — one kit, four tools type: subsystem created: 2026-11-13 -updated: 2026-11-13 +updated: 2026-11-21 sources: - code: zest/apps/zest/index.html - code: zest/apps/mail/index.html @@ -11,7 +11,7 @@ sources: - code: zest/tests/sound.js - code: zest/tests/run.js - code: zest/README.md -verified_at: 2c4c510 +verified_at: 0d45775 --- # Zest sound @@ -76,14 +76,17 @@ the toast function takes a sound name, and the copy and download helpers play `d > `offsetParent` and a non-zero box. Ask Playwright (`isVisible`) instead. Two checks > passed for the wrong reason before this was found. -> ⚠️ **The suites allow three outside hosts and no others.** The tools already ask for -> Google Fonts, and Zest MD for cdnjs; the tests abort those requests and fail on any -> other host. Adding a host to that list is a change to what the tools reach, not a test -> fix. - -> ⚠️ **None of this is in the Mac app.** Zest opens inside NetRelish in 1.1 -> (`docs/adr/0015-zest-inside-netrelish.md`). Until then a Zest change is demonstrated in -> a browser, not in the built app. +> ⚠️ **The suites allow no outside host at all.** The fonts and Zest MD's libraries are +> vendored and load from the machine, so `zest/tests/sound.js` aborts every request that +> isn't to `localhost` and fails if one was made. There is no list of known hosts to add to +> any more: a tool that reaches for a host fails the suite, and making it pass means +> vendoring the file, not loosening the test. + +> ⚠️ **The kit ships in the Mac app, unheard.** Since ADR 0033 the tools are bundled in +> NetRelish.app under Window › Zest ([[zest-window]]), and the app's copy carries the same +> kit: `zest/build.sh --app` writes it into `Resources/Zest/`. Whether the sounds play in +> the Zest window has not been listened to `(unverified)`. A change to the kit is still +> proved in a browser by the suites, and reaches the app only through that build. ## Not yet judged diff --git a/docs/subsystems/zest-window.md b/docs/subsystems/zest-window.md index f0b9c5b..d1605e5 100644 --- a/docs/subsystems/zest-window.md +++ b/docs/subsystems/zest-window.md @@ -2,7 +2,7 @@ title: The Zest window — four tools, offline, beside the Bench type: subsystem created: 2026-11-13 -updated: 2026-11-18 +updated: 2026-11-21 sources: - code: Sources/Zest/ZestFiles.swift - code: Sources/Zest/ZestSchemeHandler.swift @@ -20,7 +20,7 @@ sources: - code: Tests/NetRelishTests/Zest/ZestFilesTests.swift - code: Tests/NetRelishTests/Zest/ZestHostTests.swift - code: Tests/Fixtures/zest-fixture.html -verified_at: 74b9df2 +verified_at: 0d45775 --- # The Zest window @@ -46,15 +46,15 @@ and tested only in CI ([[building-without-a-mac]]). | A tool's view | `Sources/Zest/ZestWebView.swift:72` | Every Zest web view's configuration: Zest's store, the scheme, the rule list, the frozen `window.netrelish` stub, and a script in every frame that takes the peer-connection (WebRTC) constructors away | | Where links go | `Sources/Zest/ZestWebView.swift:112` | A pure routing function: a clicked web link opens in the active jar, a link to another tool moves the switcher, blob: and data: pages download, other apps follow the Bench's handoff. It decides downloads too: only the tool's own files, blob: and data: are ever downloaded | | The window | `Sources/Zest/ZestWindow.swift:17` | The tool table, and the window with its segmented switcher; each tool's view is made on first use and kept | -| Gating | `Sources/App/Workbench.swift:240` | While the Zest window is main, `pageInFront` is nil, and Seal, Capture, Reader, Fill from Me, Pin and Close Tab stand down | +| Gating | `Sources/App/Workbench.swift:261` | While the Zest window is main, `pageInFront` is nil, and Seal, Capture, Reader, Fill from Me, Pin and Close Tab stand down. So do the accessibility pass's Tab › Move Tab to Jar, which reads `pageInFront`, and Show Next and Previous Tab, which read `zestInFront` (`Sources/App/NetRelishApp.swift:186`, `:312`) | | Printing | `Sources/Zest/ZestWindow.swift:76` | File › Print… (⌘P) prints the tool in front through WebKit's print operation, Save as PDF included. It stands down while a jar's page is in front | | Acknowledgments | `Sources/App/Acknowledgments.swift:14` | Help › Acknowledgments: a small window with the bundle's copy of `NOTICE`, which lists every third-party library, font and Swift package in the app | ## What leaves a tool - A clicked http(s) link: a new tab in the active jar, in the main window, which is brought - forward or opened (`Sources/Zest/ZestWindow.swift:150`). The main window is the one - `ContentView` registers (`Sources/App/NetRelishApp.swift:250`), never Settings or the + forward or opened (`Sources/Zest/ZestWindow.swift:162`). The main window is the one + `ContentView` registers (`Sources/App/NetRelishApp.swift:443`), never Settings or the Design Kit. It is an ordinary page load, which non-negotiable 5 already allows. - A download (`a[download]` of the tool's own file, a blob: or data: page, a file WebKit can't show): the save panel, through `WKDownload` (`Sources/Zest/ZestWebView.swift:291`). @@ -103,7 +103,7 @@ and tested only in CI ([[building-without-a-mac]]). > (`project.yml:89`). After changing either, the Xcode project is regenerated. > ⚠️ **`zestInFront` only changes once a Zest window has registered.** Any window becoming -> main reaches every `Workbench`; without that guard (`Sources/App/Workbench.swift:268`), a +> main reaches every `Workbench`; without that guard (`Sources/App/Workbench.swift:289`), a > test's window, or the app's own main window appearing, would switch gating off in the > middle of another test.