Commit Graph
304 Commits
Author SHA1 Message Date
dotCooCoo 988e77876f ui: a canvas body can claim a wheel gesture and mark it modal
Wheel gains claimed, claimed_gathered, claimed_zoom_gathered and
claimed_spent. CanvasSpace::claim_wheel claims the pass's share of the
gesture the canvas owns and records the motion the body used up; the
gesture's later shares carry the claim and count only the shares the
body claimed, so a body that turns a gesture into steps keeps no state
of its own. A second claim in the same pass replaces the first, and a
claim outside a running pass, of a gesture another taker owns, or with
a non-finite spent value is refused. claim_wheel returns whether the
claim was taken.

The canvas does not move its view by a claimed gesture: it skips the
navigation of claimed shares and drops the eased wheel, the eased wheel
zoom, the touchpad glide and any partial zoom notch the gesture still
owed, also in passes without a share and after a device end.

CanvasSpace::mark_wheel_modal marks the running gesture as gone on
under one of the app's own modal windows, so its later shares carry
Wheel::modal until it ends. Synthesized end shares carry the claims of
the gesture they end, and a gesture the split hands to another owner
starts its claims again.
2026-11-29 16:22:43 -08:00
Dylan M. Taylor 706853deed Merge branch 'main' into lightcraft-pr/fw-number-plus 2026-11-29 14:39:26 -05:00
skylartaylor 69c21a6906 Merge craft-libs main into the checkbox sweep fix 2026-11-29 18:16:40 +01:00
skylartaylor f2c57998d2 Bound unary sign parsing and preserve signs on length fields 2026-11-29 17:44:16 +01:00
skylartaylor b67e72ea6b Merge signed number formatting with authoritative parsing and precision 2026-11-29 17:41:18 +01:00
Dylan M. Taylor d49ee8d237 Merge main and regenerate contract API after inspector changes 2026-11-29 10:07:01 -05:00
BFlat c3672bd709 Merge pull request #4220 from dotCooCoo/feat/wheel-gesture-modal-and-keys
ui: a wheel share carries the keys held during its gesture and whether a modal held it
2026-11-29 13:01:53 +07:00
dotCooCoo a29ccbc1fb ui: a wheel share carries the keys held during its gesture and whether a modal held it
Wheel gains two fields. held is the modifiers held at any point of the
running gesture: those of its wheel events, of key events between them,
and of a key tapped between a swipe's device end and the momentum run
that resumes it. modal is set when a wheel event of the gesture, or one
less than GESTURE_GAP before it began, arrived while a modal layer held
the wheel, in the same window or in another. A canvas can then leave
the rest of a turn begun under a dialog alone after the dialog closes,
and apply a rule such as Shift tapped mid-gesture.

End shares carry the held and modal values of the gesture they end.
2026-11-28 20:08:12 -08:00
skylartaylor 711cfbd0bc Merge updated wheel handling from craft-libs main 2026-11-29 04:20:57 +01:00
skylartaylor a770df044d Merge craft-libs main into the input and focus fixes 2026-11-29 03:56:53 +01:00
autocraft-bot[bot] e8bb26145d Merge pull request #3271 2026-11-29 02:12:19 +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 93006634f4 dock: part of a collapsed column floats or docks expanded
A group or panel taken out of a column collapsed to icons kept the
column's collapsed state in its new column. A group dragged out of an
icon column by its grip floated as a strip with a flyout: the tab names
were cut off and a click on a tab did not switch the panel.

A new column, floating or docked, now stays collapsed only when it holds
the whole column it came from. When other panels stay behind, the new
column is expanded. Groups that join an existing column still keep the
source column's state, so their flyout widths are unchanged.

An icon dragged out of a collapsed column that keeps other panels now
starts a plain group drag, so the float preview and the window rect match
the expanded window that the drop makes.
2026-11-28 12:07:34 -08:00
skylartaylor 7d1d1051a5 Merge framework dock key forwarding into scalar routing 2026-11-28 20:21:48 +01:00
autocraft-bot[bot] 03bd2112a5 Merge main into design-port/pr-dialog-looks 2026-11-28 19:19:47 +00:00
skylartaylor 7e7128ad21 Merge craft-libs main and regenerate the contract catalog 2026-11-28 18:22:22 +01:00
skylartaylor 79b8f4efad Merge current framework main 2026-11-28 18:03:25 +01:00
skylartaylor a5fa9872d0 Merge latest craft-libs main 2026-11-27 18:42:44 +01:00
skylartaylor a9d0ec2fa7 Merge craft-libs main (40e0459086) without changing layout ownership 2026-11-27 18:31:00 +01:00
aiongg ee7ae9fb80 Merge storytold main (2aa00e60bf) into fw365-int
Conflicts:
- ui-contract items/hooks.rs: rest_lead takes no placement here; main's
  lead focus ring block is kept as main wrote it.
