Commit Graph
45 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
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
aiongg 922dc82098 stories: story values kept in a local bind through ValueAt
Script: `let PAT = data.value(ARGS);` (or ranged, choice) whose locals a later Bind::bound / Bind::bound_mixed in the
same block binds becomes `let (PAT, AT) = data.value_at(ARGS);` and the binds become AT.bind / AT.bind_mixed; 292
values, 333 binds; unused Bind imports dropped.
2026-11-20 09:46:30 +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 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 BallandClaude Opus 5.5 f3fea6f189 fwstub-2: a comment card selected again keeps its own edit draft (select_thread dropped every edit, so a draft the app could not write back went when its balloon was clicked again; S-L100 keeps no second copy in the app), and an inline edit takes the keyboard in the pass it opens, so one click on a balloon is enough to type, as the old WordCraft; trials
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 22:19:09 +00:00
FredApps 938d170b87 Keep library trials available without a UI suite and preserve the generator API 2026-11-19 14:11:23 +01:00
FredApps b04d18a735 Select UI suite items through explicit registries 2026-11-19 12:20:08 +01:00
FredApps f8dddb2a55 Split UI test kit from story suite 2026-11-19 09:25:07 +01:00
Martin Ball 0bc621b93f fu-canvas: app batch 1 rulings (S-L233, S-L236, S-L238, S-L243, S-L244, S-L247) 2026-11-18 22:47:02 +00:00
Martin Ball 4f37976c25 platform-w4: net change of 4 commits
- platform-w4: written from its sheet
- platform-w4: repair 1
- platform-w4: review fixes (review-1)
- platform-w4: review fixes (review-1b)
2026-11-18 17:25:03 +00:00
Martin Ball 8edb3735ab chrome-w2: net change of 3 commits
- chrome-w2: written from its sheet
- chrome-w2: repair 1
- chrome-w2: review fixes (review-1)
2026-11-18 16:01:11 +00:00
Martin Ball 01613f11c3 canvas-w7: review fixes (review-2) 2026-11-18 14:18:19 +00:00
Martin Ball a62f269f6c canvas-w7: the balloon leaders are paint only (empty sense), so STOPS = false holds 2026-11-18 14:15:04 +00:00
Martin Ball aec6ec7f2d canvas-w7: comment body rows through Wrap::Clamp, no TextRun::max_rows (S-L176) 2026-11-18 14:08:08 +00:00
Martin Ball 80d3e4d440 canvas-w7: net change of 3 commits
- canvas-w7: written by an agent
- canvas-w7: finished by an agent
- canvas-w7: review fixes (review-1)
2026-11-18 14:03:47 +00:00
Martin Ball b14ea47830 Contract stubs: craft-browse craft-dialogs craft-menu craft-print craft-review craft-table craft-update craft-automation 2026-11-18 08:35:49 +00:00
aiongg 5eefdb88a1 Run the tool host in the canvas body at every caller but tool_story and PageView
Gallery mock panels, ui-bench, review story, doc examples and the test sites run
ToolHost::run on the ToolPass the canvas publishes, after the body's controls and
before the picture, which paints with .picture().
2026-11-16 21:37:38 +00:00
aiongg 2b5de84828 Design lint: layer the env values, route egui access through the adapter, derive setters, token and relation checks in tests
The gate's design-lint test finds nothing. Env value types (pane edge, column align, row pressed, in-bar), band fill and span live in the layer that uses them; the cursor image and inside label are read back by the higher layer. Hand setters become derived props, tests assert relations, and the remaining sites are listed exceptions with reasons. The shortcut chord chip's sample is built only for screen tests.
2026-11-14 05:05:04 +00:00
aiongg deeb91802f Lints: doc links, test lint allowances, struct update in tests, wildcard imports, dead code 2026-11-14 02:35:35 +00:00
aiongg a17171af48 Lints: drop the workspace missing_docs lint and warn on it in the framework crates that document every public item 2026-11-14 00:15:29 +00:00
aiongg a3434176e4 Dialog bodies: the content sits directly in the dialog body, which is already a stack, so fill-width children take the dialog's width; the Tabs dialog's Position column is as wide as its field and Alignment and Leader share the rest 2026-11-12 14:32:57 +00:00
aiongg 3da412f36b Toolbar separators between tool groups
AnnotationToolbar puts a vertical divider before each group button, as a
Bar separates its groups. GraphEditor's bottom bar draws a divider rule in
each gap between two button groups, inset from the bar's edges.
2026-11-12 14:32:51 +00:00
aiongg 7fcd160eca Field and number widths per control size: size.length.field and size.length.number hold sm and md, and controls read them through ControlMetrics, so a field in a small options bar is narrower than one in a dialog 2026-11-12 14:32:49 +00:00
aiongg a05363c900 EdgePicker and PeopleBar stories: the Row's inner is optional; following is set only for a followed person 2026-11-12 14:32:49 +00:00
aiongg e0215c57ec PeopleBar story: five people, one followed, a viewer, one spotlighting, Remove offered, last-event readout 2026-11-12 14:32:49 +00:00
aiongg 4989787bb4 CommentsPanel: plain icons at the button glyph size, the standard disclosure, a reply's author and age on one line
The status, check and lock icons were painted over a whole control-high square, twice the icon buttons beside them; they take the buttons' glyph side. A heading shows the disclosure glyph every component uses instead of chevron icons. A reply's author and age share one line, as in the old panel, where both fit whole; otherwise the age goes under the author.
2026-11-12 14:32:48 +00:00
aiongg a899406d9a Signature pad: a typed name too wide for the pad shrinks to its width instead of wrapping out of sight 2026-11-12 14:32:45 +00:00
aiongg 0c9f998107 Comments panel: drop the Props import the add box no longer uses 2026-11-12 14:32:45 +00:00
aiongg 6b82de8e54 ListRow::below hosts components in a line under the row's text; the version history's delete confirmation asks with Delete and Cancel under the question 2026-11-12 14:32:45 +00:00
aiongg 9ebab52892 Version history: the rows sit on a timeline, a line through the dots with the shown version's dot filled 2026-11-12 14:32:45 +00:00
aiongg 6a81e26d92 Comments panel: Enter posts from the add box, Enter on a card puts the focus in its reply box (RowState::activated_by_key), Cmd+Enter posts a reply or an edit; the kind icon sits on a sunken disc in the annotation colour 2026-11-12 14:32:45 +00:00
aiongg 68e0f52ebc Signature pad: the Type and Image tabs show their signature on the same paper as the Draw tab; the image hint is muted 2026-11-12 14:32:45 +00:00
aiongg 4469c68b92 Revisions panel: each change is a raised card with a bar in its kind's status colour, Accept and Reject at the end edge 2026-11-12 14:32:45 +00:00
aiongg 3d841bfda3 ThreadPopover and Version history put their buttons at the end edge; the thread's Resolve is a check button and its Post buttons are primary 2026-11-12 14:32:45 +00:00
aiongg 84639de189 A disabled component that shows data paints its enabled look faded
Component::DISABLED picks how a disabled instance looks: the style's Disabled
state (DisabledLook::States, the default for chrome controls) or its enabled
look at Opacity::DISABLED (DisabledLook::Faded). Step 13 fades the surface,
part layers, paint, faces and paint_over of a faded component; its children
and step 14 paint outside the fade and show their own disabled look. egui
fades a shape as it is added, so a settled region replays the faded paint.

