Commit Graph
8520 Commits
Author SHA1 Message Date
aiongg b250890413 craft-ui-panels: HidePanels derives MemoProps, Titles keys through its content key, ToolRail::hidden is a derived prop 2026-11-20 18:17:24 +00:00
aiongg 8b7fb7143d craft-ui-patterns: a group's tab titles are derived once and keyed by their content, so a tab row replays unless its own titles changed 2026-11-20 18:17:24 +00:00
aiongg dc4ba06687 craft-ui-panels, craft-ui-patterns: HidePanels::Except holds a Tracked set of panel keys; the dock derives its pruned layout and each group's tab titles under revisions 2026-11-20 18:17:24 +00:00
aiongg 75f2d453b0 craft-ui-panels: the tool rail's slots, last-used tools and hidden tools are Tracked values, so its key does not walk them 2026-11-20 18:17:24 +00:00
aiongg 95d7fc34b4 Trials: idle key bytes of a tool rail, a dock and a menu bar do not grow with their models 2026-11-20 18:17:23 +00:00
aiongg 0ab21b8b6f craft-menu: trials that sync_with lays out only when its key moves and apply_state keeps the revision when nothing changes 2026-11-20 18:17:12 +00:00
aiongg e40ff16dfc craft-ui-panels: trial that an open flyout builds no derived values 2026-11-20 18:17:12 +00:00
aiongg 1d40128fad craft-menu: NativeMenu::sync_with is keyed by a checked key; sync and had_input are removed 2026-11-20 18:17:12 +00:00
aiongg 73e5bc474e craft-menu: the bar's labels are one derived value keyed by the model revision, language and keymap 2026-11-20 18:17:12 +00:00
aiongg d395d4f831 Component sets: the app's set of component looks as a root env value
craft-theme gets `ComponentSet { Creative, Office }`: the app states its
set in `AppDefaults::set`, the user's own choice for the app
(`AppChoice::set`) overrides it, and `Selection::set` carries the result.
The suite's choice never carries a set.

ui-contract makes the set a style-affecting env value: `RootEnv::set`
puts it in the root app values, a container overrides it for its subtree
through `Overrides::values`, and windows, layers and popups take the
scope's value. A component reads it in `style` with `StyleCx::set`.
`Fixture::set` sets it in tests.

The gallery gets a Set choice in the More popover and a Set axis in the
Variants view.
2026-11-20 18:17:09 +00:00
aiongg 49758ecee8 craft-menu: the menu model is plain data, from_items groups rows in one pass, tidy works in place 2026-11-20 18:16:52 +00:00
aiongg 47379d792c Chords, command refs and colours are plain data; the keymap generation is public 2026-11-20 18:16:52 +00:00
aiongg ef60cb99a5 craft-theme: LabelColor is plain data and memo props
craft-layers no longer marks its LabelColor fields: the type derives PlainData in craft-theme (a tier-0 crate, as craft-behavior
is), and the contract crate keys it as it keys the other theme types.
2026-11-20 18:16:52 +00:00
aiongg 866ddeaaf7 craft-layers: the Layers panel reads a Tracked tree and derives its display order
LayersPanel::new takes &Tracked<T: LayerTree>; LayerTree is plain data and its Id feeds memo keys. The display order,
its row keys and the filtered flag are one Derived value keyed by the tracked revision, the filter and the opens of a
reveal, so a pass that runs for another reason walks nothing. LayerTree::revision is removed; the list's order revision
follows the key. FakeLayers loses its revision field and call counters.
2026-11-20 18:16:52 +00:00
aiongg b729d8b422 Derived: a replayed view keeps the values it derived
A replay asks for no derived value, so the memo rule dropped the values of a view that replayed for a few frames
and the view's next run built them again. The record notes the slots a run asked for, as it does for layout memory,
and a replay keeps them. last_frame_derived_builds counts the builds of every pass of a frame. IconId is plain data.
2026-11-20 18:16:52 +00:00
aiongg d1386328c2 Dock on Derived: one rail-grid conversion, window ids never reused, docs
- A panel's grid is read only through DockSizes::stepped, in the dock's own sizes, so
  DockGrid::rail is converted in one place; ToolRail counts its columns in its scope's
  style (DockSizes::of_scope), and ToolRail::dock_grid is gone.
- A layout's window counter starts above every id it is built or loaded with; a dock
  area raises a workspace an undo brings back above every id it has shown
  (Workspace::raise_window_floor). A saved u64::MAX id loads without overflow.
- Floating::id and DockArea::new docs say how ids are given and why to keep one Arc.