- ui-panels docking/mod.rs: main's FocusLook import kept; the memory::sub
  import goes, since the dock no longer keeps pass frames in memory.

Follow-ups of the merge:
- MeasureCx::in_row (main) reads row_alone_room from the component's
  scope env, as column_room does here.
- The split-handle focus ring trial (main) passes SplitArea's revision.
2026-11-27 15:00:15 +00:00
skylartaylor 33f2e722c9 Merge remote-tracking branch 'origin/main' into rv-3271
# Conflicts:
#	crates/ui-widgets/src/value_drag/slider.rs
2026-11-27 08:50:41 +01:00
skylartaylor 9ca942c747 Merge craft-libs main (c0977ad6): access.rs doc is main's sentence plus our Scroll Into View one; docs regenerated 2026-11-27 08:40:45 +01:00
skylartaylor e14a0e9be8 Merge craft-libs main (c0977ad6): module list unioned, docs regenerated 2026-11-27 08:40:45 +01:00
BFlat 85d26f43e0 Merge pull request #3632 from dotCooCoo/fix/flyout-keeps-width-on-redock
dock: a group docked into a collapsed column keeps its width as its flyout width
2026-11-27 14:21:34 +07:00
BFlat f17d2a71a1 Merge pull request #3804 from dotCooCoo/fix/quantity-leading-zero-decimal
Read a lone grouping mark after zero as a decimal
2026-11-27 14:18:46 +07:00
BFlat 1b6a488a66 Merge pull request #3619 from dotCooCoo/feat/wheel-zoom-lines
ui-contract, behavior: a wheel that zooms carries its wheel lines
2026-11-27 14:06:59 +07:00
skylartaylor a8786edae3 Merge remote-tracking branch 'origin/main' into design-port/pr-dialog-looks 2026-11-27 04:51:02 +01:00
skylartaylor 3c91dccde5 Merge remote-tracking branch 'origin/main' into design-port/pr-dock-forwarded-keys 2026-11-27 04:51:01 +01:00
skylartaylor 7e85934986 Merge remote-tracking branch 'origin/main' into design-port/pr-input-focus 2026-11-27 04:51:01 +01:00
skylartaylor 480e265373 Merge remote-tracking branch 'origin/main' into design-port/pr-checkbox-sweeps 2026-11-27 04:51:00 +01:00
skylartaylor 8273704631 Merge craft-libs main; merge only, no code changes
# Conflicts:
#	crates/ui-widgets/src/form/slider_field.rs
2026-11-27 04:43:16 +01:00
aiongg dc82c38b97 Merge remote-tracking branch 'upstream/main' into fw365-int 2026-11-27 03:40:00 +00:00
aiongg b402ab7455 The tool options' types are PlainData (FW-365 F6b) 2026-11-27 03:10:21 +00:00
dotCooCoo 30152bd16e Read a lone grouping mark after zero as a decimal 2026-11-26 14:42:15 -08:00
skylartaylor 3d5056ed9a Checkbox sweep: the press docs say their whole first sentence, and a passed jump release claims no drag
Reviewer findings on #3214: `pressed_part`'s entry ended mid-sentence and said
nothing about the pass that ends the press, and `icon_ink_on`'s ended after
picking the higher-contrast token, leaving out the non-text contrast minimum the
implementation then applies.

The catalog lists the first line of each doc comment, so both now open with a
complete sentence that carries the boundary: `pressed_part` is the part in the
pass that ends the press and in none after it, and `icon_ink_on`'s ink is pushed
to the non-text minimum. The catalog is regenerated; the run also picks up two
entries the branch's merges added without regenerating (`Action::restore` and
`floated`'s doc), and a second run leaves the file byte for byte as it was.

The jump-release trials gain the passing sense: a press that clicks and passes
its drag, released past slop in the batch that presses again, ends with a
`Release` that claims no drag, as the click-and-drag sense does, and the new
press opens.

Tests: cargo test -p craft-behavior --lib -- press (18 passed, 4 of them the
jump-release trials).
2026-11-26 23:22:46 +01:00
skylartaylor d76d12cb01 Dialog looks: the catalog entries that stopped mid-sentence now end one
Reviewer finding on #3448: entries in `docs/contract-api.md` ended mid-sentence
(`size_ok` at "a `min` that is", `label_decimals`, and the `WindowSpec`,
`pressed_part` and `icon_ink_on` summaries). The generator lists the first line
of each doc comment only, so each of those doc comments now opens with a
complete sentence and keeps the rest below it: `size_ok` says on its second line
that a `min` that is not a number counts as one unit, `label_decimals` keeps its
cases in the paragraph under the summary, and `WindowSpec`'s first line carries
the whole "what it is for, who draws its frame, where it stands and whether it
has a taskbar entry" sentence.

