Native iCloud apps for Windows and Linux, built in Rust. Notes, Reminders, Calendar, Contacts, Drive and Photos, offline and in sync with your iPhone.
Rust apple-notesapple-reminderscloudkitcrdtdesktop-appicloudicloud-calendaricloud-driveicloud-notesicloud-photosiphonelinuxlinux-desktoplocal-firstoffline-firstprivacyrusttauritauri-appwindows
Browser checks run in WebKit too, the engine Quince draws in
Yashwanth Kamireddicf10d0c3a5a4
diff --git a/.uiverify/a11y.mjs b/.uiverify/a11y.mjsindex 3c98ddd..915365d 100644--- a/.uiverify/a11y.mjs+++ b/.uiverify/a11y.mjs@@ -1,6 +1,6 @@// Accessibility audit with axe-core — the same engine Lighthouse and Deque use.// Every auth screen, in both themes, at WCAG 2.1 AA.-import { chromium } from "playwright";+import { engine as chromium } from "./engine.mjs";import AxeBuilder from "@axe-core/playwright";const SERVICES = ["account","archivews","calendar","ckdatabasews","ckdeviceservice",diff --git a/.uiverify/assert.mjs b/.uiverify/assert.mjsindex 3899186..607c457 100644--- a/.uiverify/assert.mjs+++ b/.uiverify/assert.mjs@@ -1,5 +1,5 @@// Deterministic checks on the library nav — cheaper and more reliable than eyeballing a screenshot.-import { chromium } from "playwright";+import { engine as chromium } from "./engine.mjs";const b = await chromium.launch();const ctx = await b.newContext({ viewport: { width: 1040, height: 900 } });await ctx.addInitScript(({ services }) => {diff --git a/.uiverify/calendar.mjs b/.uiverify/calendar.mjsindex 2ee7f36..d03b159 100644--- a/.uiverify/calendar.mjs+++ b/.uiverify/calendar.mjs@@ -1,7 +1,7 @@// Calendar's Day and Week grids, checked in a real browser.-import { chromium } from "playwright";+import { engine } from "./engine.mjs";-const b = await chromium.launch();+const b = await engine.launch();const ctx = await b.newContext({ viewport: { width: 1280, height: 900 } });// The moment of the screenshot this came from: 9:51 PM, so "now" sits just above 10 PM.await ctx.addInitScript(() => {@@ -12,7 +12,7 @@ await ctx.addInitScript(() => {window.__fixedNow = today;window.__TAURI_INTERNALS__ = {transformCallback: (cb) => cb,- invoke: async (cmd) => {+ invoke: async (cmd, args) => {if (cmd === "auth_status") return { hasStoredSession: true, signedIn: true };if (cmd === "auth_resume") return true;if (cmd === "account_services") return ["calendar"];@@ -22,6 +22,7 @@ await ctx.addInitScript(() => {if (cmd === "reminders_due_between") return [r("a", "Pick up the parcel", at(8)), r("b", "Water the plants", at(8)),{ ...r("d", "Done already", at(16)), completedAt: at(16) }];if (cmd === "calendar_sync") return { calendars: 1, events: 0 };+ if (cmd === "event_save") { (window.__saved ??= []).push(args.draft); return "E-new"; }if (cmd === "sync_all" || cmd === "sync_status") return { services: [], asOf: 1, tookMs: 0 };if (cmd === "plugin:event|listen") return 0;return [];@@ -108,5 +109,24 @@ ok(/Sep/.test(title) && /Oct/.test(title), `a week across two months is named foawait page.keyboard.press("Escape");}+// The whole of making an event from the + button: it opens, takes a title, and is saved with+// what was typed — the thing that has to work for Calendar to be usable at all.+{+ await page.locator('button[aria-label="New event"]').click();+ await page.waitForTimeout(250);+ const open = await page.locator(".cx-popover").count();+ ok(open === 1, "the + button opens a new event", "the + button opened nothing");+ await page.keyboard.type("Dinner with Asha");+ await page.getByRole("button", { name: "Add", exact: true }).click();+ await page.waitForTimeout(400);+ const saved = await page.evaluate(() => window.__saved ?? []);+ const good = saved.length === 1 && saved[0].title === "Dinner with Asha" &&+ saved[0].endsAt - saved[0].startsAt === 3600 && saved[0].calendarGuid === "c";+ ok(good, "what was typed is saved: its title, an hour long, in the default calendar",+ `saved ${JSON.stringify(saved)}`);+ ok((await page.locator(".cx-popover").count()) === 0, "and the popover closes once it is saved",+ "the popover stayed open after saving");+}+await b.close();process.exitCode = failures === 0 ? 0 : 1;diff --git a/.uiverify/crash.mjs b/.uiverify/crash.mjsindex 4a2c3be..15f0be0 100644--- a/.uiverify/crash.mjs+++ b/.uiverify/crash.mjs@@ -1,5 +1,5 @@// Load exactly what the app loads (the dev server) and surface any error that kills render.-import { chromium } from "playwright";+import { engine as chromium } from "./engine.mjs";const b = await chromium.launch();const ctx = await b.newContext({ viewport: { width: 1100, height: 800 } });diff --git a/.uiverify/drive-upload.mjs b/.uiverify/drive-upload.mjsindex 9677417..6d55fd0 100644--- a/.uiverify/drive-upload.mjs+++ b/.uiverify/drive-upload.mjs@@ -3,7 +3,7 @@// "Uploading…" on the button said nothing about which of forty photos had gone. The tray must// show each one moving, call it uploaded only when the backend has proven it intact, and name// the reason for any that did not make it — while the window stays usable.-import { chromium } from "playwright";+import { engine as chromium } from "./engine.mjs";const b = await chromium.launch();const ctx = await b.newContext({ viewport: { width: 1280, height: 820 } });diff --git a/.uiverify/elsewhere.mjs b/.uiverify/elsewhere.mjsindex c88d1c0..89676b9 100644--- a/.uiverify/elsewhere.mjs+++ b/.uiverify/elsewhere.mjs@@ -5,7 +5,7 @@// change twice a year, a Japanese speaker in a zone that never changes, and a New Zealander// on the Chathams, whose clock moves by forty-five minutes — and asserts the app renders,// says true things, and never lays a date over its own label.-import { chromium } from "playwright";+import { engine as chromium } from "./engine.mjs";const PLACES = [{ label: "New York, German", timezoneId: "America/New_York", locale: "de-DE" },diff --git a/.uiverify/engine.mjs b/.uiverify/engine.mjsnew file mode 100644index 0000000..24917c4--- /dev/null+++ b/.uiverify/engine.mjs@@ -0,0 +1,11 @@+// Which browser engine a suite drives. Quince draws in WebKitGTK, so WebKit is the one that+// matters; Chromium stays the default only because it needs nothing extra to run.+//+// ENGINE=webkit node .uiverify/calendar.mjs+//+// Playwright's WebKit build wants a few libraries this machine's distribution names+// differently; .uiverify/webkit-libs.sh fetches them into a private folder, no root needed.+import { chromium, webkit } from "playwright";++export const engineName = process.env.ENGINE === "webkit" ? "webkit" : "chromium";+export const engine = engineName === "webkit" ? webkit : chromium;diff --git a/.uiverify/keyboard.mjs b/.uiverify/keyboard.mjsindex a38623a..d1e2f16 100644--- a/.uiverify/keyboard.mjs+++ b/.uiverify/keyboard.mjs@@ -1,6 +1,6 @@// Keyboard-only operability. axe cannot judge focus flow, and this is what a keyboard or// screen-reader user actually experiences.-import { chromium } from "playwright";+import { engine as chromium } from "./engine.mjs";const SERVICES = ["account","archivews","calendar","ckdatabasews","ckdeviceservice","cksharews","contacts","contactsweb","developerapi","docws","drivews",diff --git a/.uiverify/notes-compose.mjs b/.uiverify/notes-compose.mjsindex 59ef85f..84f1ab3 100644--- a/.uiverify/notes-compose.mjs+++ b/.uiverify/notes-compose.mjs@@ -4,7 +4,7 @@// the note was created, so for a moment nothing was open ("Select a note"), focus fell onto// the window, and the box that went away could create the note a second time — three// "Untitled" notes from one. This runs it in a real browser against a slow create.-import { chromium } from "playwright";+import { engine as chromium } from "./engine.mjs";const b = await chromium.launch();const ctx = await b.newContext({ viewport: { width: 1280, height: 820 } });diff --git a/.uiverify/notes-trash.mjs b/.uiverify/notes-trash.mjsindex ca3a3ff..b29b5af 100644--- a/.uiverify/notes-trash.mjs+++ b/.uiverify/notes-trash.mjs@@ -1,6 +1,6 @@// Recently Deleted behaves as it does on the phone: a deleted note can be recovered, and the// only final delete is the one asked about first.-import { chromium } from "playwright";+import { engine as chromium } from "./engine.mjs";const b = await chromium.launch();const ctx = await b.newContext({ viewport: { width: 1280, height: 820 } });diff --git a/.uiverify/shots.mjs b/.uiverify/shots.mjsindex 68e1fe0..bdb3532 100644--- a/.uiverify/shots.mjs+++ b/.uiverify/shots.mjs@@ -1,7 +1,7 @@// Screenshot every auth screen against the real built bundle.// Tauri IPC doesn't exist in a plain browser, so we stub __TAURI_INTERNALS__ with the exact// shapes the Rust commands return — no invented UI state.-import { chromium } from "playwright";+import { engine as chromium } from "./engine.mjs";import { fileURLToPath } from "node:url";import path from "node:path";import { SERVICES, installStub } from "./stub.mjs";diff --git a/.uiverify/sizes.mjs b/.uiverify/sizes.mjsindex a6d1d72..1bb32e3 100644--- a/.uiverify/sizes.mjs+++ b/.uiverify/sizes.mjs@@ -5,7 +5,7 @@// Screens break at the sizes nobody looked at — the half-screen window, the small laptop —// so each is opened at a small, an ordinary and a very large size, and in Calendar each of// its four views too.-import { chromium } from "playwright";+import { engine as chromium } from "./engine.mjs";import { SERVICES, installStub } from "./stub.mjs";const SIZES = [diff --git a/.uiverify/webkit-libs.sh b/.uiverify/webkit-libs.shnew file mode 100755index 0000000..51568a1--- /dev/null+++ b/.uiverify/webkit-libs.sh@@ -0,0 +1,37 @@+#!/usr/bin/env bash+# Give Playwright's WebKit the libraries it expects, without root.+#+# Quince draws in WebKitGTK, so the browser checks have to run in WebKit, not only Chromium:+# the two differ in exactly the places bugs hide (pointer capture, blur on removal, fonts).+# Playwright builds its WebKit on Ubuntu and links a few libraries by Ubuntu's names and+# versions; this fetches those into ~/.local/share/quince-webkit-libs and links them into+# Playwright's own library folder, which its launcher puts first. Safe to run repeatedly.+set -euo pipefail+L="$HOME/.local/share/quince-webkit-libs"+PW="$(ls -d "$HOME"/.cache/ms-playwright/webkit-*/ 2>/dev/null | sort | tail -1)"+[ -n "$PW" ] || { echo "Playwright WebKit is not installed (npx playwright install webkit)"; exit 1; }+mkdir -p "$L"/{pkgs,deb,icu74,icu75,arch}++fetch() { [ -f "$L/pkgs/$(basename "$1")" ] || curl -sfL -o "$L/pkgs/$(basename "$1")" "$1"; }+fetch https://archive.archlinux.org/packages/i/icu/icu-74.2-1-x86_64.pkg.tar.zst+fetch https://archive.archlinux.org/packages/i/icu/icu-75.1-2-x86_64.pkg.tar.zst+fetch https://archive.archlinux.org/packages/l/libxml2/libxml2-2.13.5-2-x86_64.pkg.tar.zst+fetch https://geo.mirror.pkgbuild.com/extra/os/x86_64/libbacktrace-1.0.git1-1-x86_64.pkg.tar.zst+fetch http://archive.ubuntu.com/ubuntu/pool/universe/f/flite/libflite1_2.2-6build3_amd64.deb++tar --zstd -xf "$L/pkgs/icu-74.2-1-x86_64.pkg.tar.zst" -C "$L/icu74"+tar --zstd -xf "$L/pkgs/icu-75.1-2-x86_64.pkg.tar.zst" -C "$L/icu75"+tar --zstd -xf "$L/pkgs/libxml2-2.13.5-2-x86_64.pkg.tar.zst" -C "$L/arch"+tar --zstd -xf "$L/pkgs/libbacktrace-1.0.git1-1-x86_64.pkg.tar.zst" -C "$L/arch"+( cd "$L/deb" && ar x "$L/pkgs/libflite1_2.2-6build3_amd64.deb" && tar -xf data.tar.* )++for port in minibrowser-wpe minibrowser-gtk; do+ dest="$PW/$port/sys/lib"+ mkdir -p "$dest"+ for f in "$L"/icu74/usr/lib/libicu*.so.74 "$L"/icu75/usr/lib/libicu*.so.75 \+ "$L"/arch/usr/lib/libxml2.so.2 "$L"/arch/usr/lib/libbacktrace.so.0 \+ "$L"/deb/usr/lib/x86_64-linux-gnu/libflite*.so.1; do+ [ -e "$f" ] && ln -sf "$f" "$dest/$(basename "$f")"+ done+done+echo "WebKit libraries ready in $L"diff --git a/check.sh b/check.shindex f8268d5..a2ce85a 100755--- a/check.sh+++ b/check.sh@@ -39,6 +39,17 @@ step "uploading" node .uiverify/drive-upload.mjsstep "calendar grids" node .uiverify/calendar.mjsstep "every size" node .uiverify/sizes.mjs+# The same screens in WebKit, the engine Quince draws in. Chromium above catches most things;+# this catches what only WebKit does — pointer capture, blur on removal, its own layout.+export PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS=1+step "webkit: set up" .uiverify/webkit-libs.sh+step "webkit: nav" env ENGINE=webkit node .uiverify/assert.mjs+step "webkit: keyboard" env ENGINE=webkit node .uiverify/keyboard.mjs+step "webkit: notes" bash -c 'ENGINE=webkit node .uiverify/notes-compose.mjs && ENGINE=webkit node .uiverify/notes-trash.mjs'+step "webkit: drive" env ENGINE=webkit node .uiverify/drive-upload.mjs+step "webkit: calendar" env ENGINE=webkit node .uiverify/calendar.mjs+step "webkit: sizes" env ENGINE=webkit node .uiverify/sizes.mjs+printf '\n'if [ "$fail" -eq 0 ]; then printf '\033[32mAll checks passed.\033[0m\n'; else printf '\033[31mSome checks failed.\033[0m\n'; fiexit "$fail"