Skip to content

feat: redesign editor toolbar and modernize history engine#149

Closed
ThisIs-Developer wants to merge 1 commit into
mainfrom
feature/toolbar-redesign-history-modernization
Closed

feat: redesign editor toolbar and modernize history engine#149
ThisIs-Developer wants to merge 1 commit into
mainfrom
feature/toolbar-redesign-history-modernization

Conversation

@ThisIs-Developer
Copy link
Copy Markdown
Owner

Redesign Editor Toolbar & Modernize History Engine

Summary

This PR modernizes the markdown viewer's text formatting toolbar and text editing history architecture, replacing deprecated browser execCommand APIs with a custom Virtual History Engine (VHE) and resolving a critical formatting cleanup crash.

Key Changes

  • Toolbar Consolidation: Grouped 35+ flat buttons into 7 semantically chunked visual clusters, replacing redundant heading (H1–H6), case conversion, and insert buttons with unified dropdown selectors. Added custom glassmorphism styles and micro-animations.
  • Virtual History Engine: Deployed a lightweight string-difference ledger (computeDelta) that tracks character-level and programmatic edits as transactional deltas ($O(1)$ memory). Integrates multi-tab history isolation and a semantic keystroke grouping buffer.
  • AST Formatting Cleanup: Coded a robust parser (MarkdownFormattingCleanup) to safely strip markdown tags (headings, lists, code, bold, italics, tables) from range selections or full documents, resolving a critical legacy ReferenceError.
  • A11y & Command Palette: Deployed a fuzzy-matching Command Palette overlay (Ctrl+Shift+P) for rapid action execution, and implemented WCAG 2.1 AA roving tabindex arrow-key navigation across toolbar items.

Copilot AI review requested due to automatic review settings June 1, 2026 17:04
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
markdown-viwer Ready Ready Preview, Comment Jun 1, 2026 5:04pm

@ThisIs-Developer ThisIs-Developer deleted the feature/toolbar-redesign-history-modernization branch June 1, 2026 17:11
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants