Skip to content

Commit 5adcd7f

Browse files
release: bump version to v3.7.2 and update CHANGELOG
1 parent 4a9cc6a commit 5adcd7f

5 files changed

Lines changed: 73 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
All notable code changes to **Markdown Viewer** are documented here.
44
Non-code commits (documentation, planning, README-only updates) are excluded.
55

6+
## v3.7.2
7+
8+
- **Description:** Implemented custom editor history, a new clear document action, tab layout enhancements, and visual optimizations for theme switching.
9+
- **Editor Undo/Redo & Actions:** Implemented custom, robust in-memory document editing history state trackers (Undo/Redo stack) and added a dedicated "Clear Document" toolbar button.
10+
- **Tabs Layout & Overflow:** Relocated the "New Tab" button and engineered dynamic container overflow handling to prevent navigation toolbar wrap.
11+
- **Mermaid.js Theme Change Synchronization:** Deferred diagram re-rendering and added synchronized fade transitions during theme changes to prevent structural canvas errors, while preserving instant color switches.
12+
- **Accessibility & CSS Refactoring:** Removed redundant mobile layout direction buttons; enabled window scroll on mobile viewports for menu access; and cleaned up outer layout scrollbars.
13+
- **Date:** 2026-06-03
14+
- **URL:** https://github.com/ThisIs-Developer/Markdown-Viewer/commit/4a9cc6a0b602a377a1e30e64205fff7733472ed8
15+
16+
---
17+
618
## v3.7.1
719

820
- **Description:** Scoped performance optimizations, accessibility remediation, onboarding template stabilization, and library upgrades.

RELEASE_NOTES_v3.7.2.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Markdown Viewer - Release Notes v3.7.2
2+
**Date:** June 3, 2026
3+
**Commit Range:** `fe19aa47e5710e4ede39afde89b1591b6777fab1` to `4a9cc6a0b602a377a1e30e64205fff7733472ed8`
4+
5+
We are excited to announce the release of **v3.7.2** of Markdown Viewer! This version introduces substantial quality-of-life enhancements, layout adjustments to prevent broken UI behaviors on heavy tabs, and visual transitions that optimize the experience during dark/light mode swaps.
6+
7+
---
8+
9+
## Key Highlights
10+
11+
### 1. Robust Custom Editor History (Undo & Redo) & Document Clearing
12+
Previously, relying on simple input updates caused loss of edit state tracking. In this release, we have built a custom, tab-aware edit history state manager:
13+
- **Undo / Redo Stack:** Users can seamlessly revert or redo edits with high granularity.
14+
- **Clear Document Action:** Added a dedicated "Clear Document" button in the editor toolbar, which wipes the editor pane instantly with a clean history state transition.
15+
16+
### 2. Tab Navigation & Dynamic Overflow Handling
17+
Managing multiple open tabs on small viewports could previously wrap or push the layout off-screen.
18+
- **Relocated "New Tab" Button:** Positioned strategically for better accessibility.
19+
- **Dynamic Overflow Handling:** The tab list now dynamically detects space constraints and groups overflowing tabs into a clean UI structure, protecting the header layout from wrapping.
20+
21+
### 3. Mermaid.js Theme Change Transitions & Stabilization
22+
Swapping themes (Light $\leftrightarrow$ Dark) previously caused Mermaid.js canvases to break or reload abruptly.
23+
- **Deferred Re-rendering:** Mermaid diagram rendering is now debounced and deferred to prioritize the immediate repaint of CSS color schemas.
24+
- **Synchronized Transitions:** A smooth fade-in/fade-out transition occurs when diagrams redraw under the new theme.
25+
- **Original Instant Color Switching:** Reverted full-page body transitions to ensure the color switches remain fast, lightweight, and responsive.
26+
27+
### 4. Layout Cleanups & Mobile Accessibility
28+
- **Mobile Direction Toggle:** Removed the redundant LTR/RTL button from the mobile header, as it is already present in the formatting toolbar.
29+
- **Viewport Scroll Accessibility:** Enabled window scroll on mobile viewports to allow full access to sidebar menu controls on small screens.
30+
- **Outer Scrollbar Cleanup:** Fixed styling variables to remove redundant outer window scrollbars on desktop builds.
31+
32+
---
33+
34+
## Detailed Commit Log
35+
36+
The following commits are packaged into this release:
37+
38+
* **`4a9cc6a`** — Merge pull request #153 from ThisIs-Developer/feature/global-new-tab-and-overflow
39+
* **`e379725`** — chore(desktop): sync desktop resources with latest tab enhancements
40+
* **`e205b67`** — feat(tabs): relocate new tab button and implement overflow handling
41+
* **`542472b`** — fix(layout): allow window scroll on mobile viewports for menu accessibility
42+
* **`071cc30`** — chore(desktop): sync desktop-app resources with web-app fixes
43+
* **`f4d31db`** — Merge branch 'fix/mermaid-theme-change'
44+
* **`076620e`** — fix(layout): remove outer window scrollbar
45+
* **`a611966`** — Merge pull request #151 from ThisIs-Developer/fix/mermaid-theme-change
46+
* **`533e03b`** — perf(theme): restore original main branch instant theme changing code with raw source preservation
47+
* **`2257f22`** — perf(theme): revert full-page transitions to restore fast, lightweight color switches
48+
* **`79c17b8`** — style(theme): implement unified 300ms full-page theme switch transition
49+
* **`6763234`** — style(mermaid): implement smooth synchronized fade transitions on theme switch
50+
* **`47dab15`** — perf(mermaid): defer diagram re-rendering to keep theme transition smooth
51+
* **`83dcff5`** — chore(desktop): sync desktop-app resources with web-app fixes
52+
* **`b8eb522`** — fix(mermaid): prevent diagrams from breaking on theme change
53+
* **`b5fa206`** — Merge pull request #150 from ThisIs-Developer/fix/undo-redo-clear-document
54+
* **`e5034fb`** — fix: implement custom editor history (undo/redo) and clear document action
55+
* **`fe19aa4`** — Remove mobile direction toggle button as it is already in the toolbar
56+
57+
---
58+
*For issues, feedback, or contribution, please open a ticket on GitHub.*

desktop-app/resources/js/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ document.addEventListener("DOMContentLoaded", function () {
4848

4949
// View Mode State - Story 1.1
5050
let currentViewMode = 'split'; // 'editor', 'split', or 'preview'
51-
const APP_VERSION = '3.7.1';
51+
const APP_VERSION = '3.7.2';
5252
let activeModal = null;
5353
let lastFocusedElement = null;
5454
let isFindModalOpen = false;

script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ document.addEventListener("DOMContentLoaded", function () {
4848

4949
// View Mode State - Story 1.1
5050
let currentViewMode = 'split'; // 'editor', 'split', or 'preview'
51-
const APP_VERSION = '3.7.1';
51+
const APP_VERSION = '3.7.2';
5252
let activeModal = null;
5353
let lastFocusedElement = null;
5454
let isFindModalOpen = false;

sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const CACHE_NAME = 'markdown-viewer-cache-v3.7.1';
1+
const CACHE_NAME = 'markdown-viewer-cache-v3.7.2';
22

33
// PERF-011: Split precache into critical (local files) and lazy (CDN libraries)
44
// Critical assets are precached during SW install for instant offline startup

0 commit comments

Comments
 (0)