From fd5119d3732fabfdd1a582c2bf3a6d4c06ac58be Mon Sep 17 00:00:00 2001 From: Baivab Sarkar <109382325+ThisIs-Developer@users.noreply.github.com> Date: Sat, 21 Nov 2026 18:19:49 +0000 Subject: [PATCH] fix: reset document creation location and refresh PWA release notes --- CONTRIBUTING.md | 1 + desktop-app/resources/js/script.js | 70 +++++++++++++--- script.js | 70 +++++++++++++--- sw.js | 10 ++- tests/e2e/document-creation.spec.js | 107 ++++++++++++++++++++++++ tests/e2e/release-notes-update.spec.js | 100 ++++++++++++++++++++++ tests/helpers/app.js | 2 + tests/unit/release-notes-cache.test.mjs | 87 +++++++++++++++++++ 8 files changed, 419 insertions(+), 28 deletions(-) create mode 100644 tests/e2e/document-creation.spec.js create mode 100644 tests/e2e/release-notes-update.spec.js create mode 100644 tests/unit/release-notes-cache.test.mjs diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 72144ecf..d32b765a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -115,6 +115,7 @@ Scale the same format to the release size: Authoring rules: +- Keep the version heading in the form `# Welcome to Markdown Viewer X.Y.Z`, matching `APP_VERSION`. The application checks this heading before displaying release details so a stale PWA response cannot appear under a newer version title. - Use the Markdown syntax supported by the editor: headings, paragraphs, emphasis, inline or fenced code, links, images, blockquotes, GitHub-style alerts, ordered or unordered lists, task lists, tables, definition lists, footnotes, and horizontal rules. Use a construct only when it helps explain the release. - Do not embed HTML elements, inline styles, `