Commit Graph
53 Commits
Author SHA1 Message Date
FredApps 36dea842e8 Merge remote-tracking branch 'origin/next' into perf/2332-print-coverage
# Conflicts:
#	crates/design-lint/src/workspace.rs
#	crates/menu/tests/it/main.rs
#	crates/ui-contract/src/testing/mod.rs
#	crates/ui-gallery/src/chrome/card.rs
#	crates/ui-gallery/src/viewer/catalog.rs
#	crates/ui-gallery/tests/it/main.rs
#	crates/ui-widgets/tests/it/bars/mod.rs
#	crates/ui-widgets/tests/it/body/mod.rs
#	crates/ui-widgets/tests/it/text/chips.rs
2026-11-20 19:23:18 +01:00
FredApps 428601bc95 Merge branch 'next' of https://github.com/storytold/craft-libs into publish/registry-2332
# Conflicts:
#	crates/color-ui/src/ui/swatches.rs
#	crates/draw/tests/it/main.rs
#	crates/imaging/tests/it/main.rs
#	crates/menu/tests/it/shortcuts/mod.rs
#	crates/text/tests/it/main.rs
#	crates/ui-patterns/tests/it/form_dialogs/mod.rs
#	crates/ui-widgets/tests/it/text/mod.rs
2026-11-20 16:35:19 +01:00
aiongg 339570da6f Merge storytold next into memo-audit-fix
next's submenu switch (62189858af) requests a plain repaint, and its trial counts a memoized view beside the bar,
which replays while sibling submenus switch, in place of a settling Lazy region.
2026-11-20 15:33:50 +00:00
aiongg ae02996d83 Replay audit: the pass a closed layer's exit ends in is unsettled
A host runs a closed layer only while its open tween still shows it (motion::layer_fading). In the pass the exit
reaches its end the layer's container still runs, drives the tween to rest and paints nothing; a memoized view around
it kept that run as settled and replayed it, re-registering the layer's memory owner, while a real run of the next
pass skips the layer. layer_presence notes the pass unsettled when the exit ends there, so the next pass runs for real
and is the run kept. The menu bar's open-and-close trial runs under the audit.
2026-11-20 15:09:54 +00:00
aiongg 39da1180ee Merge storytold next into memo-audit-fix
next's WordCraft port and the framework work under it (243d68e12d) take the memoized-view APIs where they meet the
branch: story values bind through StoryData::bind, value_at and pair_at (next's copy-out stories included; one held
form story still binds a copy, as its held answer is a note beside the value); next's env values (GroupLevel,
ControlPlace, RibbonLook, ScreenModeSet), IconMark and PageBandRoom derive MemoProps, and the shell entry keys the page
band's room; request_own_repaint calls become request_repaint. The collection extent next reworked (motion-owned
style context, FillHeight, ideal width by item count) moves into items_extent. The header's hosted cells join the
parts' roving group from the pass's own membership (parts_group over Cx::join_roving), as the parts' stops do. A
content-sized shell slot measures its content with the app running in it every pass. The gallery card hands the
story's output from its view's real run (StoryRun).
2026-11-20 14:58:23 +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
David MannandClaude Opus 5.5 16e2584365 Merge storytold next into haranishi-combined
Conflicts resolved by keeping both sides. The start screen keeps next's
Greeting layout and its move of the recent body to recent_list.rs; the
desktop Home grid aspect and card padding now reach recent_body through a
desktop_home flag. The scroll bars keep both the document chrome (arrows,
corner) and next's drag tip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 14:55:23 +01:00
FredApps dd0596ae8f Merge branch 'next' of https://github.com/storytold/craft-libs into publish/registry-2332
# Conflicts:
#	crates/menu/tests/it/main.rs
2026-11-20 13:44:42 +01:00
Martin BallandClaude Opus 5.5 27c1c0ebb1 Merge storytold next (d5b465e54) into the port
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:17:11 +00:00
David Mann 324e2dd5d1 Merge #2386: Give the Keyboard Shortcuts tabs the full dialog width 2026-11-20 12:51:38 +01:00
aiongg 439a6ced67 Merge storytold next into memo-audit-fix 2026-11-20 11:44:32 +00:00
Martin BallandClaude Opus 5.5 a9deabd00e design-lint: api, props, contract and exception findings of the port code
- api/non-exhaustive: #[non_exhaustive] on public enums, variants and structs, with constructors for what
  callers built by struct expression (KeytipControl, GroupWidths, RibbonMenuRequest, EdgeLook::sample,
  BalloonItem, CropScope::object, PageBandRoom, WheelSpeed, AltCodePages, GalleryFace, GradientTile).
  GalleryItem, RibbonOutput, LineBreakOptions, AsianTypography and GapEdge join the closed list.
- props/hand-setter: setters that only store become #[prop] fields. Keytips drops its own enabled field
  for Common enabled, and its show becomes show_over.
