Commit Graph
7505 Commits
Author SHA1 Message Date
aiongg e3ca63165d Merge pull request #3167 from aiongg/cl-doctor-split
cl doctor after the split UI test kit
2026-11-23 08:55:01 -05:00
Martin BallandClaude Opus 5.5 db33516bf6 Tests: restore control-connection and X11 clipboard guards lost in WordCraft's port (wordcraft#7317) (#3115)
* storytold/wordcraft#7317: restore control-server and clipboard security tests

Port the lost tests onto craft-automation (EOF request, connection limit)
and craft-platform (X11 property read cap).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* storytold/wordcraft#7317: the EOF trial requires a real close, not a read timeout

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* wordcraft#7317: the restored connection-limit test retries when Windows resets a refused connection's write

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 13:48:37 +00:00
Martin BallandClaude Opus 5.5 1c5ad1b85a Update: a rate-limited check is a typed reason apps can translate (#3090) (#3098)
* #3090: craft-update reports a rate-limited check as a typed reason apps can translate

check_for_update now returns CheckError (RateLimited | Failed(String)); Updater gets Status::RateLimited, LatestRelease gets RateLimited, and UpdateWords gets rate_limited. GitHub's own text stays data in Failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* #3090: isolate the rate-limit source test's cache path

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* #3090: point the rate-limited word's doc link at updater::Status

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* #3090: tests that a rate-limited release check is typed and the check dialog words it itself

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 13:48:33 +00:00
Martin BallandClaude Opus 5.5 ee01a2b421 theme: dark-mode accent buttons show a visible hover (wordcraft#7317 C7-14) (#3124)
* theme: dark-mode accent buttons show a visible hover (wordcraft#7317 C7-14)

accent.strong_hover/pressed offset the rest fill by the ramp distance from accent.solid to
accent.hover/pressed. A light dark-mode seed leaves those ramp steps 0.01 OKLCH-L apart, so the
hover was invisible; and a fill near white or black clamped. The offset now has a floor
(hover 0.06, pressed 0.10) and flips toward the text when there is no room away from it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* theme: explain names the shift's floor and flip

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* wordcraft#7317 C7-14: test that explaining the dark accent hover names its base and its lightness floor

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 13:48:29 +00:00
aiongg 60e39bc320 cl doctor: dev-dependency features across the egui crates
The dev-dependency rule covered egui alone; epaint_default_fonts slipped past
it. It now checks the egui crates every framework crate builds on (egui, epaint,
epaint_default_fonts, emath, ecolor): a feature a dev-dependency line asks of one
must also be asked by a normal line, feature-root's included.
2026-11-23 10:55:18 +00:00
aiongg 52d8e207df feature-root: ask epaint_default_fonts for the monochrome emoji faces
craft-ui-contract's tests ask for them as a dev-dependency (their font oracle),
which gave cl test ui-contract its own epaint_default_fonts and so its own
egui and framework build. The feature only adds two byte constants; egui's emoji
fallback is epaint's own feature and stays off.
2026-11-23 10:54:18 +00:00
aiongg 4304f51ff0 cl doctor: rules for the split UI test kit
Since #2363, craft-ui-contract's testing no longer carries snapshot and the
framework crates have a suite feature. Every cl command still resolves one
framework feature set (feature-root brings the gallery's craft-ui suite), so the
three doctor reports were out of date, not second builds:

- drop the pin on craft-ui-contract's testing including snapshot: each framework
  crate's suite forwards to the runtime's suite, which cl picks first
- the gallery's must-be-optional rule covers domain crates, not the framework
- the story renderer's lines are compared with the features the gallery's lines
  turn on, implied features included (suite implies testing)

CL_DRY_RUN with cl render no longer runs the renderer after printing the command.
2026-11-23 10:54:17 +00:00
aiongg 5c5e0d52c3 Font samples: one baseline in a fixed band, shrunk only where their ink would leave it (#3144)
* Font samples sit on one baseline in a fixed band, shrunk only where their ink would leave it

A font sample was as high as its face's line (ascent, descent and line gap, the gap
below the baseline as egui lays it out) and centred in its rect, so faces with a taller
or bottom-heavy line sat higher in the picker's rows, and a face whose line was taller
than the banner's band was centred past its edge and clipped.

One rule, faces::sample_line, now serves FontSample and the picker's banner: the sample
fills a fixed band, sits on the baseline of the interface face's line at its size
centred in the band, and is laid out at its size unless its ink (the galley's mesh
bounds) would cross the band's top or bottom, then at the largest size whose ink fits.
FontSample takes its band as an option; the picker's rows set it to the thumbnail side,
as the banner's band is the large thumbnail side, and the panels keep LINE_EM of the
sample's size.

Trials: rows follow a host text that arrives after the list opened, in a CJK face; and
samples in faces with different lines sit on one baseline with their ink inside their
bands, rows and banner. Story font_picker_cjk_sample_text over the repository's Noto
Sans CJK SC subset.

* font-manager: declare the CJK test font its picker trials and story read

* font-manager: FontSample::band as a derived prop

* Swatch: the image well's mesh takes the shared UNTINTED vertex colour
2026-11-23 03:20:40 -05:00
aiongg 46b14822af font-catalog: app start helper, font store watch and changed-family list (#2781)
* font-catalog: app start helper, font store watch and the list of changed families

app::start sets the app's folders, scans on a background thread and polls the
font store's folders, so a family the launcher installs shows at once.
app::on_activated rescans on window activation. Catalog::changes_since names
the families added, removed and changed since a generation, and
Catalog::store_changed checks only the store's folders.

* font-manager: a click on a font row's sample picks its family

* font-manager: a press on a row keeps the list the typed name filtered

* Font picker: a row pick of the family the field already holds adds no edit

* font-catalog: a rescan that finds no changed file keeps the generation
2026-11-23 02:00:03 -05:00
aiongg ee30b17c21 Merge pull request #3140 from aiongg/restore-lost-pc-features
Restore four PhotoCraft features lost in photocraft#15449 (curve grab, ruler snap, Hue/Saturation swatches, Mixer load)
2026-11-23 00:45:59 -05:00
aiongg cd4662c914 Merge pull request #3145 from aiongg/font-picker-speed
Fonts: load faces off the UI thread and serve them to egui without a rebuild (font picker speed)
2026-11-23 00:45:47 -05:00
aiongg 81868fe734 Merge remote-tracking branch 'upstream/next' into font-picker-speed 2026-11-23 04:54:41 +00:00
aiongg c896ab291f Merge pull request #3130 from aiongg/next-sync-1123
Merge storytold main into next (23 Nov sync)
2026-11-22 23:54:14 -05:00
aiongg 3b629776d8 Testing runtime runs background work inline: InstallSpec::jobs and Env::jobs_of
Story trials have no host, so document-face and texture loads ran on default_jobs' threads and a fixture
could settle before a face landed (StyleList::variants on Windows: rtl 52.0 vs 52.8, motion shapes change
after the drive). InstallSpec::jobs sets where a context's background work runs while no host is installed;
Env::jobs_of (host, else installed, else default_jobs) replaces the two copies in the face registry and the
texture loader. testing::install_spec and the suite's language hosts use InlineJobs, so a load asked for in
one pass lands in the next on every machine; the two per-story InlineJobs options go.
2026-11-23 04:43:29 +00:00
aiongg 090fd70580 font-manager: the install-queue trial counts only install runners 2026-11-23 03:52:33 +00:00
aiongg 8c4e115ea4 docs/contract-api.md: regenerated (document_face's job and the face bytes; also ColumnSpec::at_least and data_fill_tiled, which next's copy lacked) 2026-11-23 03:27:14 +00:00
aiongg 1fadb03453 Document faces: one queue per context, lost loads fail, replays mark faces drawn, one byte budget
- The load queue is made once per context, as TextureLoader's is: without a
  host, default_jobs() returned a new Arc each call, so every new face made a
  new queue and dropped the loads before it.
- The begin-pass step marks a face unavailable when its load is neither
  queued nor running and delivered no result (a job that panicked), so the
  row stops asking for passes.
- A kept face's draw mark is journaled, so a settled view's replay marks the
  faces its run drew and eviction keeps them while on screen.
- One budget over the files the registry keeps plus the files egui still
  holds for faces taken out. Past it, the faces drawn longest ago go down to
  half the budget and egui's fonts are made again once. The budget is a
  registry field; trials set it with testing::document_face_budget.
- FacesCx::document_face takes a closure that makes the load, called only
  for a new key, so a ready face clones no FaceInfo or catalog.
- Similar fonts weigh a family by its file's raw usWeightClass again
  (FaceInfo::weight_class, None without OS/2; 400 then), not the scan's
  weight. The review point that families without OS/2 data now join Similar
  fonts was checked: the old read_traits listed them too, with zero PANOSE
  and weight 400, so they stay.
2026-11-23 03:25:59 +00:00
aiongg 6a1d13c762 ui-panels: the grip trials compare within a named slack (design-lint test/literal-size) 2026-11-23 03:23:17 +00:00
aiongg de01d25a52 font-catalog: name the per-file slot type (clippy type_complexity) 2026-11-23 03:06:37 +00:00
aiongg 67409c465f Font picker: sample faces load off the UI thread and stay while drawn lately
Opening the font list read and parsed every visible row's font file on the UI
thread, re-read a collection for each family it holds, rebuilt egui's whole
font set for each face added, and dropped off-screen faces after 64, so
scrolling back loaded them again.

- Document faces reach egui through one served-faces provider: egui parses a
  face the first time text is laid out in it, so a face arriving keeps the
  parsed faces, the atlas and the galley caches. Faces over the interface
  fonts use the same provider; edit_faces' add path and
  MAX_INTERFACE_FACE_BYTES go.
- Catalog faces load as jobs on a per-context JobQueue (the host's jobs) and
  are ready from the pass after they land; loads no frame asks for are
  dropped. Faces whose bytes the app holds register in the same pass.
- The registry keeps faces up to MAX_DOCUMENT_FACE_BYTES (512 MiB of distinct
  file bytes), least recently drawn out first; past the same budget of
  withdrawn files egui's fonts are made again to free them.
- The picker's coverage check reads the registry's loaded bytes instead of
  the file; traits come from FaceInfo, which the scan now fills with
  sFamilyClass, PANOSE and the post fixed-pitch flag.
- Catalog::file_bytes shares one read per file across threads.
2026-11-23 03:00:47 +00:00
aiongg 5ddae9f82d Hue/Saturation: AdjustedFn borrows for the editor's lifetime; swatch trials drop an unused import 2026-11-23 02:35:34 +00:00
aiongg cee746e97c ui-panels: rustfmt the grip's drag-start condition 2026-11-23 02:33:25 +00:00
aiongg b634808ce4 Dock grips on next pass design-lint; the facade table lists main's new crate features
The rail grip takes the press that started its drag from GroupGrip's own
press (GroupGripOutput::drag_origin) instead of reading egui's pointer
state. The grip trials compare with GRIP_ABOVE and the theme's grip
shape instead of literal sizes. crates/craft/Cargo.toml [features] is
regenerated from the member manifests (exr, media-source and tiff
features from main; android-res in order).
2026-11-23 02:30:29 +00:00
aiongg 25c3f64902 Hue/Saturation: name the adjusted callback type AdjustedFn (clippy type_complexity) 2026-11-23 02:24:25 +00:00
aiongg e55137b72f Select and Mask previews again after a document edit
The workspace keyed its pending preview on the request alone, so after
HostedWorkspace::set_source the same request found the old job and no
preview of the edited document started. The key carries
WorkspaceCx::revision, as Vanishing Point and Wide Angle do.
2026-11-23 02:20:42 +00:00
aiongg 52b3381693 PaintBar: show the Mixer Brush load as a colour, image or checkerboard
MixerValues::load_color becomes current_load: MixerLoad (Clean, Color,
Image). The load swatch shows the sampled tip image after an Alt-click and
a checkerboard for a clean brush, through Swatch's fills. MixerValues is no
longer Copy.

Restores storytold/photocraft#11953.
2026-11-23 02:20:42 +00:00
aionggandRickiNano a309c143ab Hue/Saturation: pick the range with seven round swatches
The range dropdown becomes a radio group of round swatches: Master as the
hue wheel, then Reds to Magentas. An edited range shows its centre colour
before and after that range alone, with a dot under it. The range's centre
stands above Hue ("240°", "0° / 30°"), and Colorize shows one read-only
swatch of what it makes of a mid grey.

adjusted(&dyn Fn(&HueSaturation, Srgba) -> Srgba) replaces
adjusted_spectrum: one engine callback for the lower spectrum bar, the
range swatches and the Colorize swatch. HueRangeValue::centre gives a
range's centre.

Restores storytold/photocraft#14753.

Co-authored-by: RickiNano <81099017+RickiNano@users.noreply.github.com>
2026-11-23 02:20:42 +00:00
aiongg 7ada3dc77b Swatch: round wells, split, spectrum, image and empty fills
SwatchShape::Round joins Square and Hexagon, and SwatchFill names what fills
the well: a colour, a before/after split, the hue wheel, a picture (through
the texture cache, keyed by the picture's hash) or an empty well.
Swatch::with_fill shows any fill beside Swatch::new, which is unchanged.

A component can now shape its own focus ring with Cx::focus_shape, the
FocusShape parts already use. Swatch sets it for round wells (a circle) and
for hexagon wells (the hexagon), so hexagon swatches get their shaped ring
too.
2026-11-23 02:20:42 +00:00
aiongg 8f82948bc6 Ruler: Shift snaps to 45 degrees keeping the shorter leg
Restores storytold/photocraft#11985.
2026-11-23 02:20:42 +00:00
aionggandhnoerenberg a8a3a594de Curve graph: one grab radius for every point, past the plot edge too
Point parts take presses, and one nearest-point picker serves plot and
point presses, so a point at the plot edge is grabbed from outside it.

Restores storytold/photocraft#14443.

Co-authored-by: hnoerenberg <hnoerenberg@users.noreply.github.com>
2026-11-23 02:20:37 +00:00
aiongg 118f1d2ff9 Merge pull request #3121 from aiongg/next-lost-tests
Build the integration tests next lost in the syncs (craft-pdf, craft-cms, craft-prepress)
2026-11-22 21:19:56 -05:00
aiongg 8fd8840fc5 craft-develop: doc links to private or feature-gated items as code (next denies rustdoc warnings) 2026-11-23 02:03:02 +00:00
aiongg 39bb3a06f8 craft-aaf: document the property record fields and errors (next denies missing docs) 2026-11-23 01:41:05 +00:00
aiongg 8ea9184ca5 Cargo.lock: facade members for craft-android-res, craft-cdr and craft-png 2026-11-23 01:30:57 +00:00
aiongg cf35f7dbae Merge remote-tracking branch 'upstream/main' into next-sync-1123
# Conflicts:
#	Cargo.toml
#	crates/audio/src/track.rs
2026-11-23 01:29:52 +00:00
FredApps b9c7b69703 Merge pull request #3077 from storytold/feat/778-shared-android-resources
Share APK and Android resource readers for Craft Anything desktop
2026-11-23 07:48:57 +07:00
aiongg dbcf3998ac craft-pdf: the cos suite uses the crate's testkit instead of loading the file a second time 2026-11-23 00:27:47 +00:00
aiongg 134abcc8dc Build the tests next lost in the sync into the crates' test executables
pdf (cos, crypt, filters, font_tables), cms (gpu_matrix_shaper) and prepress (marks, flatten_timings) had no mod line in tests/main.rs, so they never compiled. Module paths inside the one executable are adjusted (crate:: to super::, the child-process test name).
2026-11-23 00:11:29 +00:00
David Mann a4e08cdaf2 Merge pull request #3105 from davidmann4/fix/16461-toolbar-background
WIP: docked toolbar background fills its column, thinner divider, grip grab cursor (photocraft#16461, #16467)
2026-11-23 00:58:28 +01:00
FredApps 8f4506133c Merge branch 'main' into feat/778-shared-android-resources 2026-11-23 06:55:12 +07:00
FredApps 8f6ad14b58 Merge pull request #3073 from ruchirguitar/feat/pict-reader
craft-metafile: add QuickDraw PICT v1/v2 reader
2026-11-23 06:54:50 +07:00
FredApps 6d8d6b7359 Merge branch 'main' into feat/778-shared-android-resources 2026-11-23 06:47:13 +07:00
FredApps b54e18f21d Merge branch 'main' into feat/pict-reader 2026-11-23 06:47:08 +07:00
FredApps 2be967ec51 Merge pull request #3042 from AlexChambers/develop-wb-demosaic-clip-mask
craft-develop: demosaic white-balanced mosaics with a clip mask
2026-11-23 06:46:46 +07:00
FredApps 931d648681 Merge branch 'main' into feat/pict-reader
# Conflicts:
#	crates/metafile/src/lib.rs
2026-11-23 06:37:07 +07:00
FredApps e8c7fc2b23 Merge branch 'main' into feat/778-shared-android-resources 2026-11-23 06:36:29 +07:00
FredApps bc0b26c460 Merge branch 'main' into develop-wb-demosaic-clip-mask 2026-11-23 06:36:24 +07:00
FredApps c6edabc220 Merge pull request #2825 from so-sai/feat/metafile-embedded-emf
craft-metafile: reassemble embedded EMF from WMF META_ESCAPE_ENHANCED_METAFILE (#2519)
2026-11-23 06:35:57 +07:00
FredApps 9cf333733f Merge branch 'main' into feat/778-shared-android-resources 2026-11-23 06:25:27 +07:00
FredApps 3b87adcf34 Merge branch 'main' into feat/pict-reader 2026-11-23 06:25:22 +07:00