Commit Graph
880 Commits
Author SHA1 Message Date
FredApps e058e4d58e Merge branch 'main' into fix/ui-perf-1-floating-windows 2026-11-28 22:02:54 +01:00
Martin BallandClaude Sonnet 5.5 bd4f24ac1e fix(ui-patterns): a preferences text row takes a placeholder (#4028) (#4091)
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 20:18:48 +00:00
Martin BallandClaude Opus 5.5 1a09c8ad77 ListManager list keeps its height; tabbed Colors dialog's Standard page shows the compare block (storytold/wordcraft#7979, #7984) (#4032)
* fix(list-manager): the list takes height from its rows so the empty message and rows clear the section under it (storytold/wordcraft#7979)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx

* fix(color-ui): the tabbed dialog's Standard page shows the compare block

Part of storytold/wordcraft#7984.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:18:37 +00:00
dotCooCoo 5c84c026e2 Docking: a native window's move records its place once, when it ends
While the app moved a floating window shown in an OS window, the dock
area recorded the window's new place (Action::SetNative) in every pass
of the drag. Each record was a workspace edit, which changed the
workspace revision and rebuilt the dock's kept specs, titles and
geometry in every frame of the drag.

FloatingGroupOutput gains `moving`, kept in the group's memory from a
move's Begin to its Commit or Cancel. DockArea skips native::reported
while it is set; the Commit pass and the passes after it record the
place where the window was let go.

The new trial counts the placement records during a six-step drag of
a palette the app moves: 6 without the change, 0 with it, and the
release still records the final place.
2026-11-28 12:01:20 -08:00
autocraft-bot[bot] 604941c4ba Merge pull request #3446 2026-11-28 18:35:45 +00:00
autocraft-bot[bot] 82180bb27c Merge pull request #3217 2026-11-28 18:35:25 +00:00
BFlat a665282eb2 Merge pull request #3422 from dotCooCoo/fix/prefs-previous-next
ui-patterns: PreferencesWindow can show Previous and Next to step through the pages
2026-11-28 23:11:14 +07:00
skylartaylor e53c73b054 Merge craft-libs main after the body read refactor 2026-11-28 16:18:25 +01:00
dotCooCoo 4c14eb978d Save for Web: Optimize to File Size's OK waits while the size text does not parse
Clicking the Optimize rows' OK while Desired File Size held text that does
not parse filed a search with the size the rows held before. Clearing the
field had the same effect for both OK and Enter, since the field took empty
text as a blank value and the rows kept their old size.

The size field now holds an f32, which has no blank value, so empty text
does not parse either, and OK is disabled while the field's text does not
parse, as the parameter dialogs hold their OK. Enter in the field already
filed nothing for text that is not a number.
2026-11-28 00:06:53 -08:00
dotCooCoo c3419b76ba Merge main into fix/prefs-previous-next 2026-11-27 23:57:04 -08:00
FredApps 0cfac38424 rustfmt: drop the extra blank line in the Art tab test 2026-11-28 05:38:13 +07:00
FredApps 6da2be899a Merge branch 'main' into newdoc-dont-color-manage
# Conflicts:
#	crates/ui-patterns/tests/it/form_dialogs/new_document.rs
2026-11-28 05:33:42 +07:00
FredApps b2392ceff7 Merge pull request #2531 from KotovGGG/codex/fixed-floating-palette
Let floating panels opt out of edge resizing
2026-11-27 22:55:05 +01:00
FredApps 40a28b8064 Merge pull request #2261 from RickiNano/newdoc-recent-items
New Document: optional Your Recent Items layout for the Recent tab (photocraft#14038)
2026-11-27 22:53:52 +01:00
FredApps fe77bef8ef Merge pull request #2254 from RickiNano/newdoc-preset-lists
New Document: Photo, Print and Art & Illustration list the blank document presets (photocraft#14040)
2026-11-27 22:53:25 +01:00
skylartaylor a9d0ec2fa7 Merge craft-libs main (40e0459086) without changing layout ownership 2026-11-27 18:31:00 +01:00
skylartaylor dfd21cd773 Merge craft-libs main (40e0459086) without changing layout ownership 2026-11-27 18:31:00 +01:00
skylartaylor 1062c1ad41 Merge commit '4d0a0b89d6b4c5504e891cab51907f860d28f67b' into design-port/pr-dock-forwarded-keys 2026-11-27 18:10:02 +01:00
skylartaylor 664f152108 Merge commit '4d0a0b89d6b4c5504e891cab51907f860d28f67b' into design-port/pr-docking-windows 2026-11-27 18:10:02 +01:00
aiongg 7d9544226d Clippy over the merged branch: needless borrows, a copied DockCommands, named tuple types 2026-11-27 15:17:06 +00: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
bflatastic 1eb6a92ade Clear the design-lint findings on main
Mark TransformBox::handle_side and PreferencesWindow::size as point
quantities the host supplies, and make CheckContext #[non_exhaustive].
#3855 and #3738 are reverted above: they read egui memory, raw keys and
pointer clicks outside runtime::egui.
2026-11-27 15:52:38 +07:00
bflatastic b0370f2298 Revert "Merge pull request #3855 from dotCooCoo/fix/web-export-web-shift-state"
This reverts commit e707caf245, reversing
changes made to f66ed91a34.
2026-11-27 15:52:38 +07:00
skylartaylor e14a0e9be8 Merge craft-libs main (c0977ad6): module list unioned, docs regenerated 2026-11-27 08:40:45 +01:00
skylartaylor 246f99c684 Merge craft-libs main (c0977ad6): docs regenerated, nothing else 2026-11-27 08:27:41 +01:00
BFlat f78fca080f Merge pull request #3856 from dotCooCoo/fix/form-row-additional-enable-condition
Forms: let a field require more than one enabled condition
2026-11-27 14:23:50 +07:00
BFlat 7a4e4e4c37 Merge pull request #3753 from dotCooCoo/fix/preset-group-selection
ui-patterns: support opt-in group and preset selection
2026-11-27 14:22:05 +07:00
BFlat e707caf245 Merge pull request #3855 from dotCooCoo/fix/web-export-web-shift-state
Save for Web: show when the selected colors are web-shifted
2026-11-27 14:19:25 +07:00
BFlat da57b151d2 Merge pull request #3772 from dotCooCoo/fix/param-captionless-name
Parameter forms: name fields with hidden side captions
2026-11-27 14:18:20 +07:00
BFlat bb84da2f88 Merge pull request #2965 from dotCooCoo/feat/unit-text
Units: number rows can show unit text, and UnitKind gains Milliseconds
2026-11-27 14:16:13 +07:00
BFlat c8aa3daad4 Merge pull request #3881 from dotCooCoo/feat/preset-toolbar-leading-tools
Let preset host tools lead the toolbar on opt-in
2026-11-27 14:14:33 +07:00
BFlat 822f63ea75 Merge pull request #3643 from dotCooCoo/fix/browser-find-search-name
ui-patterns: the preset browser's Find also matches a row's search name
2026-11-27 14:12:31 +07:00
BFlat 7d4b8e9684 Merge pull request #3468 from dotCooCoo/fix/file-list-picker-short-room
ui-patterns: a FileListPicker in a short room keeps its buttons whole and the rows after it under them
2026-11-27 14:06:19 +07:00
BFlat 730c8a35c7 Merge pull request #3426 from dotCooCoo/fix/prefs-open-size
ui-patterns: PreferencesWindow can open at a size the host gives
2026-11-27 14:06:05 +07:00
dotCooCoo 0fd61ad968 Let preset host tools lead the toolbar on opt-in 2026-11-26 21:48:19 -08: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 5468d9ffe5 Merge craft-libs main (9524262a, next merged into main): resolve conflicts and regenerate the catalog 2026-11-27 04:50:45 +01:00
aiongg 3ae00251dc Merge fw365-f4-cl (14317bbe78) into fw365-int 2026-11-27 03:10:28 +00:00
aiongg 14317bbe78 fix(ui-panels, ui-patterns): a split area's body lays out at the frames of its own run
In a new room the docks' split area measures its body before showing it. The body read its frames from the shown
slots `update` writes, which a measuring run never reaches, so the measuring run laid the docked tree out at the
previous pass's frames. The dock gathered the tree's leaves across both runs and registered its edge drop bands from
their union: the bands kept the old room's width, and the docked tree's kept record replayed them (the replay audit
found it on the Top band).

`SplitArea` gives its body the frames through `content_env`, which runs in a measuring run at its rect and in the real
run after the dividers' edits, as the canvas split gives its panes. The body reads them as `SplitGroups` and
`SplitDocks` app values. The dock gathers the leaves and registers the bands inside each run of the body; a measuring
run registers nothing. The dock trial keeps the replay audit on through room changes.
2026-11-27 02:49:23 +00:00
aiongg eda8a40734 fix(ui-patterns): the dock reports what it drew from the real run only
F1 memoizes the docked tree and its columns, and their views return what they drew. Measuring runs added to the
area's report as well: `Pass::dock` pushed each placed column, `shown_column` and `tree` added a view's returned
report, and an unmemoized column pushed its dividers. When the docks' split area measured them before showing them
(a new room or zoom), or the replay audit ran the tree, the report listed columns and sources twice, and the tree's
output differed from its replay (PhotoCraft tabs_tests under the audit, FW-365 F4).

Each of these is now an effect of the real run (`measure::effect`), as the group's own report already was. The trial
checks the counts the dock reports through room changes and under the audit.
2026-11-27 02:07:18 +00:00
aiongg 84be0cbf2f perf(ui-patterns): a settled dock replays its columns and its docked tree
Each dock column (docked, collapsed to icons or in a floating window) shows
as a memoized view keyed by the pruned layout, its place, the area's
requests and the versions of the panels it shows (DockPanels::content).
The docked tree is one view keyed the same way over every panel it shows,
so an idle dock whose panels all have versions replays as one record; a
column or tree with an unversioned panel runs as before. What a replay must
still report (gesture sources, shown groups, placed columns) comes back as
the view's value, and the focused group is read from the shown groups' ids
after the views.

The docks' natural widths and card places are derived per layout, sizes and
config, and SplitArea derives its frames, handles and their ranges from the
caller's revision of its layout and rules (a required argument) instead of
walking the tree five times per run. Spec lookups in the area return
references.

Two fixes the replay audit found: DockGroup's header drained its command
states in a measuring run, so the real run after it published none; and a
group reported its rect and sources from measuring runs as well, doubling
them in the first pass.
2026-11-27 00:57:51 +00:00
aiongg 8401672c4c perf(ui-contract): menu titles share their held commands, and facts are read in place
A menu title kept its held commands in a Vec, and commands::holds copied every command into a new Arc on
each run of the title. MenuTitle keeps an Arc<[CommandRef]> and holds() shares it. Facts::of_last_pass
cloned last pass's facts for every read; Facts::with_last_pass lends them to the reader instead, so the
menu bar's is_open and is_focused answer without a copy.
2026-11-27 00:28:34 +00:00
skylartaylor 8bc61c8621 Merge remote-tracking branch 'origin/main' into design-port/pr-docking-windows 2026-11-26 22:08:05 +01:00
skylartaylor 52a95b9763 dock: forward each floating window's events with its own modifiers
Reviewer finding on the forwarded-keys work: the area appended every float's
leftover events and kept only the last window's modifiers, so a host that reads
two floats in one pass could not interpret the first window's events. A
clipboard event carries no modifiers of its own.

`DockAreaOutput::window_events` now holds one `WindowEvents` per floating OS
window that left any, in the order the windows were drawn: the panel the area
names the window by, the modifiers held in that window, and its events.
`forwarded_events` and `forwarded_modifiers` are derived from those batches, so
a host with one floating window reads them as before.

Regression: two native floats, one holding Shift and one bare, forward a paste
each in one pass; the batches keep their own modifiers whichever window holds
what.
2026-11-26 21:13:04 +01:00
dotCooCoo a7c2da8c0b Parameter forms: name fields with hidden side captions 2026-11-26 09:20:29 -08:00
dotCooCoo a810e21237 Apply custom unit labels to length fields 2026-11-26 09:09:35 -08:00
dotCooCoo cc7250e420 ui-patterns: support opt-in group and preset selection 2026-11-26 08:05:30 -08:00
dotCooCoo 7da5e5a5e4 Keep both web palette actions available for mixed selections 2026-11-26 07:58:50 -08:00
dotCooCoo 60626900b7 Merge next into feat/unit-text 2026-11-26 07:42:52 -08:00
dotCooCoo 169fd17da3 Forms: let a field require more than one enabled condition 2026-11-26 07:03:49 -08:00