- contract/no-global-state: constant tables are const, not static.
- contract/egui-import, memory, allocate: LayerId, TreeUpdate, Id::unique, the text scroll memory and
  allocate_space go through runtime::egui.
- contract/overlay-flag: CanvasScrollbars declares overlay; its drag story covers Open.
- Markers and exception entries only where the code is the exception (stories, trials, unit-square
  coordinates, the balloons id scope).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 09:38:56 +00:00
Martin Ball 9a4dd39d3a Workspace clippy: fix lints across ui crates and tests 2026-11-20 00:56:55 +00: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
Martin Ball 6dedbe4fe6 skeleton: merge up/next into area/ribbon-fw with conflict markers left in (land step 1) 2026-11-19 20:42:08 +00:00
haranishi d0c7789b29 fix(shortcuts): activate tabs picked from the overflow menu 2026-11-19 23:55:18 +09:00
aiongg 8b784b4bdb craft-menu: the in-window menu bar is a memoized view
MenuBarUi takes its English hook as a stateless fn item or capture-free closure; the menu model derives MemoProps.
2026-11-19 14:30:07 +00:00
Martin BallandClaude Opus 5.5 874e096445 look-ribbon-3: Gallery::thumb names its tiles' thumbnail size (medium unless set), so a gallery of small pages (style sets) takes the large size and reads as the old ribbon's did; trial and story
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 14:21:15 +00:00
Martin BallandClaude Opus 5.5 e2ed478fea look-ribbon-3: a ribbon group ends with its title: Divider::length gives a separator its own length (no fill), a group's separator is as tall as the group; the title sits directly under the body on one caption line in every group; the dialog launcher sits on that line at the group's end, shown at its place so it never makes the title line taller; trials and story
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 14:19:21 +00:00
Martin BallandClaude Opus 5.5 4da05bc416 look-ribbon-2: ribbon trials: the collapsed-group trial measures its room from the group; the captioned gallery trial checks the name inside its strip-high tile
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 13:55:16 +00:00
haranishi f6671c5001 fix(shortcuts): give the tabs the full dialog width 2026-11-19 22:42:24 +09:00
Martin Ball 5440bcbf77 Merge branch 'red/fw-diag-clean' into area/ribbon-fw 2026-11-19 13:31:56 +00:00
Martin Ball 6dc968e052 Merge branch 'red/rf-keytips' into area/ribbon-fw 2026-11-19 13:31:56 +00:00
Martin BallandClaude Opus 5.5 dd7a3fe52c look-ribbon-1b: review of the look-ribbon-1 WIP (ribbon place, title line, captioned gallery)
- RibbonGroup::open returns the content height it measured (the WIP left it unreturned).
- A ribbon's font box is a short field (size.length.short, FieldStyle::shortest), not the small
  field length, which at the ribbon's small controls was the width it already had.
- Trials: ribbon buttons resolve the ghost look unless they ask for a variant; a ribbon combo box
  fits its options; a ribbon font box is short and keeps its width; every open group's title sits
  on one line; a 2:1 captioned gallery names its tiles under wide pictures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 13:28:47 +00:00
