Commit Graph
5550 Commits
Author SHA1 Message Date
autocraft-bot[bot] a7f341fa3a Apply review fixes
- crates/ui-egui/src/canvas/text_overlay.rs
2026-11-17 13:17:34 +00:00
Hamza c4478f92c3 Create Outlines: vertical text keeps its upright glyphs and its columns
Create Outlines built each glyph's outline as horizontal text does. In a
vertical frame the canvas and the PDF export also turn each upright glyph
(PlacedGlyph::vertical_xf), and a frame of several columns put each line in a
group whose children had no transform, losing the frame's quarter turn. CJK
glyphs lay on their sides and the columns became rows.

Each upright glyph now takes its turn, as the renderer applies it, and each
line in the group takes the frame's text turn (Document::text_local).

Fixes #2895
2026-11-17 17:23:10 +05:00
autocraft-bot[bot] 47ef1ec411 Merge pull request #2844 from gmrmad1/fix/2601-rtl-spread-label
Pages panel: a right-to-left spread label reads left page first (#2601)
2026-11-16 16:00:05 +00:00
Madhav Agarwal 105a080c03 review: the spread test expects the labels in the order they are drawn (CodeRabbit/a spread with a section inside lists its names apart)
Moving page 4 into spread 1 does not move the section that starts at page 3, so the label takes the comma-separated branch: pages 2, 3 and 4 are numbered 2, 1 and 2, and the assertion now expects exactly that. The test failed before this change (left: "2, 1, 2", right: "2-4").
2026-11-16 21:09:45 +05:30
gmrmad1andMadhav Agarwal a84fa41eba Contributors: gmrmad1's name for the About window (#2876)
Co-authored-by: Madhav Agarwal <gmrmad1@users.noreply.github.com>
2026-11-16 14:51:02 +00:00
FredApps a73f46df33 Merge pull request #2866 from storytold/docs/shared-library-guidance
docs: prefer shared Craft libraries for reusable features
2026-11-16 13:51:57 +01:00
Dylan M. Taylor 424b54dc0b docs: prefer shared Craft libraries for reusable features 2026-11-16 06:28:38 -05:00
Dylan M. Taylor 11ad84fd69 Merge pull request #2857 from storytold/fix/epub-layer-guide-default
fix(ci): initialize guide lock in EPUB layer fixture
2026-11-15 19:40:07 -05:00
Dylan M. Taylor 0d742e07d6 test(epub): initialize guide lock in hidden layer fixture 2026-11-15 19:09:44 -05:00
Dylan M. Taylor 278aba4a14 Merge pull request #1482 from Hamza0101/test/cli-argument-surface
cli: pin the argument surface, and fix the argument bugs pinning it found (photocraft#7071)
2026-11-15 18:49:03 -05:00
Dylan M. Taylor b949f0fd2b Merge pull request #1502 from midasdf/jp/kinsoku-push-pull
Compose: apply 禁則 push-in/push-out priorities (JIS X 4051)
2026-11-15 18:47:30 -05:00
Dylan M. Taylor 4828d96ba2 Merge pull request #1516 from moppeeer/layer-lock-guides
Layer Options: Lock Guides, as InDesign's (and IDML's LockGuides)
2026-11-15 18:22:18 -05:00
FredAppsandDylan M. Taylor f405f89da4 Formats: port the craft-libs cutover follow-ups from #2734 to main (#2838)
* Formats: port the craft-libs cutover follow-ups from #2734 to main (craft-libs#778)

Brings #2734's changes (made against the release branch) to main:
IDML CDATA on write and table span parsing, DOCX plain-text accepted
changes, XLSX invalid number cells shown as written, shared CMYK JPEG
polarity, exact PPTX opacity, PDF CMYK fallback wording, and the
craft-libs re-pins. Imported DOCX built-in headings keep main's and
v0.21.0's spelling ("Heading 1"), with a test. craft-pdf, craft-prepress,
craft-cms, the krilla/hayro patches and craft-xml-dtd move to the #1322
squash merge on craft-libs main (a5ac3aa0).

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>

* Point the PDF dependency check at the craft-libs main pin

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>

* Formats: address review on the cutover follow-ups

- PDF: keep main's CMYK fallback warning. The shared decoder reads planar
  CMYK TIFFs and makes associated alpha straight, so neither falls back;
  a test now checks both keep their inks.
- DOCX plain-text import uses craft-wordmodel's Paragraph::final_text,
  which already drops tracked deletions and expands inline objects.
- IDML: a test pins numeric table spans (fractions round down, spans past
  the table or past 32 bits reach its edge, anything under 1 or not a
  number spans one cell).
- Cargo.lock: craft-rtf takes craft-codepage at bfea7d98 after the merge
  with main.

* PDF test: expect the CMYK fallback warning's main wording

---------

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-15 22:45:42 +01:00
FredApps b3e6e31317 Merge pull request #2850 from MMexicann/patch-9
docs: describe existing pull-request CI quality gate
2026-11-15 22:03:56 +01:00
Mex 7e01d9b1ed Merge branch 'main' into patch-9 2026-11-15 21:30:36 +01:00
FredApps 6dadc22329 Merge pull request #2851 from MMexicann/patch-10
fix: preserve selections when resolving tracked changes
2026-11-15 21:24:05 +01:00
Dylan M. Taylor 497b541b11 Merge pull request #2840 from storytold/extract/shared-base64-encode
Reuse shared Base64 encoding for HTML and serialization
2026-11-15 15:20:45 -05:00
Mex 6fa5f6672b docs: record completed CI documentation review 2026-11-15 21:16:40 +01:00
Mex d59a441dbf docs: remove completed CI gate from current focus 2026-11-15 21:16:26 +01:00
Mex bbb7fa31ee docs: align parity notes with existing CI gate 2026-11-15 21:15:59 +01:00
gmrmad1 8ad537632e Justification: keep the spacing table out of the wide-control grid (#2525) (#2848) 2026-11-15 19:45:19 +00:00
autocraft-bot[bot] 963baa1bba Merge pull request #2845 from gmrmad1/fix/2812-fitting-crop-units
Frame Fitting Options: crop amounts follow the document's ruler unit (#2812)
2026-11-15 19:19:58 +00:00
Mex cf43ba518b docs: record tracked-change selection preservation 2026-11-15 20:03:12 +01:00
Mex d22b67d418 fix: follow selections when resolving tracked changes 2026-11-15 20:02:25 +01:00
Mex 9a46810963 docs: describe shared PR and main quality gate 2026-11-15 19:57:05 +01:00
Mex cd2a098dfc docs: remove completed PR CI work from Upcoming 2026-11-15 19:56:24 +01:00
Mex 2bf5ac3319 docs: record existing PR quality gate 2026-11-15 19:44:23 +01:00
Mex 7fd2781037 docs: remove obsolete pull-request CI gap 2026-11-15 19:43:38 +01:00
autocraft-bot[bot] 1f75a8d8f0 Apply review fixes
- crates/ui-egui/src/panels/pages.rs
2026-11-15 18:28:23 +00:00
autocraft-bot[bot] b325589db4 Apply review fixes
- crates/ui-egui/src/control.rs
2026-11-15 18:27:49 +00:00
Madhav Agarwal 4ce1166ee2 Frame Fitting Options: crop amounts follow the document's ruler unit (#2812) 2026-11-15 23:16:37 +05:30
Madhav Agarwal a60cb72826 Pages panel: a right-to-left spread label reads left page first (#2601) 2026-11-15 23:10:13 +05:30
Mex 543ba8888d fix: preserve book style source across chapter edits (#2841)
Adjust the stored style-source index when inserting or removing earlier chapters, retaining existing source-removal fallback behavior.
2026-11-15 16:09:59 +00:00
Mex 2a11a280f6 cli: report an empty benchmark layout instead of panicking (#2839)
* cli: report an empty benchmark layout instead of panicking

Return a clear error before benchmark work starts when the document contains no spreads.

* test: report a benchmark error for documents with no spreads

Create a structurally valid round-tripped document with no spreads and require bench to exit 1 with the clear error.
2026-11-15 15:39:38 +00:00
Dylan M. Taylor 3ddc3053cf Reuse shared Base64 encoding for HTML and serialization 2026-11-15 10:30:55 -05:00
Mex ca463bab52 cli: report failures after keep-going scripts (#2836)
* cli: report failures after keep-going scripts

Keep executing requested steps while retaining the first failure in Report, so failed scripts return nonzero before save/export.

* docs: describe first script failure in Report

Describe the first failing step without assuming all callers stop immediately.

* test: cover keep-going failure reporting and output guards

Exercise failures before and after a successful step, preserve the first failure, and require both output paths to remain absent.
2026-11-15 14:59:06 +00:00
Mex ec1cc4d37a M0: reject invalid prerelease and overflowing versions (#2834)
Reject numeric prerelease identifiers with leading zeros and core components larger than u64 before replacing the workspace version. Extend the existing validator and replacement tests.
2026-11-15 14:05:55 +00:00
jayzed80 b2518507b5 shortcuts: run Option shortcuts on character keys in the app, not the macOS menu bar (#2710) (#2818)
Option, with or without Shift, on a letter, digit, symbol or Space types a
character on macOS, so the window takes the key before the menu bar sees
it. The bar carried such a user shortcut as its key equivalent and the
window's dispatcher left the key to the bar, so the shortcut ran nowhere.
These shortcuts now stay in the app, like modifier-less ones.
2026-11-15 07:26:31 +00:00
jayzed80 9f8e166f8d Pages: a new page takes the parent of the page it follows (#2788) (#2817) 2026-11-15 06:23:32 +00:00
.CooCoo bcebb83a93 Captions: a live caption update gives the document a new revision (#2773)
When a command leaves a live caption behind its source, the pass after
the command rewrites the caption's text but kept the document's
revision. The Pages panel thumbnails, the separations preview, the
preflight worker and the Links panel key their caches by (uid,
revision), so they kept drawing the old caption. The pass now bumps the
revision when it changes the document, as Smart Text Reflow and
auto-size already do.
2026-11-15 05:51:45 +00:00
.CooCoo 0461ef4f5e Stroke: the text Weight field keeps its value between 0 and 800 pt (#2808)
* Stroke: the text Weight field keeps its value between 0 and 800 pt

With text selected, the Stroke panel's Weight field sent the typed value
to type.char unchanged, so 2000 or -5 became the text's stroke weight.
The object Weight field keeps its value between 0 and 1000 pt. The text
field now keeps its value between 0 and 800 pt, the range of the
character style's Weight field.

* Properties: the text stroke Weight field keeps 0 to 800 pt

The Properties panel's text stroke Weight field capped typed values at
100 pt while the Stroke panel's text Weight field and the character
style's Weight field allow up to 800 pt. It now uses the same 0 to 800 pt
range.
2026-11-15 05:03:55 +00:00
.CooCoo 85aae4499d Updates: take craft-update from craft-libs main at e98299546 (#2608)
* Updates: take craft-update from craft-libs main at 6e03f65bf

craft-update moves from storytold/craft-libs at 1b34eba41 to 6e03f65bf. Cargo.lock follows.

* Updates: take craft-update from craft-libs main at e98299546

craft-libs e98299546 includes #923: the check of whether the copy can install itself now runs on the update-check thread instead of in Updater::tick on the UI thread.
2026-11-14 22:33:10 -06:00
.CooCoo 59c6fa1b49 Recovery: test that a write queued behind a cancelled one keeps its place (#2771)
worker::submit answers Conflict when this session's write is cancelled
and another session's write waits to follow it, so a later edit cannot
replace that waiting write. No test covered that answer. The new test
fails when the check is removed.
2026-11-15 03:14:34 +00:00
.CooCoo 147cf23a7b Tables: table.setCell records no undo step when the cells already have the values (#2778)
* Tables: table.setCell records no undo step when the cells already have the values

When every value table.setCell sets already matches the target cells, the
command leaves the document as it is: no undo step and no new revision.
Setting a cell's text to the text it already holds keeps its story, and a
stroke the chosen edges already show as their highest-priority local
stroke is not renumbered. The edited table replaces the old one directly,
so a change copies the table once, as before.

* Tables: table.setCell keeps a cell's character formats when the text is the same

A table.setCell call whose text matched a cell with more than one character format replaced the text anyway: every character took the first character's format and the call recorded an undo step. The cell's story is now left as it is when its text already matches.

* Tables: table.setCell applies a stroke when a neighbor draws the shared edge

When both copies of a shared edge had the table's highest priority and the neighboring cell won the tie, a stroke edit whose result matched the selected cell's own copy was skipped, and the edge kept the neighbor's stroke. The edit is now skipped only when the selected cell's stroke is the one drawn.

* Tables: table.setCell checks the whole drawn side before skipping a stroke

A repeated stroke edit was applied again, with a new undo step, after any other edge in the table had been edited, because the check required the edge to hold the table's highest priority. The check now compares the cell's stroke with every part of the side as drawn, so an edit elsewhere does not count, and a merged cell's side still takes the edit when a neighbor draws a different stroke along part of it.
2026-11-15 03:13:35 +00:00
.CooCoo ad4683c5ff Paste: params text gives the pasted image's size as its stored resolution (#2783)
File › Place now sizes a raster by the resolution stored in the file,
and one point per pixel only when the file stores none. edit.pasteImage
uses the same size, so its params text and comment say so, and a test
pastes a 144 ppi PNG and checks that it comes in at half its pixel size.
2026-11-15 03:11:52 +00:00
.CooCoo 83cda16bd0 Captions: live captions follow a gesture when it commits (#2786)
* Captions: live captions follow a gesture when it commits

A preview skips the live caption refresh, and committing the gesture ran
none, so a caption kept its old text until the next command. Committing
an interaction now brings live captions up to date in the same undo
step, auto-sizes the caption frames it changed, and gives the document
a new revision.

* Captions: a live caption inside a group follows its source

The refresh after a command and after a committed gesture looked for live
captions only at the top of each spread, so a document whose only live
caption was grouped never refreshed it. Both checks now look inside groups,
as the refresh itself does.

* Captions: keep the caret inside a live caption that refreshes

When a live caption's story is replaced with its source's text, the text
selection kept its old offsets. Typing into a live caption, or a source
change that shortens one, left the caret past the end of the story, and
the IME text context reported nothing. The selection is now clamped to
the refreshed story, after a command and after a committed gesture.
2026-11-15 03:09:04 +00:00
.CooCoo e37fce2a8c Compose: drop caps and vertical justification skip a grid the lines can't count (#2767)
Lines already ignore a baseline grid whose steps can't be counted in an
f64 across the column (a tiny increment, or a first grid line very far
off). Drop caps still sized themselves to that grid's line pitch, and
vertical justification still moved the lines by its steps, so the drop
cap missed line N's baseline and Bottom stopped short of the inset.

Both now use the same countable-grid check on the text area.
2026-11-15 03:05:36 +00:00
Dylan M. Taylor d5f82c2143 links: allow only web and mail URLs (#2809)
Hyperlinks and buttons accepted any scheme and passed it to the PDF exporter, so an imported file could emit file:, javascript: or UNC links that a recipient's viewer may follow. Add a shared http/https/mailto check at both command entry points and use the same check at export.
2026-11-14 17:31:42 -05:00
FredAppsandFredApps 0e794cde4f Release: DesignCraft v0.21.0 on main (#2807)
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
2026-11-14 21:46:13 +01:00
Dylan M. Taylor abac0a9bce MCP: cap one request line at 4 MiB (#2803)
* MCP: cap one request line at 4 MiB

The stdio server read newline-delimited requests with read_until into a
growing Vec, so a client that never sends a newline could grow it without
bound. One line now stops at 4 MiB, answers with an invalid-request error and
drops the rest of the line, then keeps serving the next request.

* mcp: only discard the remainder of a line that was actually cut

* mcp: serialize the too-long reply as JSON bytes

* mcp: format the too-long-line reply

* mcp: cover the line-cap discard and EOF paths
2026-11-14 15:42:07 -05:00