Commit Graph
6827 Commits
Author SHA1 Message Date
Eric Kaden af27c3a290 M12: Revert drops the focus without running the field's exit
Revert closed the field editor but kept the record of which field had the focus, so the next frame ran that field's exit on the reverted document and made it unsaved again. The record is cleared with the editor, and the engine forgets the exits that changes ran, as undo does.
2026-10-24 20:30:04 -04:00
aiongg c28d1c8e22 Merge pull request #4566 from aiongg/r4-batch
Integration batch 6: 6 contributor PRs (All tools view, page pointer, comments, redaction, Properties, Home)
2026-10-24 20:24:05 -04:00
Eric Kaden 6a1e089a49 M12: committing the form runs the focus scripts of a move not yet run
Save, Print, Export, Sign and the other commands commit the form first. A focus move made in the same frame (or the editor they close) ran its enter and exit scripts only afterwards, so the document they read lacked what those scripts change. commit_form_typing now runs them before it returns. Also words the comment on noted exits so a failed exit reads as run.
2026-10-24 20:12:24 -04:00
aiongg 0140f1047c Integration: the page input guard also catches egui's per-button pointer reads (#2685) 2026-10-24 23:56:44 +00:00
aiongg c276f92b54 Integration: the roadmap entry for comment threads says what the count counts (#4061) 2026-10-24 23:55:17 +00:00
aiongg 756660f6d2 Integration: the arrow keys leave a reply to an unnamed comment where it is (#4061) 2026-10-24 23:55:10 +00:00
Eric Kaden aad694b6ad M12: a widget index the field doesn't have runs no focus scripts
widget_som fell back to the field's own SOM path for an index out of range, so for a radio field it ran the group's scripts. It now returns None unless the field has that widget.
2026-10-24 19:49:52 -04:00
Eric Kaden 0a6d8fe775 Merge remote-tracking branch 'upstream/main' into fix/xfa-enter-exit-on-focus 2026-10-24 19:30:03 -04:00
aiongg 80d8c60ac2 Integration: no link or comment tip beside the open palette (#2685) 2026-10-24 23:23:47 +00:00
aiongg bb06649527 Integration: two comments whose /IRTs point at each other stay comments of their own (#4061) 2026-10-24 23:23:47 +00:00
aiongg e0c319d273 Integration: a comment listed through a reference chain keeps its replies after an edit (#4061) 2026-10-24 23:18:59 +00:00
Lcoding15 4ce68f517b M4: New bookmarks from text styles, for headings that aren't tagged (#1693)
Bookmark options > New bookmarks from text styles... lists the styles the
document's text is set in (font without its subset tag, the size shown,
bold, italic, how many lines, a sample), the largest first, and takes one
style per bookmark level. Every line in a level's style becomes a
bookmark of that level under a new first "Untitled" bookmark, as from
structure; a heading set on several rows is one bookmark, and each goes
to the top of its heading.

The detection lives in engine::text_style_bookmarks on top of
edit::text_lines, reading each page top to bottom then left to right, so
two headings on one row stay two. text_styles and
bookmark_from_text_styles reach it headlessly, and the command
bookmark.from_text_styles opens the dialog. OutlineEntry gets an
optional top for the /XYZ destination; structure bookmarks keep theirs.
2026-10-25 01:03:08 +02:00
aiongg 73240d978f Integration: M3: All tools expands to a full, searchable view (#2460) 2026-10-24 22:48:11 +00:00
aiongg e5005f062a Integration: fix(ui): one page pointer per frame, so taps work and nothing over a page lets it through (#2685) 2026-10-24 22:48:11 +00:00
aiongg d821f91001 Integration: fix(comments): thread replies by their /IRT reference, count comments like Acrobat (#4061) 2026-10-24 22:48:11 +00:00
aiongg f94b34adc9 Integration: fix(redact,cos): cleared redaction marks leave nothing behind (#4226) 2026-10-24 22:48:11 +00:00
aiongg 78dbea442e Integration: M3: the community card on Home can be closed for the rest of the run (#2617) 2026-10-24 22:34:42 +00:00
aiongg 808fe853d6 Integration: fix(ui): Document Properties layout, Space Audit tab, no page cursors under dialogs (#2556) 2026-10-24 22:34:42 +00:00
RiceDee dd47c4f9e1 test(ui): the two-tab Redo test checks the copy's paragraph stays open
If the copy's editor had closed before or during Redo, the check for the
other tab's typing passed on an empty text. It now requires the editor
to be open before Redo and after it.
2026-10-25 08:56:55 +11:00
RiceDee f3b61b73b0 style: rustfmt the two TextDraft test literals that took typing_from 2026-10-25 08:41:17 +11:00
RiceDee dd6e86b6cb Merge pull request #1 from aiongg/fix-4179-main
Merge main; set typing_from in two tests from #4441
2026-10-25 08:37:19 +11:00
RiceDee b9035271b0 fix(ui): menu Undo takes back typing in the open text box first
Edit ▸ Undo with typing in a paragraph or added text box that the page
doesn't have yet applied the typing (a new edit, which dropped the
document's waiting Redo), closed the box and undid the typing all at
once; the key takes it back a step at a time in the box. Menu Undo now
goes to the box first, as Redo does, and is enabled while the box holds
such typing. Undo and Redo share typing_step for the box's own history.
2026-10-25 08:36:17 +11:00
alehelandClaude Opus 5.5 120de553ab fix(ui): the Background preview follows the Replace checkbox
The dialog previews a colour as a tint of the page's thumbnail (main's #3009). It tinted every
page, so with Replace unticked a page that keeps its own white backdrop previewed coloured,
though OK leaves it white. A page a picture covers (a scan) previewed coloured too.

background_tint() now shows no colour where the page will still hide the background after OK:
a scan, or a white backdrop with Replace unticked. It reads the page from the dialog's backdrop
check (BackdropCheck::found, for the current version of the document only); a page the check
hasn't reached yet previews coloured, as before.

Tests, both seen failing with the fix reverted:
- marks_ui::tests::the_preview_shows_a_background_only_where_ok_lets_it_show (the rule);
- it::marks::the_background_preview_follows_the_replace_checkbox (what the dialog paints, per
  page, ticked and unticked).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 23:06:34 +02:00
Eric Kaden 0b7839d1e3 M12: the page-number assignment scan reads a bounded number of bounded expressions 2026-10-24 16:17:13 -04:00
Eric Kaden 9b5598b071 M12: a layout:ready assignment written over several lines is read whole 2026-10-24 16:10:18 -04:00
Eric Kaden ba33e3c432 M12: the required-fields test checks that radio buttons carry no Required flag of their own 2026-10-24 16:08:36 -04:00
Eric Kaden 2cdc785c60 M12: only a field its layout:ready script gives a page call's result is numbered by the layout 2026-10-24 15:50:52 -04:00
vangel76andClaude Sonnet 5.5 0f64d9589e Run rustfmt on the mode bar after the upstream merge
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 21:45:07 +02:00
Eric Kaden a8a53bbec3 M12: doc comments on the functions the required-fields change touches 2026-10-24 15:38:52 -04:00
Eric Kaden 91c15f0064 M12: page numbering is read from a layout:ready script's code, not its comments or strings 2026-10-24 15:36:28 -04:00
Eric Kaden 56adfd7809 M12: a radio button that must be chosen makes its group required even when an earlier button made the group 2026-10-24 15:34:00 -04:00
Eric KadenandEULA c86b33985d M12: XFA fields and exclusion groups that must be filled in are Required
Co-authored-by: EULA <90616501+EULArule@users.noreply.github.com>
2026-10-24 15:21:11 -04:00
vangel76andClaude Sonnet 5.5 cb30754975 Merge upstream/main into feat/redact-mark-regex
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 21:13:31 +02:00
vangel76andClaude Sonnet 5.5 86af84171f doc_optimize: reject a target_bytes too large for usize
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 21:11:43 +02:00
vangel76andClaude Sonnet 5.5 ef81dd1277 Merge upstream/main into feat/optimize-target-bytes
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 21:11:01 +02:00
vangel76andClaude Sonnet 5.5 2ec60450fd Merge upstream/main into fix/min-window-width
Upstream dropped the Read mode tab and added its own scrolling rail (#3282);
keep upstream's rail, keep the PR's narrow-window mode menu, and move the
min-window tests into the tests/it binary (rail test dropped, covered upstream).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 21:08:28 +02:00
Eric Kaden 56c1a1e504 M6: an edit's XFA and field scripts share one field highlight 2026-10-24 15:02:32 -04:00
aiongg ac868f6e29 Tests: new text box drafts set typing_from (main's #4441 tests) 2026-10-24 18:58:44 +00:00
Eric Kaden e0eb1eff01 M6: a script's field-highlight change reaches the next edit of a batch, and is kept only when its request is 2026-10-24 14:50:22 -04:00
Eric Kaden 4a6d2b9c1f Merge remote-tracking branch 'upstream/main' into fix/xfa-runtime-highlight 2026-10-24 14:48:41 -04:00
aiongg 43708cf5dd Merge remote-tracking branch 'pr/4179' into lead-check-4179 2026-10-24 18:42:33 +00:00
alehel ad8c2f46dd Merge origin/main into fix/comment-threads-by-irt
Conflicts:
- crates/render/src/inspect.rs: this branch's reply-linking methods and main's NoRotate
  rectangles (#3016) both go in the Annotation impl; the annotation reader takes this
  branch's loop with main's no_rotate field.
- crates/automation/src/comments.rs: this branch's HashMap import, main's import list.
- ATTRIBUTION.toml: each catalogue's source note keeps main's secured-document clause and
  this branch's reply-count clause; ATTRIBUTION.md regenerated (cargo xtask assets --write).
- The 33 catalogues: main's new rows, then this branch's reply-count row.

main's #3016 tests build Annotation field by field; they now set parent and grouped.
2026-10-24 20:42:11 +02:00
alehel 4283936293 Merge origin/main into fix/document-properties-layout
Conflicts: optimize_ui.rs imports (this branch's RichText, main's Compatibility; both kept)
and the organize.document-properties parity entry: both evidence lists kept, main's XMP note
kept, and the tab list now names main's Custom tab (#4387) instead of saying there is none.
2026-10-24 20:37:55 +02:00
aiongg a7801dc84e fix(ui): text typed into a new text box counts as unsaved work (#4441)
* fix(ui): text typed into a new text box counts as unsaved work

Closing a tab or quitting while the only unsaved thing was text in a new Add text box skipped the save prompt and lost the text. The box now counts like fill text does: only when it holds non-blank text.

* fix(ui): saving on close keeps text typed into a new text box
2026-10-24 14:25:44 -04:00
Eric Kaden 9a81dd0716 M12: sign_document reads every argument before the preSign scripts run 2026-10-24 14:04:42 -04:00
Eric Kaden a756832dd5 M12: a signed file that can't be written leaves the preSign step pending, or takes it back 2026-10-24 14:00:13 -04:00
Eric Kaden 2c64968411 M12: doc comments on the functions the signing events touch 2026-10-24 13:46:52 -04:00
Eric Kaden 9b8ae111b5 M12: a postSign step that fails after signing is reported, and the signing stands 2026-10-24 13:40:55 -04:00
Eric Kaden 3eefcd5719 M12: preSign runs as signing begins, so the signer sees what it changes; taken back if signing is cancelled; opt-in through sign_document 2026-10-24 13:38:35 -04:00
Eric Kaden 99e1c67d49 M12: run an XFA signature field's preSign scripts before it is signed and postSign after 2026-10-24 13:27:31 -04:00