Part of #2336.
2026-11-20 18:16:52 +00:00
aiongg 42739aaa2d Dock on Derived: tracked panel specs, workspace revisions, layout-owned window ids
- `Workspace` fields are private. `revision()` moves with every write (a clone is a
  new source); `generation()` moves only on `replace` and ends drags as the old
  revision did. A trial walks every `&mut self` method, read from the source.
- Panel specs and permissions leave `DockPanels` for `PanelSpecs`, a plain-data model
  the host keeps in a `Tracked`. `DockArea` binds `Arc<Workspace>` and derives specs,
  permissions and keys from the workspace revision, the specs revision and the lock:
  an idle pass reads no spec, read-only docks included.
- `DockGrid::rail(cells)` is sized by the dock from its own tokens.
- Floating window ids come from a counter the layout owns; `replace` gives incoming
  windows ids the replaced layout never gave out. The dock's global id counter and its
  `no-global-state` allowlist entry are gone.

Part of #2336.
2026-11-20 18:16:52 +00:00
aiongg ea48749d34 Derived: a value kept per component id and rebuilt only when its key changes
`runtime::derived::derived(ctx, id, &key, build)` (and `BodyCx::derived`) keeps one
value per id and value type. The key is `MemoProps`, so it holds only checked inputs.
A value no pass asks for is dropped by the memo rule for absent entries, which moves
into one helper both stores call. `testing::last_pass_derived_builds` counts builds.

