Commit Graph
7053 Commits
Author SHA1 Message Date
aiongg b66a60caf8 DocumentWindow: the body takes the window's room and never scrolls 2026-11-21 01:42:09 +00:00
aiongg 3f440d3ff1 Merge pull request #2578 from aiongg/component-constants
Component constants and component sets (creative and office looks, rulers first)
2026-11-20 20:06:24 -05:00
FredApps f1c4dd50c9 Merge pull request #2672 from storytold/fix/registry-fixture-only
Gate downstream UI registrations on the suite feature
2026-11-21 07:39:13 +07:00
David Mann eb8e6c98e9 Merge pull request #2682 from davidmann4/fix/crop-idle-frame-keys
Crop: O, I, X and Shift+O stay the app's over the untouched frame
2026-11-21 01:04:44 +01:00
Martin Ball 05acb5587f Merge pull request #2566 from storytold/fix/7149-items2-3-start-cards
ui-shell: start-screen cards take the app's picture shape, size and paper; card tiles frame all four sides
2026-11-21 00:01:28 +00:00
Martin Ball aaa87b5754 Merge pull request #2568 from storytold/fix/7149-item7-top-clamp
pages: one rect for the page view and its canvas, so the page no longer jumps at the top with rulers on
2026-11-21 00:00:26 +00:00
aiongg 268aa7893e Merge remote-tracking branch 'upstream/next' into component-constants
# Conflicts:
#	docs/contract-api.md
2026-11-20 23:35:49 +00:00
aiongg e0965cf0b0 Merge pull request #2678 from aiongg/text-memo-fix
Text layout memo: one measurement path, eviction by use, a total budget
2026-11-20 18:34:57 -05:00
FredApps 34908a057c Reuse existing suite-gated registration macro 2026-11-21 00:27:44 +01:00
aiongg 6f92d8e130 Merge pull request #2667 from aiongg/next-sync-1120c
Merge storytold main into next (20 Nov evening sync)
2026-11-20 18:13:07 -05:00
aiongg aa9e22db05 Merge pull request #2648 from aiongg/floating-restore
Floating dock windows: production's bar, grips and macOS resizing; grip bar and width resize for collapsed icon groups
2026-11-20 17:35:08 -05:00
David Mann 4bdd7b7e54 Crop: O, I, X and Shift+O stay the app's over the untouched frame
The Crop tool claimed I, X, O and Shift+O as soon as it showed its
untouched default frame (on picking the tool, after a commit, or on a
selection's bounds), so O cycled the overlay instead of picking the
Dodge group, I switched to Front Image instead of the Eyedropper, and X
swapped the frame instead of the colours. As in the reference application, the crop
now takes its keys only while a crop is pending, the way H and P
already were.

The key trial gave the canvas no keyboard before its first press, so
its untouched-frame half passed whatever the tool did; the rig now
focuses the canvas first.

Part of storytold/photocraft#6536.
2026-11-20 23:21:19 +01:00
FredAppsandClaude Opus 5.5 a79b975188 tile: no card frame over a flat thumbnail
The new frame over a card's picture also drew on flat thumbnails, which
have no sunken well to restore: the New Document preset cards gained a
second outline around their page, and
form_dialogs::new_document::recent_preset_cards_paint_one_small_page_at_its_aspect
failed on every leg. Frame only where the sunken well was painted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:10:52 +01:00
aiongg 108a8a3550 contract-api: regenerated 2026-11-20 22:06:55 +00:00
aiongg d84b15cca1 Text layout memo: one measurement path, eviction by use, a total budget
Removes the paired measure (Component::PAIRED_MEASURE, measure_pair and its
six adopters, MeasureCx::least_width) and the prepared-leaf path
(PreparedLeaf, PreparedStep, run_with, show_leaf_prepared,
measure_under_prepared, child_with_prepared): every leaf is measured by
measure alone, and the recursive run frames carry only what they read after
their children again.

Keeps the text layout memo and the lazy layout runs, with three fixes: a Line
run keys its width as infinity, entries unused for 60 passes go instead of
first in first out, and a 32 MiB budget bounds what the memo retains.
TextLayout's full and runs are private behind full() and runs().
2026-11-20 22:06:54 +00:00
FredApps 599fcd462b Re-export suite helper through UI facades 2026-11-20 23:02:28 +01:00
FredApps ead1233137 Test dependency-gated registry helpers 2026-11-20 22:56:31 +01:00
FredApps 531d7bbd0f Gate generated registry helpers on dependency suite 2026-11-20 22:49:52 +01:00
aiongg 4e11e2b9d4 drawingml: the format doc link names the function 2026-11-20 21:43:12 +00:00
aiongg 5d72faf4b2 Cross-member reads on next: svg's font from ui-contract, font-manager declares Inter, pdf's Tiny-glyf fixture restored 2026-11-20 21:26:45 +00:00
aiongg 901f3c785b Merge remote-tracking branch 'upstream/main' into next-sync-1120c
# Conflicts:
#	.github/workflows/workspace.yml
#	crates/proof/src/affix_suggest.rs
#	crates/proof/src/it/suggest.rs
#	crates/proof/src/pl/suggest.rs
#	crates/proof/src/pt/suggest.rs
#	crates/proof/src/ru/suggest.rs
#	scripts/test-workspace-tests.py
2026-11-20 21:22:40 +00:00
David Mann 50e00dd493 Merge pull request #2631 from davidmann4/fix/scrollbar-arrows-pointer-only
Canvas scroll bars: thumb drag follows every move; arrows take no keyboard focus
2026-11-20 22:16:12 +01:00
aiongg baa3a2f258 Merge remote-tracking branch 'upstream/next' into ruler-look
# Conflicts:
#	crates/ui-contract/src/testing/mod.rs
2026-11-20 20:31:23 +00:00
aiongg 6fea865c9a Grip trial: the icon-rect closure is not named like an icon id 2026-11-20 20:31:09 +00:00
FredApps 2ad95c4994 Merge pull request #2361 from storytold/perf/2333-text-layout
Reuse text layouts and measure supported leaves once per sweep
2026-11-21 03:16:33 +07:00
FredApps 9c180fca2f Merge pull request #2363 from storytold/perf/2332-explicit-ui-suite
Split the UI test kit and select suite registrations explicitly
2026-11-21 03:16:06 +07:00
David Mann 399922917f Merge pull request #2634 from davidmann4/fix/picker-full-hex-enter
Color Picker: Enter in the Full layout's hex field confirms
2026-11-20 21:11:43 +01:00
David Mann 2422396c0b Merge pull request #2612 from davidmann4/fix/snap-span-reach
Snap targets can reach past their spans
2026-11-20 21:04:32 +01:00
aiongg a45db600db contract: MOVE_BAND's re-export stays testing-only 2026-11-20 20:04:01 +00:00
aiongg 761faa9d3a Merge remote-tracking branch 'upstream/next' into floating-restore
# Conflicts:
#	crates/ui-contract/src/contract/body/hooks.rs
#	crates/ui-patterns/src/patterns/dock/area.rs
#	docs/contract-api.md
2026-11-20 20:00:02 +00:00
David Mann 6d3d29331c Canvas scroll bars: a thumb drag follows every move
The canvas settles the view it is given to whole device pixels, so a
thumb drag's first proposal came back with its centre a fraction of a
pixel off. The value step read that as the app changing the view under
the gesture and cancelled it (HostChanged); the cancelled gesture refused
every later proposal until the release, so the view moved once and then
stayed (photocraft#16006). The bars now take a host view with the same
zoom, turn, mirroring and aspect and a centre within a point as their own
value (same_value), as the number fields do with rounded values.
2026-11-20 20:51:50 +01:00
aiongg ddd2e23f89 Collapsed floating windows resize their width
A collapsed dock window's sides resize its width, and only its width, within the bounds of a docked collapsed column
(DockSizes::iconic_bounds, the one rule both use), on macOS by AppKit and elsewhere by the window's own grips.
FloatingGroupOutput::collapsed_width reports the width, which the area keeps as the column's iconic width through the
docked column's own path (Action::ResizeIconic); names show from IconicSizes::labels as in a docked column. The height
stays the icons', the expanded rect keeps its size and the window keeps its edge. The column in a window has no
inner-edge divider: the window's sides size it, as for an expanded column.
2026-11-20 19:45:04 +00:00
FredApps 2d9d096e4f Merge pull request #2495 from keithcsqueensu/ppt95-shapes
craft-ppt-binary: read PowerPoint 95 shapes and lines (#2317, step 3)
2026-11-21 02:41:26 +07:00
David Mann 31997fa3b6 Merge pull request #2564 from davidmann4/next-sync-1120b
Merge storytold main into next (20 Nov, second sync)
2026-11-20 20:25:24 +01:00
aiongg b5edc283c0 Merge remote-tracking branch 'upstream/next' into ruler-look
# Conflicts:
#	crates/text/src/ui/ruler/stories.rs
#	crates/ui-canvas/src/canvas/rulers/stories.rs
#	crates/ui-gallery/src/chrome/card.rs
#	crates/ui-gallery/src/chrome/variants.rs
#	docs/contract-api.md
2026-11-20 19:21:26 +00:00
David Mann 80807123fb Color Picker: Enter in the Full layout's hex field confirms
3155a1d38 made the hex field own Enter for the tabbed Colors dialog. The
Full layout focuses the same field on its first show, so its Enter only
committed the digits and the dialog stayed open. In the reference image
editor's Color Picker, digits typed there and Enter set the colour and
close the dialog. The field owns Enter in the Compact layout only.
2026-11-20 20:14:04 +01:00
FredApps d7fc79387d Merge pull request #2493 from keithcsqueensu/ppt95-text
craft-ppt-binary: read PowerPoint 95 placeholders and text (#2317, step 2)
2026-11-21 02:10:22 +07:00
David Mann 552ce4a803 Canvas scroll bar arrows take no keyboard focus
The document chrome's step arrows were focusable stops. Tab stopped on
them, and when the canvas's focused part went away (a crop that shrank
the document) focus fell through to an arrow, which then took the Escape
that cancels the next crop frame. The canvas scrolls with its own keys
(arrows, Page Up/Down, Home and End), and in the reference application
the scroll bar arrows take no keyboard focus, so the arrows are
pointer-only, like the corner.
2026-11-20 19:58:58 +01:00
FredApps d292c8a742 Format combined measurement exports 2026-11-20 19:56:31 +01:00
David Mann d7a61a8889 Snap targets can reach past their spans
A spanned target catches only a point or box overlapping its span on the
other axis since canvas-w4, which keeps a layer's edge on its page from
catching a box on another page. Photoshop-style layer edges snap a box
beside them too (side-by-side boxes align their tops), so PhotoCraft's
Move tool stopped snapping to other layers' edges.

SnapTargets::reach_past_spans() lets every target catch along its whole
line, the span only shaping the drawn smart guide. The default is
unchanged, and filtered() keeps the setting.
2026-11-20 19:45:06 +01:00
FredApps 9fd22632b4 Merge commit 'bce3d25e' into perf/font-revision-consumer 2026-11-20 19:32:56 +01:00
FredApps bce3d25ea1 Follow upstream settled test replacement 2026-11-20 19:32:44 +01:00
aiongg 7d8bcd18bd Iconic columns: a visible grip bar on top of each icon group
Each icon group has a grip strip above its first icon, size.hit.target high and part of the group's rect, with a
thin pill centred across it: stroke.thick thick, half an icon cell long (GRIP_BAR_IN_CELLS), the theme's pill
rounding, text.muted at rest and text.normal while hovered or dragged. The grip part takes exactly the strip
(exact_hit), so it no longer reaches into the first icon; a drag on it moves the group as before. icons_height adds
one strip per group, and a flyout's top stays level with its group's first icon.
2026-11-20 18:30:30 +00:00
FredApps 95761e1418 Merge commit '752d2279' into perf/font-revision-consumer 2026-11-20 19:27:10 +01:00
FredApps 752d2279ce Allow the owned gallery story memo key 2026-11-20 19:26:44 +01:00
FredApps 0abd4eb4fe Merge commit '36dea842' into perf/font-revision-consumer
# Conflicts:
#	crates/ui-contract/src/testing/mod.rs
2026-11-20 19:26:27 +01:00
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 3f9adf355d Rulers: an edge and a centred face, picked by the component set
`RulerFace { Edge, Centred }` sits beside `TickEdge`, and
`RulerFace::of(set)` maps the creative set to Edge and the office set to
Centred. The shared tick painter takes the face. Centred draws a bar
inset in the strip by `space.gap.tight`, centres the marks on it, and
puts a number in place of each whole-unit mark. No mark runs under a
number (`RulerFace::beside_numbers`), so a whole-unit tick shows only
where its number is dropped.

TextRuler, VerticalRuler and canvas Rulers take an optional `face` prop
in their style key. Unset, the style resolves it from the scope's set.
PageRulers passes its face to both of its rulers, and the timeline ruler
keeps the edge face.

Under Centred:
- the strip is on the chrome surface and the bar carries the margin
  shade and the text column on the well;
- numbers show only over the text area and are dropped where a marker
  stands;
- canvas Rulers shade their margin bands as the text ruler does.

Edge is the look the rulers had before. Each ruler gets an edge and a
centred story.
2026-11-20 18:23:17 +00:00
dependabot[bot] a20dfd1623 ci(deps): bump actions/checkout (#2582)
Bumps the actions group with 1 update in the / directory: [actions/checkout](https://github.com/actions/checkout).


Updates `actions/checkout` from 4.4.0 to 7.0.1
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4.4.0...v7.0.1)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-20 13:19:17 -05:00
bdb9dae67d craft-xlsx: typed external links, and external references in binary formulas (#1347)
* craft-xlsx: typed external links, read from .xlsx and .xlsb; external references in binary formulas

ExternalLink (another workbook as ExternalBook: its target, sheet names,
defined names with refersTo and sheetId, and cached cells; a DDE or OLE link
as Other) reads from externalLinkN.xml and externalLinkN.bin alike.
Package::external_links gives one entry per Workbook::external_references,
which is now a typed field, read from externalReferences or the binary
workbook's BrtSupBookSrc records and written back from the field.

A binary formula's reference to another workbook decodes as .xlsx spells it:
[1]Data!$A$1, '[1]Other Sheet'!A1, '[1]A:C'!A1, [1]!ExtName, [1]Data!Local
for a sheet-scoped name, a DDE item [2]!'R1C1'. The link parts are read when
the workbook part is; one that can't be read, a deleted sheet of it or a name
it lacks keeps the cell's saved result.

Closes #1252.

* craft-xlsx: review fixes: external links keep their numbers, are read once, and deleted sheets keep values

- An externalReference without an r:id, or a BrtSupBookSrc whose id can't be
  read, keeps its place as an empty id, so the links after it keep their
  [n]; it is written back without r:id.
- A binary workbook's external link parts are read once, with its workbook
  part: the formulas' index and Package::external_links share that read, so
  cached cells are charged to binary_cells once.
- PtgNameX through a deleted sheet of another workbook (-1) keeps the cell's
  saved result instead of falling back to the name's own scope.

* craft-xlsx: deduplicate binary external links against budget and add cache-cap test

* craft-xlsx: avoid cloning ExternalLink on duplicate binary external references

---------

Co-authored-by: kiwi4boy <kiwi4boy@gmail.com>
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-20 13:19:14 -05:00