diff --git a/CHANGELOG.md b/CHANGELOG.md index b06ca726..e5e0bfbe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,9 @@ notes. Entries describe what users experience, not internal refactors. so language, GitHub and brand links remain reachable past the first screen. - Nightly CI now runs the API surface, keyboard shortcut, and seeded monkey sweeps (previously documented as nightly but never scheduled). +- Canvas PDF exports skip unnecessary PDF/A conversion for ordinary `.pdf` + downloads, reuse warm x2t worker fonts, and scale export timeouts by file size + ([#317](https://github.com/ranuts/document/pull/317)). ### Removed @@ -43,6 +46,17 @@ notes. Entries describe what users experience, not internal refactors. - Read-only documents now look read-only: the toolbar keeps only the File and View tabs, editing buttons such as paste and macros are hidden, and the side panels are locked, while search, zoom and navigation stay available. Switching read-only off restores the full toolbar. - Exporting a PDF or another format keeps unsaved changes in the editable original visible until the original is saved. - Failed file opens restore usable file controls, including keyboard access. +- Legacy Office files with non-canonical OLE stream casing, East-Asian Word 95 + FIB headers, malformed PPT slide persist IDs, broken embedded PNG color chunks, + or deeply nested DOCX tables now open instead of failing with `-82` or crashing + the renderer ([#313](https://github.com/ranuts/document/pull/313)). +- Window-level editor iframe guards now install synchronously before OnlyOffice + scripts execute, preventing spurious `-82` errors during recoverable open + retries ([#322](https://github.com/ranuts/document/pull/322), + [#323](https://github.com/ranuts/document/pull/323)). +- Landing-page idle prefetch preserves the `window` receiver when calling + `requestIdleCallback`, avoiding strict-mode `Illegal invocation` errors + ([#321](https://github.com/ranuts/document/pull/321)). - Document history search keeps focus and ignores outdated results while typing. - Chat history conflicts offer an explicit way to keep local copies and restore saved conversations. - Dictation reaching its time limit finishes normally and preserves the final recognized words. diff --git a/docs/changelogs/2026-12-04-ci-analytics-and-smoke-hardening.md b/docs/changelogs/2026-12-04-ci-analytics-and-smoke-hardening.md index b6b59f8d..bad511be 100644 --- a/docs/changelogs/2026-12-04-ci-analytics-and-smoke-hardening.md +++ b/docs/changelogs/2026-12-04-ci-analytics-and-smoke-hardening.md @@ -2,40 +2,58 @@ Date: 2026-12-04 · PRs: [#316](https://github.com/ranuts/document/pull/316), [#319](https://github.com/ranuts/document/pull/319) · Upstream: [chaxus/ran#567](https://github.com/chaxus/ran/pull/567) -## Background - -1. **Analytics spike**: Cloudflare analytics showed a recurring ~2.51k request spike at - 04:00 CST caused by `Production smoke` running daily on a cron schedule against the live - site while executing real browser loads that fired GA4 and Cloudflare Web Analytics. -2. **Beacon SRI failure**: Fulfilling `cloudflareinsights.com` with an empty HTTP `204` - inside Playwright caused Chromium's Subresource Integrity check on `beacon.min.js` to - log `Failed to find a valid digest in the 'integrity' attribute`, turning - `Production smoke` red under L0 console checks. -3. **Semantic Pull Request `startup_failure`**: `.github/workflows/semantic-pull-request.yml` - triggered on `pull_request_target`, which failed before job startup on PRs in both - `ranuts/document` and `chaxus/ran`. - -## Commits - -| SHA | PR | Summary | -| ---------- | ---- | --------------------------------------------------------------------------------- | -| `3966698c` | #316 | Remove daily `prod-smoke` schedule and exclude E2E traffic from analytics | -| `af1d815b` | #319 | Abort Cloudflare beacon before SRI check and switch Semantic PR to `pull_request` | - -## Key Changes - -- **`.github/workflows/prod-smoke.yml`**: removed the daily `schedule` trigger (smoke now - runs on push to `main` and manual dispatch only). -- **`test/e2e/lib/l0.ts`**: +## 1. Context + +1. Cloudflare Web Analytics showed a recurring ~2.51k request spike at 04:00 CST with no + corresponding organic user surge. Investigation traced it to + `.github/workflows/prod-smoke.yml`, which ran on a daily cron schedule against live + production while firing GA4 and Cloudflare analytics requests. +2. After `#316` intercepted analytics requests with HTTP `204`, `Production smoke` turned + red on `main` (run `#47254625679`) due to Chromium SRI verification failing on the + empty Cloudflare beacon script. +3. `.github/workflows/semantic-pull-request.yml` in both `ranuts/document` and + `chaxus/ran` was failing with `startup_failure` on every PR. + +## 2. Thinking and evaluation + +| Option | Decision | Reason | +| ------------------------------------------------------------------------------------------------------------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------- | +| Keep daily `prod-smoke.yml` cron and filter analytics only in Cloudflare dashboard | **Rejected** | Still wastes CI minutes and pollutes edge request counts every morning | +| Remove daily `schedule` from `prod-smoke.yml` (keep push-to-main + `workflow_dispatch`) and block analytics in Playwright | **Chosen** | Eliminates recurring fake traffic while preserving post-deploy verification | +| Fulfill `cloudflareinsights.com` with HTTP `204` | **Rejected** | Cloudflare injects `` immediately after + `