Skip to content

Refactor WebDraft editor for modularity and feature enhancements#12

Merged
rtcoder merged 62 commits into
masterfrom
v3
Jun 11, 2026
Merged

Refactor WebDraft editor for modularity and feature enhancements#12
rtcoder merged 62 commits into
masterfrom
v3

Conversation

@rtcoder

@rtcoder rtcoder commented Jun 11, 2026

Copy link
Copy Markdown
Owner

Summary

This pull request refactors various parts of the WebDraft editor to improve modularity, maintainability, and functionality. It also introduces several new features and updates.

Changes

  • UI Enhancements and Cleanup:

    • Unified file input handling for images and projects.
    • Removed redundant UI sections, including createResizeSection.
    • Streamlined toolbar and menu logic.
    • Added keyboard shortcuts help dialog with translations and polished UI styling.
    • Removed deprecated keyboard shortcut documentation for PNG export.
  • Platform-Independent Feature Enhancements:

    • Abstracted platform-specific modifier key handling.
    • Updated keyboard shortcuts in menus, toolbars, and titles.
  • Codebase Refactoring:

    • Modularized type definitions to simplify imports.
    • Refactored editor logic into separate controllers (SelectionController, TextEditController, EditorServices, and RichTextRenderer).
  • Language Support and Localization:

    • Improved i18n functionality with dynamically localized layer names.
    • Added UI for language selection with state persistence.
  • Documentation and Deployment:

    • Expanded README details (project overview, features, keyboard shortcuts, setup guide, and tech stack).
    • Added GitHub Pages deployment and configured Vite for production builds.
    • Introduced CI workflows for testing and building.

Additional Notes

This refactor aims to enhance consistency, user experience, and developer experience across the WebDraft editor.

rtcoder added 30 commits June 8, 2026 13:37
…ests, integrate into active layer operations, and update build script with test command
…te modules, replace inline editor methods with reusable functions, and add unit tests for geometry helpers. Update build script to include new tests.
…utilities, and integrate streamlined toolbar structure with editor state syncing.
…place layer-specific snapshots. Extend `LayerManager` to support full document capture and restore.
…tralized history tracking, add unit tests, and update build script to include history tests.
…lbar actions, and enhance UI for feedback handling
…eps, and add `npm run check` script to package.json
… corresponding tests and documentation updates
…nality, and integration with canvas for editing and saving
…ity, and enhance button accessibility and layout
…oolbar elements and hiding overflow on the body
rtcoder added 28 commits June 10, 2026 10:37
…ngle, CMYK), draggable UI, palette support, and live updates.
… `.app-wrap` container, and improve sidebar and panel height handling
…mic text into the UI, and refactor static labels to use localization strings
…re translations into separate namespaces, and migrate English and Polish translations into modularized files. Update `types.ts` to reflect the updated structure.
…t integration, and localization support for English and Polish translations.
…layer-manager` to use i18n translation for layer names
…session-based reload functionality. Update UI and i18n logic for improved localization handling.
…rate transformations with updated rotation logic, and enhance active layer styling and synchronization.
…ing logic with selective layer updates, and update i18n translations and styles for resize support.
…adjust tools and rendering methods for layer-relative positioning.
…rsistence; update serialization/deserialization logic to support new layer type, enhance i18n translations, UI, and styling accordingly.
…ling; add `pendingTextLayerEdit` logic to manage focus race conditions.
… for identifying text layers at a point, update edit-mode entry logic, and ensure proper active layer synchronization.
… text styling features, update rendering logic for rich text, and migrate text data to new HTML-based format.
…ouse wheel handling, UI widget, and update rendering logic for zoom synchronization.
…`, `flood-fill`, `history-manager`, `i18n`, `layer-manager`, `layer-transforms`, and `project-file`.
…tcuts, setup guide, and tech stack information.
…er`, `EditorServices`, and `RichTextRenderer` for better encapsulation and maintainability.
…rtcuts in menus, toolbars, and titles accordingly.
…I sections and streamline toolbar and menu logic.
@rtcoder
rtcoder merged commit 335b717 into master Jun 11, 2026
2 checks passed
@rtcoder
rtcoder deleted the v3 branch June 11, 2026 19:14
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.

1 participant