Commit Graph
116 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
aiongg a214d2e8e5 MemoProps: every_pass, covered_by and address derive attributes; the framework's own keys stay hand-written in ui-contract
The derive takes #[memo_props(every_pass = "why")] on a type (it keys in every pass and
feeds no field), #[memo_props(covered_by = "<field>", reason = "why")] on a field another
field of the same variant stands for (the named field must exist and feed the key) and
#[memo_props(address = "why")] on a &'static field. Group, menu level, timeline and canvas
contexts and GuideDrag key in every pass; CaptionIcons, Catalog and ModalRules name the
field that covers the rest (ModalRules' allowlist entry goes); CardStory keys its
registration by address. design-lint allows hand impls of framework keys in ui-contract
(values.rs, icon.rs, memo_view.rs beside memo.rs) and lists the gallery's &mut state views
and the two presets walks with their reasons. Doctests for each attribute.
2026-11-20 14:21:25 +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
FredApps 186d77bcad Merge pull request #2373 from storytold/perf/2218-menu
menu: consolidate tests and keep AppKit on the main thread
2026-11-20 18:22:34 +07:00
aiongg bddc593180 Merge storytold next into memo-audit-fix
Memoized views stay the one change mechanism: next's settling-path additions (modifier reads as bind keys, given-edit
and keymap unsettling, settle counters) give way to the tracked inputs that cover them, and request_own_repaint calls
become request_repaint. next's command board, node facts after the node check, the guide drag out of a ruler and the
CommandStates input are taken; the trials next wrote on Lazy::settles run on memoized views. The ruler guide env value
keys a view under the canvas in every pass of a drag. The replay audit's run in the gate takes next's target selection.
2026-11-20 10:26:06 +00:00
aiongg 5ac0410a58 craft-ui: the replay audit compares geometry within 1/256 pt
A record moved by a whole pixel from positions off the float grid differs from a run at the new place by rounding
only. Shift::snapped takes a value's coordinates and floats from the run's where they lie within the tolerance, so the
journal, the rect and the output compare with == after it; egui's PassRecords::first_difference takes the same
tolerance (aiongg/egui b65cbd8d9, pinned here). Ids, counts, colours and text stay exact.
2026-11-20 09:46:25 +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
haranishi 4df6107dba Merge next to pick up the design lint fix 2026-11-20 15:33:30 +09:00
Martin BallandClaude Opus 5.5 bc4bb7bd73 Merge craft-libs next 7efbe8bb6 into the WordCraft port
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:53:30 +00:00
Martin BallandClaude Opus 5.5 93bc1d8fbb Ribbon story: the app look shows the body band
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE
2026-11-20 03:04:24 +00:00
Martin BallandClaude Opus 5.5 197d3b3b57 Ribbon gallery: framed and spare_buttons options, with a story
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE
2026-11-20 03:04:24 +00:00
Martin BallandClaude Opus 5.5 7df066cd9a Ribbon look: the body on a lighter band ruled above and below (RibbonLook::body)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE
2026-11-20 03:04:24 +00:00
Martin BallandClaude Opus 5.5 0eef719c72 Ribbon look: group columns a tight gap apart, so View fits with Zoom labelled as the old ribbon
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE
2026-11-20 03:04:24 +00:00
Martin BallandClaude Opus 5.5 ace9547545 Ribbon look: tabs rest in the text colour over a bar underline (RibbonLook::tabs); the story shows the whole look
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE
2026-11-20 03:04:24 +00:00
Martin Ball 2b7e9dc96b Ribbon: a collapsed group button shows the look menu arrow 2026-11-20 02:29:53 +00:00
Martin Ball 9bd719e717 Ribbon look: RibbonLook (renamed from RibbonIcons) sets the small row height; the body least follows three rows a tight gap apart 2026-11-20 02:26:58 +00:00
Martin Ball 16cba38396 Ribbon: app icon sides (RibbonIcons, Ribbon::icons) and launcher icon; group titles centred; ribbon tabs padded, 28-pt bar, underline under the label; strip and row start insets 2026-11-20 02:17:30 +00:00
aiongg e19e64edba menu: Gate and ModalRules are props of the runtime's command gate
Gate derives MemoProps. ModalRules keys on its plain fields and its revision, which stands for the
pending closure the derive cannot take; design-lint allows that one hand-written impl.
2026-11-20 01:51:38 +00:00
Martin Ball e93b8c1fea Docs: intra-doc links resolve under -D warnings 2026-11-20 01:33:09 +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
aiongg b82c10b0e9 craft-ui: replay a memoized view at a moved place
A kept run replays where its room is now: the room's position leaves the place comparison and
becomes the offset of one RecordShift, which moves egui's records, every journal entry and what
a memoized view returned. Room size, layer, layout, scale and environment stay compared.

- Place::shift_to: the move is a whole step of egui's UI rounding; a moved record holds no paint
  callback and sits on an untransformed layer; clip rects follow when the clip moved with the
  room, or when the run lay wholly inside its clip (nothing culled). Otherwise the view runs.
- Shift: journal arguments (A: Shift) and MemoView's R (R: Shift) move by the replay's shift
  inside replay::replay; rects and points move, Clip goes through the clip rule, the rest stays
  (stays!). Vec2 has no impl: a size and a move are both Vec2.
- The engaged test reads the moved rect; the scroll-view rule compares the view moved with the
  record while the clip moved with it; sizing extents compare the room's size.
- The scroll body moves its content by whole UI rounding steps, as egui places widget rects.
- Trials: a moved replay equals a run there (pass records, revealed rects, returned rect); a room
  of another size runs; a cut run moved under its clip runs and moved with its clip replays; the
  Overview's scroll runs only entering cards and the pointer's.
2026-11-19 16:16:19 +00:00
haranishi d0c7789b29 fix(shortcuts): activate tabs picked from the overflow menu 2026-11-19 23:55:18 +09:00
Martin BallandClaude Opus 5.5 3b5496df6b look-ribbon-4: a ribbon group sizes the spacer under its content and its separator from the content height the last real run kept, so the measuring run and the real run place the same sizes: the group no longer measures one body too tall (the band under the titles goes) and a settled ribbon measures no group again; the flat-button trial checks the outlined toggle by its edge (a toggle's style has one variant, so a ghost toggle draws it too)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 14:45:54 +00:00
aiongg 1176a26a4c craft-menu: cargo fmt 2026-11-19 14:34:08 +00: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 1ff6c71b62 look-ribbon-3: the gallery's thumbnail size field is thumb_size, apart from the common size prop
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 14:22:18 +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
FredApps 7a98690f4a Merge remote-tracking branch 'origin/next' into publish/registry-2332
# Conflicts:
#	crates/design-lint/src/contract/mod.rs
#	crates/ui-contract/tests/it/contract/mod.rs
2026-11-19 15:18:42 +01: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
Martin Ball 049765a32d WIP look-ribbon-1 (agent stopped at the usage limit; unreviewed, not merged) 2026-11-19 13:11:42 +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