Commit Graph
437 Commits
Author SHA1 Message Date
Dylan M. Taylor d95c6a91d4 ci,packaging: roll out nightly signing, macOS docs layout, and profile reopen fix (#2709) 2026-11-28 11:50:56 -05:00
bflatastic c3e87801b8 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/file-format-parity.md
2026-11-28 20:28:50 +07:00
BFlat f316a32c59 Merge pull request #2704 from brytoncooper/feat/web-host-confirmed-saves-2366
figcraft-web: opt-in confirmed saves for host mode (#2366)
2026-11-28 19:47:36 +07:00
BFlat 719592b5d1 Merge pull request #2700 from storytold/fix/1110-control-slots-and-budget
Control channel: an idle connection gives up its slot, and request lines share one memory budget (#1110, #1111)
2026-11-28 19:46:10 +07:00
bflatastic 1a69b61a22 Control channel: use try_update, fetch_update's new name 2026-11-28 19:00:17 +07:00
Bryton CooperandClaude Opus 5.5 927408fe16 figcraft-web: confirmed saves for hosts that opt in (#2366)
A host page that opts in with `?save=managed` (or `data-save="managed"`
on the canvas) now gets each Save and Save As of the document with an
`id` (`save-1`, `save-2`, ...), and the document keeps its unsaved
changes until the host answers `figcraft:saved` with that `id`. Hosts
that don't opt in see no change: a file still counts as saved once it is
posted.

- `host_saves.rs`: the bookkeeping, apart from the browser so it is
  tested natively. One save waits at a time; a newer one replaces it;
  answers for any other `id` are ignored; a file the host opens forgets
  the waiting save; a save unanswered after 30 s counts as not stored
  (the clock is passed in). A Save As becomes the document's file only
  once confirmed, so a retry after a failure is still `saveAs: true`.
- `host.rs`: the listener only queues what the host sent; the shell
  handles it in order each frame. Exports and copies carry no `id` and
  `saveAs: false`. A timeout tells the user and posts `figcraft:failed`
  with the `id`, and the app wakes itself for it.
- ui-egui: `Services::deliver_document` hands the document's own file
  over (its default is `download`, so desktop and plain browser saves
  are unchanged). `Delivery::Pending` skips `file.markSaved`;
  `FigApp::document_stored` and `document_not_stored` finish the save.
- engine: `FileSnapshot::delivered` marks the snapshot's tab saved as of
  the snapshot, so edits made while the save was in flight stay unsaved,
  and a tab closed or saved since is left alone. It shares its tail with
  `FileSnapshot::save`.

`craft-web-host` at the pinned rev has no host-to-app refusal message
and no `host {confirmsSaves}` handshake (storytold/craft-libs#1338), so
a host's refusal shows as the timeout until the crate adds them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 04:59:42 -07:00
Bryton CooperandClaude Opus 5.5 96a2067684 figcraft-cli: --strict on export, convert and run; .fig fill outline per winding rule (#2384)
`export`, `convert` and `run --out` take `--strict`. When the .fig,
.penpot or Android Vector Drawable writer reports anything left out or
changed, nothing is written or replaced and the command exits 1 with the
reasons on the error line. A folder of drawables is written only once
none of its files leaves anything out. `--strict` with an output whose
writer reports nothing (png, svg, pdf, ...) or with `--vd-compat ignore`
is a usage error (exit 2), so it never passes without checking anything.
A .figcraft output is accepted for convert and run: it keeps everything.

.fig export writes a vector whose filled areas use both winding rules as
one fillGeometry path per rule, so other readers fill each area as the
network does. The warning that the outline used the first area's rule is
gone.

Image adjustments, list spacing, hanging punctuation and lists, and
vertical trim were already written on main. OpenType features,
variables' publishing, code syntax and inheritance settings, prototype
device settings and text styles on part of a text keep their warnings:
the .fig import (craft_fig's mapping at the pinned craft-libs rev) does
not read them back, so they cannot round-trip yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 04:37:07 -07:00
bflatastic 6b3c4c2bf4 Control channel: idle connections give up their slot; request lines share one memory budget (#1110, #1111)
With all 8 connection slots taken, a new client now takes the slot of
the connection that has waited longest for its client; a connection
whose request the app is running keeps its slot. Request lines are
counted as they arrive against 64 MiB shared by all connections until
they are answered, so eight clients can no longer make the app hold
eight 32 MiB lines and their parsed trees.
2026-11-28 18:19:02 +07:00
BFlat aaed433ddd Merge pull request #2587 from storytold/formats/penpot-craft-zip-9-8-2
Read Penpot archives through craft-zip
2026-11-28 18:09:43 +07:00
BFlat 350ee9f728 Merge pull request #2688 from brytoncooper/fix/win-wgl-hang-2264
M1: Windows doesn't start OpenGL beside Direct3D 12 (#2264)
2026-11-28 17:53:05 +07:00
bflatastic 2cd906ddd8 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/format/Cargo.toml
2026-11-28 17:32:22 +07:00
Bryton CooperandClaude Opus 5.5 b33b75275c M9: open a full snapshot without copying it first (#2041)
Replica::from_snapshot borrowed the changes and cloned the whole
Vec<Change> before applying it, because the review-settings clamp
rewrites some of them in place. Every caller already owns the snapshot
(Client::join, the rejoin path, Server::restore), so it now takes the
Vec by value: a large file's snapshot is no longer copied and then
dropped twice on the way in. The server's publish path still borrows
and copies explicitly.

In a wasm32 build joining a 120k-layer file through the full-snapshot
catch-up (what an older server sends), this cut peak memory from 722 MiB
to 455 MiB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 02:54:44 -07:00
Bryton CooperandClaude Opus 5.5 71d9f20c31 M1, #2264: Windows doesn't start OpenGL beside Direct3D 12
Switching the input language on Windows (Alt+Shift or Win+Space to a
Russian layout) or typing in it hung the app. A Windows start offered
wgpu Direct3D 12 and OpenGL together, and wgpu's OpenGL backend makes a
hidden window on a thread that handles no window messages as soon as its
instance exists, even when Direct3D 12 draws. Windows hands the language
change to every thread with a window, so the main window waited on that
hidden one. The reporter confirmed WGPU_BACKEND=dx12 avoids it.

A Windows start now offers Direct3D 12 alone. Vulkan and OpenGL stay as
restarts after a failed start, each on its own, and OpenGL with lower
limits is added last so the old lowered Direct3D 12 + OpenGL attempt's
reach is kept. A GPU with no Direct3D 12 driver (Intel Haswell, which
wgpu leaves out of Direct3D 12, and older GPUs) now draws on Direct3D
12's software adapter instead of its OpenGL driver.

Not run on Windows; the attempt list is tested.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 02:28:33 -07:00
BFlat dbe9eeb1bd Merge pull request #2607 from Utakata/feat/open-camera-raw
format: open camera raw files as their developed picture
2026-11-28 15:06:51 +07:00
FredApps f278b428cb Merge branch 'main' into feat/automation-allow-server-join
main moved figcraft-cli to RFC-0018 (#2645): main.rs is a thin wrapper and the
dispatch lives in lib.rs, so mcp_roots, the --automation-allow-server handling
and its test move there; headless mcp is checked before the fonts are scanned.
2026-11-28 08:01:38 +01:00
FredApps b6469cd439 Merge branch 'main' into formats/penpot-craft-zip-9-8-2 2026-11-28 07:46:25 +01:00
FredApps 4561b31166 Merge branch 'main' into feat/open-camera-raw
main's craft-libs pin (8fa4db64) already contains 249a41bd, so the pins stay at
main's and the camera raw crates are added at that same rev.
2026-11-28 07:46:25 +01:00
BFlat 4e83051359 Merge pull request #2643 from mikaelweiss/shared-branches
M10: sync shared branches across live sessions
2026-11-27 15:49:48 +07:00
bflatastic 5a8dcb867e Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	ROADMAP.md
2026-11-27 15:46:21 +07:00
bflatastic 0db8a4a9ba Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	ROADMAP.md
2026-11-27 15:45:32 +07:00
bflatastic b29d481ee4 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	ROADMAP.md
2026-11-27 15:44:32 +07:00
bflatastic 163800516f Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/collab/src/message.rs
#	crates/collab/src/server.rs
2026-11-27 15:21:59 +07:00
bflatastic 43b632c32b Merge remote-tracking branch 'origin/main' into HEAD 2026-11-27 15:21:54 +07:00
bflatastic 96e1dc922a Merge remote-tracking branch 'origin/main' into HEAD 2026-11-27 15:21:45 +07:00
bflatastic 86f1544c7b Merge remote-tracking branch 'origin/main' into HEAD 2026-11-27 15:21:36 +07:00
bflatastic 559d1e1650 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	ROADMAP.md
2026-11-27 15:21:28 +07:00
bflatastic 1c5f6f60d0 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:40:03 +07:00
bflatastic fbbe425064 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	ROADMAP.md
2026-11-27 14:26:01 +07:00
bflatastic 3cac6c5051 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	ROADMAP.md
2026-11-27 14:25:45 +07:00
bflatastic 11cbd37bf0 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	ROADMAP.md
2026-11-27 14:25:26 +07:00
bflatastic 0c844978e4 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	ROADMAP.md
2026-11-27 14:25:11 +07:00
BFlat 6f8e98054b Merge pull request #2626 from daplo/fix/macos-screenshot-paste
fix(macos): paste the image file copied in Finder
2026-11-27 14:10:19 +07:00
bflatastic 3590abc9ff Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:06:34 +07:00
Mikael Weiss 3220a094b0 fix: reconcile shared branch edits, rejections, and reconnects 2026-11-27 00:05:35 -07:00
FredApps 3b9bf7ffb5 figcraft-cli: test perf, plugin publish --key and mcp --attach failures in-process 2026-11-26 23:05:03 +01:00
FredApps 8d50b20c64 figcraft-cli: follow RFC-0018 (run(args,out,err), typed errors, env flags, --in-place, man pages and completions) 2026-11-26 22:34:19 +01:00
Mikael Weiss c9ae173585 fix: harden shared branch sync and add tests and docs 2026-11-26 05:22:47 -07:00
Mikael Weiss ff4a7bf926 Merge remote-tracking branch 'upstream/main' into shared-branches 2026-11-26 04:53:41 -07:00
skylar taylor-barrick f8927bb266 Nightly: stop blocking a refused launch on macOS (#2638)
Nightly launch fix under Skylar's Exec 454: the Launcher's trailing `--` no longer reaches the file list where that applied, and a refused launch no longer blocks on macOS (the reason goes to stderr and the app exits 2).
2026-11-26 00:46:40 -06:00
Mikael Weiss 51229dce95 feat: sync shared branches across live sessions 2026-11-25 16:39:53 -07:00
aiongg 28508386a7 Repin craft-libs to storytold next 8fa4db64a9 and egui to b9770908e 2026-11-25 19:15:34 +00:00
aiongg d85ac773a2 Repin craft-libs to storytold next aa401985d 2026-11-25 15:50:38 +00:00
daplo c93f5e36ad fix(macos): paste the image file copied in Finder 2026-11-25 15:39:23 +01:00
aiongg e1b9366831 Repin craft-libs to storytold next d1bdf8e5da 2026-11-25 13:53:48 +00:00
aiongg 4df035f596 Merge main into the minimal port
Conflicts: crates/ui-egui/src/dialogs/updates_ui.rs (main's optional updater for the Nightly, applied to the port's DialogHost update flow: tick and show skip when there is no updater).
2026-11-25 06:35:58 +00:00
aiongg 45856da3b9 Repin craft-libs to storytold next 16001e7210 and egui to storytold b15ffe9bfc 2026-11-25 06:31:16 +00:00
Dylan M. Taylor ef2a9eeefc packaging(linux): support co-installable nightly packages (#2603)
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch.

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-24 18:55:17 -06:00
Denis Gomes 09553289ba Desktop: load the preferences before opening the files named on the command line
The files named on the command line opened before the preferences were
read, so file.open saw no kept views: such a file opened fitted instead
of where it was left. It also put the file at the top of the recent
files, and the preferences read just after replaced that list.
2026-11-24 18:59:18 -05:00
aiongg 77a4c9480a Repin craft-libs; IME click test reads the runtime's reset request; whole-point number label wrap 2026-11-24 21:05:39 +00:00
UtakataandClaude Opus 5.5 90d2d92430 format: open camera raw files as their developed picture
RW2, CR2, CR3, NEF, ARW, RAF, ORF, DNG and the other containers craft-raw
decodes now open, import, place and fill shapes. add_image develops a raw
once with craft-develop's stages (AHD demosaic, highlight rebuild, as-shot
white balance and colour matrices, neutral tone curve, sRGB, orientation)
and the document keeps the picture as a quality 95 JPEG, so every way an
image comes in takes raws. file.open and the Open, Import, Place and image
fill dialogs know the raw extensions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 04:34:49 +09:00