Commit Graph
101 Commits
Author SHA1 Message Date
skylartaylor 52503acd71 Fix the macOS test failures next picked up from the PdfCraft framework sync (#3232)
- atomic: a file the user may write but not read (mode 0200) saves again on macOS; its extended
  attributes can't be read, so there are none to keep.
- menu, ui-shell, pages, ui-contract, ui-canvas tests: follow the macOS conventions the code already has. The
  in-window bar test pins its target as the other bar tests do; macOS has no Menu key and no Cmd+Home/End move;
  its platform copy key is Option; a press with Control there is a secondary click, so Control comes after the press.
2026-11-24 04:48:57 +00: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. 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 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
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 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 99ea0489a0 fw sync: workspace check --all-features clean (review panel state literals, unused results and imports) 2026-11-22 23:32:28 -05:00
Dylan M. Taylor 438ae3da78 fw sync: review/pages/draw/text compile: comment selection and status fields, note popup scope, story binds, memoized-view preview trial, trials registered 2026-11-22 23:31:49 -05:00
Dylan M. Taylor fd94fad305 fw-pages-review: merge origin/next into the port's pages, review and text editor
Pages: the port's page view keeps its pass (pre-draw tool callback, pager, GoTo, its picture stores) and takes
upstream's editor and inactive edits, snap and tool regions, rulers strips, picture reach with resident counts,
the zoom anchor and non-easing reflow, the thumb tip and Go To placement; PlacedPage::new takes upstream's
four arguments with showing() for the picture; page spacing is the theme insets for Creative and upstream's for
Productivity. Review: comment rows keep badges, lead and submit key beside upstream's balloon actions, body rows
and push buttons; a new lead keeps its own edit draft. Text: editor keeps holds_drafts with upstream's focus
scope. Module lists, stories and trials are the union.
2026-11-22 23:05:47 -05:00
Dylan M. Taylor cb3101725c sync skeleton: origin/next 118f1d2ff9 into pdf-port/gaps ea77c1676f, markers left
257 conflicted files staged with their conflict markers (630 hunks). The one
modify/delete, crates/ui-patterns/src/patterns/preferences/body.rs (deleted
upstream, modified by the port), keeps the port's file for its area to carry
into upstream's preferences/page.rs. Plan: landing/fw-sync-plan.md.
2026-11-22 22:42:09 -05:00
Dylan M. Taylor b3970d12a1 PageRangeOptions: document dialogs stack the radios and end the range in 'of N'; SelectedFromTo arrangement; subset_select for a row of its own (trial ...stack_under_their_heading_and_count_the_pages, does not compile on the old code) 2026-11-22 15:06:18 -05:00
Dylan M. Taylor 1dbdd824a0 PagePreview: a framed dialog with the file's name, the page's place and a close x, not the full window (trial the_preview_is_a_framed_dialog_with_a_header_and_a_close_x; does not compile against the old code: no title) 2026-11-22 14:53:50 -05:00
Dylan M. Taylor 0ba9cb07cf PageView::pasteboard: the colour round the pages (L-309 full-screen black; trial seen failing) 2026-11-22 07:55:59 -05:00
Dylan M. Taylor fca492c03e Page view spacing from the theme (space.inset.page_side/page_margin/page_gap: 70/28/14 comfortable) 2026-11-22 07:00:54 -05:00
Dylan M. Taylor 70364c83a8 Page range options in a document dialog: heading over one line of radio buttons, fields and subset (L-304) 2026-11-22 01:38:46 -05:00
batistalucasvandDylan M. Taylor e71898caae pages: derive PageView spacing from ComponentSet (#2952) (#2967)
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-21 22:49:50 -05:00
batistalucasv 7c11091487 ui-canvas, pages: allow Canvas and PageView editors to report inactive edits (#2966) 2026-11-21 22:20:32 -05:00
Dylan M. Taylor f6f56c94d9 Test room for Organize page controls 2026-11-21 15:51:32 -05:00
Dylan M. Taylor 7068065754 Remove unfinished Organize layout trial 2026-11-21 15:40:14 -05:00
Dylan M. Taylor 7487619fe4 Handle Organize trial output 2026-11-21 15:39:45 -05:00
Dylan M. Taylor 6c31c15bbd Exercise landscape pages in Organize trial 2026-11-21 15:29:01 -05:00
Dylan M. Taylor 345aa013fc Add trial for Organize tile proportions 2026-11-21 15:28:45 -05:00
aiongg 9e48bc7598 pages: Go To a point inside a page puts that point at the view's top
A go_to with a fraction above 0 started from the end of the row above, so the point landed one page gap below the
view's top. Only Go To a page's top (fraction 0) puts the view's top where the row above ends.
2026-11-21 07:07:21 +00:00
aiongg c0ba9cceb2 pages: Go To puts the view's top where the page before ends
A go_to in a continuous view subtracted the margin above the first row (16) from every page's top, while rows after
the first have the page gap (12) above them, so 4 pt of the page before showed at the view's top and WordCraft's
status bar named that page. Since #7149 item 7 the offset and the canvas use one rect inside the rulers, which
brought the 4 pt into view. The view's top now goes where what shows of the row above ends (the document's start for
the first row), which holds for gaps on and off, Hide White Space and spreads.
2026-11-21 05:16:56 +00:00
aiongg 0ea84419cd Text ruler: the tab selector shows in the corner its host gives
PageRulers handed the text ruler the canvas's top strip, which starts after the
canvas corner, and the ruler cut its own corner square out of that strip, so the
selector sat one strip depth right of the corner, over the horizontal ruler, and
the corner stayed blank. The host now gives the corner (TextRuler::corner):
Rulers::strips returns it beside the strips, and PageRulers shows the ruler over
the top strip and the corner. The corner follows the host in either direction.

The selector's box is the icon size with the theme's small rounding, in the
column's colour with the state layer under the pointer; the corner continues the
strip round it; the glyph is centred by its own bounds.
2026-11-21 01:34:06 +00:00
Martin Ball aaa87b5754 Merge pull request #2568 from storytold/fix/7149-item7-top-clamp
pages: one rect for the page view and its canvas, so the page no longer jumps at the top with rulers on
2026-11-21 00:00:26 +00:00
Dylan M. Taylor bc0a72165c Route scoped keys through the current modal focus chain 2026-11-20 17:46:45 -05:00
Dylan M. Taylor 23d8f47fd7 Preserve page zoom anchor through tool host 2026-11-20 15:43:15 -05:00
Dylan M. Taylor fcc757df4e Keep thumbnail strips in one column 2026-11-20 13:10:42 -05:00
Dylan M. Taylor 54329ad927 Keep the first page when a range end is lower 2026-11-20 12:27:09 -05:00
Dylan M. Taylor 119a633c10 Format framework follow-up changes 2026-11-20 10:43:19 -05:00
Dylan M. Taylor e95ceb1042 Merge branch 'pdf-port/fwb11-c' into pdf-port/followups 2026-11-20 10:42:43 -05:00
Dylan M. Taylor 76e79d59b0 Framework fwb11-c: port follow-ups (see runs/fwb11-c.md) 2026-11-20 10:42:24 -05:00
Dylan M. Taylor 4a52a22e7a Framework fwb11-a: port follow-ups (see runs/fwb11-a.md) 2026-11-20 10:42:24 -05:00
Martin BallandClaude Sonnet 5.5 9ee925024c pages: #7149 item 7, one rect for the page view canvas and offset with rulers on
The layout, the given view and the offset clamps used the full rect while the canvas clamped in the rect inset by the ruler strips, so a wheel up at the top moved the page 8 points and it snapped back.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 15:30:05 +00:00
FredApps 9793d1a452 Merge branch 'next' of https://github.com/storytold/craft-libs into publish/registry-2332
# Conflicts:
#	crates/dialogs/src/lib.rs
#	crates/dialogs/src/ui/mod.rs
#	crates/draw/src/ui/gradient/mod.rs
#	crates/draw/src/ui/gradient/swatch.rs
#	crates/menu/src/shortcuts/view.rs
#	crates/menu/tests/it/main.rs
#	crates/menu/tests/it/shortcuts/mod.rs
#	crates/pages/tests/it/main.rs
#	crates/print/src/lib.rs
#	crates/review/tests/it/main.rs
#	crates/story-render/src/main.rs
#	crates/table/tests/it/main.rs
#	crates/text/tests/it/main.rs
#	crates/ui-canvas/src/canvas/navigate/mod.rs
#	crates/ui-canvas/tests/it/canvas/mod.rs
#	crates/ui-contract/tests/it/access/mod.rs
#	crates/ui-contract/tests/it/fonts/mod.rs
#	crates/ui-contract/tests/it/runtime/mod.rs
#	crates/ui-gallery/src/foundations/mod.rs
#	crates/ui-patterns/src/patterns/preferences/mod.rs
#	crates/ui-patterns/tests/it/docking/mod.rs
#	crates/ui-patterns/tests/it/form_dialogs/mod.rs
#	crates/ui-patterns/tests/it/panels/palette.rs
#	crates/ui-patterns/tests/it/preferences/mod.rs
#	crates/ui-shell/src/shell/mod.rs
#	crates/ui-shell/tests/it/shell/mod.rs
#	crates/ui-widgets/src/tabs/strip.rs
#	crates/ui-widgets/tests/it/bars/mod.rs
#	crates/ui-widgets/tests/it/contract/mod.rs
#	crates/ui-widgets/tests/it/layout/mod.rs
#	crates/ui-widgets/tests/it/main.rs
#	crates/ui-widgets/tests/it/menu/mod.rs
#	crates/ui-widgets/tests/it/pickers/mod.rs
#	crates/ui-widgets/tests/it/text/mod.rs
2026-11-20 15:04:36 +01:00
Dylan M. Taylor d7e4db7804 Fix batch 10 fixture modifiers and rail icons 2026-11-20 07:59:08 -05:00
Dylan M. Taylor 8746d220a5 Framework fwb9-a: port follow-ups (see runs/fwb9-a.md) 2026-11-20 05:48:20 -05:00
Dylan M. Taylor ce6f9b1ab6 Format merged framework changes 2026-11-20 04:33:34 -05:00
Dylan M. Taylor 2121f10966 Merge branch 'pdf-port/fwb8-b' into pdf-port/followups
# Conflicts:
#	crates/pages/tests/it/thumbnails.rs
2026-11-20 04:32:50 -05:00
Dylan M. Taylor 6a2fd8c7a6 Framework fwb8-a: port follow-ups (see runs/fwb8-a.md) 2026-11-20 04:32:11 -05:00
Dylan M. Taylor 3369704fe6 Framework fwb8-b: port follow-ups (see runs/fwb8-b.md) 2026-11-20 04:32:11 -05:00
Dylan M. Taylor bdd1288eb4 rustfmt batch 6 2026-11-20 00:22:08 -05:00
Dylan M. Taylor 4bd4aced5f Merge branch 'pdf-port/fwb6-b' into pdf-port/followups
# Conflicts:
#	crates/pages/tests/it/views.rs
2026-11-20 00:21:50 -05:00
Dylan M. Taylor 1333d3c347 Framework fwb6-b: port follow-ups (see runs/fwb6-b.md) 2026-11-20 00:21:40 -05:00
Dylan M. Taylor 4658409655 Framework fwb5-a: port follow-ups (see runs/fwb5-a.md) 2026-11-20 00:21:40 -05:00
Martin Ball f77301a76d Merge follow-up: resolve_in takes Reads; the host-key trial gives states through CommandStates; cargo fmt 2026-11-20 00:40:05 +00:00
Dylan M. Taylor d420c3e1c5 Merge branch 'pdf-port/fwb4-b' into pdf-port/followups 2026-11-19 18:25:03 -05:00
Dylan M. Taylor d9c0813c95 Framework batch 4 a: port follow-ups (see runs/fwb4-a.md) 2026-11-19 18:25:02 -05:00
Dylan M. Taylor c7884b3362 Framework batch 4 b: port follow-ups (see runs/fwb4-b.md) 2026-11-19 18:25:02 -05:00