Commit Graph
7943 Commits
Author SHA1 Message Date
bflatastic efebc0cdac color-ui: ColorDisc::stored_as and HarmonyWheel::stored_as take the host's round trip through its own colour model, so a drag whose colour comes back moved by it (CMYK through a profile) is still the drag's; without it the disc keeps its 8-bit echo check: a host storing colours in another model had its own drags cancelled as outside changes 2026-11-24 01:08:34 +07:00
bflatastic e36d3d0034 ui-contract: RootEnv::escape_leaves_fields lets an app's Escape in a focused text field also give up the focus, with or without typing to revert, as egui's own fields did; off by default: a framework field kept the keys after Escape, so the next Enter stayed the field's 2026-11-23 21:51:05 +07:00
bflatastic 3b17e2b367 behavior: NumberCodec::share_of_start reads a lone percentage (Reader::share) as that share of the value the edit started from, on every pass and on commit only: a size field's 50% could only be read against the value of the moment, which the numbers typed before the % had already applied 2026-11-23 21:37:00 +07:00
bflatastic dd5da21414 theme: the port theme's token dumps take the values the merge of next changed 2026-11-23 21:30:13 +07:00
bflatastic 6fdb4265ab Merge remote-tracking branch 'origin/next' into sync/delta11 2026-11-23 21:28:41 +07:00
bflatastic 928e478220 dialogs: Save As onto the document's own file writes the file type the panel picked, also after the changed-on-disk question's Replace: the own-file path dropped the pick 2026-11-23 21:26:11 +07:00
bflatastic fa1fac17da ui-contract: a text part keeps its selection while a menu bar or a menu the keyboard goes back to it from has the focus, as it did for its own edit menu: the window's Edit menu showed Copy disabled for a field's selected text 2026-11-23 21:26:10 +07:00
bflatastic a3b7f774fb color-ui: trial of a linked harmony wheel drag whose host moves every colour from the drag's start in 8-bit colours: it runs to its release and the other colour turns 2026-11-23 21:26:09 +07:00
bflatastic b991e3f9c0 ui-panels: a footer's armed buttons wait again for a host's next dialog shown in the same place with the same ids (overlay::running_dialog): a question put in place of another between two frames took the click the one before had armed 2026-11-23 21:26:09 +07:00
bflatastic 1c093cc7e0 color-ui: a click on any swatch reports SwatchesPanelOutput::used, with its colour only where it holds one: gradient, pattern and None swatches reported nothing, where production applied every swatch 2026-11-23 21:26:08 +07:00
bflatastic fe2d1d09d7 ui-contract: DropTarget::under_modal and WindowDropTarget::under_modal let a target take OS file drops while a modal layer holds input, through the modal's scrim but not its body: a modal refused every drop below it and on the window, where VectorCraft placed files dropped under its alert; off by default 2026-11-23 21:26:08 +07:00
bflatastic 46b9fe002d ui-contract: Shift or Alt with Escape that the keymap binds to an enabled command runs it: the key stage read every Escape without Cmd or Ctrl as the scope's escape, so a command bound to Shift+Escape never ran; a plain Escape keeps its meaning 2026-11-23 21:26:07 +07:00
aiongg e3ca63165d Merge pull request #3167 from aiongg/cl-doctor-split
cl doctor after the split UI test kit
2026-11-23 08:55:01 -05:00
Martin BallandClaude Opus 5.5 db33516bf6 Tests: restore control-connection and X11 clipboard guards lost in WordCraft's port (wordcraft#7317) (#3115)
* storytold/wordcraft#7317: restore control-server and clipboard security tests

Port the lost tests onto craft-automation (EOF request, connection limit)
and craft-platform (X11 property read cap).

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

* storytold/wordcraft#7317: the EOF trial requires a real close, not a read timeout

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

* wordcraft#7317: the restored connection-limit test retries when Windows resets a refused connection's write

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 13:48:37 +00:00
Martin BallandClaude Opus 5.5 1c5ad1b85a Update: a rate-limited check is a typed reason apps can translate (#3090) (#3098)
* #3090: craft-update reports a rate-limited check as a typed reason apps can translate

check_for_update now returns CheckError (RateLimited | Failed(String)); Updater gets Status::RateLimited, LatestRelease gets RateLimited, and UpdateWords gets rate_limited. GitHub's own text stays data in Failed.

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

* #3090: isolate the rate-limit source test's cache path

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

* #3090: point the rate-limited word's doc link at updater::Status

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

* #3090: tests that a rate-limited release check is typed and the check dialog words it itself

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 13:48:33 +00:00
Martin BallandClaude Opus 5.5 ee01a2b421 theme: dark-mode accent buttons show a visible hover (wordcraft#7317 C7-14) (#3124)
* theme: dark-mode accent buttons show a visible hover (wordcraft#7317 C7-14)

accent.strong_hover/pressed offset the rest fill by the ramp distance from accent.solid to
accent.hover/pressed. A light dark-mode seed leaves those ramp steps 0.01 OKLCH-L apart, so the
hover was invisible; and a fill near white or black clamped. The offset now has a floor
(hover 0.06, pressed 0.10) and flips toward the text when there is no room away from it.

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

* theme: explain names the shift's floor and flip

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

* wordcraft#7317 C7-14: test that explaining the dark accent hover names its base and its lightness floor

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 13:48:29 +00:00
bflatastic df0b910dcc Merge branch 'sync/next2' into sync/delta11 2026-11-23 20:31:25 +07:00
bflatastic eb7fe4ff00 ui-contract: a bare Tab where it would toggle the panels runs the enabled command the keymap binds to it, when that is not a chrome command: an app command that took Tab from Toggle Panels never ran, as the Tab gate only took chrome commands 2026-11-23 20:27:43 +07:00
bflatastic 157714c25a ui-patterns: in the pass a tab click picks a panel of the focused group, DockAreaOutput::focused names that panel: it named the panel the group drew in that pass, the one before the click 2026-11-23 19:48:27 +07:00
bflatastic 51ad138dd2 ui-contract: a drag of OS files runs in the window under them: the main window's pass, which the OS sends none of a child window's files, ended the session, so files dropped on a native panel window never reached DockAreaOutput::window_files; the test kit's Windows now sends files to one window (FilesOver), as the OS does 2026-11-23 19:42:19 +07:00
bflatastic ac276c4e92 font-manager: the picker's script trial reads Sarabun from font-subset's test data, so the crate declares that read 2026-11-23 19:38:28 +07:00
bflatastic f8714b2374 ui-canvas: ToolHost::navigates: a press the host says navigates (a finger once a pen has been seen) runs the momentary Hand, latched for its gesture 2026-11-23 19:35:36 +07:00
bflatastic 95e4ec879e behavior, ui-canvas: RulerUnits::with_labels(TickLabels::Signed) writes ruler ticks signed with only the decimals they need (-2.5, 0.3, 1), VectorCraft's form; TickLabels::Distance stays the default 2026-11-23 19:35:36 +07:00
bflatastic 24e30ffacb ui-shell: a document window's raise brings its fallback layer to the front in that pass (overlay::raise), as a press on it does: it only asked an OS window for focus 2026-11-23 19:27:33 +07:00
bflatastic bbd5eb35d1 ui-contract: a focused text part takes as its edits only the bindings of Cut, Copy, Paste and the rest that are the platform's text-editing chords: an app's alternate key (F4 for Paste) went to the field too, where production left the text alone 2026-11-23 19:27:29 +07:00
bflatastic 0c633a83cd ui-canvas: a rulers corner drag lands at its release only while its edit is open: after the host cancelled it, the release proposed and committed again and moved the zero point 2026-11-23 18:05:09 +07:00
aiongg 60e39bc320 cl doctor: dev-dependency features across the egui crates
The dev-dependency rule covered egui alone; epaint_default_fonts slipped past
it. It now checks the egui crates every framework crate builds on (egui, epaint,
epaint_default_fonts, emath, ecolor): a feature a dev-dependency line asks of one
must also be asked by a normal line, feature-root's included.
2026-11-23 10:55:18 +00:00
aiongg 52d8e207df feature-root: ask epaint_default_fonts for the monochrome emoji faces
craft-ui-contract's tests ask for them as a dev-dependency (their font oracle),
which gave cl test ui-contract its own epaint_default_fonts and so its own
egui and framework build. The feature only adds two byte constants; egui's emoji
fallback is epaint's own feature and stays off.
2026-11-23 10:54:18 +00:00
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