Commit Graph
5896 Commits
Author SHA1 Message Date
aiongg ab09b3fc28 Design lint: rail trials compare within a point, story strip sizes from IconicSizes, dead rail exemptions removed 2026-11-17 07:06:20 +00:00
aiongg d414c24ad7 Dialog host forgets a layer's open slot through runtime memory, not the body layer 2026-11-17 07:06:19 +00:00
aiongg 3c3e38d339 Design lint: list the rail story's width marker 2026-11-17 07:05:53 +00:00
aiongg a68eb1290d Rail story: allow marker covers its width scope 2026-11-17 07:05:19 +00:00
aiongg 5152722dae Design lint: rail trials compare within a point, story strip sizes from IconicSizes, dead rail exemptions removed 2026-11-17 07:04:50 +00:00
aiongg 9cd0dcf2ba Dialog host forgets a layer's open slot through runtime memory, not the body layer 2026-11-17 07:02:50 +00:00
aiongg af2681cd26 Remove the access-focus DIAG print: the Layers row takes accessibility focus 2026-11-17 07:01:50 +00:00
aiongg 0c671476e9 Format 2026-11-17 06:55:56 +00:00
FredApps bf448c194a Merge pull request #1729 from D13GOOOO/docx-stacking-order
craft-docx: a relativeHeight of 0 stays the lowest stacking order (wordcraft#2638)
2026-11-17 07:40:05 +01:00
aiongg 2de6c8c636 Remove diagnostic prints 2026-11-17 06:32:37 +00:00
aiongg 110f62f255 Merge branch 'fw/press-route' into fw/mac1
# Conflicts:
#	crates/ui-contract/src/primitives/sensing.rs
2026-11-17 06:31:19 +00:00
aiongg 053d567561 Press routing by kind: a press's click and its drag each go to the root whose shape is on top for that kind; under a drag-only grip a child keeps its click, a drag-only root below a button takes the drag; TransformBox parts take the click with the drag so a press on the box is the box's alone; DIAG covers the two trials (CRAFT_DIAG_TEST) 2026-11-17 06:20:27 +00:00
aiongg c17f5d7e49 Merge branch 'look/align' into fw/mac1 2026-11-17 06:17:59 +00:00
aiongg c25070dbe3 Merge branch 'fw276/fix2' into fw/mac1 2026-11-17 06:17:59 +00:00
aiongg d3b6dc9781 Merge branch 'red/p2fw' into fw/mac1 2026-11-17 06:17:59 +00:00
aiongg 951a1755fd TransformFields panel form: the number fields fill their grid cells 2026-11-17 06:16:55 +00:00
aiongg c410d7ddbf TransformBox takes PhotoCraft's zones: a corner or side handle reaches handle.md from its point, and each side's band reaches outside the box only, so inside the box off the handles a press reaches what lies under it 2026-11-17 06:16:10 +00:00
aiongg c01888f762 Iconic trials name their rect helper rect_of, so the icon id check doesn't read panel labels as icon ids 2026-11-17 06:13:55 +00:00
aiongg 4a3c72f2db Look align: text parts ignore the host's egui size floor; options bars at the standard control size; selects in a bar fit their widest entry; check box labels in body type; title band glyphs at size.icon.sm with a faint kind caption; Inspector names its target at section weight; Transform fields fill two columns, W and H first 2026-11-17 06:13:31 +00:00
aiongg 1cdfdad757 NoticeCenter posts and tracks nothing in a measuring run 2026-11-17 06:13:28 +00:00
aiongg 0946da5e26 Trial: a settled region with a content version runs once in the pass that routes an AccessKit Focus into it, and not when the Focus goes elsewhere 2026-11-17 06:13:20 +00:00
aiongg 2ebd32d598 DIAG: the press winner's candidates (every shape under the press per root, with order and clip) and each root's start decision, for the six press-routing tests of round I 2026-11-17 06:12:52 +00:00
aiongg fe65388c31 Remove the pending-crop DIAG prints from sensing and the tool host: the cause is found 2026-11-17 06:11:29 +00:00
aiongg 8361af67ad A settling region runs while an intent of the pass is routed to a component in it: an AccessKit Focus on a Layers row reaches its collection 2026-11-17 06:11:29 +00:00
aiongg 2a10d1400e A press on a guide keeps the guides' parts declared until it ends: a ⌘-press whose key is let go before the drag keeps its guide and focus 2026-11-17 06:11:29 +00:00
William Dunn aa4647a777 craft-cloud-local: confine every path through a Dir capability, not a path string
benandez's re-review reproduced three escapes the first confinement fix still
left open. A dangling symlink: canonicalize reported it as missing, so the
old confine_to_root walked up to root and accepted it, and write created the
symlink's target for real, outside root. A check-then-use race: confine_to_root
checked one path string and a later fs::read or fs::write resolved that same
string again, a second lookup a concurrently swapped link could land in
between. A hard link: write truncated the shared inode in place, with nothing
in a canonicalized path to show that another name pointed at the same file
outside root.

list, read, write and create now resolve every already segment-checked
relative path through a cap_std::fs::Dir capability opened on root, instead
of joining an absolute OS path and handing it to plain std::fs. cap_std
resolves one path component at a time against real, already-open directory
handles, so a symlink or a Windows junction cannot walk resolution above
root, dangling or not, and there is no separate check with a window for the
directory tree to change underneath it: the one resolution is the open. This
is the same family of guarantee craft-font-store already depends on through
cap-primitives, which cap_std is built on.

write no longer truncates its target in place either way: it writes a new
sibling file and renames it over the target, so a hard link's directory
entry is replaced rather than its shared content being overwritten.

Per that review's non-blocking notes: a name that already exists on disk
with an ordinary ':' or '\' byte (macOS stores a typed '/' as ':') stays
reachable by list and read, since neither character is a path separator on
any platform's filesystem; the stricter refusal now applies only to a name
being chosen by Create. Create also goes back to bringing a fresh root into
existence, matching its behaviour before the first confinement fix. A
Windows reserved device name (CON, COM1, CONIN$, with or without an
extension) is refused in a chosen name on every platform.

Regression tests reproduce all three escapes (dangling symlink, swapped-link
race, hard link), plus the previously missing coverage: a link in the folder
a Create targets, and a write test that actually reaches disk instead of
being refused for an unrelated reason before confinement ever ran. Verified
by hand that each of the three new write-path tests fails against the
pre-fix pattern (an absolute OS path joined by string concatenation) before
trusting them.
2026-11-17 00:51:58 -05:00
aiongg 687f709893 DIAG print after the press-route merge: names untargeted in place of the removed helpers 2026-11-17 05:41:54 +00:00
Dylan M. Taylor a953b26365 Merge branch 'main' of https://github.com/storytold/craft-libs into fix/chart-title-range-parity 2026-11-17 00:39:34 -05:00
Dylan M. Taylor 6526535a1e Merge branch 'main' of https://github.com/storytold/craft-libs into feat/hpgl-byte-lexer 2026-11-17 00:39:33 -05:00
aiongg 3c2d6360c6 Merge branch 'fw/mac1' into fw/press-route 2026-11-17 05:32:46 +00:00
aiongg a70609d944 Press routing: exactly one root starts a press, the one whose shape is on top under it
The shape record keeps each shape's place in the pass's paint order and the clip it shows through, and which
root a transformed body layer belongs to. pointer::press_winner resolves every root recorded on the topmost layer
at the press (a body layer's root beneath its body) and gives the press to the root whose winning shape was
recorded last; egui's targets stay only to tell a raw egui widget on top. The sensing core starts a press on that
root alone, so a control under a later body-sized widget takes its press and a frame handle over a nested editor
wins over the editor. Member widgets over nested roots, which only steered egui's target, are gone.
Trials: a control under a later body widget; one root of three overlapping ones starts each press.
2026-11-17 05:31:53 +00:00
aiongg f42157c78b Merge branch 'fw276/check' into fw/mac1 2026-11-17 05:25:39 +00:00
aiongg 952556cf62 FW-276 trials: drop a diagnostic trial 2026-11-17 05:25:27 +00:00
aiongg 660daa69a1 Merge branch 'red/f3' into fw/mac1 2026-11-17 05:25:10 +00:00
aiongg a6c2980bb4 FW-276 trials: a context request on a collapsed floating window's band opens its menu, and Close closes the window 2026-11-17 05:25:07 +00:00
aiongg 6c358f48d2 A container that scrolls one axis keeps an axis it was measured unbounded along unbounded for its children, so a row given no width never lays a child out in a NaN room 2026-11-17 05:24:50 +00:00
aiongg c5a2c52386 Dock UI: a collapsed floating window's title row is its column's bar alone, the band and the double arrow; its menu opens from the band 2026-11-17 05:24:12 +00:00
aiongg 46b8754c10 cl: app mode from [workspace.metadata.cl], one CL_LAUNCHER/CL_RUNNER pair
An app workspace declares its selection, tracked crates, expected features,
environment, shards, default test times, run slots and test threads in its
root Cargo.toml; cl reads them from cargo metadata and refuses unknown keys
and wrong types. The PhotoCraft constants and CL_PC_LAUNCHER/CL_PC_RUNNER
are gone: every workspace uses CL_LAUNCHER and CL_RUNNER. `cl build
<example>` builds any example over the selection. Drops a committed
__pycache__ file and ignores __pycache__/.
2026-11-17 05:23:34 +00:00
aiongg 757d559fd1 Merge branch 'red/p2fw' into fw/mac1 2026-11-17 05:21:34 +00:00
aiongg 2bf4f78ea9 Merge branch 'fw/popover' into fw/mac1 2026-11-17 05:21:34 +00:00
aiongg ef0bee0346 Merge branch 'red/f2' into fw/mac1 2026-11-17 05:21:34 +00:00
aiongg 9029506f92 FW-276 stories: the collapsed floating window story covers the ordinary look; it shows no mixed value 2026-11-17 05:21:33 +00:00
aiongg e1e4a8755b FW-276 trials: a floating window's title-row point lies on its band, clear of the actions the double arrow moved 2026-11-17 05:20:30 +00:00
aiongg d29927b928 FW-276 merge fixes: the rail sets its roving grid on its own props, trials import the traits they call 2026-11-17 05:17:42 +00:00
aiongg 22865ab172 DIAG: the press machine's step and open press of an arena with members on a secondary press (space_hand_view_menu_keeps_escape_and_enter_from_the_pending_crop) 2026-11-17 05:15:46 +00:00
aiongg 5e95f9e37d DIAG: the node an AccessKit Focus request names, as route_access finds it (every_displayed_shortcut_dispatches_from_where_focus_usually_is) 2026-11-17 05:14:47 +00:00
aiongg 689a48bd2e DIAG: why an arena with members refuses a secondary press (space_hand_view_menu_keeps_escape_and_enter_from_the_pending_crop) 2026-11-17 05:14:47 +00:00
aiongg 7c1d7e60b6 A reveal moves no view along an axis its rect already spans: a canvas-wide control under the rulers keeps the view still
DIAG: the canvas prints each reveal it takes (command_drag_over_a_guide_moves_the_guide_with_any_tool).
2026-11-17 05:14:47 +00:00
aiongg ec64d98b70 A full-window side column's paragraphs wrap at a dialog's line length, and a row notice offered no room takes at most the column's room (DIAG: notice widths in the Content-Aware Fill tests) 2026-11-17 05:13:50 +00:00
aiongg 4f53e27dba Pages: page children take their scope id from the framework's id derivation
Each page's child Ui, measured or shown, is scoped by its page id (memory::sub
of the set's base), as a lazy child is, not salted by hand.
2026-11-17 05:13:49 +00:00