Part of #2336.
2026-11-20 18:16:52 +00:00
aiongg e94e82dc8c Merge pull request #2533 from aiongg/memo-audit-fix
Memo audit: kept views match a fresh run (#2336)
2026-11-20 13:15:13 -05:00
FredApps 86d6df9c45 Preserve additional COLLADA camera instances (#2576) 2026-11-21 01:14:47 +07:00
Dylan M. Taylor fcc757df4e Keep thumbnail strips in one column 2026-11-20 13:10:42 -05:00
aiongg 08ea704873 Window grips: the grip band is shared with the dock in every build, not only with testing 2026-11-20 18:09:25 +00:00
FredApps 7f5c123859 Merge pull request #2116 from marcwgls/fix/html-fragment-spacing
craft-html: a fragment keeps its paragraphs' spacing and indents
2026-11-21 01:05:10 +07:00
aiongg 7d22ffc36b Merge pull request #2503 from aiongg/ci-test-select
Workspace: pull requests run only the tests their change reaches
2026-11-20 13:01:27 -05:00
Dylan M. Taylor c60d4a7fb2 Align notice actions to measured text rows 2026-11-20 12:47:11 -05:00
aiongg 48cef3fa60 contract-api.md: ScrollBarLook without its fade length 2026-11-20 17:42:03 +00:00
aiongg c9d84670b0 design-lint: drop the exception entries the component-constant rule leaves stale 2026-11-20 17:39:51 +00:00
Dylan M. Taylor 1442efffeb Add document-aligned popup list variant 2026-11-20 12:39:11 -05:00
Dylan M. Taylor eb63acb5be Apply popup anchor width outside container padding 2026-11-20 12:33:42 -05:00
aiongg 1851f6984f Component constants: one-component values live in the component's file
A dimension that belongs to one component's own drawing is a documented
constant in that component's file; layout sizes stay semantic tokens, and
no size-preset token exists for one component (craft-framework.md 5.4).

- Spec: 5.4 rule 3 reworded; Appendix A, 4.6 (the component-token rung
  goes, no such tokens exist), 8.3, porting.md and the theme README agree.
- design-lint: literal-size/* treats a module- or impl-level const with a
  doc comment as a named value: a name that resolves to it is not flagged,
  and its initializer is its definition. Fn-local and undocumented consts
  and call-site literals stay flagged. Nine markers that only covered such
  consts are removed.
- Ruler ticks: size.ruler.tick.* leaves the size presets; kit.rs draws
  TICK_MID = 6 and TICK_MINOR = 3 points in every density, as the old
  library and the apps' rulers do. Comfortable ticks go back to 6 / 3
  (from 9 / 4.5); Compact is unchanged.
- size.scroll_fade becomes FADE_LENGTH in scroll_bar.rs, size.notice.width
  CARD_WIDTH in notice.rs, and size.story.* multiples of size.control.md
  in testing/stage.rs (15, 10 and 30 control heights: today's values in
  both densities). pointer_tip, checker, thumb.sample.*, the card gaps and
  icon.glyph_md stay tokens: each has more than one user.
2026-11-20 17:33:27 +00:00
Dylan M. Taylor 54329ad927 Keep the first page when a range end is lower 2026-11-20 12:27:09 -05:00
FredApps a49329e71e Merge pull request #2507 from OPUZZLES/opuzzles/proof-map-lookups
Proofing: index spelling MAP lookups
2026-11-21 00:23:07 +07:00
Dylan M. Taylor 6ed8ebae7e Avoid repeating searches on unchanged field commits 2026-11-20 12:22:00 -05:00
aiongg 1819a0868e Workspace: pull requests run only the tests their change reaches
craft-common-actions' select-platforms selects the tests: the crates that
own a changed file, the crates that declare a read of it, and every
crate that depends on them. Every nextest run gets the filter; the build
and the doctests stay whole-workspace. The build setup, a crate's own
Cargo.toml and files outside the crates other than docs run every test;
docs alone run none. pdf, svg and the fonts-build consumer declare the
files of other crates that their tests read.
2026-11-20 17:17:41 +00:00
aiongg d73552cec7 Grips take exactly their rect: PartBuilder::exact_hit
Sensing grows every part's hit area to the pointer's target size (size.hit.target, 8 pt), so a 6 pt grip reached
1 pt past its rect on each side: a press 1 pt into a floating window's title row started a top resize, and the top
corners of a banded layer (6 pt tall) reached 8 pt. A part declared exact_hit keeps its declared shape as its hit
area. Every window grip and the edge pane's grip declare it: a frame's grip band is sized as its reach, its
neighbours own the points beside it, and the in-app hit area matches the platform's hit test for an exclusive grip.

docs/contract-api.md regenerated.
2026-11-20 17:06:56 +00:00
FredApps f723e6ad88 Merge commit '2d212dadae338d5e2333c591d4b2e3cffe0a1193' into perf/font-revision-consumer 2026-11-20 18:06:37 +01:00
FredApps 2d212dadae Isolate coverage for cancelled print helpers 2026-11-20 18:05:00 +01:00
aiongg b35a0faee0 Floating windows: production's bar height, grips and AppKit resize
- The floating window's title row is one text row high (HeaderStrength::Bar, size.row.text: 18 pt compact), as
  production's 18 pt bar; the tab strip below keeps the panel header height.
- A resizable or movable layer with a header keeps its top grip's band (contract::grip_band, size.handle.sm) clear
  above the header, so the top grip never lies over it; the regions start below the band or the padding, whichever
  is deeper. Dialogs keep their layout (their padding is deeper than the band).
- Grips lie inside the frame for layers too; corners reach twice the edge width along each edge (12 pt), top corners
  of a banded layer only the band's height.
- Where the OS resizes a window from its own frame (macOS Inset, resizable: windows::os_resizes) no app grips stand,
  the cursor over AppKit's resize areas is the default (craft_window::mac::in_resize_area) and the move band keeps
  the arrow, as an OS title bar does.
- DockSizes::window_chrome (title row plus the band in the app window) sizes floating windows, stepped resizes,
  collapsed windows and float previews (FloatSpace::chrome).
2026-11-20 16:57:13 +00:00
Martin BallandClaude Sonnet 5.5 7ee54362ae Merge storytold next into the start-card fix
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 16:45:45 +00:00
aiongg 74fe9ef614 values doctest: drop the whole-value binding before reading the revision (Bind runs a destructor) 2026-11-20 16:45:21 +00:00
Dylan M. Taylor 5d4357256a ps(write): handle empty, single, and flat stops in push_shading (#2570) 2026-11-20 11:43:22 -05:00
Dylan M. Taylor 8eacb8d7a2 Keep captured parts available through release passes 2026-11-20 11:34:46 -05:00
David MannandClaude Opus 5.5 72b6a1664d craft-audio-dsp: doc links that next's workspace docs check refuses
next builds every crate's docs with -D warnings; main has no such check,
so main's new crate meets it here first. [`effects`] is both a module and
a function (mod@ picks the module), and loudness linked to the private
oversample module.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 17:04:33 +01:00
Martin BallandClaude Sonnet 5.5 2bd43ca27a ui-shell: start screen takes picture shape, card width and page pictures; tile frames its picture
Part of storytold/wordcraft#7149, item 2 and item 3.

StartScreen gets picture_aspect, card_width and page_pictures (white paper, no
transparency grid, icon without a sunken tile); RecentList gets picture_aspect.
Defaults keep today looks. A card tile now draws its frame over the picture so all
four sides show, not only the top and bottom edge of the sunken well.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 15:57:04 +00:00
FredApps 712b35379b Merge pull request #1691 from vangel76/fix/drawingml-numfmt-1675
Chart number and date formats show what Excel shows (rounding, dates, fractions, conditions)
2026-11-20 22:45:34 +07:00
Dylan M. Taylor 119a633c10 Format framework follow-up changes 2026-11-20 10:43:19 -05:00
FredApps d87dd5b9b0 Integrate trial registry with text layout work 2026-11-20 16:43:02 +01: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 fdce82b56e Merge branch 'pdf-port/fwb11-b' into pdf-port/followups 2026-11-20 10:42:40 -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