Commit Graph
4199 Commits
Author SHA1 Message Date
Dylan M. Taylor 74111e5a93 check: charge relationship parts to the package's decompression budget (#3185)
* check: charge relationship parts to the package's decompression budget

* address review: charge bytes read before a package part decompression error
2026-11-03 22:50:40 -05:00
vangel76andClaude Sonnet 5.5 b3a709f314 contributors: set names for vangel76
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 02:12:09 +01:00
vangel76andClaude Sonnet 5.5 86c5c8dd81 Math: count \newline as a row break in the matrix cell cap (#3327)
RaTeX reads \newline as \\, but the source scan only counted \\ and \cr, so
a matrix built with \newline skipped the 2,500 cell cap.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 01:31:04 +01:00
dotCooCoo 5b6c4a0739 Docs: the fill-handle row lists Linear Trend and Growth Trend 2026-11-03 16:28:08 -08:00
dotCooCoo 839c35635a Merge main into feat/fill-linear-growth-trend 2026-11-03 16:21:28 -08:00
alosslessdev a8e5fdcb75 Merge main into feat/color-scale-editor (#1822)
Port the colour-scale rule editor onto main's split modules: the editor
lives in dialogs/cond_format_rules.rs (rule-type list, per-stop
type/value/colour, style switch, theme-colour keeping) with
ok_cancel_enabled, and cf_menu in ribbon/home.rs gains More Rules… and
opens the rule-type list from New Rule…. The engine's stops/edit
parsing and tests merge unchanged. Catalogs get the rule-editor keys in
every language.
2026-11-03 19:17:16 -05:00
Harrison Booth d2e97a485c Merge remote-tracking branch 'upstream/main' into gc-b09-excel-open-check 2026-11-03 18:09:01 -06:00
vangel76andClaude Sonnet 5.5 a5c74edfec linest test: use f64::from directly (clippy)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 00:18:00 +01:00
Dylan M. Taylor 014f030a15 engine: PivotTable filters test each record against a set of selected labels (#3279)
Every source record scanned the filter's whole selection, so a large
selection multiplied by many records was slow even when nothing passed.
Each filter's labels are lowercased into a set once per computation.
2026-11-03 18:10:48 -05:00
vangel76andClaude Sonnet 5.5 f077b9ef36 Merge upstream/main
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 00:05:58 +01:00
vangel76andClaude Sonnet 5.5 40e75c7912 binom/poisson reference test: fail on errors, NaN and non-zero results for zero references (review point)
CodeRabbit pointed out that an error or NaN result passed the accuracy test and
that a zero reference allowed any finite value (the bound was infinite). Errors
now count as infinite error and a zero reference allows 1e-300.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 00:05:58 +01:00
vangel76andClaude Sonnet 5.5 d0b40c3b30 linest: drop a constant column that centres to rounding noise (review point)
CodeRabbit pointed out that the drop test used the centred column length, so a
constant column such as [0.1; 3] (centred to about -1.4e-17) was scaled to a unit
vector and kept, giving a meaningless coefficient and wrong df. A centred column
shorter than 1e-12 of its uncentred length is now treated as collinear with the
intercept. The suggested 1e-6 threshold was not used: it would also drop columns
that sit far from zero, such as 1e9 + i.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 00:05:38 +01:00
vangel76andClaude Sonnet 5.5 d8ba397bb7 math: refuse an alignedat count hidden by a comment or spaces (review point: cap bypass)
CodeRabbit found that \begin{alignedat}%<newline>{99999999} and {9 9} made the
count parser return None, which skipped the 50-pair cap. The lookahead now drops
comments and spaces as RaTeX's lexer does, and a matched alignat name with a
count that is not a plain digit string is refused.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 00:04:32 +01:00
vangel76andClaude Sonnet 5.5 7e8b94fc39 BINOM.DIST: keep tiny masses and huge n out of the product form
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 23:54:53 +01:00
vangel76andClaude Sonnet 5.5 22c06b7a4a BINOM.DIST, POISSON.DIST: Loader mass, recurrence sums, exact prefactors (#3324)
The mass came from ln_gamma differences (relative error 1.1e-13 at n = 100,
1.5e-11 at n = 10,000) and the cumulative forms summed up to 10,000 of them.
The mass now comes from Loader's saddle-point formula, the cumulative sum
walks away from the mode by the ratio of neighbouring terms and stops when
terms stop mattering, and the incomplete beta / gamma branches take the same
mass as their prefactor.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 23:49:52 +01:00
vangel76andClaude Sonnet 5.5 f74d95542f LINEST: solve by Householder QR instead of the normal equations (#3322)
The normal equations square the condition number, so a degree-5 polynomial on
x = 1..12 came back with errors up to 2.6e-6 and x, x^2 near 1e6 gave slope
2.99976 and intercept 251 for y = 3x + 7. LINEST, LOGEST, TREND and GROWTH now
factor the centred, column-scaled data with Householder QR. Collinear columns
are still dropped under the same relative tolerance.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 23:38:55 +01:00
Harrison Booth ed365d9502 Keep workbook XML writer within lint limits 2026-11-03 16:14:39 -06:00
Harrison Booth 73037efbc5 Make pivot writer binding mutable 2026-11-03 16:08:21 -06:00
Harrison Booth e5c66c0c56 Extract XLSX workbook XML writer helper 2026-11-03 16:05:02 -06:00
Harrison Booth 6856c3cfdf Split XLSX workbook validation from writer 2026-11-03 15:55:30 -06:00
Harrison Booth 25715e77c3 Format filtered table selection helper 2026-11-03 15:52:47 -06:00
Harrison Booth 493ceae678 Merge upstream main into PivotTable pass-through branch 2026-11-03 15:50:40 -06:00
Dylan M. Taylor a305229287 PDF export: wrap text with running widths (#3208)
wrap_lines split an over-long word by re-measuring and copying the
rest of the word for every piece it cut, and only checked its line
limit once the word was done, so one long word in a narrow text box
cost word length x pieces. Each new word also re-measured the whole
line built so far.

Line and piece widths are now running sums of glyph widths (the same
sum text_width makes), so every character is measured once, and the
line limit is checked while a word is being split. The lines produced
are unchanged; a test compares them with the old wrapper.
2026-11-03 16:11:47 -05:00
Harrison Booth b346a5fcce Merge upstream main into Excel open check 2026-11-03 15:06:17 -06:00
Harrison Booth e1ae4d55ce Merge remote-tracking branch 'origin/main' into gc-b09-excel-open-check 2026-11-03 15:04:42 -06:00
Harrison Booth 2be4be9dd2 Reduce dialog display complexity 2026-11-03 15:04:18 -06:00
Vedran DobosandClaude Opus 5.5 dd55a1f4ce Merge upstream main (df137b8e) into format-widens-columns
# Conflicts:
#	crates/engine/src/cmd/format.rs
#	crates/model/src/features.rs
#	docs/decisions.md
#	docs/file-format-parity.md
#	docs/ui-parity.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 21:56:16 +01:00
Vedran DobosandClaude Opus 5.5 d8be9537ac Merge upstream main (df137b8e) into csv-sep-line
# Conflicts:
#	crates/engine/src/io.rs
#	crates/xlsx/src/csv.rs
#	docs/decisions.md
#	docs/file-format-parity.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 21:51:53 +01:00
Vedran DobosandClaude Opus 5.5 58f4a5d6f3 Merge upstream main (df137b8e) into autofit-test-real-font
# Conflicts:
#	crates/engine/src/cmd/format.rs
#	docs/ui-parity.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 21:49:31 +01:00
Harrison Booth a4094cc173 Merge upstream main into write reservation support 2026-11-03 14:37:53 -06:00
Harrison Booth 7b758ef1c3 Merge upstream main into table filter round trip 2026-11-03 14:00:12 -06:00
vangel76andClaude Sonnet 5.5 1ff10df557 fix(autosum): stop the guessed range at a blank cell (#3291)
The single-cell AutoSum guess stepped over one blank cell when a number sat
above it, so a second block of numbers below a gap was summed together with
the first block. It now stops at the first non-number, as Excel does.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 20:56:00 +01:00
Harrison Booth 2de9f32d4b Merge upstream main into exact number sorting 2026-11-03 13:48:54 -06:00
Harrison Booth e27bb51c58 docs: clarify XLSX Data Model preservation 2026-11-03 13:46:17 -06:00
Harrison Booth c69969fbfc Merge upstream main into extLst passthrough 2026-11-03 13:26:15 -06:00
zyzabruh 475019d69c Merge origin/main into paste-transpose-refs 2026-11-03 20:21:54 +01:00
Harrison Booth a7b39a0ed3 Merge upstream main and optimize table spill reads 2026-11-03 13:18:08 -06:00
Harrison Booth 379c6e2265 Merge upstream main and finish array entry review fixes 2026-11-03 13:16:28 -06:00
Harrison Booth f81a8d84b2 Merge upstream main and verify IRR convergence 2026-11-03 13:14:31 -06:00
Harrison Booth 5168a1c9c7 Merge upstream main and finish selection review fixes 2026-11-03 13:11:56 -06:00
vangel76andClaude Sonnet 5.5 472132b158 math: refuse macro definitions and cap matrix cells
RaTeX counts macro expansions (1,000) but not how large they grow, so a
definition whose argument doubles on every call keeps the expander busy
without bound. User macros have no use in an equation, so check_caps now
refuses the definers (def, gdef, edef, xdef, let, futurelet, global, long,
newcommand, renewcommand, providecommand) before RaTeX sees the source. The
scan reads control words, verbatim text and comments the way RaTeX's lexer
does.

A matrix is laid out and written as rows times the widest row, so one long row
in a tall matrix multiplied the output. check_caps now counts the padded cells
of every environment from the source and refuses more than 2,500 in total;
to_omml checks the parsed grid as well.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 19:50:27 +01:00
Harrison Booth 1ac75eb858 Correct Unicode concat boundary expectation 2026-11-03 11:59:43 -06:00
Harrison Booth 5f4f5ce4c5 Count Excel text limits in UTF-16 units 2026-11-03 11:43:58 -06:00
Harrison Booth 1e8541d050 Merge upstream main into text-cap branch 2026-11-03 11:42:26 -06:00
Dylan M. Taylor df137b8ee8 xlsx: repair repeated sheet names through a set of assigned names (#3211)
Importing a workbook whose sheets share a name rescanned every sheet for
every suffix tried, so a file of repeated names opened in cubic time.
SheetNames keeps the assigned names and the next suffix per stem.
2026-11-03 10:53:20 -05:00
Higgs32584andClaude Opus 5.5 e12b462b90 Port the link.open confirmation check into the merged insert.rs (#2181)
Upstream folded cmd/insert/*.rs back into insert.rs, so the merge left
the policy check in a file that is no longer compiled. Restore that file
to upstream and apply the check in the live open_link.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 10:45:50 -05:00
TheRenegadeDev 5aac662668 #2641: Integrate current grid and workbook updates
Preserve cascading eligibility, full-column Apply and per-window pending filter edits. Keep all115 incoming non-union paths and each parent hunk in the five automatic code/test unions. Combine parity header and histories without changing filter behavior or dependencies.

Fourteen scoped checks pass on fe7e6bc8: full UI1150/291, native15, engine111/828, math8, strict engine/UI Clippy and standalone gates. Three medium R12 reviews read and root-adjudicated; no required introduced fix. Required local aggregate stops only at unchanged Windows CLI check.rs281; later stages skipped. Fresh hosted CI pending.
2026-11-03 09:44:00 -06:00
Michael Higgins 94eed2bd83 Merge branch 'storytold:main' into fix/2170-shape-font-attr-escape 2026-11-03 10:10:26 -05:00
Brandon Thomas ed2347782d Merge PR #3252 (author's fix: an expanded formula bar leaves room for the worksheet)
# Conflicts:
#	crates/ui-egui/src/formula_bar.rs
2026-11-03 10:00:05 -05:00
Brandon ThomasandClaude Opus 5.5 865a789c73 Review fixes for #3223, #3253, #3254, #3252, #3239, #3244 and #3268
- #3223: sniff the first 64 KiB for a web page and skip JSON and files over the text-import cap, so
  every CSV/TSV is no longer decoded in full before the size check.
- #3253: SYLK relative offsets use checked arithmetic (no overflow on R[9223372036854775807]); at
  most 1024 column-width records are kept; regression test.
- #3254: a single selected merged cell searches the whole sheet, as one selected cell does.
- #3252: the formula bar's height cap is half the room below the ribbon, not half the window, so
  the worksheet stays visible in a short window (CodeRabbit Major).
- #3239, #3244, #3252, #3268: es/de/cs/zh/ko/ru/pt entries for the new interface strings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 09:59:27 -05:00