Regenerated with the branch's own generator; a second run leaves the file byte
for byte as it was. Every entry this branch adds or changes now ends in a full
stop. The rest of the file keeps the entries the base leaves truncated (1273 of
4820 entry lines still end mid-sentence, none of them touched here): sweeping
those, or teaching the generator to join a doc's first sentence, is a separate
change.

The regeneration also picks up two entries the branch's merges added without
regenerating (`Action::restore`, and `floated`'s doc).
2026-11-26 23:09:50 +01:00
skylartaylor 4480f8b98c NumberCodec::explicit_plus: a custom parser still sees the signed text
Review (CodeRabbit), codec.rs:337. The absolute branch recursed on the text after the sign, so a field's own
`or_parse` was handed "Auto" where it had always been handed "+Auto". The sign is read on its own only when the
reader accepts what follows; text the reader does not read falls through with its `+` intact, so a custom parser
sees the text as it was typed. Trial: codec::review_tests covers `+Auto` through or_parse beside `+2` and `+(2+3)`.
2026-11-26 22:45:45 +01:00
skylartaylor 50d659a6d4 NumberCodec::explicit_plus: the signed text is absolute for every lead
Review (Fred): the guard after the sign asked for a digit or the decimal separator, so "+(2+3)" fell through to the
reader, which read the plus as relative and committed 15 where the field shows 5 for "+2+3". Whatever follows the
sign that the reader accepts, a number in any script or an expression, is now read on its own: the signed text is
absolute, and a lone "+" still falls through and is refused.
2026-11-26 22:09:16 +01:00
skylartaylor d254821a27 Merge remote-tracking branch 'origin/main' into design-port/pr-dock-forwarded-keys 2026-11-26 22:08:04 +01:00
skylartaylor dc73cff872 Merge remote-tracking branch 'origin/main' into design-port/pr-checkbox-sweeps 2026-11-26 22:08:03 +01:00
skylartaylor 82ad894e09 Checkbox sweep: a release that gives way to a new press claims no drag it never started
Reviewer finding: once a press's `Down` was reported, a far release with no
move before it marked the press as dragging and held the release for the
`DragStart` it still owed. A new press in the same batch ended it first, so the
parts read a dragging `Release` with no `DragStart` before it.

A release that gives way to a new press now reports the drag only when the
parts were told its start (`Open::drag_reported`), so a press reads `Down`, a
`Release`, or `DragStart` then `Drag` and `Release`. Where the button went up
stays in `Release::pos`, and a release past slop is no click either way.

Regression: `Down` reported, then a far release with no move and a new press in
the same batch.
2026-11-26 21:12:12 +01:00
skylartaylor ae7b92be69 Merge remote-tracking branch 'origin/main' into design-port/pr-input-focus 2026-11-26 17:38:10 +01:00
skylartaylor b4466f52b2 Merge craft-libs main dc2cb42b15 into the branch 2026-11-26 08:34:47 +01:00
skylartaylor bee8e35033 Merge craft-libs main dc2cb42b15 into the branch 2026-11-26 08:34:39 +01:00
skylartaylor a868bc616d NumberCodec::explicit_plus: the sign's digit in any script the reader reads
Review (CodeRabbit): the guard after the sign asked is_ascii_digit, so "+\u{663}" (Arabic-Indic 3) failed it and fell through
to the reader, which read the plus as relative: 13 for a start of 10. The guard now uses the reader's own digit class,
so any supported script's digit keeps the sign the number's, and a plain field's relative reading is unchanged.
2026-11-26 06:59:37 +01:00
skylartaylor 03afe3f4a8 NumberCodec::explicit_plus: the space after the sign, and a signed percentage
Review (CodeRabbit): the guard after the sign looked at the next character only, so "+ 2.50" typed back fell
through to the reader, which strips the space and reads the plus as relative (12.5 for a start of 10); the digit
is now looked for after the space. A share field's signed percentage failed too: "+50%" dropped the sign and
re-entered parsing where the share branch had no start value, so it read as no value; a signed number is absolute,
so it is read without the share branch, as "+50" already was. Trials: codec::review_tests for both, and the plain
field's "+ 2" still adds to the start.
2026-11-26 06:48:12 +01:00
aiongg ecdc221f4a Merge next into main 2026-11-26 05:38:41 +00:00
dotCooCoo 95f51ab149 dock: a group docked into a collapsed column keeps its width as its flyout width
A group moved from a floating window or an expanded column into a column
collapsed to icons joined with no flyout width, so its flyout opened at the
column's width and the size the panel was resized to was lost.

The group now takes the width it was shown at as its flyout width: the
floating window's width or the expanded column's. A width equal to the
column's leaves the flyout following the column, and a group from another
collapsed column keeps its own flyout width.
2026-11-25 19:44:48 -08:00
BFlat 40c4cb3157 Merge pull request #2949 from dotCooCoo/feat/fit-short-order
Fit: items rank their short forms, and late ones shorten after the free items leave
2026-11-26 10:24:19 +07:00