Commit Graph
8520 Commits
Author SHA1 Message Date
aiongg 4304f51ff0 cl doctor: rules for the split UI test kit
Since #2363, craft-ui-contract's testing no longer carries snapshot and the
framework crates have a suite feature. Every cl command still resolves one
framework feature set (feature-root brings the gallery's craft-ui suite), so the
three doctor reports were out of date, not second builds:

- drop the pin on craft-ui-contract's testing including snapshot: each framework
  crate's suite forwards to the runtime's suite, which cl picks first
- the gallery's must-be-optional rule covers domain crates, not the framework
- the story renderer's lines are compared with the features the gallery's lines
  turn on, implied features included (suite implies testing)

CL_DRY_RUN with cl render no longer runs the renderer after printing the command.
2026-11-23 10:54:17 +00:00
bflatastic 503ccd4cd9 Merge branch 'sync/next' into sync/delta11 2026-11-23 17:32:13 +07:00
bflatastic e433ef83eb ui-widgets: trial: a grid row holds a field whose label stacks above its control for want of room 2026-11-23 17:28:13 +07:00
bflatastic 3ce58d7cae ui-patterns: a form dialog's body takes the host's answers, the opening pass and OK only in a real run: the dialog's own measuring run of the body (a re-layout under a child dialog) used them up, so Save for Web's real run reported no palette shift 2026-11-23 17:28:13 +07:00
bflatastic 2e4bf56a88 print: the hosted print dialog's automation preset field takes a row's key or its name in any case and applies that row's key, as production found presets by name ignoring case 2026-11-23 17:28:12 +07:00
bflatastic b14f3a313d ui-contract: a component's focus request in a press's pass holds: the press's own focus move at the pass end does not take the focus back, as a layer that appeared in the pass already kept it 2026-11-23 17:28:11 +07:00
bflatastic 2f068b43a0 ui-contract: an injected step whose events the frame it entered held back (behind a real press, H0) stays in flight into the pass that delivers them, which reports injected_pass 2026-11-23 17:28:09 +07:00
bflatastic 77b2d98f66 ui-contract: an open anchored layer keeps the side it took only while its host asks for the same side; asked for another, it takes that side's placement 2026-11-23 17:28:07 +07:00
bflatastic a7f40c4474 draw: a running TransformFields gesture reads its values against the start box it began with, so a host that moves the start box with the gesture's own values does not cancel it as an outside change 2026-11-23 17:28:06 +07:00
bflatastic deb9ad9f07 ui-contract: Tab toggles the panels from read-only text a press focused (a selection part, a press-only stop), as from any pressed control; only a text field keeps Tab for the next field 2026-11-23 17:28:05 +07:00
bflatastic d824d42d25 ui-patterns: a new palette query's active row is its first match, enabled or not, so Enter on a disabled first match runs nothing and the footer says why, rather than Enter running the next match 2026-11-23 17:28:05 +07:00
bflatastic 508faa1eb7 ui-contract: an Alt press an input method types through is typing: the focused text stop that has the IME holds it, so its bound command does not run beside the commit 2026-11-23 17:28:04 +07:00
bflatastic 1fc46b5730 ui-contract: a one-character text with no press of its own is a tap of the key it stands for: a claim takes it, the shortcuts read it with the held modifiers (Shift+~ arrives as ~ alone) and a focused field types it; a text Alt typed with a press no claim took is its key's for a claim (Option+8 types [) 2026-11-23 17:28:03 +07:00
bflatastic cbbc1c26e7 ui-contract: a clipboard event with Cmd and Shift or Alt held is that chord (Cmd+Shift+X), the app's, unless the focused editor lists it for the edit: only the edit's own chord is the editor's Cut, Copy or Paste 2026-11-23 17:28:03 +07:00
bflatastic fd80adccc0 ui-contract: a press of a key that is down already is a repeat, as egui reads it: egui-winit sends every press as no repeat and leaves egui to tell, so the key stage's repeat rules (shortcuts, Escape, Tab) never saw a held key's repeats; the trials that pressed one key twice release it between 2026-11-23 17:28:02 +07:00
bflatastic eaff06f298 Merge branch 'sync/next2' into sync/delta11 2026-11-23 17:13:44 +07:00
bflatastic 34d7846cd3 ui-panels: a docking flyout closes on a press outside it only with Auto-Collapse Iconic Panels on 2026-11-23 17:11:24 +07:00
bflatastic b72fc4200d ui-contract: Fixture::by_label passes over a node that labels another, so a field's control comes before its caption link 2026-11-23 17:11:23 +07:00
bflatastic 80e46cf00e ui-widgets: IconButton::choice reads as a combo box named by its label, valued by the picked row, expanded while the container hung from it is open (contract::overlay::opened_from) 2026-11-23 17:11:23 +07:00
bflatastic 879b8f82a8 ui-canvas: Fit Artboard on Screen leaves 30 pt around the board on every side 2026-11-23 17:11:22 +07:00
bflatastic 08ada730d3 ui-panels: an edited tool rail takes the drops off its buttons: beside the nearest button, and on a blank toolbar as its last slot 2026-11-23 17:11:22 +07:00
bflatastic 000aac087e Merge remote-tracking branch 'origin/next' into sync/delta11
# Conflicts:
#	crates/font-manager/src/panel/specimen.rs
#	crates/font-manager/src/picker/rows.rs
#	crates/font-manager/src/picker/stories.rs
#	crates/font-manager/tests/it/picker.rs
#	crates/ui-widgets/src/choice/swatch.rs
2026-11-23 16:46:21 +07:00
Dylan M. Taylor fbd0bd096c fw sync: an edit comment composer opens with the caret after the text (TextField::keep_caret_on_open)
Upstream's photocraft#15540 selects a text field's whole text when a layer opens on it, so the
port's edit composer (ComposerDraft::Edit / EditVerbatim, port-only kinds) replaced the comment
being edited with the first key typed; production appends ("Original" + " edited").
TextOptions::keep_caret_on_open (TextField::keep_caret_on_open, off by default) leaves the codec's
caret on open; the composer sets it for edits only, so a new comment and every other field keep
upstream's rule. The popover call landed with 5abaa7360; this adds the option it uses.
Trial: note_popup::an_edit_composer_opens_with_the_caret_after_the_text (New still selects all).
2026-11-23 03:49:07 -05:00
bflatastic 47c6d53a1f font-catalog: FaceTraits goes, its class and PANOSE are FaceInfo's; the picker reads Japanese from the OS/2 code pages and ranges and Thai from the cmap 2026-11-23 15:42:50 +07:00
Dylan M. Taylor 5abaa7360e fw sync: clippy clean over the merged sync (all targets, all features)
Real fixes, no allows: split long functions (portal first reads, canvas wheel read, text editor input pass, list row toggle parts, notice action rows, thumbnails grid aspect and edit rules, comments row entries), boxed the large Entry item row, type aliases for complex types, a StatusMeasure for the status cell's measures, double #[must_use] removed where the type is #[must_use], Copy clones and useless conversions dropped, struct-update syntax in place of field reassignment, a split press-pass test.
2026-11-23 03:42:16 -05:00
bflatastic 12d67b1cdf ui-contract: a reveal that moves a collection's rows after it declared its parts asks for another pass, so a memoized view around it runs rather than replay a stale scroll bar 2026-11-23 15:38:27 +07:00
bflatastic ecd1565856 ui-contract: on the focused menu bar a plain letter is a title's access key: it opens the title it marks, and one no title marks runs no shortcut 2026-11-23 15:24:26 +07:00
aiongg 5c5e0d52c3 Font samples: one baseline in a fixed band, shrunk only where their ink would leave it (#3144)
* Font samples sit on one baseline in a fixed band, shrunk only where their ink would leave it

A font sample was as high as its face's line (ascent, descent and line gap, the gap
below the baseline as egui lays it out) and centred in its rect, so faces with a taller
or bottom-heavy line sat higher in the picker's rows, and a face whose line was taller
than the banner's band was centred past its edge and clipped.

One rule, faces::sample_line, now serves FontSample and the picker's banner: the sample
fills a fixed band, sits on the baseline of the interface face's line at its size
centred in the band, and is laid out at its size unless its ink (the galley's mesh
bounds) would cross the band's top or bottom, then at the largest size whose ink fits.
FontSample takes its band as an option; the picker's rows set it to the thumbnail side,
as the banner's band is the large thumbnail side, and the panels keep LINE_EM of the
sample's size.

Trials: rows follow a host text that arrives after the list opened, in a CJK face; and
samples in faces with different lines sit on one baseline with their ink inside their
bands, rows and banner. Story font_picker_cjk_sample_text over the repository's Noto
Sans CJK SC subset.

* font-manager: declare the CJK test font its picker trials and story read

* font-manager: FontSample::band as a derived prop

* Swatch: the image well's mesh takes the shared UNTINTED vertex colour
2026-11-23 03:20:40 -05:00
bflatastic 7089e2de85 color-ui: ColorPickerDialog::working_rgb puts the host's working RGB in place of the built-in RGB in the Full and tabbed layouts 2026-11-23 15:14:51 +07:00
bflatastic 3ccf14ed9b color-ui: the Color panel rounds only what its channel fields show; an edit of one channel leaves the others unrounded 2026-11-23 15:14:50 +07:00
Dylan M. Taylor 173d63d915 fw sync: cargo fmt --all (including drift that predates the sync) 2026-11-23 03:04:16 -05:00
Dylan M. Taylor 32fae648a6 Merge branch 'pdf-port/sync-beh1' into pdf-port/sync-int 2026-11-23 02:57:51 -05:00
Dylan M. Taylor 3b78a10197 Merge branch 'pdf-port/sync-optin' into pdf-port/sync-int
# Conflicts:
#	crates/pages/src/ui/view/pictures.rs
#	crates/review/src/ui/comments.rs
#	crates/review/src/ui/comments/row.rs
2026-11-23 02:57:51 -05:00
Dylan M. Taylor 08e5ee8ebf fw sync: L-324/L-314: PageInsets::Theme (the port's inset spacing, opt-in; the theme side-margin trial opts in), PageView::go_to_place(GoToPlace::GapAbove) for production's Go To, PageView::fill_screen for full screen edge to edge 2026-11-23 02:57:02 -05:00
Dylan M. Taylor 85659945c3 fw sync: L-323: StandardPrompt::alternate_role (production's order), DialogButtonLook::Quiet (ghost Cancel and Don't Save), StartScreen::heading_sections and pinned_first, ToolbarDrawer::grouped_tools_drag opt-in; tab marks resolve outside the memoized tab row and join its key; a grip floating window keeps no title-rule band 2026-11-23 02:57:02 -05:00
Dylan M. Taylor e9d0bb0267 fw sync: L-322: the filled dropdown triangle (DropdownArrow::Triangle) and PdfCraft's document tabs (DocumentTabLook::Shrinking: shrink, inline gap, marker dot for modified, 22-digit name cap) become opt-in env values; upstream's chevron, whole touching tabs and '*' stay the default 2026-11-23 02:57:02 -05:00
Dylan M. Taylor bfe51c7622 fw sync: L-320: parts_group takes the nested case: a part group registered under the body group keeps its own group, for the header's hosted cells as for the parts 2026-11-23 02:57:01 -05:00
Dylan M. Taylor cd72739407 fw sync: a key whose bindings are all disabled is still declined to the app
Upstream passes a disabled binding's chord to the next binding (Matcher::press_where),
so a press whose only binding is state-disabled matched nothing and the port's decline
(FrameOutput::declined) never ran. Both kept: with no enabled binding the board matches
the press once more without the filter and declines that command when only the app's
own state disables it (gate, modal rule and instance state still not declined).
2026-11-23 02:56:08 -05:00
Dylan M. Taylor 5d812cfefb fw sync: command-search story chord off Cmd+K, which upstream's menu-row trial binds
The port's story command set (registered with the stories in the test binary) bound
Cmd+K, so the trial's Find command lost its chord and its row showed none. The story's
chord moves to Cmd+Shift+F; the trial is upstream's and unchanged.
2026-11-23 02:49:50 -05:00
Dylan M. Taylor ed7d648f69 Merge branch 'pdf-port/sync' into pdf-port/sync-int
# Conflicts:
#	crates/review/src/ui/comments.rs
2026-11-23 02:47:55 -05:00
Dylan M. Taylor 6a748831cb Merge branch 'pdf-port/sync-beh2' into pdf-port/sync-int
# Conflicts:
#	crates/review/src/ui/comments.rs
#	crates/review/src/ui/comments/row.rs
2026-11-23 02:43:38 -05:00
Dylan M. Taylor dd35b1e887 fw sync: resting-pointer popup trial names its list (upstream's PopupList::list)
Upstream routes an opener's list keys only to the list the popup names
(PopupList::list / Overlay::list); the port found the first type-ahead stop in the
layer. Upstream's mechanism wins; the trial's fixture names its list, its check stands.
2026-11-23 02:42:51 -05:00
Dylan M. Taylor 33d7e8d65e fw sync: unsaved question long-text trial finds the question as an alert dialog
Upstream made the unsaved question Role::ALERT_DIALOG; the port trial looked it up as
Role::DIALOG. Only the lookup changes; the check that the text stays inside stands.
2026-11-23 02:42:51 -05:00
Dylan M. Taylor a0035430e5 fw sync: L-72 hint-alone tooltip becomes opt-in (CommandState::hint_alone)
Upstream shows a hinted command's label and chord over the hint even when the label
shows whole; the port showed the hint alone (L-72). Upstream's default kept; the port's
look is the opt-in CommandState::hint_alone(true), carried as ResolvedCommand::hint_alone.
The trial asserts both.
2026-11-23 02:42:50 -05:00
Dylan M. Taylor 24f40451a8 fw sync: L-318: Escape over a draft in a modeless window reverts the field first
Upstream's one-Escape dialog cancel (focus::escape_closes_dialog) now counts modal
dialogs only, as the port's focus_in_modal_dialog does: a modeless window's edits belong
to the app, so Escape ends one thing at a time (field, then window). Modal dialogs keep
upstream's one Escape.
2026-11-23 02:42:50 -05:00
Dylan M. Taylor ea9e4e3bea fw sync: L-321: the merged middle autoscroll ends on the window's blur event
The port's latch ended on PassPointer::focus_lost and a PointerGone event; upstream's
MiddleAutoscroll read egui's focus flag only, which a blur event does not change in its
pass. The port's addition kept on top of upstream's autoscroll (L-321).
2026-11-23 02:42:50 -05:00
Dylan M. Taylor 6a7488ad73 fw sync: task bar writes its place from the drop's Commit (upstream wins)
Upstream reports a layer move once, on the Commit, at the rect the layer already shows
at; the port's filter that dropped a move ending where the bar shows threw that report
away, so a drag never wrote the place. A click reports no move upstream, so the filter
is redundant: removed. Fixes the three task bar trials.
2026-11-23 02:42:50 -05:00
Dylan M. Taylor df81ec186a fw sync: L-324 Creative page spacing back to upstream's default (section gap, roomy margin, rail side); the port's inset spacing is left for the opt-in variant (fwg-optin), whose trial a_page_fitted_to_the_width_keeps_the_theme_side_margin must opt in 2026-11-23 02:40:33 -05:00
Dylan M. Taylor 9c2d4522b7 fw sync: L-324 comment rows keep upstream's one editor-focus mechanism (EditShown); each card menu opens once per pass (duplicate stage ids) 2026-11-23 02:40:33 -05:00
Dylan M. Taylor 321dbe667e fw sync: L-324 Creative page spacing back to upstream's default (section gap, roomy margin, rail side); the port's inset spacing is left for the opt-in variant (fwg-optin), whose trial a_page_fitted_to_the_width_keeps_the_theme_side_margin must opt in 2026-11-23 02:39:55 -05:00