Commit Graph
12239 Commits
Author SHA1 Message Date
BFlat 7ea27925bd Merge pull request #4226 from dotCooCoo/fix/native-tab-tooltip-stage-id
ui-contract: a child window egui opens again starts its pass records anew
2026-11-29 12:17:08 +07:00
BFlat fca519073e Merge pull request #4227 from dotCooCoo/fix/stroke-editor-host-labels
draw: StrokeEditor::host_labels lines its rows up with the host's field group
2026-11-29 12:16:44 +07:00
BFlat 9af755708d Merge pull request #4225 from dotCooCoo/fix/row-measure-zero-height-width
ui-contract: a leaf that measures zero on one side keeps its other side in the body
2026-11-29 12:16:39 +07:00
BFlat d610a4c03c Merge pull request #4224 from dotCooCoo/fix/task-bar-more-stays-on-row
ui: a wrapping bar narrows its selects to fit one line before it wraps
2026-11-29 12:16:34 +07:00
BFlat 9c93396828 Merge pull request #4222 from dotCooCoo/fix/tool-rail-regular-pitch
ui-panels: a regular tool rail steps its buttons by the rail button size, and its footer can scroll
2026-11-29 12:09:06 +07:00
Martin BallandClaude Opus 5.5 134155e1fb ui-test-kit: a test can focus or close one of several child windows (C5-8) (#3722)
Windows::focus, ::close and ::child_facts target one child viewport; the
other children keep their facts and get no close request.


Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 05:02:40 +00:00
dotCooCoo c34f5d15a0 draw: StrokeEditor::host_labels lines its rows up with the host's field group
A host that shows the stroke editor inside its own FieldGroup, next to
rows of its own, got two label columns. The editor put its Alignment,
Caps, Corners, Miter limit and Opacity rows in a FieldGroup of its own,
and the Dash offset row in another, so their controls started at the
editor's widest label instead of the host group's.

StrokeEditor::host_labels(true) shows those rows in a stack that fills
the width, which passes the host group's label column through. The
controls of the editor's rows, the app's choice rows and the Align
dashes row then start where the controls of the host's rows start. The
default is unchanged: without the option each group keeps its own label
column.

Test: host_labels_start_the_editor_rows_at_the_host_groups_control_edge
in crates/draw/tests/it/stroke_editor.rs.
2026-11-28 20:54:53 -08:00
dotCooCoo a02d2b71da ui-contract: a child window egui opens again starts its pass records anew
egui drops a child viewport that a pass of its parent leaves out and
counts the passes of the viewport it opens again under the same id from
zero, while the window stays open and the runtime keeps its records. A
record stamped with a pass number from before could then match a later
pass of the new count and keep that pass's state. In debug builds a tab
tooltip shown in a popup window from a native palette's flyout tripped
"an id is the base of two open stages in one pass" after the pointer
moved from one tab to the next, because the tooltip window closed and
opened again under the same id.

The begin hook now records each viewport's latest pass number. When a
pass begins with a number no higher than it, the viewport's pass-stamped
records are dropped before the pass runs.
2026-11-28 20:53:45 -08:00
dotCooCoo 9d91223839 ui-contract: a leaf that measures zero on one side keeps its other side in the body
The size guard marks a leaf with a zero side as inert, and place_root
placed every inert component at a zero size. egui still added the item
spacing for that allocation, so a content-sized Row counted the gap
before an 8 x 0 leaf but not its width, and a popup sized from the
measuring run cut the leaf off at its edge.

place_root now places an inert component at its measured size when the
size is finite and in range. A size the guard rejects for every shape
still takes no room, and the leaf stays inert.
2026-11-28 20:53:10 -08:00
dotCooCoo baa23a591f ui: a wrapping bar narrows its selects to fit one line before it wraps
A bar made with `Bar::wrap` sent a member to a new line as soon as the
members' natural widths passed the bar, without first narrowing its
selects the way a bar that does not wrap does. A canvas task bar with
type selected (three buttons, the font family, style and size selects,
the paint chips and the More button) was a little wider than the canvas,
so the More button went alone onto a second line and the bar spread to
the full width of the canvas.

A wrapping row in a bar now runs a counting sweep in its measuring run.
When its members are too wide for one line at their natural widths but
fit it at their least, the row narrows them by the same shrink step as a
bar row that does not wrap, from the end, and keeps them on one line.
Members leave by rank only in rows that do not wrap. When even their
least does not fit, the row wraps as before. Wrapping rows outside a
bar are unchanged.

The shrink step's settle closure in `run_shrinking` moves into
`settle_shrink` so both rows use it.
2026-11-28 20:51:57 -08:00
BFlat 8bea6009f9 Merge pull request #4216 from dotCooCoo/fix/held-confirm-same-id-reply
automation: a held confirm waits for the dialog it confirmed when another dialog shares its ID
2026-11-29 11:42:33 +07:00
BFlat 442e1b73ad Merge pull request #4214 from dotCooCoo/fix/field-help-wraps-to-control-width
ui-contract: a field's help line keeps its last line above the widest label
2026-11-29 11:42:28 +07:00
BFlat c1e6c1c1f2 Merge pull request #4211 from dotCooCoo/fix/path-row-test-checks-column
ui-patterns: the path row test checks the Browse button against the column width
2026-11-29 11:42:22 +07:00
BFlat be97da8f59 Merge pull request #4210 from dotCooCoo/fix/still-pointer-no-stir
pointer: a move to the position of the last move does not stir the pass
2026-11-29 11:42:18 +07:00
dotCooCoo 1ed622422a ui-panels: a regular tool rail steps its buttons by the rail button size, and its footer can scroll
A regular tool rail stood its buttons 32 pt apart in the compact sizes:
each button was `size.rail.button` (30 pt) square and the tight gap
(2 pt) came on top. `RailDensity::Regular` buttons are now
`size.rail.button` less `space.gap.tight` square, so a button and the
gap after it take `size.rail.button`. The dock grid's rail columns
follow the same width.

`ToolRail::footer_scrolls` puts the host's footer under the slots inside
the scroll region, after the same divider rule and gap, so in a rail too
short for its rows and footer the footer scrolls with the tools. Without
it the footer stays pinned as before.
2026-11-28 20:28:21 -08:00
dotCooCoo 9bc5780eaf canvas: a tool that takes every move gets a move to the last move's position
With a repeated move no longer stirring the pass, drag_moves returned before every_move, so a tool that takes every move lost the drag call for a move to the position of the last move during a drag. drag_moves now hands the pass's moves to such a tool first, and gives any other tool its single drag only when the pass is stirred or the pointer is in the edge band.
2026-11-28 19:48:49 -08:00
dotCooCoo e05914e768 ui-contract: a field's help line keeps its last line above the widest label
While a measuring run lays out a field group, a row only sees the label
column that the rows before it reported. A check box row with its label
after it, above the first row with a side label, saw no column. A row
beside a label narrower than the widest saw a narrower column. Both
measured their help line wider than the control column of the real run,
so the footer was sized for fewer lines and the last line was cut off.

The label step now notes the column such a row read when the row has a
help line, so the group runs its rows again at the final widths. This
covers a label after the control, a label beside it and a hidden side
label.
2026-11-28 19:45:58 -08:00
dotCooCoo 929dc7b794 ui-patterns: the path row test checks the Browse button against the column width
The fixture's shown rect grows with whatever the row allocates, so a
button that overflowed the column also widened it and the check passed.
The room starts at x = 0, so the test now compares the button's right
edge with the requested width.
2026-11-28 19:28:09 -08:00
BFlat 07a8c471ed Merge pull request #4197 from dotCooCoo/fix/accounts-lock-per-hold
suite-account: the accounts lock timeout applies to one hold, not the whole wait
2026-11-29 10:10:50 +07:00
BFlat a2a619deb8 Merge pull request #4196 from dotCooCoo/fix/tiff-wide-fax-stack
image-codecs: zero TIFF buffers in pieces of at least 1 MiB so wide pools do not overflow a worker stack
2026-11-29 10:10:46 +07:00
BFlat 35dffdafb2 Merge pull request #4198 from dotCooCoo/fix/disabled-text-field-actions
ui-contract: a disabled editor reports its text runs as disabled
2026-11-29 10:10:41 +07:00
BFlat 32b74382da Merge pull request #4200 from dotCooCoo/fix/status-menu-popup-floor
fix(ui-shell): open status bar menus right above their control
2026-11-29 10:10:36 +07:00
BFlat 78cac93016 Merge pull request #4180 from dotCooCoo/fix/page-card-resting-tile
ui-widgets: page cards can rest on a tile
2026-11-29 10:10:32 +07:00
BFlat 2821143c30 Merge pull request #4199 from dotCooCoo/fix/glyphs-footer-inside-panel
font-manager: the Glyphs footer stays inside the panel under the grid
2026-11-29 10:10:27 +07:00
BFlat c1e9abeb8b Merge pull request #4205 from dotCooCoo/fix/flyout-tear-off-grip-clipped
ui-panels: a tool flyout is wide enough for its tear-off bar and draws its grip
2026-11-29 10:10:22 +07:00
BFlat 295a24d1cc Merge pull request #4204 from dotCooCoo/fix/path-row-browse-button
ui-patterns: a path row keeps its Browse button whole in a narrow column
2026-11-29 10:10:18 +07:00
BFlat 3e70030818 Merge pull request #4201 from dotCooCoo/fix/tile-grid-rule-heads
ui-widgets: a tile grid's rule divider sits midway between its groups
2026-11-29 10:10:13 +07:00
dotCooCoo c04b57ecbf pointer: a move to the position of the last move does not stir the pass
The begin hook marked a pass as stirred for every PointerMoved event, so a canvas tool host re-hovered a still pointer, with a full hit test, on every pass that repeated the pointer's position. A move now stirs the pass only when it goes to a new position or carries a pen or touch reading. The last move's position is kept per viewport and cleared when the pointer leaves the window.
2026-11-28 19:05:16 -08:00
autocraft-bot[bot] 64b3861ab8 Merge pull request #4202 from storytold/integration-craft-libs-20261129-6
Integration batch integration-craft-libs-20261129-6
2026-11-29 02:50:45 +00:00
dotCooCoo 073ab1fabd font-manager: the footer test checks the whole glyph grid ends above the footer
The test compared only the first cell with the Zoom footer, so a grid that ran over the footer in a lower row still passed. It now also checks that the bottom of the glyph grid is at or above the footer's top.
2026-11-28 18:32:18 -08:00
dotCooCoo 9a8b74c428 automation: a held confirm waits for the dialog it confirmed when another dialog shares its ID
ui.dialog.confirm confirms the first open dialog with the named ID, but
its held reply recorded the newest opening of that ID. When a dialog of
another type opened under the same ID after the confirm, the next
poll_held answered "the dialog closed while its OK waited for the app's
answer" while the confirmed dialog was still open and waiting.

DialogHost::held_state_with_open_serial returns the opening serial and
held state of the dialog confirm_by_id addresses. dialog_reply records
that serial, and poll_held reads the state of that same opening.
2026-11-28 18:29:45 -08:00
dotCooCoo fa1c7c2018 ui-panels: a tool flyout is wide enough for its tear-off bar and draws its grip
The tear-off bar took its height from the menu rows' rect. In the popup's
measuring run the rows have no rect yet, so the bar measured zero tall and
its width was left out of the flyout's size. The flyout came out one bar
narrower than its content, and its edge clipped the bar and the three grip
lines.

The bar now measures at least as tall as its grip, so the measuring run
counts its width. The new test opens a flyout with the tear-off bar and
checks that the grip lines paint whole inside a clip as wide as the bar.
2026-11-28 18:28:34 -08:00
dotCooCoo d512037910 ui-patterns: a path row keeps its Browse button whole in a narrow column
PathRow showed its FillWidth text field in a content-sized Row, where a
filling leaf keeps its measured width. The field stayed at its full field
length and the row narrowed the Browse button instead, so in a column
narrower than about 280 pt the label was cut to "Brows...". The row now
fills its width: the field takes the room the button leaves.
2026-11-28 18:23:01 -08:00
autocraft-bot[bot] e8bb26145d Merge pull request #3271 2026-11-29 02:12:19 +00:00
dotCooCoo 31d9c5cd3d suite-account: a full cycle of lock-file lengths no longer reads as one long hold
The lock file's length repeats every 64 holds, so a waiter that missed a whole cycle between two polls saw the same mark and could time out behind holds that each lasted far less than the timeout. The mark now also carries the lock file's modification time, which each hold moves when it sets the new length.
2026-11-28 18:12:12 -08:00
dotCooCoo cff4b0f5ad ui-widgets: a tile grid's rule divider sits midway between its groups
Under GroupHeads::Rule a divider between groups was drawn on the top
edge of its row, so it sat one gap under the tiles above it and a full
row height over the tiles below it. The divider is now drawn through
the middle of its row, as a list's rule head draws it, and the row has
the gap below it as well as above it.
2026-11-28 18:12:01 -08:00
dotCooCoo 0db06097fa fix(ui-shell): open status bar menus right above their control
A menu opened in a bottom slot stayed above every bottom slot, so a
status bar menu opened about 24 pt above its control when a help bar
sat between the status bar and the canvas. Popups opened in a bottom
slot now stay above only the bottom slots outside it; popups the body
opens still end above every bottom slot.
2026-11-28 18:07:09 -08:00
dotCooCoo 655a251549 Merge main into fix/page-card-resting-tile 2026-11-28 18:02:44 -08:00
dotCooCoo d5f924f3fc font-manager: the Glyphs footer stays inside the panel under the grid
The glyph grid took all the height left in the panel body and the footer row (the count, the zoom slider and the note shown when no text is being edited) was laid out after it, below the panel's bottom edge, which also cut off the grid's last row. The footer now goes in the stack's footer region, which keeps its room under the grid, and writes the panel settings once after the zoom slider runs.
2026-11-28 17:57:57 -08:00
.CooCoo b1fc0c8a18 ui: a wrapping spread row with a direct allocation on its line places it in sequence (#4195)
A wrapping SpaceBetween row spread its children over its room whenever they
fit one line, even when that line also held a direct egui allocation. The
spread started at the row's start edge, so a child covered the allocation.
The row now spreads only when its content is no wider than its children with
the gap between them; otherwise it keeps the wrapping placement.
2026-11-29 08:54:54 +07:00
.CooCoo 017215a31c sensing: an owner's parts read their press without a search of its last-pass parts for each one (#4153)
* sensing: an owner's parts read their press without a search of its last-pass parts for each one

part_press_in searched the owner's parts of the last pass for every part it
read, so an owner with n parts did n searches of n entries in each pass. It
now searches only for a part that a hit of the pass names: the press target,
a hovered shape or the aside press.

The new trial counts the searches over 3 idle frames of a 400-part root: 1200
before, at most 9 after, and the hovered part still reads hover.

* sensing: count part lookups per viewport instead of in a thread_local

The lookup counter for the many-parts test now lives in the viewport's
arenas behind the testing feature, and known_part_lookups takes the
context, so contract/no-global-state has no thread_local in sensing.rs.
2026-11-29 08:54:48 +07:00
dotCooCoo d78cf67e21 suite-account: the accounts lock timeout applies to one hold, not the whole wait
`with_lock` gave up after waiting 5 s in total, however many times the
lock changed hands meanwhile. A process signing in many accounts takes
the lock in a quick run of short holds, and a waiter polling every
20 ms can miss every gap. Under load,
`concurrent_sign_ins_from_two_processes_lose_no_rows` failed with
"timed out waiting for the accounts lock".

Each hold now sets the lock file's length to the next value in 1 to
64. A waiter that sees the length change starts its 5 s over, so it
still gives up on one hold that lasts past 5 s. Unit tests drive the
wait with their own times instead of sleeping.
2026-11-28 17:53:31 -08:00
dotCooCoo c58f543f18 image-codecs: zero TIFF buffers in pieces of at least 1 MiB
`zeroed` and `refill_zeroed` filled each image buffer with
`par_extend(repeat_n(0u8, len))`, which has no minimum piece length.
When workers stole from each other, rayon kept splitting the buffer,
and on a pool with 128 or more workers the nested splits overflowed a
worker's 2 MiB stack. The fax page test
`a_blank_fax_page_wider_than_4096_px_passes_the_bomb_guard` aborted
this way on a 192-core host.

Both functions now call `extend_zeros`, which sets `with_min_len` to
1 MiB. A unit test zeroes 64 MiB on a pool of 256 workers with 256 KiB
stacks; without the change it aborts with a stack overflow.
2026-11-28 17:53:23 -08:00
dotCooCoo 19e6127ce8 Merge main into fix/disabled-text-field-actions 2026-11-28 17:39:25 -08:00
81bca5c8e2 fix(text): restore Section/Paragraph characters and wildcard helpers in Find Special menu (#3916)
Lands #3916 onto main after #3909 and #3914. The only change from the
approved head is the merge resolution in tests/it/find_dialog.rs: all
three PRs appended a test at the end of the file, and all are kept.

Co-Authored-By: batistalucasv <175663788+batistalucasv@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 01:37:32 +00:00
autocraft-bot[bot] 1f42f701dc Merge main into lightcraft-pr/fw-value-editing 2026-11-29 01:33:55 +00:00
autocraft-bot[bot] 325ae14c28 Merge pull request #4192 from storytold/integration-craft-libs-20261129-5
Integration batch integration-craft-libs-20261129-5
2026-11-29 01:29:51 +00:00
dotCooCoo a484619f82 ui-widgets: a page tile card's veil uses the theme's tint opacity
The resting veil of a CardText::PageTile card fades the scrim by
Opacity::TINT (0.18) instead of a local 0.2, so it follows the theme's
opacity scale like the other tints. The test checks the veil's alpha
against Opacity::TINT.
2026-11-28 17:26:11 -08:00
Dylan M. Taylor fdef1e0e7d Merge pull request #4184 from storytold/fix/stencilcraft-operation-first-only
stencilcraft: operation-first native document model (single schema)
2026-11-28 20:24:27 -05:00
BFlat 857784e6b1 Merge pull request #3675 from dotCooCoo/fix/mesh-ops-unwrap
craft-mesh-ops: auto_unwrap checks limits first, leaves the mesh unchanged on error and packs in f64
2026-11-29 08:15:23 +07:00