Skip to content

Safe Refactor and Feature Cleanup of Markdown Editor#7

Merged
apandey-dev merged 1 commit intoMainfrom
refactor-modularize-editor-3576818610782043946
Mar 8, 2026
Merged

Safe Refactor and Feature Cleanup of Markdown Editor#7
apandey-dev merged 1 commit intoMainfrom
refactor-modularize-editor-3576818610782043946

Conversation

@apandey-dev
Copy link
Owner

The monolithic js/editor.js was refactored into three separate modules: js/editor-state.js (persistence and state), js/editor-actions.js (toolbar and note commands), and js/editor-core.js (rendering and main initialization). This modularization improves maintainability while adhering to the existing global scope architecture.

Additionally, several features were removed as requested:

  1. Auto-Save Toggle & Logic: Saving now happens automatically and permanently on every editor input change (debounced).
  2. Manual Save Now Button: Removed from the status bar as saving is now automatic.
  3. Manual GitHub Sync (Sync Note/Push All): Manual triggers and bulk sync modals were removed, though the underlying GitHub backend remains active for background processes (like offline deletion sync).

All core features, including local storage, markdown preview, folder management, PDF export, and secure sharing, were verified to remain fully functional.


PR created automatically by Jules for task 3576818610782043946 started by @apandey-dev

- Split editor.js into editor-state.js, editor-actions.js, and editor-core.js.
- Transitioned application to mandatory automatic saving on every input change.
- Removed Auto-Save toggle UI and logic.
- Removed manual Save Now button and logic.
- Removed manual Sync Note and Push All (bulk sync) features and UI.
- Maintained core GitHub backend functionality for background sync and other features.
- Ensured modularity using global scope pattern (window.EditorState, etc.).
- Updated index.html with new script structure and removed obsolete UI elements.
- Verified non-breaking changes through visual testing and functional checks.

Co-authored-by: apandey-dev <240406893+apandey-dev@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@vercel
Copy link

vercel bot commented Mar 8, 2026

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

Project Deployment Actions Updated (UTC)
markdown-studio Ready Ready Preview, Comment Mar 8, 2026 4:30am

@apandey-dev apandey-dev merged commit a26402b into Main Mar 8, 2026
2 checks passed
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