Tile, RowThumb, Swatch, PointPicker, Navigator, PreviewPane, ColorStrip,
ColorArea, PaintChip, PagePicture, PagePictures, ReadingView and DrawPad
declare Faded. The tile's disabled veil and the Disabled entries of the tile
and swatch looks go. Opacity::DISABLED is 0.5, the old disabled fade and the
old knob's disabled share.
2026-11-12 14:32:44 +00:00
aiongg 9d44fd0afc Opacity roles for label tints, span bars and secondary ink over data colours 2026-11-12 14:32:43 +00:00
aiongg 21b71e19d1 Completion list: a mark before each candidate and the highlighted one's description under the list; Enter accepts only where the field completes on Enter (ctl:72, ctl:73)
- Completion carries a mark and a description; the unread detail line goes.
- FocusPolicy::list_enter: a text opener of a KeepAnchor layer keeps Enter when its layer turns it off, and Tab alone
  takes the lead. TextField::complete_on_enter turns it on; the review composer's mentions use it, as before.
2026-11-12 14:32:43 +00:00
aiongg 2ee9155582 VersionHistoryPanel: a version's description shows at most three lines 2026-11-12 14:32:42 +00:00
aiongg 9839432649 One Shift-45° helper: turn_to_45 in geometry::lock keeps the length; the measure, gradient and pen copies go, and the gradient's angle_base with them 2026-11-12 14:32:42 +00:00
aiongg 446ad245aa Canvas tools declare their nudges: a tool that claims them (ToolClaims::nudges) describes what its arrows move, the host declares Increment and Decrement on that node and turns them into nudges. The Ruler (its line), the Artboard tool (the selected boards outside a drag) and the annotation Select tool (its selection) claim them 2026-11-12 14:32:42 +00:00
aiongg d9e2f6e4f2 Bars: the trailing group follows commit and cancel; parts back on their old rows
TransformBar pins Reset warp, its rule and the mode switch after commit
and cancel. The annotation toolbar puts its colour and width on a second
row, and the crop bar shows Delete Cropped Pixels and Fill on the bar.
Bar::vertical goes: the vertical tool strip is a rail.
2026-11-12 14:32:40 +00:00
aiongg e64dd901d9 Tooltips: a control that paints no label shows its own label, and the hints and names the old controls showed
A control whose own label is not painted (an icon, a glyph label, a caption-less tile, a chip, the stroke button) shows that label as its tooltip inside a field too; one named only by its field label shows none. Restores the old tooltips of the ReferencePoint points, the list disclosure, the PeopleBar avatars, the recent files, Distribute Rows Evenly, a page that failed to render, the font class mark (ListRow::trailing_named) and the Character hints (SideLabel::tooltip).
2026-11-12 14:32:39 +00:00
aiongg 8735a8b1c5 Document and app crates on the framework: text, pages, table, review, timeline, menu, browse, dialogs, print, font manager, theme store, update, automation 2026-11-12 14:32:38 +00:00