Commit Graph
8580 Commits
Author SHA1 Message Date
bflatastic 4a6ea8a984 ui-contract: a text part asks where the keyboard goes back to only once it held the focus or keeps a selection for a menu, so a part that never held the focus reads no focus in its run: the replay audit found a memoized view whose field read the focus only when another stop had it 2026-11-24 00:57:49 +07:00
Dylan M. TaylorandClaude 7c0ae3e639 fw sync: merge craft-libs next e3ca63165 (149 commits) into pdf-port/sync
Conflicts resolved (upstream's design and defaults win; the port's opt-ins stay):
- ui-contract fonts: upstream's served-faces provider, catalog job queue and byte budget;
  the port's FaceBytes::chain (Word subset siblings, F-8) re-done on the provider: a served
  face lists its served chain faces before the interface faces, a sibling landing after its
  owner remakes egui's fonts once, drawing a face marks its chain drawn. The port's chain
  trial moves onto upstream's rig, plus a late-sibling trial.
- text editor HostCx follows FacesCx's job-based document_face and document_face_bytes.
- ui-widgets Swatch: upstream's SwatchFill (split, spectrum, image, empty) with the port's
  Swatch::optional / SwatchFace::optional (new SwatchFill::None, the "no colour" diagonal)
  and Swatch::icon (glyph on the empty well) on top; both word sets kept.
