Skip to content

Major Refactor: Modular Codebase & Stability Fixes#25

Merged
soler1212 merged 67 commits intomasterfrom
refactor/clean-up-css-and-js
May 25, 2025
Merged

Major Refactor: Modular Codebase & Stability Fixes#25
soler1212 merged 67 commits intomasterfrom
refactor/clean-up-css-and-js

Conversation

@soler1212
Copy link
Copy Markdown
Member

@soler1212 soler1212 commented May 25, 2025

Major Architecture Refactor & Bug Fixes

Summary

This PR delivers a major refactor of the Note Status plugin architecture. It focuses on improving maintainability, simplifying the structure, and resolving multiple critical bugs. The code has been reorganized with KISS principles in mind.


Key Changes

Architecture Improvements

  • Reorganized codebase into a modular structure:
    • components/, integrations/, services/
  • Centralized status change logic in StatusService.handleStatusChange()
  • Simplified and decoupled event handling
  • Modularized CSS with automatic bundling

Core Fixes

  • Fixed status icon visibility in the file explorer
  • Fixed dropdown behavior with multiple file selections
  • Fixed real-time updates in the status bar
  • Fixed toolbar button sync for active files
  • Resolved status propagation issues between views

New Features

  • Strict statuses mode: Only allows known statuses, removes invalid ones
  • Commands integration: New commands
  • Batch operations support: Improved performance and consistency

Code Quality

  • Cleaned up and simplified all major services (StatusService, StyleService, etc.)
  • Separated UI and logic more clearly
  • Improved error handling and edge case support
  • Reduced redundancy and repeated patterns

Technical Details

  • Updated build process to support CSS bundling
  • Improved TypeScript typings and structure
  • Optimized multi-file status updates
  • Refined integration boundaries for better testability

Breaking Changes

None. Fully backward compatible.


Testing

Manually tested all key areas


This is the first iteration of the refactor. While the CSS has been fully modularized, the JavaScript logic will benefit from a second pass focused on isolating events and actions further.

soler1212 added 30 commits May 12, 2025 15:26
@soler1212 soler1212 changed the title Refactor/clean up css and js Major Refactor: Modular Codebase & Stability Fixes May 25, 2025
@soler1212 soler1212 self-assigned this May 25, 2025
@soler1212 soler1212 added bug Something isn't working enhancement New feature or request labels May 25, 2025
@soler1212 soler1212 merged commit 2c81167 into master May 25, 2025
@soler1212 soler1212 deleted the refactor/clean-up-css-and-js branch May 25, 2025 08:56
@soler1212 soler1212 linked an issue May 25, 2025 that may be closed by this pull request
@soler1212 soler1212 linked an issue May 25, 2025 that may be closed by this pull request
@soler1212 soler1212 added this to the v1.0.14 milestone Jul 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment