Commit Graph
284 Commits
Author SHA1 Message Date
Codex 051c07ed61 Format startup launch construction 2026-11-30 13:13:59 +01:00
Codex 90a460cc7d Record timed startup stages through the first UI frame and preserve explicit renderer overrides 2026-11-30 13:13:31 +01:00
austin62jakeandClaude Opus 5.5 a6d31b9100 M3: an OpenGL adapter comes after another adapter of its vendor, before kinds are compared (#4134)
wgpu's OpenGL adapter has no device id and guesses its kind from its
strings: every Intel GPU is "integrated". With no display known (Remote
Desktop), an Intel discrete GPU's OpenGL adapter therefore outranked its own
Direct3D 12 adapter, was declined, and the app fell back to glow although
Direct3D 12 worked (CodeRabbit). An OpenGL adapter now comes after any
other adapter of the same vendor, matched by vendor since OpenGL has no
device id, before kinds are compared. An OpenGL-only GPU still beats the
software adapter, whose vendor is Microsoft.

The test now models wgpu's OpenGL adapters as wgpu reports them: the
vendor's id, device 0 and the guessed kind.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-30 13:10:23 +01:00
austin62jakeandClaude Opus 5.5 74566b5d04 M3: of one GPU's adapters, the OpenGL one is picked last, whatever order wgpu lists them in (#4134)
pick_adapter ranked adapters without their backend, so a GPU that wgpu
offers through both Direct3D 12 and OpenGL got its Direct3D 12 adapter
only because wgpu lists it first. The backend is now the last part of the
ranking. An OpenGL-only GPU still beats the software adapter by kind, and
the selector then declines it so that glow starts on that GPU.

The test covers Direct3D 12, Vulkan, OpenGL and software adapters, in
both orders and with no display known (FredApps' review).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-30 13:10:23 +01:00
austin62jakeandClaude Opus 5.5 54e4e522d4 M3: the adapter selector runs on Windows even when no display names its GPU (#4134)
The selector, which now declines wgpu's OpenGL backend, was only
installed when a display's GPU was found by its PCI ids. A display that
has none, such as Remote Desktop's, left wgpu's own choice in charge,
and that could still pick an OpenGL-only GPU. It now runs on Windows
always; with no display known, pick_adapter ranks adapters by kind, most
frugal first, as wgpu's low-power choice does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-30 13:10:23 +01:00
austin62jakeandClaude Opus 5.5 89b477ae67 M3: on Windows, a GPU wgpu can only reach through OpenGL draws with eframe's OpenGL renderer (#4134)
An Intel HD 2500 or 4000 (Ivy Bridge) has no Direct3D 12 driver, so wgpu
picks its OpenGL backend. That backend fails in Surface::configure a few
seconds after the window opens ("Failed to wait for GPU to come idle"),
after the start-up retry with OpenGL can help, so the app closed with a
white window (#519, #4134, #5553). eframe's own OpenGL renderer works on
the same GPUs, which is the PDFCRAFT_RENDERER=gl workaround.

The adapter selector now declines an adapter on wgpu's OpenGL backend on
Windows, unless WGPU_BACKEND asked for it, so the existing start-up retry
draws with eframe's OpenGL renderer instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-30 13:10:23 +01:00
Dylan M. Taylor 4ef8250943 feat(pdfcraft): wire craft-nightly for self-isolated nightly launches (#8669)
* feat(pdfcraft): wire craft-nightly for self-isolated nightly launches

* fix(nightly): preserve version probes and app startup behavior

* fix(nightly): bump craft-nightly for single-instance sockets and add regression tests

* test(nightly): preserve app profile preparation behavior
2026-11-29 15:58:04 -05:00
Dylan M. Taylor 8a5468e6eb fix(pdfcraft): pass None to socket_path() in Windows unit test (#8657) 2026-11-29 03:25:25 -05:00
Dylan M. Taylor be459f88d3 feat(nightly): onboard PdfCraft to signed two-stage nightly releases (#8643)
* feat(nightly): onboard PdfCraft to signed two-stage nightly releases

* chore: update Cargo.lock for rfd dependency in pdfcraft app

* chore: retrigger CI checks

* fix(nightly): enable Linux package_formats (including Flatpak) in signing policy

* fix(nightly): fix unused import, attribute nightly icons, and wire -Nightly/-BuildOnly in package.ps1

* test(nightly): exclude packaging/** from coverage and add nightly bootstrap unit tests
2026-11-29 01:09:39 -05:00
FredApps 1c404e5238 Merge main into fix/macos-finder-open 2026-11-28 22:50:20 +01:00
Yuri GanugiandClaude Opus 5.5 da46aa2d02 macOS: files opened from the Finder, Open With or the Dock open again (#8491)
The port (#8160) dropped the result of AppleEvents::connect, the function that drains the Apple-event inbox into the file intake, so 'odoc' and quit events were never delivered. PdfCraftApp keeps it again as os_events, as in v0.22.0, and each frame's logic calls it before it opens the intake. Found by MarcGoudy (#8443).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 22:37:33 +01:00
FredApps 4733f25e1f Merge main into the main repair branch 2026-11-26 20:52:46 +07:00
FredApps 9b6e2a1660 Merge branch 'main' into fix/startup-activation-token 2026-11-26 13:22:30 +01:00
FredApps 9aee13f183 Merge #8180 into the main repair branch 2026-11-26 19:12:26 +07:00
Dylan M. Taylor c55c9ca155 Use the native private token writer in the CLI fixture 2026-11-24 06:20:31 -05:00
Dylan M. Taylor 5ea0f16556 fix: propagate PDFCraft locale to shared UI 2026-11-23 20:48:56 -05:00
Dylan M. Taylor 940c2b6b8f CI: clippy clean on all targets; fix the Windows print dialog build
After the craft framework port (#8160):
- Test modules gated by cfg(all(test, not(wasm32))) weren't recognised as tests by
  clippy, so their expect/panic calls counted as production code; gate them with
  cfg(test) and cfg(not(wasm32)) separately.
- Remove dead test helpers, restore the Windows manifest tests the port dropped,
  and fix the remaining lints (redundant clones and casts, unused imports).
- Page Setup on Windows called a main_window_handle() that doesn't exist; parent the
  driver dialog to the active window again, as before the port.
2026-11-23 16:07:08 -05:00
Dylan M. Taylor cf53c79625 Resolve the craft framework from https://github.com/storytold/craft-libs next at 0a6e42b80bfd586aee6ee1144aa98cf1ea37a844
Every framework path dependency and patch is now a git dependency at that revision.
Cargo.lock is regenerated against it separately.
2026-11-23 13:32:32 -05:00
Dylan M. Taylor df0f36ea67 prod merge: the web build compiles again: craft's dialogs feature (rfd panels, threads) is native only; the web saves through the platform BrowserFiles (Files::save: the browser's save picker or a download), with its own SaveTarget; native-only uses gated (window/dock tables, control server, RecoveryStore, reload watch, legacy app.ron, reveal); a web clipboard over EventClipboard; web OCR and print wake through Wake instead of the removed ctx field; pdfcraft-web takes a ControlChannel and protocol::REPLY_DEADLINE 2026-11-23 08:17:34 -05:00
Dylan M. Taylor d0e9ba10c5 prod merge: re-pin every craft-libs entry to the synced framework (f9d38c866, pushed pdfcraft-port head; incl. craft-pkcs7, craft-html, craft-xfa, craft-xfdf, craft-web-api/web-host, preflight's craft-cms), patch craft-font-catalog, craft-xfa and craft-xfdf to it as well (one craft-font-catalog in the lock), one lock resolve, regenerate ATTRIBUTION.md 2026-11-23 08:17:33 -05:00
Dylan M. Taylor 2288f7a37c prod merge: the web build's file service saves to an embedding page first (page_saves) 2026-11-23 01:49:16 -05:00
Dylan M. Taylor cca41815d9 prod merge: clippy clean (dead code from the port and the merge removed or test-only, whole-document text copies drained each pass, native menu frame wired, deprecated egui ids, codemod's doubled ctx parameters, type aliases) 2026-11-23 01:46:21 -05:00
Dylan M. Taylor 3404bf4ac7 port sync: the web build takes the platform browser file service (L-313, L-317) 2026-11-22 23:18:14 -05:00
Dylan M. Taylor b86eff8259 merge deps: union workspace deps at the port pin (wordmodel, mcp-server, jsonrpc; craft-pdf fonts; 0.22.0), hayro/framework patch paths, shared AGENTS.md with port facts, comment wording, port Cargo.lock restored. The lead re-pins craft-libs after the framework sync. 2026-11-22 22:50:16 -05:00
Dylan M. Taylor 333b287a8b Production merge skeleton: upstream/main 9b3e6d6f3 into area/app-1 6cfe35235, conflict markers left in (42 files; 4 modify/delete keep the port's deletion) 2026-11-22 22:39:00 -05:00
aiongg 3f3b3e634a Adopt the shared AGENTS.md (RFC-0072) (#7937)
* Adopt the shared AGENTS.md (RFC-0072) and test rules (RFC-0071)

* Point removed AGENTS.md section references at the shared standards
2026-11-20 18:10:17 +07:00
skylar taylor-barrickandDylan M. Taylor 20830d092c Route PDF parsing and rendering through shared craft-pdf (#2068)
* refactor(render): route PDF reading and rendering through shared craft-pdf (storytold/craft-libs#778)

* fix(render): convert u32 raster dimensions to usize for Pixels::zeroed

* fix(render): remove unused hayro_syntax imports in inspect

* fix(render): let shared raster dimensions reject rounded over-budget sizes before allocation

* chore(pdf): repin craft-libs to #2497 and align tests with shared contract

* fix(render): align remaining 8 tests and OutputLimit error with craft-libs contract

* docs(attribution): update ATTRIBUTION.md for shared hayro* dependencies

* docs(attribution): include adobe_data suffix for hayro-cmap in ATTRIBUTION.md

* docs(attribution): sync ATTRIBUTION.md with cargo xtask assets --write

* docs(licenses): update NOTICE hash and hayro-interpret asset licences in LICENSES.toml

---------

Co-authored-by: Dylan M. Taylor <[email protected]>
2026-11-20 02:53:23 -05:00
Dylan M. Taylor fd7c19ec69 red8 g3: app red round 8 fixes 2026-11-19 14:38:58 -05:00
Dylan M. Taylor 219abc1a58 App red round 7 g2: fixes and wiring from the g2 fixer 2026-11-19 12:26:12 -05:00
Dylan M. Taylor df8c2d54be app red 5 (g5) (swarm/red5); committed by the lead 2026-11-18 23:06:26 -05:00
Dylan M. Taylor d9ac7bfeff lead: every kittest harness creator installs the runtime first (L-227; tools-lead/harness-install-codemod.py, 361 creators) 2026-11-18 19:46:37 -05:00
Dylan M. Taylor b1f4af2974 L-227: the app creator installs the framework runtime (native and web) with the startup language's fonts; test install helpers (rfix1). L-228: fonts_ready goes; a language change installs its fonts (lead) 2026-11-18 19:46:08 -05:00
Dylan M. Taylor 5526134502 lead: the workspace compiles with its tests. main.rs: claim without the assumed portable flag, title bar from settings.layout, the app opens and attaches its settings store (attach_settings, owed by pdf-shell-w9), control channel, ctx (L-208); q221: redact_props pub (pdf-forms-w13 row 63), comments::thread_id pub, the grid test reads its texture bytes; PastePlacement pub (its field is) 2026-11-18 19:25:13 -05:00
Dylan M. Taylor c07c6954e7 test compile fix 2 (all) (swarm/tfix2); committed by the lead 2026-11-18 19:22:11 -05:00
Dylan M. Taylor 79477f3909 Point hayro-postscript to storytold/craft-libs (storytold/craft-libs#790) (#7828) 2026-11-18 19:08:53 -05:00
Dylan M. Taylor 3aa7560526 test compile fix 1 (t-rest) (swarm/tfix1); committed by the lead 2026-11-18 19:04:13 -05:00
Dylan M. Taylor da17275b5e lead: tests through the codemods (L-171 873 moves, L-219 ctx, E0615 method calls), standalone test crates build their own app, main/app_creator keep their signatures, automation's craft dependency, canvas borrow order 2026-11-18 18:49:55 -05:00
Dylan M. Taylor 8c2b2e07a5 lead at combine (app-1): R-1 mod lines for 20 set files and tests/it/optimize; L-168 codemod (498 new() calls: control::new_app, for_unit_tests, startup::test_app); L-208 codemod (AppHarness execute/set_option, 786 bare calls with a fresh Context); 85 icon documents restored from the base (chrome-w19's PLAN) 2026-11-18 16:21:48 -05:00
Dylan M. Taylor 01daa58e2d pdf-hub-w1: net change of 2 commits
- pdf-hub-w1: written (committed by the lead: the run's own commit failed while gpg was locked after a reboot)
- pdf-hub-w1: review fixes (review-1)
2026-11-18 16:15:28 -05:00
Dylan M. Taylor 1620fd1a6c pdf-shell-w14: net change of 4 commits
- pdf-shell-w14: written by an agent
- pdf-shell-w14: finished by an agent
- pdf-shell-w14: finished by an agent
- pdf-shell-w14: review fixes (review-1)
2026-11-18 16:15:24 -05:00
Dylan M. Taylor cb94bfbaa0 pdf-shell-w12: net change of 2 commits
- pdf-shell-w12: written by an agent
- pdf-shell-w12: finished by an agent
2026-11-18 16:15:24 -05:00
Dylan M. Taylor 62d0833728 pdf-shell-w6: net change of 2 commits
- pdf-shell-w6: written by an agent
- pdf-shell-w6: review fixes (review-1)
2026-11-18 16:15:24 -05:00
Dylan M. Taylor 18074b1bc4 owed by pdf-hub-w1/pdf-shell-w6: facade features text, text-font-picker, font-manager, platform-clipboard, update, theme-store, imaging; ui-testing for tests; craft on both app binaries (L-207, q199) 2026-11-18 15:17:04 -05:00
Dylan M. Taylor 6b47294aec Pin craft-libs to next at 527c2750e 2026-11-17 09:04:25 -05:00
bmh129 63e821e3e3 M3: release the launcher's activation token when the first window fails before handing it back
The first window used to spend the launcher's token as soon as it was chosen.
On X11, `UnownedWindow::new` can return an error before it reaches
`remove_activation_token`, so a retry got no token and the launcher's busy
cursor stayed until its timeout (CodeRabbit on #3972).

The token is now reserved while the window is built. Each backend marks it
spent just before handing it back (Wayland `xdg_activation.activate`, X11
`remove_activation_token`), a created window commits it, and a window that
fails earlier releases it for the next one. A window created while the token
is held neither takes nor releases it.
2026-11-16 21:17:05 -06:00
bmh129 4e634e4b01 M3: hand the launcher's activation token back from the first window (Linux)
A launcher with StartupNotify=true passes an activation token in
XDG_ACTIVATION_TOKEN (Wayland) or DESKTOP_STARTUP_ID (X11) and shows a
busy cursor until a window hands it back. winit hands back only a token
given through with_activation_token, and eframe never gives one, so GNOME
kept the busy cursor for 15 seconds after PdfCraft's window appeared, and
a Wayland window opened without keyboard focus.

Vendored winit patch 14: the first window created without a token takes
the environment's. Later windows don't reuse the spent token; an empty or
oversized (over 1,024 bytes) token is ignored, since on X11 an oversized
one would fail window creation. The variable stays in the environment:
removing it while other threads may read it is unsound.

Tests: startup_token's policy tests in the vendored crate (three fail with
the policy reverted) and apps/pdfcraft/tests/winit_startup_token.rs, which
keeps the patch in the build (fails with the Window::new wiring reverted).
2026-11-16 21:16:47 -06:00
FredApps 3d43364928 fix(crypt): write RC4 fixtures through the legacy entry points
Pinning craft-pdf to the #1852 merge SHA also picked up d74e60b2, which
makes create() and set_encryption() refuse RC4-40 and RC4-128. Tests,
helpers and the protect example that still write those schemes now use
create_legacy and set_encryption_legacy. Edit::Protect does the same
when the chosen algorithm is legacy, so a file that must stay readable
by a reader without AES can still be written.
2026-11-16 14:11:36 +01:00
Dylan M. Taylor eead454105 Cut over remaining codecs, xfa XML, and export packaging to craft-libs (#7326)
* chore: cut over image, png, tiff, and zune-jpeg to craft-image-codecs

* chore: cut over xfa XML parsing from roxmltree to craft-xml

* chore: cut over export DOCX and PPTX packaging to craft-opc and craft-xml

* style: cargo fmt
2026-11-14 13:49:46 -05:00
FredApps e6730be289 test: scope CPU override regressions to supported platforms 2026-11-13 14:08:57 +01:00
FredApps 5a53828c70 fix(startup): detect aws-lc's CPU features at start, as before 2026-11-12 19:39:12 +01:00