- draw PaintBar: upstream's MixerLoad fill.
- font-manager: upstream's sample band; host rows (port) use it too.
- ui-panels / ui-patterns dock grips: upstream's drag_origin and named slack.
- platform clipboard tests: both trials kept.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-23 12:54:08 -05:00
Martin BallandClaude Opus 5.5 126ec28dca ui-widgets: a painter picture can fill its slot (wordcraft#7317 C3-1) (#3131)
* ui-widgets: painter pictures take an explicit size (wordcraft#7317 C3-1)

Add PictureSize::Points(u16) and make Picture::painter take a PictureSize,
so a painter no longer falls back silently to the 18 pt icon side.

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

* ui-widgets: PictureSize doc names the points variant

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

* Picture: PictureSize::Fill takes the room its parent gives, replacing Points(u16)

A painter picture can fill a dialog's preview slot at its aspect, with no raw
point size (design-lint props/point-size). painter() keeps its original
signature; callers opt in with .extent(PictureSize::Fill). measure reports the
offered room so a Fill picture never overflows a narrower one.

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

* Picture: a Fill picture in an unbounded room takes the icon side's height

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 17:41:18 +00:00
Dylan M. TaylorandClaude 0dfc9d47eb fw sync: the flat note Reply's edge takes the note's colour
Trial a_flat_reply_edge_takes_the_notes_colour.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-23 12:24:54 -05:00
Dylan M. TaylorandClaude 346f5ac9fe fw sync: PageRangeChoices::Line, ParamDialog::caption_column, Param::short_slider (Slider/SliderField::short)
Trials line_page_range_options_stand_on_one_line_with_no_page_count, a_caption_column_puts_a_group_caption_beside_its_group_and_lines_the_controls_up, a_short_slider_row_is_as_wide_as_its_content.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-23 12:24:54 -05:00
Dylan M. TaylorandClaude e93d468b76 fw sync: floating window bodies keep to the window's rounded corners (frame_surfaces, FloatingGroup::rounded_body, DockConfig::floating_rounded_body); CaptionColumn env value for inline forms
Trial a_rounded_window_body_keeps_its_surfaces_inside_the_rounded_corners (ui-patterns docking/floating_rail.rs).

Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-23 12:24:54 -05:00
Dylan M. Taylor 40442e2f69 Merge branch 'pdf-port/sync' into pdf-port/sync-look 2026-11-23 11:09:46 -05: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
Dylan M. Taylor cd4704b357 Merge branch 'pdf-port/sync' into pdf-port/sync-look 2026-11-23 09:35:58 -05: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
Dylan M. Taylor 6df2644a0e Merge branch 'pdf-port/sync' into pdf-port/sync-post 2026-11-23 09:22:42 -05:00
Dylan M. Taylor d0a0cf671e fw sync: a compact TaskBar takes a popup's smaller corners and shadow 2026-11-23 08:56:29 -05:00
Dylan M. Taylor 9b12c19603 fw sync: Param::stacked_options and Param::under_option (production's Split and Background option rows); a document-dialog group under a heading of its name shows the name once 2026-11-23 08:56:16 -05:00
Dylan M. Taylor 02e29c4e56 fw sync: NoteReplyLook::Flat opt-in: the note pop-up's Reply as production's small flat rectangle 2026-11-23 08:56:16 -05: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
Dylan M. Taylor 9850b031cf fw sync: FormatText paragraph_spacing_presets and paragraph_spacing_range (default stays the Paragraph dialog's 0-1296 pt); trial paragraph_spacing_takes_the_hosts_presets_and_range_on_the_line_spacing_row 2026-11-23 08:27:17 -05:00
Dylan M. Taylor be5e97ea49 fw sync: F-R1: Param::select_on_focus for text rows (Rename opens on the name selected); trial a_text_row_that_selects_on_focus_is_replaced_by_typing 2026-11-23 08:27:17 -05:00
Dylan M. Taylor 874efb4576 fw sync: F-P4: PrintPanel/PrintDialog/HostedPrint printer_search opt-in (Search printers field, No printers match., Save as PDF kept, 430 pt list); Select search_label, no_matches, search_kept, list_width; trials printer_picker_filters_a_large_fleet_without_changing_the_selection, printer_picker_keeps_save_as_pdf_available_when_the_filter_matches_nothing, printer_picker_scrolls_long_names_without_losing_the_search_or_pdf_choice 2026-11-23 08:27:17 -05:00
Dylan M. Taylor 10c2dc7ced fw sync: F-P3: TextEditor Shift-clicks after a double press extend from the whole word both ways, a key move or Select All ends the word anchor; trials a_double_press_on_a_one_letter_word_selects_only_that_word, shift_clicks_after_a_word_selection_extend_from_the_whole_word, a_key_move_ends_the_word_anchor (production 439401188) 2026-11-23 08:27:17 -05:00
Dylan M. Taylor fb99ed9076 fw sync: F-P2 / L-315: macOS title bar follows the traffic lights at the right (craft-window reads windowTitlebarLayoutDirection; MacInset::lights_right; the lights' room moves to their side; AppShell::title_follows_lights mirrors the title slot's flow, tabs and overflow included; Overrides::flow); trials a_title_that_follows_the_lights_mirrors_when_they_are_at_the_right, the_lights_room_follows_the_lights_without_mirroring_the_bar (production 4448ee940) 2026-11-23 08:27:17 -05:00
Dylan M. Taylor 05f6b87d41 fw sync: TaskBar::compact opt-in (small members in a tight frame, Pad::Tight, Bar::compact) for PdfCraft's text box Done/Discard bar 2026-11-23 08:23:45 -05:00
Dylan M. Taylor c170a41385 fw sync: clippy clean: the eased wheel zoom's payment is its own function (settle's cognitive complexity)
Trial: canvas::navigate::an_eased_wheel_zoom_spreads_a_notch_over_the_frames_after_it_and_lands_where_the_plain_one_jumps (passes).
2026-11-23 08:06:05 -05: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
Dylan M. Taylor 0eed29dcc2 Merge branch 'pdf-port/sync' into pdf-port/sync-rest 2026-11-23 07:44:04 -05:00
Dylan M. Taylor 090f7c0c23 fw sync: CommentComposer::fixed_rows keeps the card one size
The composer's field grows with its text, but the card is measured before the text wraps, so a card near
the bottom of the window was placed shorter than it laid out and clipped Post. fixed_rows (off by default)
keeps the field at its three rows and scrolls the rest, so the card's buttons stay inside it.
Trial: note_popup::a_composer_with_fixed_rows_keeps_post_inside_its_card_near_the_bottom.
2026-11-23 07:43:54 -05:00
Dylan M. Taylor 05260a58d1 fw sync: PageView::fill_screen has no scroll bars
Full screen's edge-to-edge view showed the canvas scroll bars, whose band along the window's bottom and
end edges took presses meant for the page. Production's full screen has none.
Trial: views::full_screen_shows_no_scroll_bars.
2026-11-23 07:43:54 -05:00
Dylan M. Taylor fb3a6a6362 fw sync: opt-in platform paste for a fired Paste (CommandInput::paste_reads_clipboard)
App commands a menu row fires reach the app in the next frame's FrameOutput, so an app that answers Edit
> Paste by asking the platform for the clipboard asked a frame late. With paste_reads_clipboard (off by
default) the board asks the platform in the pass that fires the library Paste at the app (not from a key)
and delivers the command with the clipboard's content, as a point paste does.
Trial: menu::openers::a_menu_paste_reads_the_clipboard_when_the_app_asks.
2026-11-23 07:43:54 -05:00
Dylan M. Taylor 4854e2cff6 fw sync: a search field's Clear shows the empty text in the pass of its click
Upstream 819753137 answers injected input with the pass that ran it. The clear part empties the value in
update, after the text part showed the old text, so the reply's tree still read it. The click now reruns
the pass (discard_pass), and the rerun's tree reads empty.
Trial: text::text_field::the_clear_part_empties_the_field_in_the_pass_of_its_click.
2026-11-23 07:43:54 -05:00
Dylan M. Taylor efe4040927 fw sync: opt-in eased wheel zoom on the canvas (NavigationOptions::eased_wheel_zoom)
Upstream bd3641bf3 reads the pass's zoom from its own events, and the canvas applies a Cmd/Ctrl-wheel
notch at once. Production eased a notch over the frames after it (egui's wheel smoothing), and its
find-during-zoom behaviour relies on that. With eased_wheel_zoom (off by default) a zoom-modifier wheel
notch is owed and paid by the pass clock as egui eases a wheel (90% in a tenth of a second); a pinch, a
trackpad and steps under 8 points zoom at once; a press, a key move or a view command drops what is owed.
Trial: canvas::navigate::an_eased_wheel_zoom_spreads_a_notch_over_the_frames_after_it_and_lands_where_the_plain_one_jumps.
2026-11-23 07:43:54 -05:00
Dylan M. Taylor 15e8ac8058 fw sync: a dialog can keep a field's typing on Escape (FocusPolicy::escape_keeps_typing, Dialog::escape_keeps_typing, PreferencesWindow::escape_keeps_typing)
Upstream's one Escape in a modal dialog cancels the focused field's typing with the dialog. A Live
Preferences window applies each row as it changes, so that Escape wrote the start value back and
Live mode applied it: PdfCraft's Preferences lost what was typed. The new opt-in (off by default,
upstream's rule kept) commits the draft as leaving the field does and lets the dialog close.
Trials: preferences::live::escape_cancels_a_live_windows_typing_by_default,
escape_keeps_a_live_windows_typing_when_asked.
2026-11-23 07:43:54 -05:00
Dylan M. Taylor 238d922e15 fw sync: L-316: copied files are a Files primary in the clipboard offer plan (arboard's file list); trial a_file_list_is_written_as_files 2026-11-23 07:42:32 -05: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