Skip to content

Refactor plugin architecture and improve webview state persistence - #37

Open
Harsh16gupta wants to merge 1 commit into
masterfrom
feat/ui-text-size-scaling
Open

Refactor plugin architecture and improve webview state persistence#37
Harsh16gupta wants to merge 1 commit into
masterfrom
feat/ui-text-size-scaling

Conversation

@Harsh16gupta

Copy link
Copy Markdown
Collaborator

This PR refactors the core plugin architecture, cleans up the side panel UI, fixes webview state persistence across view toggles, and integrates Undo/Cleanup functionality directly into Joplin's native options screen. I worked on some bugs which I found by using the plugin:

  1. Simplified Code Structure
    Split src/index.ts from 371 lines into 3 smaller, cleaner files so the code is easier to maintain.

  2. Cleaner Side Panel
    Removed top navigation tabs to keep the side panel focused purely on categorizing notes.

  3. Prevents Data Loss
    Saved categories in background memory so custom note moves and renamed categories are not lost when closing the panel or opening settings.

  4. Native Settings Integration
    Added Undo, Clean Up, and Change Log Summary directly to Tools -> Options -> AI Categorization using native settings.

  5. Fixed Parent Notebook Nesting
    Category notebooks (like "Machine Learning") are now correctly created inside your chosen target notebook (like "AI").

  6. Apply Button Protection
    Disabled the Apply button after applying changes to prevent accidental double-clicks, and auto-enabled it if you make new manual edits.

@Harsh16gupta Harsh16gupta self-assigned this Jul 31, 2026
@Harsh16gupta
Harsh16gupta requested a review from HahaBill August 2, 2026 15:03
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