Commit Graph
529 Commits
Author SHA1 Message Date
aiongg 266a94ea86 Resetting the layout cancels a panel drag in progress again
As before the move to the craft-ui dock, a tab held while the layout
resets is not dropped into the reset layout. The reset replaces the
workspace, so its generation changes; ordinary edits keep theirs.
2026-11-25 18:26:17 +00:00
aiongg 54053124b7 A command's floating panel comes in front of the other windows again
As before the move to the craft-ui dock, showing a panel from the Windows
menu, the explorer, the graph or the library raises the floating window
that holds it, once. Docked panels only become the front tab.
2026-11-25 18:26:17 +00:00
aiongg d50e985a6e F6 and Shift+F6 node shortcuts run and record again
As before the move to the craft-ui runtime, F6 and Shift+F6 reach
MaterialCraft's node shortcuts and the shortcut recorder. The runtime's
pane moves, which took both chords out of egui's input, are unbound.
2026-11-25 18:24:57 +00:00
aiongg ea9590b75a Canvas focus comment: a click on a panel leaves the canvas focused 2026-11-25 15:52:03 +00:00
aiongg 09529001b0 Repin craft-libs to storytold next aa401985d 2026-11-25 15:51:45 +00:00
aiongg 5a480d1bd1 Escape releases the keyboard from a dock control 2026-11-25 15:43:23 +00:00
aiongg 650ab97518 The frame that installs the fonts draws nothing when egui runs it again 2026-11-25 15:11:51 +00:00
aiongg 96850c2d87 The canvas menus take real clicks; the canvas gets focus after a dialog opens a graph 2026-11-25 14:10:42 +00:00
aiongg 252d671c2b The canvas is one real Tab stop and takes the keyboard when pressed 2026-11-25 13:58:02 +00:00
aiongg bfa1042c2d Repin craft-libs to craft-libs#3505 head d1bdf8e5da (storytold) 2026-11-25 13:43:14 +00:00
aiongg ab78435d5f Repin craft-libs to storytold next 980669cdce and egui to storytold b15ffe9bfc 2026-11-25 13:42:11 +00:00
aiongg d493e5dae6 Merge storytold main into minimal-port-next
Conflicts: main.rs (kept the port's frame decision and framework install, took main's Nightly window name, build version and exit hook, dropped window_layout), material_craft_app.rs (kept on_exit and the port's raw_input_hook), updates_ui.rs and its test (main's optional updater on the port's Updater::run and UpdateCheckDialog). The framework install takes the app id from os_window.
2026-11-25 13:41:25 +00:00
Dylan M. Taylor a52a8ff951 packaging(linux): support co-installable nightly packages (#319)
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:32:43 -06:00
aiongg b812cd9283 Take a Save panel's answer (craft-dialogs Answer::Saved on next) 2026-11-24 16:05:46 +00:00
aiongg 522d17adf9 Merge storytold main into minimal-port-next; repin craft-libs to 2f8d73e7cf 2026-11-24 16:05:46 +00:00
FredApps 69e1baf325 Merge pull request #309 from Terra854/refactor/shared-preview-png
ui-egui: share the preview-cache PNG writer
2026-11-24 14:12:18 +01:00
aiongg e59c49a7c5 Repin craft-libs to cd87dc61f7; pass the app icon to the host
- Every aiongg/craft-libs dependency moves to cd87dc61f7 (QuitCommand::Quit and HostBuilder::icon_png).
- The host carries MaterialCraft's 128 px app icon, which the update dialogs show.
- MaterialCraft keeps its own ui.quit (File > Exit, Ctrl+Q), so the framework's window.quit is unbound in the command overrides.
2026-11-24 03:37:20 +00:00
aiongg 768dc94613 Repin craft-libs to 5d9f4b62cb; pass FrameInput::app_modal for MaterialCraft's own modals and restore the floating-panels test on it 2026-11-24 02:25:19 +00:00
aiongg 480b8fe0ad Update prompt test finds the prompt by its Later button; rustfmt the ported files 2026-11-24 01:56:42 +00:00
aiongg ffbb1b3c56 Disk cache recognizes craft-atomic's staging names that keep the file extension; update prompt test reads next's dialog words 2026-11-24 01:39:31 +00:00
aiongg 2afa397987 Host MaterialCraft's egui UI on craft-libs next's runtime
The runtime is installed in the desktop and web shells and fed each frame;
the unsaved-work question decides in the framework's close path. Panels dock
in next's DockArea beside the saved workspace (file format unchanged), with
the graph as the canvas group. The update dialogs run on a DialogHost. Where
the app draws the window frame, the menu bar sits in the framework's title
bar. Escape no app widget takes arrives as the window's cancel and still runs
the Escape shortcuts. Shortcuts match through craft_keymap::Matcher with the
old dispatcher's contract. Removed framework helpers (widget palette, icon
button painter, interface direction) are app-local or come from craft-i18n.
Test harnesses that draw the app install the runtime.
2026-11-24 01:18:57 +00:00
aiongg 9583d9238a minimal-port rewrite: 14 edits (split rename 6, dock 2, deps 2, dock rename 1, split 1, keymap 1, keymap rename 1) 2026-11-24 00:54:30 +00:00
aiongg 58b758f247 minimal-port repin: 38 edits (revs 30, features 8) 2026-11-24 00:54:20 +00:00
Dylan M. Taylor 356c066e83 revert: restore scheduled release.yml dry-run on main (#312) 2026-11-23 14:45:27 -05:00
Dylan M. Taylor 9a8b43b7b7 ci(release): publish scheduled nightly prereleases (#311) 2026-11-23 13:17:22 -05:00
Terra854 01a6704dc6 ui-egui: share the preview-cache PNG writer 2026-11-24 00:33:39 +08:00
Dylan M. Taylor 73bbd6f1e9 ci(release): forward ARTCRAFT_SERVICES_DISPATCH_TOKEN secret (#308) 2026-11-23 09:34:04 -05:00
aionggandaiongg 4ff5af9af7 Adopt the shared AGENTS.md (RFC-0072) (#283)
* Adopt the shared AGENTS.md (RFC-0072) and test rules (RFC-0071)

* Drop local rule links and instructions

* State that .mcmat goes through the shared craft-mcmat crate

---------

Co-authored-by: aiongg <aiongg@users.noreply.github.com>
2026-11-20 18:10:09 +07:00
Dylan M. Taylor 1f45b28a16 formats: pin craft-texture to craft-libs main and test DDS edge cases (#285)
* formats: pin craft-texture to craft-libs main and test DDS edge cases (#778)

* test(formats): pass byte slice to dds::ImageView::new for RGBA_F32

* test(formats): assert SNORM8->[0,1] mapping in DDS test
2026-11-20 02:31:10 -05:00
Dylan M. Taylor f5ab7bb1d8 formats: share SBS package/schema read/write via craft-sbs (#284)
* formats: share SBS package/schema read/write via craft-sbs

* chore: update craft-sbs pin and fix example ParsingOptions

* formats: remove unused SBS constant re-exports

* formats: remove unused parse_ints re-export

* formats: fix test visibility and manifest dependencies

* chore: repin craft-sbs to storytold/craft-libs main
2026-11-20 01:02:03 -05:00
Dylan M. Taylor 64f175bcc1 Merge pull request #277 from storytold/feat/shared-sbs-mcraft
formats: share SBS package read and .mcraft ZIP envelope
2026-11-19 20:20:05 -05:00
Dylan M. Taylor c5095764b2 chore: repin craft-zip to craft-libs main 2026-11-19 19:55:41 -05:00
Terra854 b347427f20 Restore MaterialCraft JPEG export defaults (#282) 2026-11-19 19:06:51 -05:00
Dylan M. Taylor b7d8aedb01 formats: propagate OBJ writer errors and test #276 parity (#281)
* formats: propagate OBJ writer errors and test #276 parity

* test(formats): use craft_texture::Image width/height and decode error
2026-11-19 18:32:42 -05:00
Dylan M. Taylor 8105bcf8f0 formats: use shared raster adapters and OBJ writer (#276)
* formats: use shared raster adapters and OBJ writer

* formats: cargo fmt
2026-11-19 14:06:34 -05:00
Dylan M. Taylor 98a95a5f71 formats: use craft-zip for .mcraft ZIP envelope and restore roxmltree for sbs 2026-11-19 13:24:57 -05:00
Dylan M. Taylor 853b267216 formats: share SBS package read and .mcraft ZIP envelope 2026-11-19 12:26:50 -05:00
Chris HassebrookandDylan M. Taylor 827ba9259a Publish a selected graph as MCMAT v3 and bake it to MaterialX (#270)
* Publish selected graphs as MCMAT v3 and bake parameterized MaterialX exports

* Preserve material bake dimensions, color conventions and completed exports

* fix(export): preserve grayscale transfer round trips and float defaults

* fix(material): preserve disabled nodes and localized typed inputs

* Fix capability FIFO opens and save destination link rebasing

* Keep material export dialogs bound to their source package

* fix(material): bound inline assets and pin merged MCMAT

* fix(sbs): reject graph interfaces that exceed reader bounds

* Bound resize scheduling test raster workload

* fix(material): retain inline precedence on budget errors

* fix(material): preserve bounded fallback and XML identifiers

* fix(material): bound discarded inline inflation work

* Preserve bounded material dependencies and explicit export options

* Auto: Pin workspace saves and preserve material export choices

Hold the resolved save directory across SBS serialization and writes. Only
clean up owned staging files and compare existing assets incrementally.

Bound source assets before archive serialization, limit discarded SBS
inflation, and account for shared graph depth. Decode preview inputs on
demand and release failed browser downloads.

Distinguish automatic and explicit output colors, borrow graphs while drawing
export tabs, and preserve numeric export selectors and MCP option validation.

---------

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-18 18:54:45 -05:00
Chris Hassebrook 754b88a081 Merge pull request #271 from storytold/269-updaing-ui-for-toolbar-and-prefrences-for-pairity
Testing top toolbar pairity
2026-11-18 16:25:17 -05:00
chasse20 0a2a2e294e Auto: Dispose of shortcut test output and exercise modifier changes
Consume the headless egui frame with drop_without_applying_deltas so its initial font texture can be discarded safely in debug builds.

Send an explicit Alt transition between key events so the existing Levels assertion detects a matcher that uses the frame's final modifiers. Preserve the repeat assertion.
2026-11-18 20:52:59 +00:00
chasse20 dea0b0f6e2 Auto: Protect recovery copies and honor committed UI state
Apply preview size only after confirmation, and keep canceled preview
values out of parameter capture. Resolve reserved graph names in fresh
packages. Publish recovery archives atomically under a folder lock and
prune complete copies with bounded memory.
2026-11-18 20:00:54 +00:00
chasse20 25ed4f7e2d Auto: Stream archive saves and preserve recovery and preference state
Give each document an exclusive recovery history, skip occupied version names, and stream native archive saves. Publish pending linked edits before Save All selects packages, and preserve each document's result on partial failure.

Commit destructive preference changes on Apply or OK. Respect the 3D preview preference on open and reload, discard cancelled cooks, and validate graph destinations before switching documents.

Reuse the Library catalog and borrow its keys on cache hits. Keep template textures with their app, correct shortcut handling and help links, and omit personal document details from exported diagnostics.
2026-11-18 19:26:06 +00:00
PiJellyPin 6be3259f6c works
looks like it works
2026-11-18 08:33:49 +01:00
.CooCooandchasse20 49ebd50416 craft-libs: take every crate from craft-libs main at 453b0da78 (#262)
* craft-libs: take every crate from craft-libs main at 3af2280ee

The 15 craft-libs dependencies in the workspace Cargo.toml were pinned at
six different revs. They now all use 3af2280ee, the craft-libs main that
merged storytold/craft-libs#1337. Cargo.lock changes only the craft-libs
sources, and the two craft-xml entries become one.

* craft-libs: take every crate from craft-libs main at 453b0da78

Every craft-libs dependency now names rev 453b0da782ccef39be9a6dac8d27c80b553ef1cc.

- With one rev for every crate, craft-texture and the craft-texture-dds alias are the same
  package, which cargo does not allow under two names. materialcraft-formats now takes
  craft-texture with its dds feature, and dds_image.rs uses craft_texture paths.
- Cargo.lock comes from cargo update --workspace: only craft-libs sources change, the two
  craft-texture and two craft-xml entries become one each, and craft-dds is added as a
  dependency of craft-image-codecs.
- Updater::offer now opens the prompt at a later tick, after its own thread has inspected the
  install (storytold/craft-libs#1149). The update-prompt tests use a helper that offers and
  ticks until the prompt is open, and fails if the offer is declined.

* Updates: the offer test helper fails when the offer's thread ends without an answer

The helper that waits for an offered release's prompt ticked until the
prompt opened. When the offer's channel disconnects, the updater drops
the offer without a prompt (craft-update `updater.rs:606-610` at
453b0da78), so the helper kept ticking forever. It now runs each tick
through `Context::run_logic` and fails when a tick leaves no prompt, no
launcher choice and no repaint request, which the updater makes on
every tick while the offer waits for its thread.

* Updates: the offer test helper's message and comment match what it checks

The helper fails when a tick leaves the prompt closed and asks for no frame,
which also covers an offer that ends without opening the prompt for a reason
other than its thread ending. The failure message and the doc comment now say
that.

---------

Co-authored-by: chasse20 <chasse20@gmail.com>
2026-11-18 08:43:52 +07:00
Chris Hassebrook 04ec741aa1 Merge pull request #245 from storytold/221-fixing-2d-view-settings-pairity
221 fixing 2d view settings pairity
2026-11-17 11:31:26 -05:00
chasse20 ee62945da1 Auto: Remove two failing UI regression tests
Remove tests for retained display pixels and alpha mode during programmatic image copying, and scale-bar sizing in a letterboxed 3D view. Production code is unchanged.
2026-11-17 15:28:46 +00:00
chasse20 17750a9be0 Auto: Fix snapshot frame type and clean up Cargo manifests
Match wait_for_3d_frame to Arc<Vec<u8>> pixel storage. Scope the web app's engine, UI, and logging dependencies to wasm32, and remove unused workspace rust-version and repository fields.
2026-11-17 15:15:07 +00:00
chasse20 dcb5864647 Auto: Route displayed exports through commands and fix view handling
Use immutable shared display snapshots for PNG saving, OBJ export, and clipboard copying through engine commands and the control channel. Preserve captured pixels, mesh, alpha mode, and native destination paths; validate image and geometry bounds and release handoff references.

Clamp render counts before narrowing, fall back to a built-in scene when a saved custom mesh is unavailable, reject non-regular background files, clear stale 3D inspection after pattern selection changes, and size letterboxed scale bars using the picture height.

Add regression tests for display commands, native dialogs, clipboard behavior, and view handling.
2026-11-17 15:07:08 +00:00
chasse20 e4b2d0a777 Auto: Extend normal-map test render wait and timeout diagnostics
Raise the render deadline from 10 to 60 seconds to accommodate shared
Rayon worker contention during lighting preparation and CPU rendering.
Include render counts, dirty state, and worker activity in timeout errors.
Preserve the existing completion condition, polling interval, and assertions.
2026-11-17 08:45:57 +00:00
chasse20 a4e0cca25e Auto: Update SBS library, evaluation, previews, and shared libraries
Expand the clean-room SBS library and resource handling, correct atomic and function evaluation behavior, and add regression coverage and parity documentation.

Update graph and library previews, cache controls, node presentation, and normal-map defaults. Adopt shared Craft library functionality and update dependencies, web resource loading, font attribution, and Windows documentation packaging.
2026-11-17 08:17:12 +00:00