Commit Graph
12714 Commits
Author SHA1 Message Date
skylar taylor-barrickandlightcraft-port efc8d34f09 Inspect: a hit area's original bounds before minimum-size expansion (#3793)
* Inspector: a hit area's original bounds before minimum-size expansion

HitArea::bounds is the sensing shape's own rect, beside rect, which is grown to
the minimum hit size. A pointer-only part (a slider's thumb) has no access node
or Tab stop, so an app relating a value to its drawn position (a tooltip over the
thumb, a value that follows it) needs its real geometry rather than the larger
target. The trial checks the bounds match the painted knob and the value travel.

(cherry picked from commit 78cd3e98ad)

* Small additions review: a replay moves a hit area's bounds with its rect

(cherry picked from commit f9b1c60144)

* Formatting of the bounds change

* Test inspector hit bounds after a translated memo replay

---------

Co-authored-by: lightcraft-port <port@lightcraft.local>
2026-11-29 14:39:24 -06:00
Dylan M. Taylor f628499900 fix(nightly): require platform storage boundary resolution (#4297) 2026-11-29 15:12:15 -05:00
.CooCoo f8f6ec9a2f craft-nightly: the parent-traversal test keeps its .. on Windows (#4309)
On Windows the test's temp dir is canonicalized to a verbatim `\?\` path,
and `PathBuf::push` of `..` onto a verbatim path pops the last component.
`tmp.path().join("a").join("..").join("b")` was therefore `...\b`, which
the validator correctly accepted, and
`rejects_relative_parent_traversal_and_root_paths` failed on the Windows
gate. The test now appends `\a\..\b` to the path text, so the validator
sees the `..` component and rejects it. The validator is unchanged.
2026-11-29 15:12:11 -05:00
Dylan M. Taylor a7e8339a7f fix(ui-contract): retain copied memory on the destination lifetime (#4282) 2026-11-29 15:12:05 -05:00
David Mann 01bbfa004f Merge pull request #4299 from davidmann4/fix/viewport-dialog-moves
Dialogs move by their title row: a dialog in its own window on Windows, and alerts (photocraft#17952)
2026-11-29 21:11:10 +01:00
BFlat 582a88f063 Merge pull request #4320 from dotCooCoo/fix/popout-swatches-body-once
ui-patterns: an open flyout and a preset browser with host closures replay at rest
2026-11-30 02:54:01 +07:00
BFlat be48e6b95e Merge pull request #4319 from dotCooCoo/fix/layers-rows-cache
perf(layers): keep the display order through edits that leave the tree's structure as it was
2026-11-30 02:53:53 +07:00
BFlat 38316b5d32 Merge pull request #4318 from dotCooCoo/fix/menu-popup-hover-remeasure
menu: a row takes its letter among all its siblings, and measures its shortcut once a pass
2026-11-30 02:53:46 +07:00
BFlat e91db05e63 Merge pull request #4317 from dotCooCoo/fix/tool-rail-flyout-memo
ui-panels: a press held on one tool rail slot runs only that slot's button
2026-11-30 02:53:40 +07:00
BFlat 7beef50136 Merge pull request #4313 from dotCooCoo/fix/row-spread-first-pass
ui-contract: a fill-width row in a content-sized stack's header or footer spans the band
2026-11-30 02:53:34 +07:00
BFlat 482e6598b9 Merge pull request #4312 from dotCooCoo/fix/wheel-layer-under-pointer
ui-contract: a wheel over a floating panel reaches only that panel's takers
2026-11-30 02:53:28 +07:00
BFlat 977d040c98 Merge pull request #4311 from dotCooCoo/fix/label-baseline-first-pass
ui-contract: a labeled row runs no second pass on its first appearance
2026-11-30 02:53:21 +07:00
BFlat 17af07fdf3 Merge pull request #4306 from dotCooCoo/fix/anchor-overlay-one-mesh
BezierOverlay: Anchors declares no part per anchor and a pass lays out its scene once
2026-11-30 02:53:13 +07:00
Dylan M. Taylor c06381e5b8 Merge pull request #3460 from storytold/lightcraft-pr/fw-number-plus
Number fields: an explicit plus sign for signed values
2026-11-29 14:44:51 -05:00
Dylan M. Taylor fdb2c788e7 Merge pull request #3587 from storytold/lightcraft-pr/fw-tree-indent
Lists: a host can set a tree row's indent step (TreeIndent)
2026-11-29 14:44:39 -05:00
Dylan M. Taylor 3f3dbc04a0 Merge pull request #3272 from storytold/lightcraft-pr/fw-popups-menus
Popups and menus: opener Escape and Tab exits
2026-11-29 14:44:34 -05:00
Dylan M. Taylor 01f99316bb Merge branch 'main' into lightcraft-pr/fw-tree-indent 2026-11-29 14:39:27 -05:00
Dylan M. Taylor 706853deed Merge branch 'main' into lightcraft-pr/fw-number-plus 2026-11-29 14:39:26 -05:00
Dylan M. Taylor 6ca6bf72dc Merge branch 'main' into lightcraft-pr/fw-popups-menus 2026-11-29 14:39:24 -05:00
Dylan M. Taylor 0be123b5f2 Merge pull request #3214 from storytold/design-port/pr-checkbox-sweeps
Checkbox sweeps: a drag that reaches no box cancels
2026-11-29 14:39:14 -05:00
dotCooCoo 6aabced7c1 perf(layers): keep the display order through edits that leave the tree's structure as it was
The Layers panel keyed its display order by the tree's tracked revision,
which every edit moves, so a selection change in an expanded tree walked
every layer again: 10,002 children() calls for a 10,000-layer document.

LayerTree::order_revision lets the app report a number that changes only
when children, open groups, open effects or sub-row counts change. With
it, the panel keeps the display order until that number, the tracked
source, the filter or a reveal's opens change. While the filter is
active the order still follows the tracked revision, since the filter
reads what the rows show. Trees that report no order revision behave as
before.

Trials count the display order builds: a selection change builds none,
a new order revision builds one, an edit under an active filter builds
one, and another tree with the same order revision builds its own rows.
2026-11-29 11:23:42 -08:00
dotCooCoo 16f8962801 ui-patterns: a preset browser with host closures replays under the host's version
A browser given a tip painter, row menu rows, drop rules or drag payloads
keyed its presets view as changing in every pass, because no key can follow
what a closure reads. The Swatches panel passes all of these, so its list
ran in every frame.

PresetBrowser::host_version and SwatchesPanel::host_version take a version
for everything those closures read. While it holds and nothing reaches the
presets, the view replays its last run; a new version runs it once. Without
a version the view still runs in every pass.
2026-11-29 11:23:36 -08:00
dotCooCoo 491736657c ui-patterns: an open flyout's measure replays the memoized views of its group
A flyout measures its group before it shows it. The dock measured the group
in the flyout body's own scope, while the show runs in a child Ui of that
body, so the measure gave the group's memoized views (its tab row and the
panel bodies) other ids than the show. Those views never had a kept run at
the measure's ids and ran in every frame while the flyout stayed open.

The measure now runs in child Ui scopes matching the show's: the group's
child Ui, and inside it the host view's room. At rest an open flyout's tab
row and memoized body replay in every call of the frame.
2026-11-29 11:23:36 -08:00
dotCooCoo 065818eeb4 menu: a row takes its letter among all its siblings, and measures its shortcut once a pass
In a pass with no measuring run, an open menu's rows register with their
level one at a time as each row runs. A row then asked for its letter
among the rows before it only, so the level assigned every letter again
for each row, and "Save" announced S while a later "&Select All" held S
and pressing S ran Select All. The level now keeps the letters of the
whole level while the rows registered so far match the start of the kept
labels, checks only the rows added since the last call, and looks for a
re-registering row at the end of the list first.

A row's measure and parts asked for its shortcut's width several times a
pass, and each time measured the shortcut's face again. The level keeps
the width each row measured in the pass, at the ideal and at the least
proposal: a settled 20-row menu with shortcuts measures 20 shortcut faces
a pass instead of 80.
2026-11-29 11:23:22 -08:00
dotCooCoo 7f315862ae ui-panels: a press held on one tool rail slot runs only that slot's button
The tool rail showed its whole slot grid as one memoized view. While a
press is held on a button, for example to keep a tool flyout open, the
view runs in every pass, so every button of the rail ran in every pass.

Each slot's button is now a memoized view of its own inside the grid's
view. A held press or an open flyout runs that slot's view, and the
other slots replay.

MemoView::shown_out_of_view shows a view in a scroll area as outside
one. Out of view it still runs or replays, so its focus stops and
accessibility nodes stay registered. The rail shows each slot's view
this way, and a button in a rail scrolled away from it stays reachable
from the keys and by screen readers.
2026-11-29 11:16:34 -08:00
BFlat 91d41e8ce5 Merge pull request #1428 from dotCooCoo/feat/craft-testkit-prop
craft-testkit: add the prop feature for proptest runs from a pinned seed
2026-11-30 02:15:18 +07:00
bflatastic 780bfa081e Merge remote-tracking branch 'origin/main' into fix-1428
# Conflicts:
#	crates/testkit/Cargo.toml
2026-11-30 01:48:36 +07:00
BFlat f0f9bb38ff Merge pull request #1392 from dotCooCoo/feat/craft-testkit-log
craft-testkit: capture log records per thread or process wide behind the log feature
2026-11-30 01:47:36 +07:00
BFlat 8b600efb9e Merge pull request #1417 from dotCooCoo/feat/craft-xtask-layers
craft-xtask: add the crate-layer check against a table the app supplies
2026-11-30 01:47:30 +07:00
dotCooCoo 55a68b1bf4 ui-contract: a wheel over a floating panel reaches only that panel's takers
The wheel split admitted every taker registered last pass, filtered only
by the top modal's family. Over a floating panel with no scroll region of
its own, nothing in the panel took the wheel, so the share went by
position to the canvas under the panel, which panned or zoomed.

The begin hook now reads the layer of the overlay stack under the
pointer and admits only the takers drawn in that layer. Over the
window's base it admits the base's takers, as before. A body mounted in
an OS window of its own counts as that window's base, and a transformed
body counts as the layer it is a sublayer of. The overlay stack records
each transformed body's parent layer, since egui drops its own record of
sublayers at the end of each pass. The focused field and the owner of a
running wheel gesture keep the wheel wherever the pointer is, as the
split's rule has it. The layer is read only in a pass that carries
wheel, pinch or touch input.
2026-11-29 10:47:06 -08:00
dotCooCoo afd18d148d ui-contract: a labeled row runs no second pass on its first appearance
A label lines up with its control's first baseline, which the control
records only after it has run. On a row's first appearance the label
had no recorded baseline, so it was placed at the control's top and the
frame ran a discard pass to move it down. Every frame that showed a new
labeled row, such as a form gaining a field, ran twice.

The label step now notes the last baseline recorded for each control
size. A row with no baseline of its own places its label by that one,
and its control's baseline is compared with it when it records: a
control whose text sits elsewhere still asks for the discard pass. A
memoized view that replays its rows keeps the noted baseline.
2026-11-29 10:45:53 -08:00
dotCooCoo 01af858386 ui-contract: a fill-width row in a content-sized stack's header or footer spans the band
A stack that takes its width from its content, such as the column in a
popover, held a fill-width child of its header or footer band at its
measured width only in the measuring run. In the real run the child took
its content width, so a RowAlign::SpaceBetween or RowAlign::End row there
placed its children at the start of the band, as RowAlign::Start does.

The header band, and a footer in its own band, now keep the content
column in the real run too, as the body and a footer in the end region
or the body already did. The row shows across the band and places its
children by its alignment.

The new test shows a SpaceBetween and an End row in the header and in
the footer of a popover's stack and checks the children's x positions.
2026-11-29 10:45:17 -08:00
Dylan M. Taylor 8945bdb09b fix(nightly): allow single-instance sockets and preserve launcher separator (#4304)
* fix(nightly): allow single-instance sockets and preserve launcher separator

* chore(nightly): sync Cargo.lock for uds_windows dev-dependency

* test(nightly): use short /tmp socket fixture path for macOS sun_path limit

* fix(nightly): verify Windows AF_UNIX reparse tag via afunix.sys
2026-11-29 13:42:26 -05:00
BFlat 36634c0ee3 Merge pull request #2621 from dotCooCoo/feat/gpu-wgpu-device-from-craft-gpu-device
craft-gpu-wgpu: open the device through craft-gpu-device and read its loss from DeviceHealth
2026-11-30 01:24:00 +07:00
skylartaylor 98952bc975 Refresh the checkbox sweep fix on current craft-libs main 2026-11-29 19:22:30 +01:00
skylartaylor 80996c4d28 Merge updated craft-libs main into the checkbox sweep fix 2026-11-29 19:15:02 +01:00
bflatastic de4d130319 Merge remote-tracking branch 'origin/main' into fix-1392
# Conflicts:
#	crates/testkit/README.md
2026-11-30 01:12:49 +07:00
bflatastic accec3112e Merge remote-tracking branch 'origin/main' into fix-1417
# Conflicts:
#	crates/xtask/Cargo.toml
#	crates/xtask/README.md
2026-11-30 01:11:56 +07:00
BFlat 6c7484457b Merge pull request #2923 from dotCooCoo/feat/craft-raster3d
craft-raster3d: CPU raster, shadow maps, resolve and encoding from EffectCraft
2026-11-30 01:10:15 +07:00
BFlat 77c6594f99 Merge pull request #1408 from dotCooCoo/feat/craft-testkit-temp
craft-testkit: add TempDir, a private test folder removed on drop
2026-11-30 01:10:10 +07:00
BFlat 3a2f42e69a Merge pull request #2147 from dotCooCoo/feat/craft-xtask-pins-one-commit
craft-xtask: check_commits keeps a git repository's packages on one commit
2026-11-30 01:10:04 +07:00
BFlat cab07f9818 Merge pull request #2724 from dotCooCoo/feat/keymap-global-hotkeys
keymap: global hotkeys run commands while another application has the keyboard
2026-11-30 01:09:38 +07:00
BFlat ab0bd0345e Merge pull request #1427 from dotCooCoo/chore/testkit-path-filters
ci: run Shared media, audio and video for changes under crates/testkit
2026-11-30 01:09:31 +07:00
BFlat 9c4aa32a46 Merge pull request #2145 from dotCooCoo/fix/ui-share-stale-answers
Share: an account-link answer for a sheet that moved on asks for nothing
2026-11-30 01:09:24 +07:00
BFlat 9e0df623b1 Merge pull request #2596 from dotCooCoo/feat/craft-menu-app-menu-labels
craft-menu: the minimal macOS app menu takes the app's translations
2026-11-30 01:09:18 +07:00
BFlat 5c35a30210 Merge pull request #2615 from dotCooCoo/fix/atomic-temp-name-bytes
atomic: test that temporary names keep long non-Latin names under the name limit
2026-11-30 01:09:11 +07:00
BFlat 708f402226 Merge pull request #2620 from dotCooCoo/feat/fonts-build-embedded-face-new
fonts-build: EmbeddedFace::new and with_index build a face without a struct literal
2026-11-30 01:09:05 +07:00
BFlat d1c3f85685 Merge pull request #2629 from dotCooCoo/feat/update-off-state
craft-update: an app can turn update checks off
2026-11-30 01:08:58 +07:00
BFlat d4c05c0e7c Merge pull request #3964 from dotCooCoo/fix/platform-test-handshakes
platform: the portal and dialog lifecycle tests wait on the worker's messages instead of on time
2026-11-30 01:08:52 +07:00
BFlat 4254d781d6 Merge pull request #3971 from dotCooCoo/fix/update-tests-no-wall-clock
craft-update: cancel and output-limit tests no longer depend on elapsed time
2026-11-30 01:08:45 +07:00