Martin Ball b6515c0a67 rf-keytips: a document's editor part leaves Alt and F10 to the menu bar and keytips, so they show over a focused document 2026-11-19 13:25:01 +00:00
Martin Ball 992a367563 remove the port red rounds DIAG prints 2026-11-19 13:21:50 +00:00
FredApps 94a604c183 Consolidate menu integration tests 2026-11-19 13:00:49 +01:00
FredApps b04d18a735 Select UI suite items through explicit registries 2026-11-19 12:20:08 +01:00
Martin BallandClaude Opus 5.5 88736ce7b4 rf-fu2: a ribbon tab's id is its access node, which keytips match by Element::node; the context-menu trial focuses the control by a Focus request
A tab strip's tabs are members of its run, recorded as parts of the strip, so
ShownRow::id gives a member's sub-node id and the record's Element::node says
which node an element stands for. A press on a button moves no focus to it, so
the ribbon trial gives the control focus with a Focus request. The picture trial
carries a DIAG line for the node under the button.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 00:33:00 +00:00
Martin BallandClaude Opus 5.5 2055375e6b fu2-ribbon: app batch 2 rulings (S-L418, S-L392, S-L360, S-L361, S-L363)
Button keeps room for its widest text (room_for) and shows a rendered
picture in the leading icon's place (picture). ShownRow reports the id its
item is recorded under; the ribbon reports tab_ids from it and hosts its own
context menu (context_menu body), so RibbonOutput::menu and
RibbonMenuRequest::opener go. Stories and trials for each.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 00:15:34 +00:00
Martin Ball 22317932ef Ribbon trials: count trial checks only a settled ribbon's runs; collapsed-group popover trial uses a group too wide for its room
The count trial keeps the ruled half (a settled ribbon runs each group body
once) and drops the level-change half. The popover trial's clipboard group
now cannot fit beside the wide group's least, so it collapses by the fit
rule. The DIAG prints of the passing slide and same-title trials are gone.
2026-11-18 21:34:47 +00:00
Martin Ball 915bc15697 Merge branch 'red/rr-ribbon-w5' into area/ribbon-fw 2026-11-18 21:23:54 +00:00
Martin Ball b74fb60a01 rr-ribbon-w5: red round 1 fix (lead commit) 2026-11-18 21:23:22 +00:00
Martin Ball d6021060f9 Ribbon slide trial reads where the group is painted
The row slides through its container's layer transform, and access bounds
stay in that layer's points, so the trial read the same x on every frame.
It now reads the group's rect from the ribbon's inspect record, which maps
each element through its layer. DIAG prints for the slide and the run
counts.
2026-11-18 21:23:03 +00:00
Martin Ball 85dfb1ad83 ribbon-w5: net change of 4 commits
- ribbon-w5: finished by an agent
- ribbon-w5: finished by an agent
- ribbon-w5: review fixes (review-1)
- ribbon-w5: review fixes (review-1b)
2026-11-18 21:02:55 +00:00
Martin Ball 69abe56e3e ribbon-w4: net change of 4 commits
- ribbon-w4: written by an agent
- ribbon-w4: finished by an agent
- ribbon-w4: review fixes (review-1)
- ribbon-w4: review fixes (review-1b)
2026-11-18 21:02:54 +00:00
Martin Ball 8a045594dd ribbon-w3: net change of 6 commits
- ribbon-w3: written by an agent
- ribbon-w3: finished by an agent
- ribbon-w3: finished by an agent
- ribbon-w3: finished by an agent
- ribbon-w3: finished by an agent
- ribbon-w3: finished by an agent
2026-11-18 21:02:54 +00:00
Martin Ball f57d0a1a51 dialogs-w11: net change of 4 commits
- dialogs-w11: written from its sheet
- dialogs-w11: repair 1
- dialogs-w11: review fixes (review-1)
- dialogs-w11: review fixes (review-1b)
2026-11-18 18:18:25 +00:00
aiongg 27e28cd24e menu: the bar and context rows take the shell's platform unless one is set
MenuBarUi and context::rows used the build's target, so a test that runs the shell as Linux on
a Mac runner still got a Mac bar without Alt letters. They read Target::of_shell from the
frame's Env, as the shortcut column already does; the CJK mnemonic test runs as Linux.
2026-11-17 22:58:38 +00:00
aiongg dc0653693a merge-fwb: FW11: trial that switching away from a modified shortcut set asks to save first 2026-11-16 12:40:42 +00:00
aiongg cc00dbd368 Clippy and test-target lints: redundant must_use, type aliases for complex types, boxed large variants, argument structs, struct-update initialisers, deprecated egui calls, unused imports and dead code; the swatch library's reorder test runs as a trial 2026-11-16 02:30:55 +00:00
aiongg f2d4b50fba tfix5-f10: format the layout trial 2026-11-16 00:39:08 +00:00
aiongg 4f5c57d86c tfix5-f10: a command shows a chord only where the keymap runs it (Keymap::shown_chord, holder); resolve, apply_keymap and the Mac layout read it; LayoutOptions::keys replaces extra_shortcuts 2026-11-16 00:34:11 +00:00
aiongg 14d5ec609a cargo fmt 2026-11-15 10:23:21 +00:00
aiongg 46bd564b75 top-w2: net change of 6 commits
- top-w2: written by an agent
- top-w2: finished by an agent
- top-w2: review fixes (review-1)
- top-w2: the menu-letter step of the shortcut trial types its letter as text, which mnemonics read (top run round)
- top-w2: typed letters in a menu go to the container of the focused row's level, with a trial for a title-click menu (top run round)
- top-w2: a menu row's pick walks out from the menu it runs in, with a trial for Cut from the Help search field's edit menu (top run round)
2026-11-15 04:46:09 +00:00
aiongg de5d6b3199 top-w1: net change of 2 commits
- top-w1: written by an agent
- top-w1: review fixes (review-1)
2026-11-15 04:46:09 +00:00
aiongg 117cdbd9ca Contract stubs: craft-update, craft-menu, craft-imaging, craft-color 2026-11-14 02:28:16 +00:00
aiongg 556d7ce8df Contract stubs: craft-menu (stage 6, wip) 2026-11-14 02:13:47 +00:00
aiongg 6ce4068b64 ShortcutsDialog: whole chord chips, an add button on every row, the reset arrow
A chip's label replaced its text with the access name, so the chips read "Sav…"; the chord is the painted text and the name stays the label. The shortcut column is as wide as its widest row of chips with the add and restore buttons, at most 40 % of the table, as the old was, and the add button keeps its place after the chips, so it no longer drops off rows. The restore button shows the catalog's new reset icon, a counter-clockwise circle, in place of the undo arrow.
2026-11-12 14:32:48 +00:00
aiongg 045f3b944e craft-menu mnemonic trial: Alt and the English letter open the CJK title 2026-11-12 14:32:46 +00:00