Commit Graph
7039 Commits
Author SHA1 Message Date
Martin Ball 8de74f788c look-rest-3: a control with its label after it in a grid cell takes the width of the two, not the grid's; check boxes stand two to a line in a two-column grid (the Font dialog's Effects); trial 2026-11-19 14:12:32 +00:00
FredApps d9a3c6d7ce Fix gallery registry test lint 2026-11-19 15:05:49 +01:00
David Mann 86e16f7e3b WIP: craft-automation re-exports the agents code from craft-control (#2390) 2026-11-19 15:05:48 +01:00
aiongg 4e6ca12daa craft-ui: a sizing pass keeps the real run's enabled state, so memoized views replay there
egui's invisible() also disables the Ui, and every sizing Ui is invisible. Env::of
folded that into enabled = false, which the memo key's scope key holds, so a view's
sizing call never matched its real run and decided a run for the whole pass.
2026-11-19 14:03:30 +00:00
haranishi e9d4a5d3f5 fix(swatches): fit more swatches at the default zoom 2026-11-19 23:00:30 +09:00
Martin Ball 566ba7bdbc Merge branch 'red/look-rest-2' into area/ribbon-fw 2026-11-19 13:58:56 +00:00
Martin Ball 6cc5affef5 look-rest-2: LeastWidth::WideDialog and Dialog::least_width; the listed About is a wide dialog, as WordCraft's; trial 2026-11-19 13:57:48 +00:00
aiongg b3b2f4ed6f Merge storytold next into memo-board 2026-11-19 13:55:44 +00:00
Martin Ball 9e3d7bbc1f look-rest-2: WrapWidth::Column (size.dock.column) and Stack::wrap_width, a settings column beside a preview breaks its paragraphs instead of widening; trial and story 2026-11-19 13:55:17 +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
aiongg 4bd0107b92 Merge pull request #2339 from aiongg/memo-counters
Count-trial counters (#2336)
2026-11-19 08:54:49 -05:00
aiongg 2fb86ac2b0 Merge pull request #2342 from aiongg/memo-props
MemoProps, MemoKey, derive, Stateless<F> (#2336)
2026-11-19 08:54:35 -05:00
aiongg 62fd9223a8 Merge pull request #2340 from aiongg/memo-tracked
craft-tracked: Tracked<T>, PlainData and bind_tracked! (#2336)
2026-11-19 08:54:22 -05:00
aiongg 0e93f7f97c Merge pull request #2341 from aiongg/lint-no-global-state
design-lint rule no-global-state (#2336)
2026-11-19 08:54:08 -05:00
Martin BallandClaude Opus 5.5 718540f24b look-ribbon-2: a ribbon's toggle buttons are flat at rest; a stacked label breaks at its own newline; a ribbon's stacked buttons keep two label lines and lay out from their top; trials and story
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 13:53:41 +00:00
Martin Ball 4795858582 look-rest-2: ControlPlace::SideMenu, a page's side menu rows (large body label, list-row padding), LeastWidth::SideMenu and Stack::least_width; trial and story 2026-11-19 13:53:13 +00:00
FredApps 6ac9069b9d Fix registry expansion lint warnings 2026-11-19 14:49:38 +01:00
FredApps 448e8d4bfc Test parts declaration guard and inspector focus order 2026-11-19 14:44:36 +01:00
haranishi f6671c5001 fix(shortcuts): give the tabs the full dialog width 2026-11-19 22:42:24 +09:00
FredApps 6aff4cb1dd Honor inner module conditions in registry discovery 2026-11-19 14:38:53 +01:00
Martin Ball 1f43e0f81d Merge branch 'red/look-chrome' into area/ribbon-fw 2026-11-19 13:38:02 +00:00
Martin Ball abbc281fbc Merge branch 'red/look-backstage' into area/ribbon-fw 2026-11-19 13:38:02 +00:00
Martin Ball e33bd7f4fa Merge branch 'red/look-dialogs-b' into area/ribbon-fw 2026-11-19 13:38:02 +00:00
Martin Ball 67f284a499 Merge branch 'red/look-dialogs-a' into area/ribbon-fw 2026-11-19 13:38:02 +00:00
FredAppsandCodex 50b0ee7bf8 Expose structured palette errors for localized consumers (#2377) [skip ci]
Co-authored-by: Codex <codex@openai.com>
2026-11-19 20:36:51 +07:00
aiongg bf187376d2 craft-ui-panels: note why the dock's tab row and column bar replay at rest 2026-11-19 13:36:11 +00:00
aiongg 7e754a6742 craft-ui: a replayed view registers its revealed rects with the shell
ShellCx's revealed rects live in a pass-stamped record per viewport, keyed
by the shell's id, and each registration is journaled, so a memoized view
in a slot that replays registers the rects its run did. reveal_rect skips
measuring runs itself.
2026-11-19 13:36:11 +00:00
aiongg 5e6875a9d6 craft-ui-shell: is_multiple_of in the resolve trial 2026-11-19 13:35:56 +00:00
aiongg 587590fec7 craft-ui: dock chrome and shell slots as memoized views
Each dock group's tab row, each column's bar and each iconic column's bar is a memoized view on the spec values,
the arrangement and the look; what the user did on them leaves through an outbox. The containers (DockGroup,
DockColumn, IconicColumn) and the host's body, group view and group header run every pass, and the host memoizes
inside them; shell slots the same way. The group menu is one popup, opened by the panel menu button or by a
context request on a tab, and its rows are built only while it is open.

Removed: DockPanels::content and spec_version, the chrome key, DockColumn::content, IconicColumn::content,
Slot::content, Slot::content_version, AppShell::content, Lazy::show_or and Run::unkept. The gallery's mock
Navigator body is a memoized view.
2026-11-19 13:34:57 +00:00
aiongg a9929bc06d craft-ui: Outbox, the event channel out of a memoized view; replays note their widgets and nodes for the bypass walk
A run sends what its components reported in the pass; a replay sends nothing, which is complete because input
reaches only an engaged view, and an engaged view runs. The outbox feeds nothing into the key.

The testing notes of runtime-made widgets, nodes and scroll regions are journaled, so a replayed view's nodes
pass the bypass walk as its run's did.
2026-11-19 13:34:45 +00:00
aiongg 1657ce1b31 craft-ui-macros: a type parameter only hash-escaped memo props fields name is bound by Hash + Sync
A dock's chrome props hold the host's panel type through #[memo_props(hash)]; the derive bound it by MemoProps,
which a plain panel id does not implement.
2026-11-19 13:34:45 +00:00
Martin Ball 8b700f4368 look-dialogs-a: setup.rs imports in order 2026-11-19 13:34:26 +00:00
aiongg e31c08f0f6 docs: regenerate contract-api.md 2026-11-19 13:33:23 +00:00
Martin Ball e81d2305cd drop the rf-button DIAG print 2026-11-19 13:32:55 +00:00
Martin BallandClaude Opus 5.5 00035d1253 look-backstage: an empty RecentList says so in a muted line at the reading start, not the start screen's centred notice; trial and story
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 13:32:06 +00:00
Martin Ball 9d40eb184c look-dialogs-a: PageSetupDialog lays out as WordCraft's Page Setup: framed section boxes, margins, paper sides and grid counts two to a line, orientation and grid kinds in a row, Paper under Pages, section direction and vertical alignment in the Document Grid box, WordCraft's grid wording; trial and story 2026-11-19 13:31:59 +00:00
Martin Ball 5440bcbf77 Merge branch 'red/fw-diag-clean' into area/ribbon-fw 2026-11-19 13:31:56 +00:00
Martin Ball 3286b125e2 Merge branch 'red/rf-button' into area/ribbon-fw 2026-11-19 13:31:56 +00:00
Martin Ball 44645e2d61 Merge branch 'red/rf-platform' 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 Ball 76e3d051de Merge branch 'red/ribbon-look' into area/ribbon-fw 2026-11-19 13:31:56 +00:00
Martin BallandClaude Opus 5.5 95928362a9 look-chrome: WordCraft's canvas colour in the ArtCraft app layer
surface.canvas #e6e6e6 light, #141414 dark: WordCraft's desk round the pages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 13:31:44 +00:00
Martin BallandClaude Opus 5.5 738d21ba8e look-chrome: rulers paint ticks only over their extent; column lighter than margins
TextRuler::paint_ticks drops the tick rule's extra labelled step beyond each
end where the ruler is cut to an extent (a page's x range), so no ticks show
past the page. TextRuler and VerticalRuler fill the column with surface.sunken
and the margins with surface.canvas: the margins were the lighter part
(surface.sunken is #fff in ArtCraft light), the reverse of a word processor's
ruler. Trials a_ruler_cut_to_an_extent_paints_no_tick_past_it and
the_ruler_column_is_lighter_than_its_margins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 13:31:44 +00:00
Martin BallandClaude Opus 5.5 d9bcc7f542 look-chrome: a menu end item of a tab strip shows the menu chevron
StripEnd::menu's full face ends with DisclosureGlyph::menu_button(), as every
button that opens a menu does (WordCraft's Editing item). Trial
a_menu_end_item_shows_the_menu_chevron; story tab_strip_ribbon_end_buttons
shows framed end items (two outlined, one accent).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 13:31:40 +00:00
aiongg 52c1f953ea craft-ui: env word sets, Units, formats and the host key memoized views by generation
A word set written by words! keeps the generation of the Words it was localized in and keys by it. Format, DateFormat
and Host get a generation per instance built (clones keep it), and Units keys by its format, words and point size.
The scope key and the host's word cache use these generations, not pointers. Checks that captured env words, units
or other locals take them as check_with inputs (page range, path field, print preview and font picker stories).
2026-11-19 13:31:20 +00:00
aiongg adfc725e21 craft-ui: a replayed view reports its nested rows' places to the scroll area
The area's anchor, glide target and axes are the area's own state: lazy::begin keeps them in its Placed, and View
holds only what the children decide by. Places are journaled as offsets from the view's start, so a replayed memoized
view keeps the area's anchor where its run put it. The Scroll trial moves the scrolling body so the view's room stays
the same while its nested rows' decisions change.
2026-11-19 13:31:16 +00:00
Martin BallandClaude Opus 5.5 e080fa2098 look-backstage: Sizing::FillHeight, a container as wide as its content and as tall as the room (a side menu beside a page), with its trial and story
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 13:31:11 +00:00
Martin BallandClaude Opus 5.5 6691052095 look-ribbon-1b: a ribbon's flat buttons pad their sides by the control's padding, not the pill round
A ghost push or split button in a ribbon (ControlPlace::Ribbon) has no edge at rest, so its sides
take space.pad.control instead of the corner round plus the inline gap (18 pt a side at the theme's
full pill radius). Each icon split button in the Font and Paragraph groups is ~20 pt narrower, which
the ribbon's fit needs to show those groups whole at a 1440 pt window, as the old app does.
The trial checks the ribbon button's surface against the ghost one and that it is narrower.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 13:30:54 +00:00
Martin BallandClaude Opus 5.5 71a130b81e look-dialogs-b: Param::options_in_row for radio rows, AboutLayout::Listed for the About tab, with stories and trials
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 13:30:46 +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