Commit Graph
7946 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
FredApps 0a19169a48 Merge pull request #8796 from storytold/chore/pdfcraft-0231-version
Release: PdfCraft v0.23.1
2026-11-30 11:55:07 +01:00
Codex 4dfcd89abb Release: PdfCraft v0.23.1 2026-11-30 11:53:13 +01:00
FredApps 30cc3861ba Merge pull request #8791 from benandez/fix/msi-assoc-notify-no-powershell
fix(installer): drop the PowerShell association-notify action Defender blocks
2026-11-30 11:51:18 +01:00
Martin BallandClaude Opus 5.5 332544fa07 fix(installer): drop the PowerShell association-notify action Defender blocks
#1080 ran a hidden PowerShell after install and uninstall that P/Invoked
shell32 SHChangeNotify(SHCNE_ASSOCCHANGED). Microsoft Defender flags that
pattern as a malicious command line and shows the user a security alert
(reported on v0.23.0). Remove the custom action; test-msi.ps1 now fails if
any custom action runs PowerShell.

Trade-off: Explorer's cached "Open with" list may miss PdfCraft until
sign-out after a fresh install, as before #1080.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-30 09:59:20 +00:00
FredApps b928060f8e Merge pull request #8632 from storytold/fix/macos-ui-tests
test(ui): run the UI tests on one shell on every machine; in-window menus follow the shell (#8630)
2026-11-30 10:17:07 +01:00
Codex b7ac143e7c test(control): close the inline console before inspecting compare 2026-11-30 08:44:19 +01:00
Codex 9ddaae3fae test(ui): share the default app fixture across harnesses 2026-11-30 06:01:27 +01:00
Codex 0d4597ec5c test: pass the host OS type to shell fixture 2026-11-30 05:06:45 +01:00
FredApps fa7b55f41a Merge pull request #8760 from storytold/ci/pdfcraft-standard-macos-release
ci: use standard macOS runner for release builds
2026-11-30 04:06:26 +01:00
Codex e437e20eaf Align control input OS and isolate translated dialog checks 2026-11-30 03:43:15 +01:00
FredApps cc0c1c78d8 Merge pull request #8625 from storytold/bump/pdfcraft-v0.23.0
Release: PdfCraft v0.23.0
2026-11-30 03:16:49 +01:00
Codex 6caa67dbbd ci: use the standard macOS runner for PdfCraft releases 2026-11-30 03:15:47 +01:00
Codex 34fdd242ad Keep macOS validation gestures and shortcuts on the test shell 2026-11-30 03:13:12 +01:00
Codex 91a1ce172a Reconcile macOS validation fix with merged palette behavior 2026-11-30 03:12:19 +01:00
Dylan M. Taylor 984a6dd3db nightly: enable 08:00 UTC schedule and automatic signer dispatch (#8680) 2026-11-29 17:41:47 -05: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
v0.22.0-nightly.20261129.46309458214.1.g4ef8250943f1
2026-11-29 15:58:04 -05:00
Dylan M. Taylor 566a53a857 ci(sonarcloud): give each main commit its own concurrency group (#8678) 2026-11-29 15:57:59 -05:00
Dylan M. Taylor a54bd301d3 chore(security): update curve25519-dalek to 5.1.0 (RUSTSEC-2026-0620) (#8671) 2026-11-29 12:52:32 -05:00
Harsh Verma 4b3d7429f3 Text Select Menu now uses Icons instead of text options (#8085)
* feat(ui): use compact icon buttons for text selection actions menu

* fix(ui): open text selection action menu at the end of selected text

* fix(ui): suppress text selection context menu when using comment box

* fix(ui): preserve selection toolbar on button focus and page drags crossing comment box

* test(ui): adjust selection bar viewport containment test for end-anchored icon toolbar

* fix(ui): anchor selection toolbar to drag head on same-page backward multiline selection

* test(ui): update same-page backward assertion in the_selection_bar_sits_where_the_drag_ended

* fix(tests): adapt selection and comment tests to Craft port session structure

* Running CI

* fix(selection): anchor selection bar at endpoint and scope tests to Selection toolbar
2026-11-29 17:31:27 +01:00
Dylan M. Taylor 65eaacb6bf test(ui-egui): wait for background opens in session reopen test (#8667) 2026-11-29 08:10:16 -05:00
tomasmark79andFredApps d3c6bce447 Use canonical Wayland trackpad pinch support in PDFCraft (#1580)
* M3: restore native Wayland pinch through the resolved winit fork

Refresh #1580 on current main, pin the tested companion winit port and keep vendor changes as provenance. Permit only the exact temporary fork revision until storytold/winit#20 is merged. Retain the egui scale regressions and document current validation limits.

* docs: record native pinch verification and keep roadmap quotes contiguous

Document current-head GNOME feedback and protocol evidence, retain untested compositor and teardown limits, and address the MD028 review finding without changing runtime code or dependency-origin policy.

---------

Co-authored-by: FredApps <[email protected]>
2026-11-29 09:35:42 +01: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 1e8fbce219 fix(nightly): keep Linux nightly notices flat and relocate Arch nightly models dir (#8654) 2026-11-29 02:05:41 -05:00
Dylan M. Taylor b385ac0bb2 chore(nightly): pin producer_workflow_id to 434362399 (#8651) 2026-11-29 01:09:55 -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 ec8703ab89 Merge pull request #8623 from storytold/fix/zone-mark-missing-target
fix(platform): don't create a missing file when marking its zone (#8622)
2026-11-29 00:02:09 +01:00
FredApps 376bc99fd1 Merge pull request #8631 from storytold/fix/save-in-place-hint
fix(automation): a refused in-place save says to save a copy with Save As (#8630)
2026-11-28 23:51:42 +01:00
FredApps 8b1730db8e Merge pull request #8489 from codeiou/icon-names-resolve
fix(ui): icon buttons draw their icons again
2026-11-28 23:40:40 +01:00
FredApps a7bb625025 Merge pull request #8492 from icelyfire/fix/macos-finder-open
macOS: files opened from the Finder, Open With or the Dock open again (#8491)
2026-11-28 23:40:33 +01:00
FredApps d1ab463fcf Merge pull request #8485 from codeiou/command-palette-runs
fix(ui): the command palette runs what is picked in it
2026-11-28 23:40:26 +01:00
FredApps 6070f29fda test(ui): run the UI tests on one shell on every machine; in-window menus follow the shell (#8630)
On a Mac runner, 49 ui-egui tests and one perf test failed that pass on
Linux:
- The test runtime took the build machine's shell (ShellInfo::default),
  so a Mac runner had macOS's key table and chords, and ctx.set_os only
  changed egui's OS. support::install_runtime (and perf.rs's copy) now
  pin the shell to Linux with craft's testing set_os. A test of another
  platform still sets it as before.
- The in-window menu bar and the palette laid their menus out for
  Target::current() (the build's OS) instead of the shell's. They now use
  Target::of_shell, which craft-menu documents for a shell on another OS
  than the build's. Production is unchanged: there the shell is the
  build's.
- wheel_frames_build_only_the_pages_in_view scrolls three lines per event
  (one wheel notch), since a line is 40 points on macOS and 100
  elsewhere.

Refs #8630
2026-11-28 22:57:56 +01:00
FredApps 5feb72346e fix(automation): a refused in-place save says to save a copy with Save As (#8630)
When doc_save can't replace the file it was opened from (read-only,
extended attributes it can't keep, a folder that refuses the new file),
the file and the unsaved edit are kept, but since the writer moved into
craft-libs the message no longer said how to keep the work. 0.22.0 said
"save a copy with Save As". An in-place save's refusal now ends with
that again; a save to a new path is unchanged.

Refs #8630
2026-11-28 22:57:45 +01:00
FredApps bfebc15e0b Merge main into icon-names-resolve 2026-11-28 22:50:58 +01:00
FredApps 11a1928207 Merge main into command-palette-runs 2026-11-28 22:50:33 +01:00
FredApps 1c404e5238 Merge main into fix/macos-finder-open 2026-11-28 22:50:20 +01:00
FredApps f7aa5bc1fc Merge pull request #8626 from storytold/fix/macos-build-native-menu
fix(macos): build again, and poll the native menu each frame
2026-11-28 22:38:31 +01:00
FredApps 59f8798200 fix(platform): hold the zone's target open, without delete sharing, until the stream is written
Addresses review: between the existence check and the stream write,
another process could delete or rename the target, and the write would
then recreate it as an empty file. The target is now opened without
FILE_SHARE_DELETE, so it can't be deleted or renamed until the zone is
written, and the check reads that handle's metadata.

Refs #8622
2026-11-28 22:38:02 +01:00
e5812b8f17 Document CRAFT_I18N_DIR in the environment table (#8621)
development.md listed the other build inputs but not CRAFT_I18N_DIR.

Co-authored-by: Fredrik Hallin <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
2026-11-28 21:25:16 +01:00
FredApps 0709c0dc1d fix(macos): build again, and poll the native menu each frame
- app/files.rs called macos_association::repair without the crate::
  path the other callers use. The line only compiles on macOS, so main
  hasn't built there since 2026-11-23 (nightly macOS red, #8595).
- The native menu's events are collected by NativeMenu::poll, and
  nothing called it after the UI port, so the menu bar's clicks and key
  equivalents stayed queued. menus::frame now polls once per frame,
  before set_gate, as craft-menu documents.

Carries the fix from #8166 by @patangay for the v0.23.0 release.

Refs #8595, #8624
Co-authored-by: patangay <[email protected]>
2026-11-28 21:05:52 +01:00
FredApps 7d427d9c6a Release: PdfCraft v0.23.0
Bump the workspace version from 0.22.0 to 0.23.0 (Cargo.toml and
Cargo.lock), as cargo xtask version set 0.23.0 does.

Refs #8624
2026-11-28 21:03:24 +01:00
FredApps 59cd00129c fix(platform): don't create a missing file when marking its zone (#8622)
On NTFS, writing <path>:Zone.Identifier creates <path> when it doesn't
exist. mark_from now returns NotFound for a target that isn't an existing
file, so marking a saved attachment never leaves an empty file behind.
This is what kept the Windows gate red on main: the scripted file service
records the save without touching disk, and the zone mark then created
the destination file.

Fixes #8622
2026-11-28 21:01:23 +01:00
faebae8ad5 Embed craft-fonts by default via .cargo/config.toml [env] (#1655)
CRAFT_FONTS_DIR has to be passed on the command line, so a plain
`cargo build --release` silently produces a CJK-blind binary: build.rs warns
"no craft-fonts embedded: Chinese and Japanese text will render as empty boxes"
and carries on. A build-time requirement that lives only in a warning is one
that gets forgotten and comes back as a bug report about missing glyphs.

relative = true resolves against the repo root rather than hardcoding an
absolute path, on the assumption the warning already makes: that craft-fonts is
cloned beside this repo. No force, so a CRAFT_FONTS_DIR already in the
environment still wins for a one-off build against a different font set. If
craft-fonts is absent, behaviour is unchanged — build.rs warns exactly as now.

This mirrors deckcraft's own config, which already ships this block.

Verified with the variable removed from the environment
(env -u CRAFT_FONTS_DIR cargo build --release): the crate recompiled and the
warning did not appear.

Co-authored-by: Claude Opus 5 <[email protected]>
Co-authored-by: Fredrik Hallin <[email protected]>
2026-11-28 20:11:44 +01:00
FredApps 345b5b67cb Merge pull request #7286 from Combiler01/update/Browser-styled-tabs
ui-egui: add browser-styled tab grouping, pinned tabs & Animations
2026-11-28 17:48:10 +01:00
FredApps a64ecbd2e9 Merge pull request #6992 from Combiler01/FeatDel-confirm-popup
feat(ui): ask before deleting pages (#6872)
2026-11-28 17:06:05 +01:00