Commit Graph
5896 Commits
Author SHA1 Message Date
batistalucasv c0edd96888 craft-html, craft-flow: preserve table structure, colgroup widths and vertical merges (#1785) (#1802)
* craft-html, craft-flow: preserve table structure, colgroup widths and vertical merges (#1785)

* craft-html: address CodeRabbit review feedback on vmerge and colgroups (#1785)

* craft-html: precompute grid column offsets in table export

* craft-html: preserve fully covered rows during table import (#1785)

* craft-html: resolve merge conflict artifacts and unclosed delimiter in tests (#1785)

* craft-flow, craft-html: validate matching spans on vmerge and preserve leading grid columns (#1785)
2026-11-17 21:31:10 -06:00
FredApps e5942cd706 Merge pull request #2150 from FredApps/fix/dex-main-integration
DEX: refresh main without losing safety repair
2026-11-18 10:13:03 +07:00
aiongg 80c7fd661c menu bar and list tests: PC keys on every runner
The in-window menu bar, its Alt, F10 and letter keys, and Ctrl moving only a list's lead are PC behaviour. The fixtures took the host's OS, so the tests failed on macOS runners.
2026-11-18 02:45:07 +00:00
FredApps aa423ded80 docs(xfa): distinguish extracted baseline from later hardening 2026-11-18 03:36:07 +01:00
FredApps bda69991c2 Merge current main while preserving xfa extraction and safety repair 2026-11-18 03:29:36 +01:00
FredApps a7d537d596 Merge current main while preserving dex extraction and safety repair 2026-11-18 03:29:26 +01:00
aiongg 5e56f5c98b icon id scan: only crates that use icon ids
craft-cloud-ui is plain egui: its menu item's icon("..") is a text glyph, not a catalog id.
2026-11-18 02:20:23 +00:00
David Mann 6b16ec2b41 craft-control agents: second review round (#2141)
- The token is passed on as the app wrote it (trimmed): craft-control's
  server compares exactly and accepts any CONTROL_TOKEN of 32+ chars.
  The token file is checked as a regular file before it is opened (a
  FIFO would block the open).
- Allow Agent Control off counts as not allowed on the CLI's side too.
- A window route is dropped once no app accepts agents.
- A headless session with the app's agent folders ends when the person
  stops letting agents in.
- The launch timeout is capped and the deadline computed without
  overflow; the poll interval is kept between 1 ms and 1 s.
- The connect error names the app's window; the guide says to remove
  the connection file on quit and that one process per settings folder
  accepts agents; the AppImage mount is compared after resolving links.
- Tests for each, and a wider margin in the queued-start test.
2026-11-18 03:19:07 +01:00
FredAppsandFredApps 72d8ac7c6c fix(xfa): bound retained namespace copies before allocation (#2122)
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-18 09:17:29 +07:00
FredAppsandFredApps 5b1ad7511c dex: bound retained reference caller and target strings (#2115)
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-18 09:17:21 +07:00
FredApps a3784a72ed test(ci): keep full gate source out of shell harness 2026-11-18 03:16:31 +01:00
FredApps c52dc70c6c Merge pull request #2083 from FredApps/test/mxf-hostile-scheduling-778
test(media): schedule MXF hostile seeds independently
2026-11-18 09:15:30 +07:00
FredApps 7b8c1eccea Merge pull request #2041 from Terra854/codex/svg-integrity-hooks-review21
Share checked SVG image validation and DOM reuse
2026-11-18 09:15:11 +07:00
William Dunn bfe246b5b4 craft-ui: leave the menu module ungated, as main has it
This branch gated `pub mod menu;` behind the esign feature, which was right when main had no menu module of its own. #160 landed one, and its cloud pages use it (crates/ui/src/cloud/pages.rs, cloud/title.rs). The gate therefore broke every build with cloud on and esign off, which is what the workspace clippy leg does. The gate was the whole remaining content of the commit that carried the helper across.
2026-11-17 21:04:35 -05:00
William Dunn 22978401ce Cargo.toml: drop the craft-cloud workspace entry that #160 landed
This branch added craft-cloud to [workspace.dependencies] for the e-sign dialog's vocabulary. #160 added the same entry beside craft-cloud-local while this branch waited, in a different place in the list, so the rebase kept both and cargo refused the manifest. Main's entry stays. Cargo.lock is regenerated on the new base.
2026-11-17 21:04:35 -05:00
William Dunn a64ad59593 craft-esign make the outstanding-send regression test actually outstanding
The send helper submitted the create immediately, consuming the captured context before the status request ran. The test now queues and takes document A's send without submitting it, leaving the context pending. That pending context is the scenario the guard exists for.
2026-11-17 21:03:40 -05:00
William Dunn 52d874ae96 craft-esign keep the send context off status requests
submit_request consumed the captured send context for every request kind. A status refresh for the current document submitted while another document's send was still outstanding then carried the old context. pump dropped its reply as stale. The context now goes only to the create submission that answers the taken send request. Every other request uses the current context.
2026-11-17 21:03:40 -05:00
William Dunn df8f35d297 craft-esign apply rustfmt to the refresh caption test
Wraps a line fmt would otherwise reject on the next check.
2026-11-17 21:03:40 -05:00
William Dunn 9e70a85182 craft-esign fix status routing, relink, role reuse, close and i18n gaps
A public submit_request call carrying Request::Status never registered
status_seq. Its own reply then failed the supersession guard. The dialog
kept showing an envelope's old state. submit_request now records
status_seq for a Status submission the same way status_panel's own button
already does.

Once available() turns true it never asks again. A backend whose linked
value changes after an out-of-band sign-in stayed stuck showing the
sign-in message. A new reset_capabilities method reprobes the current
backend. It reuses the same reset set_backend already performs.

Recipient roles were derived from the current recipient count. Add two
recipients, remove the first, then add a third: the third gets the
second's exact role. A placement keyed to a removed recipient's role
could then bind to whichever recipient later receives that reused label.
Roles now come from a counter that only climbs. A recipient removal also
drops any placement keyed to a role no recipient holds anymore.

Both Close buttons set self.open to false inside the window's content
closure. show() then overwrote it with the window's own unchanged open
binding, undoing the click. show() now requires both to agree the dialog
stays open.

The manual status refresh button showed the English "Refresh status"
caption regardless of the labels a host supplied. EsignLabels gained a
refresh field for it.

Each fix adds a test that fails without it.
2026-11-17 21:03:40 -05:00
William Dunn 4e007a5fb0 craft-esign add the missing regression test for the capabilities race
The is_caps_reply guard from the earlier commit had no test of its own. A
reply from a replaced backend now provably cannot overwrite the new
backend's capabilities, responsible party or linked state.
2026-11-17 21:03:40 -05:00
William Dunn 5c44349a89 craft-esign apply rustfmt to the new tests
Wraps a few lines fmt would otherwise reject on the next check.
2026-11-17 21:03:40 -05:00
William Dunn 820aa7b32c craft-esign clear the texture delta the sign-in message test's frame leaves
run_ui's FullOutput carries textures_delta. egui panics on drop when a test
never applies or clears it.
2026-11-17 21:03:40 -05:00
William Dunn b0b5c2bf17 craft-esign close context, idempotency and busy-ownership gaps in the dialog
A reply from a replaced backend could overwrite capabilities for the new
one. A reply for an older document revision could install under a reopened
dialog. A send request taken before a reopen could tag its reply with the
wrong context. A duplicate answer from a backend holding a second Replier
could reinstall state the dialog had already moved past. A superseded
status refresh could overwrite a newer one. A failed lookup could clear
busy for a create that was still running.

Placements and the draft idempotency key could also survive a document
change or a field edit that should have invalidated them. A contact with no
email address could become a recipient using its share id as the address.
Two dialog instances could mint the same idempotency key for the same
document. An unlinked account showed a disabled Send button with no
explanation.

The context model now carries the document revision and an opening counter
alongside the document id and account. Pending-send context is captured at
queue time and consumed by the eventual submit or result call. A late reply
or result keeps the context it was built under. Each fix adds a test that
fails without it.
2026-11-17 21:03:40 -05:00
William Dunn 98bfed94c2 craft-esign: carry the menu helper behind the esign feature on the new egui
Main's craft-ui no longer has a standalone menu module. The esign dialog is the only consumer of the split-button helper this slice carries. The module is therefore feature-gated so the default craft-ui build matches main exactly. The three widget_info calls move from the deprecated egui::WidgetType alias to egui::Role. The current pin denies that deprecation as a warning.
2026-11-17 21:03:40 -05:00
William Dunn 81bdd0dbe8 craft-esign: context-keyed replies, context-based staleness, two completion digests
Fixes three gate items skylartaylor raised on PR #661. He reproduced them
against 0a937ef in
https://gist.github.com/skylartaylor/c1108ecf20d63c5e3183947408ddab7a.

The request-signatures dialog now tags every in-flight create, status,
completed, void and remind request with the context that issued it. That
context is the document identity plus the account identity. A reply
installs only when that context still matches the dialog's current
context. This replaces the old staleness rule. That rule keyed off a global
sequence counter that typing in the signer search also bumped. It dropped a
late create reply and left the dialog on Sending forever.

CompletedDocument now carries original_content_sha256 and
signed_content_sha256 as distinct fields, per RFC-0021's evidence guarantee
in storytold/craft-contrib#37. The crate's in-process test double computes
both from the bytes it actually holds. It applies a fake seal that changes
the signed bytes first. The two digests are never conflated.

Regression tests, all in crates/ui/src/esign/review_repro.rs unless noted:

1. review_h5_reply_for_previous_document_is_installed_after_reopen
2. review_h5_reply_for_previous_account_is_installed_after_account_switch
3. review_n1_create_reply_dropped_after_a_lookup_leaves_dialog_busy
4. completed_document_keeps_original_and_signed_digests_distinct, in crates/esign/src/lib.rs
2026-11-17 21:03:40 -05:00
William Dunn be5c6accc1 craft-esign: add the e-sign contract and craft-ui's esign feature
This carries over crates/esign and craft-ui's esign dialog from the cut-down #160 branch, with minimal workspace wiring. The esign dialog speaks only craft_cloud::Contact and craft_esign types. This also brings crates/cloud along as a dependency until PR #160 lands on main.
2026-11-17 21:03:40 -05:00
David Mann aa0f72303c craft-control agents: review fixes (#2141)
- Calls queued behind a start that failed get its error instead of
  starting the app again; a later call retries.
- The started process is reaped on a thread of its own.
- APPIMAGE counts only when the CLI runs from that image's mount.
- The guide names allow_agent_control as part of the listen condition.
- A watcher thread that can't start leaves agents off.
- The watcher test waits for the thread to end instead of a fixed sleep.
2026-11-18 02:53:47 +01:00
Dylan M. Taylor 8cbe36c113 Merge pull request #2070 from storytold/feat/evm-inspection
Share read-only EVM bytecode and compiler metadata inspection
2026-11-17 20:42:58 -05:00
aiongg 72df1059bf cloud docs: no links to private items, as the workspace docs check requires 2026-11-18 01:42:39 +00:00
David Mann b837aa22dc craft-control: agents in the open window for apps on main (#2141)
The ArtCraft Launcher's switch (AgentSwitch, mcp_flag, launcher_allows),
the agent settings, the connection file (agent-connection.json) and the
<id>-cli mcp side that finds the open window (Live: window while the app
accepts agents, otherwise headless or the closed-app choice; launcher
starts the app beside the CLI), behind the new feature agents. No UI
toolkit and no async runtime. Same formats as craft_automation::agents
on next, which can re-export these once the branches meet.
2026-11-18 02:35:58 +01:00
aiongg 06125b23ba ci: next's gate matches main's text except its Linux-only pushes
The workspace script tests pin main's gate. Clippy runs without --keep-going as on main, the
facade-as-an-app clippy moves to the Docs workflow, and the unix gpu test group is back.
2026-11-18 01:25:41 +00:00
aiongg 0d5611ea36 craft: the facade lists the member crates and features from the 18 Nov sync 2026-11-18 01:22:22 +00:00
aiongg 4d22e6b958 Merge storytold main d6b5b16bbb into next (18 Nov sync)
- Workflows: main's per-crate layout, with next in the push triggers, Linux only for pushes to
  next, next's crate features (keymap egui, window and update ui) and test paths (crw samples and
  the pdf fixtures run inside the lib's test binary). The workspace gate keeps --keep-going and
  the facade-as-an-app clippy from next's ui.yml. Per-crate doc steps live in docs.yml, which also
  documents craft-ui, the ui-* crates, craft-doc and craft-pdf with every feature. docpath, i18n,
  print and ui workflows go, as on main. actions.lock lists docs.yml and theme.yml.
- Main's cloud and share UI (account, cloud, share, presence, the overflow menu and split button)
  lives in the new crate craft-cloud-ui as main wrote it; the craft-ui facade forwards share and
  cloud and re-exports account, cloud, share and presence, so craft-cloud-local builds unchanged.
- audio and media: main's new tests join tests/main.rs under their features.
- cms: main's new synth and FOGRA39 tests, with the fogra39() helper they use.
- nextest: no gpu group on unix; next's tests create no GPU device.
2026-11-18 01:22:22 +00:00
David Mann 13b9bf4d46 A press whose pointer left the window still drags: window edges resize when pulled out (#2132)
winit reports the pointer leaving the window while the button is held, and the
press machine marked the open press abandoned, which also stopped its drag from
starting. A window's resize grip lies inside the window and starts the OS
resize on DragStart, so pulling an edge outward left the window before slop and
the resize never started. Leaving the window now ends only the press's click.
2026-11-18 01:52:13 +01:00
Dylan M. Taylor 17f1b5d20f Keep uncertain EVM fallback and jump payability unknown 2026-11-17 19:45:22 -05:00
FredApps 29ce80e136 ci: register full validation in generated actions lockfile 2026-11-18 01:44:16 +01:00
Dylan M. Taylor a784f2e716 Merge main while retaining EVM and XFDF provenance 2026-11-17 19:41:50 -05:00
aiongg 988aea1845 timeline: the row-menu test presses the Menu key on a PC shell
A Mac keyboard has no Menu key and the shell reads it only off the Mac, so the test failed on
macOS runners.
2026-11-18 00:28:14 +00:00
aiongg fe51208f1d Settle check reads only the menu bar's id, and only with menu keys; run records stay private
runtime::replay is crate-private again; its journal is re-exported for the crates whose services keep per-pass registrations.
2026-11-18 00:23:14 +00:00
aiongg 26ba3c1196 Docs: what the dock's spec version covers and when panel_rows runs; a host keeps its Arc<Host> across frames
Trial: a settled child runs again when the host switches the language.
2026-11-18 00:23:14 +00:00
aiongg 5f10a501e4 Dock chrome settling: a group keeps its ids when its first tab changes
The group's scope takes the parent's next id, as the group did before it settled, and its Lazy is keyed by that scope's unique id; a column bar's Lazy is keyed by its scope's id under the column. Both stay unique inside a scroll area. Trials: a tab moved to the front keeps the shown body's ids, and Close in a settled group's panel menu closes the panel.
2026-11-18 00:23:14 +00:00
aiongg 12b9ac772f Menu bar keys reach a settled menu bar
The focus record keeps which bar registered for the menu keys, the registration is journaled so a replay makes it again, and a pass with menu keys counts them as routed to that bar, so it runs and takes F10, a lone Alt and Alt with a letter.
2026-11-18 00:08:33 +00:00
aiongg 381215eb5b Dock chrome settling: a run covers its group or bar, and drop-spot registration takes Sync panel types
A group's and a bar's run take no room in flow, so the settled run's rect is the group's or the band's: the pointer over it runs it again. A run record keeps each drop-spot registration, so the registering functions ask for Sync panel types; resolving keeps its bounds.
2026-11-18 00:08:33 +00:00
aiongg b5b0e6b6fd Trials: settled dock chrome, a drop on a settled group, a theme change and a settled menu bar's keys 2026-11-17 23:59:57 +00:00
aiongg fc585f6227 Window caption parts: a settled region declares them again when it replays
A title bar that settles keeps the caption record the Windows hit test reads.
2026-11-17 23:57:45 +00:00
aiongg 6836ba18dc DockArea: groups and column bars settle by the host's spec version and the arrangement
DockPanels::spec_version versions the panels' specs, permissions and group headers. With it, each group's header and tab strip settle as a Lazy keyed by the pass's chrome key (spec version, config, lock, Auto-Collapse and the arrangement's panels and states, sizes left out), the shown body's version and how the group shows; the column bars take the chrome key. The tab titles, panel menu rows and command states are built only when a group runs.
2026-11-17 23:57:06 +00:00
aiongg c6d490f826 Dock columns: a content version settles the column bar
DockColumn and IconicColumn take the version of what their bar shows; with one, the bar's grip and menu replay their last run while nothing they show changed.
2026-11-17 23:57:06 +00:00
aiongg e55ae75b95 Dock drop spots: a settled region registers them again when it replays
DockTargets notes each registration in the open run records, so a group or column that replays its last run keeps its drop spots, room and bands.
2026-11-17 23:53:08 +00:00
aiongg 725df6bf03 Settling: a region runs again when its environment changes (theme, density, scale, language, window active)
The env key folds in the generation of the scope's built-in words, and a settling child's place holds the env key it ran under.
2026-11-17 23:52:35 +00:00
aiongg f873abce2c Trials and a short-room story for the overlay bar and the named region mark 2026-11-17 23:44:00 +00:00