Commit Graph
8520 Commits
Author SHA1 Message Date
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
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
Dylan M. Taylor 84216d12cb Merge branch 'pdf-port/sync-forms' into pdf-port/sync 2026-11-23 07:13:06 -05:00
Dylan M. Taylor cfd3adbe6c fw sync: L-321: MiddleAutoscrollFeel::Reader opt-in (production's speed, short-hold latch, ends on canvas blur)
NavigationOptions::middle_autoscroll, Edge (upstream's Autoscroll::step on the offset
past the dead zone, a release after a drag ends the run) by default. Reader is the
port's MiddleScroll feel PdfCraft's production tests pin: speed |d|^2.2 x 0.04 pt/s
from the whole distance, a release ends the run only after two stepped held passes past
the dead zone, and the run ends when the canvas loses the focus with the button up.
Trial: a_reader_autoscroll_keeps_a_short_hold_and_speeds_up_with_the_whole_distance.
2026-11-23 07:12:37 -05:00
Dylan M. Taylor f2e83cd928 fw sync: a focus request for a part waits for that part instead of landing on a sibling
A component's stops register after update, so a part first declared in the pass its
owner asks for it (PdfCraft's Tab onto a field on a page just scrolled in) was not
found, and the request fell back to the component's first stop: Tab reached the first
field. A Part request now lands on its part or awaits it (the stop that registers later
in the pass takes the focus); an Id request keeps the fallback.
Trial: a_part_asked_for_in_the_pass_it_appears_takes_the_focus_not_a_sibling.
2026-11-23 07:12:37 -05:00
Dylan M. Taylor d132f01012 fw sync: TextEditor::returns_focus (on by default): an editor its caller opens from a part can leave the opener alone
Upstream's editor runs in a restoring focus scope (FocusPolicy::TAB_LAYER), so an ended
session hands focus back to the stop it came from. A form field's editor takes focus
from the field's own page part, and focus arriving back there opens the field again:
Esc, Enter and picks no longer closed PdfCraft's fields. Component::focus_scope (default
FOCUS_SCOPE) lets an instance choose its scope; returns_focus(false) opens none.
Upstream's default is unchanged. Trial: an_editor_that_does_not_return_focus_leaves_its_opener_alone.
2026-11-23 07:12:37 -05:00
Dylan M. Taylor 6e619265e0 fw sync: cargo fmt (review note_popup trial from fbd0bd096) 2026-11-23 07:02:55 -05: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