Commit Graph
1253 Commits
Author SHA1 Message Date
aiongg ef82a2cf6c xtask ci: the wasm check runs on one host 2026-11-25 13:25:33 +00:00
aiongg 24c8be1aa0 Test profile: craft UI framework and ui-egui below opt-level 2 2026-11-25 13:22:53 +00:00
aiongg a97801e6c9 Keep the window's Escape for the open drop popup 2026-11-25 07:34:56 +00:00
aiongg 966ff1d331 Leave Shift+Tab to focus traversal: unbind the panels-except-tools toggle 2026-11-25 07:34:33 +00:00
aiongg 14d82e59e2 Hide UI on a bare Tab through the framework's chrome toggle 2026-11-25 07:24:03 +00:00
aiongg 00c4fce31e Close the drop popup on the window's Escape 2026-11-25 07:23:43 +00:00
aiongg 3cf9c5d72a cargo fmt 2026-11-25 06:40:09 +00:00
aiongg 1d855c734f Merge main into the minimal port
Conflicts: apps/texturecraft/src/main.rs (kept the port's Decision/frame_guard/framework::install and main's exit hook, Nightly banner and os_window identity; dropped macOS movable), crates/ui-egui/src/lib.rs (kept both mods), crates/ui-egui/src/titlebar.rs (kept PREFIX and NIGHTLY_ICONS). Added install_headless to main's two new test harnesses.
2026-11-25 06:35:30 +00:00
aiongg 02613270e4 Repin egui to storytold b15ffe9bfc (what craft-libs next pins) 2026-11-25 06:32:50 +00:00
aiongg a85b1437aa Repin craft-libs to storytold next 16001e7210 and egui to storytold b15ffe9bfc 2026-11-25 06:31:20 +00:00
Chris Hassebrook 14f6502029 Merge pull request #771 from vangel76/fix/layer-target-menus-768
Layers: open context menus from material and mask thumbnails
2026-11-25 01:07:29 -05:00
FredApps 201f32fac4 Merge pull request #824 from vangel76/feat/export-templates-clean
Export templates: subfolders in file names and spec-based URP and USD templates
2026-11-25 05:50:18 +01:00
FredApps f9ba93a7be Give each confined export temp a unique short id
A directory-scoped batch previously reused one .export.{pid}.{attempt}.tmp
namespace of 256 names for every staging file and backup. Exports larger
than that limit, or overwrites of about half as many existing files, failed
even when every output path was valid. Each allocation now gets its own
short identifier, while the collision retries stay within that namespace.
2026-11-25 11:07:53 +07:00
FredApps 77850f6374 Use a short temp name for confined export writes 2026-11-25 10:54:11 +07:00
FredApps 0e1d9dfff1 Export templates: reject in-tree symlink folder aliases
Stage capability-scoped temps in the output root so the mid-batch
escape test can actually install a parent symlink, and refuse
export folders that are symbolic links so two names cannot resolve
to the same file.
2026-11-25 10:43:23 +07:00
FredApps 6c72fcb34e Fix Windows test cfg gate for write_batch_atomic_in_dir_with_hook 2026-11-25 10:22:16 +07:00
FredApps 0535d1ddc6 Export templates: reject file/folder conflicts and confine writes with cap-std 2026-11-25 10:11:54 +07:00
FredApps 454fb75295 Merge remote-tracking branch 'origin/main' into pr-824 2026-11-25 09:51:09 +07:00
Dylan M. Taylor 56efb48efb packaging(linux): support co-installable nightly packages (#801)
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 19:05:51 -06:00
vangel76 f4a8283d74 Export templates: subfolders and spec-based URP/USD templates 2026-11-25 00:15:22 +01:00
Chris Hassebrook 2a4ad138d9 Merge pull request #790 from vangel76/feat/789-export-ui-parity
Export dock and window follow the reference layout, in our own words
2026-11-24 16:47:38 -05:00
aiongg f86ed91063 Repin craft-libs to 283490a083: a rail popup dragged onto a tab strip docks its panel 2026-11-24 20:15:56 +00:00
vangel76 e8473240fd Output templates: Import and Export reachable from the keyboard, two tooltip fixes
The Presets row gets a Template actions button (three dots) that opens a menu with Import and
Export of the selected template. It is focusable, opens with Import focused and closes after an
action, so no pointer is needed. The row's right-click menu keeps both entries.

An inverted empty swatch names the colour it writes after inversion, and the disabled
Separate R, G and B item says R, G and B must read the same map and be inverted alike.
2026-11-24 21:12:52 +01:00
aiongg dcbdd00650 Repin craft-libs to 9fd8b0cdaa 2026-11-24 19:12:39 +00:00
aiongg 172d85528d Repin to craft-libs 3ad64a26ea: rail drag hand-over through DockArea::continue_move, Delete and Backspace apart through the keymap, Answer::Saved 2026-11-24 17:07:48 +00:00
aiongg dbd1c7077e Test round 1: Backspace no longer runs Delete bindings, the window's Enter reaches the Enter handlers, tab close buttons
- The app's dispatcher declines a Delete binding for a Backspace press (and the reverse): craft_keymap's
  Matcher lets the two stand for each other, and TextureCraft binds them apart (Delete removes the layer,
  Backspace a Path tool point).
- A plain Enter with nothing focused is the runtime's window submit: menus::shortcuts puts it back as an
  Enter press, as it does the window's Escape, for Reset UI, project config, import resources and the
  Path tool.
- Each closable dock tab has its close button, as each group header had one.
- Tests: the pointer-lock helper no longer rewrites input the app's raw_input_hook already rewrote
  (egui_kittest runs the hook before every pass); tab lookups by role; next's workspace format version;
  measured view edges instead of the old dock gap; a click's commit settles a frame later; tests of the
  old header painting and old divider geometry deleted; rustfmt.
2026-11-24 16:15:19 +00:00
aiongg 04c4e627b4 Tests: update prompt tests wait for the threaded offer; panel close helper reads the dock's Close {name}; header-painting tests of the old dock renderer go 2026-11-24 15:34:17 +00:00
aiongg a13e9a74ee Host TextureCraft's egui UI on craft-libs next's runtime
The runtime is installed from TextureCraft's own eframe App (framework.rs): the close question
decides in the runtime's close path, the window's Escape runs TextureCraft's Escape handlers and
the shortcut recorder, the viewport is the window's document canvas (Tab stays Hide UI), and
Ctrl+Q and F6 stay TextureCraft's. The dock is next's DockArea over the saved workspace, with the
viewport as its canvas group; the update dialogs run on a DialogHost; the strip is next's
TitleBar where the app draws the frame. The removed helpers (icon-button painter, pane split,
widget palette, shortcut dispatcher) are app-local. Every app harness installs the runtime.
2026-11-24 15:32:09 +00:00
aiongg dc1e046faa Cargo.lock for the craft-libs next pin (xcap 0.9.8 as craft-platform pins it, rustix 1.1.6) 2026-11-24 15:17:45 +00:00
aiongg 3daa39f5ee minimal-port rewrite: 39 edits (dock 11, split rename 11, split 7, dock rename 5, keymap rename 2, deps 2, keymap 1) 2026-11-24 15:17:20 +00:00
aiongg 77d25c6462 Repin: one craft-libs rev serves the USDZ writer, so the second craft-zip pin goes 2026-11-24 15:17:05 +00:00
aiongg 4d682aa961 minimal-port repin: 33 edits (revs 28, features 5) 2026-11-24 15:16:48 +00:00
vkleinmpandClaude Opus 5.5 41c6b3047a Merge main (021ff6fe) into feat/789-export-ui-parity
Conflicted files and their resolution:

- crates/ui-egui/src/export_window.rs: main (#794, 039b4548) made the
  Export window resizable, laid it out bottom-up and put the tab body in
  a clipped child so an overflow cannot widen the window each frame; it
  also wraps both settings pages in one scroll area, sizes the texture
  set list from the space left and retitles the window "Export Textures".
  All of that is kept. This branch's layout is kept on top of it: boxed
  tab buttons, the naming pattern on OUTPUT TEMPLATES, equal-width footer
  buttons, Reset all only on SETTINGS, no count/save/export on OUTPUT
  TEMPLATES, its tooltips and the bigger list rows. The window opens at
  this branch's reference size (capped by the screen) as its default
  size instead of a fixed size, so it stays resizable; egui counts a
  window's size with its frame and title bar, and main's layout now fits
  the content inside it, so the frame margins and title bar height are
  added to the reference content size (without that, the PR's
  the_window_has_the_reference_size test measured 672 instead of about
  740 points of content). set_list no
  longer takes a body height (main's available-height sizing replaces
  it); the PR-only "exp_global_scroll" area is replaced by main's
  "export_settings_page" one, which also covers a texture set's page.
- crates/ui-egui/src/export_templates.rs: this branch's reworked
  OUTPUT TEMPLATES tab (map lists, output rows, constants) is kept. Main's
  fix for cards growing wider one after another is carried over to the
  output rows: each row is laid out in the width the column had before
  the first row. Main's INPUTS_WIDTH/LIST_WIDTH/CARD_MARGIN constants
  belonged to the old card layout and are dropped; main's dialog-based
  question window merged cleanly.
- crates/ui-egui/src/mesh_export_options.rs: main's new
  windows::dialog(ctx, ...) signature with this branch's fixed width.

No test was changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 14:00:10 +01:00
vkleinmpandClaude Opus 5.5 5103d2256a ui-parity: describe the export UI's own wording
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 12:53:55 +01:00
vkleinmpandClaude Opus 5.5 0af0c0f461 Export UI: TextureCraft's own wording instead of the reference's texts
The export dock, Mesh Export Options and Export textures window keep the
reference's layout, but their texts are now our own. Where main had a
TextureCraft text for a control (footer tooltips, console lines, override
menu, reset button, dilation hint, naming pattern info), it is back. New
texts describe what TextureCraft does: the USD tooltip says the mesh is
always written, the Mesh Export Options info tooltips say the mesh is
always triangles and normals are not recomputed. The drop popup asks
"Which part of <map>?", empty swatches read "Empty (writes black)", new
rows are named after their layout (Gray, RGB, RGBA), and the map panes
use TextureCraft's channel, bake and converted map names with OpenPBR
parameter names for the inputs TextureCraft lacks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 12:53:55 +01:00
FredApps 021ff6fe8b Merge pull request #794 from storytold/context-menu-parity
Align top menus, default workspace, and dialogs
2026-11-24 12:00:16 +01:00
vkleinmpandClaude Opus 5.5 1abb7bda34 Output templates: new output maps get a per texture set file name
Create named new rows just "Grayscale", "RGB" or "RGB Alpha", so every
texture set of a multi-set export planned the same file and the export
was refused for the name clash. New rows now start with
"$mesh_$textureSet_" (as the old "$mesh_$textureSet_Output" default
did), followed by the reference's row name. The output_templates test
that pinned the bare "RGB" checks the suffix and the set token instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:41:17 +01:00
vkleinmpandClaude Opus 5.5 c68e8f9959 Export window: the Global settings page scrolls on short or narrow screens
On a short screen the settings pushed the footer (Cancel, Export) out of
the fixed-size window, and at an 800-point-wide screen the 728-point
window cut off the right end of the value lists. The page now sits in a
scroll area (both directions), as the texture set list already does.
The new test at 800x480 fails without it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:41:15 +01:00
vkleinmpandClaude Opus 5.5 5f4a25e0b1 Export window: show keyboard focus on the tabs, list rows and console strip
The window's drawn tabs, the Global settings row and the console's
hide/resize strip take focus by Tab but drew nothing for it. They now
draw a 2-point outline in the strong text colour when focused, apart
from the accent of the selected tab or row and the hover fill.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:41:12 +01:00
vkleinmpandClaude Opus 5.5 87a00221ec Export window: restore the #789 wording the main merge dropped
Merging main (c6894cc6) resolved three conflicts in export_window.rs with
main's text, undoing this PR's renames, so five ui-egui tests failed:
- the console step after rendering is "Preparing textures writing" again
  (main had brought back "Saving texture files");
- the greyed checkbox is "Export shaders parameters" with its tooltip
  again (main had "Export shader settings");
- the now working Export USD asset checkbox keeps this PR's tooltip. Note
  for review: TextureCraft always writes the mesh, so its "References the
  original mesh if possible" part never applies.

Tests from #788 that named strings this PR renames on purpose follow the
rename, as the PR already did for the MaterialX tests:
- export_usd_asset: "Restore the default export parameters" is now
  "Resets all settings to default values"; "Saved texture <name>" is now
  "Writing <name> texture on disk" (both the positive and the negative
  check, so neither turns vacuous);
- side_panels: "Export shader settings" is now "Export shaders parameters".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:41:08 +01:00
FredAppsandClaude Opus 5.5 039b454867 Keep the resizable Export window from widening itself every frame
The Output templates and List of exports tabs size their columns from the
window's width, and some of their rows are a little wider than the column.
In the fixed-size window that overflow was clipped; in the resizable one it
widened the window, the next frame's columns took the new width, and the
window grew each frame until it ran off the screen, so clicks and hovers
missed their controls (nine export tests failed).

- The tab body lays out in a child area fixed to the body's rect, so an
  overflow is clipped as before and cannot widen the window.
- Each output map card takes the column's width; it took the width the
  card before it left, so every card was 9 points wider than the last.
- The input maps column is 210 points, wide enough for its naming-pattern
  row; at 170 its info icon was outside the window.
- The Save template and Load UI Layout pickers keep the reference titles
  the tests check ("Save template", "Select a UI layout file.").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 11:03:23 +01:00
FredAppsandClaude Opus 5.5 b57657438c Drop CodeRabbit's marker comments from the protocol doc
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:05:50 +01:00
coderabbitai[bot] b6b761da86 Fix session log persistence and defer the sample project save prompt until selection
<!-- coderabbit-ai-generated:v1 -->
2026-11-24 08:01:32 +00:00
FredAppsandClaude Opus 5.5 e604486216 Bound the session log folders and import MaterialX from Import Resources
Each desktop run made a new logs/session-* folder that was never removed,
so the logs folder grew with every start. Starting a run now removes all
but the newest earlier runs' folders, keeping ten in all.

Removing File > Import MaterialX material... left no way to import a
.mtlx from the GUI. Import Resources now lists .mtlx files and imports
them as file.importMaterialX does, as a fill layer. The protocol doc no
longer points at the removed Import PBR texture folder item.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:48:18 +01:00
chasse20 6bc4f3cafc Fix sample project picker and menu review findings 2026-11-24 02:23:29 -05:00
Chris Hassebrook c6894cc65b Merge branch 'main' into feat/789-export-ui-parity 2026-11-24 01:34:55 -05:00
Chris Hassebrook 998e68da74 Merge pull request #788 from vangel76/feat/786-export-usd-asset
Export textures can write the model as a USD file that uses the exported textures
2026-11-24 00:40:47 -05:00
Dylan M. Taylor 9f955aabb6 Write TextureCraft browser downloads through craft-zip (#792) 2026-11-23 23:52:57 -05:00
vangel76 5fe8fe7ae2 Output templates: rows keep one line, the Create buttons move below the title in a narrow column 2026-11-24 02:05:50 +01:00
vangel76 740616c354 Mesh Export Options: the reference's info icons; parity notes for the Output templates tab 2026-11-24 01:23:31 +01:00