Skip to content

chore: Update to version 0.4.0 with significant enhancements and fixes#6

Merged
soderlind merged 1 commit intomainfrom
vnf
Jan 28, 2026
Merged

chore: Update to version 0.4.0 with significant enhancements and fixes#6
soderlind merged 1 commit intomainfrom
vnf

Conversation

@soderlind
Copy link
Owner

This pull request introduces significant improvements to the workflow for detecting and handling uncategorized media in WordPress sites, enhances the user experience with site connection and verification, and adds new UI features for folder assignment previews. It also fixes several issues related to media categorization accuracy and updates the app version to 0.4.0.

Uncategorized Media Detection and VMF Integration:

  • Improved detection of uncategorized media by using the VMF plugin's API when available, with a robust fallback to WordPress taxonomy checks if needed. This ensures more accurate and reliable results for users managing large media libraries. [1] [2] [3]
  • Added a new method to fetch all assigned media IDs via the VMF API, enabling accurate reporting and logging of folder assignments.

Site Connection and Verification Enhancements:

  • Implemented a new IPC channel and UI logic to allow users to "refresh" and verify site connections, updating capabilities and providing clear feedback if a site is unreachable. This is reflected in both the ConnectTab and MediaTab components, improving reliability and user experience. [1] [2] [3] [4] [5] [6] [7] [8]

Plugin Installation and Activation Workflow:

  • Enhanced the plugin installation process to wait for the VMF plugin's REST API routes to become available before updating site capabilities, reducing user confusion and potential errors after plugin activation.

User Interface and Experience Improvements:

  • Added an inline assignment preview with thumbnails, breadcrumb folder paths, and an "Apply All Suggestions" button. Also introduced a modal for full-size image previews and improved the UI for folder suggestion workflows.
  • Updated the UI to display verification progress and handle errors gracefully when switching or connecting to sites. [1] [2] [3] [4]

Changelog and Versioning:

  • Updated the CHANGELOG.md and package.json to document all new features, changes, and fixes, and bumped the version to 0.4.0. [1] [2]

Most important changes:

Uncategorized Media Detection and VMF API Integration

  • Improved fallback logic for uncategorized media detection: uses VMF's API if available, otherwise checks embedded taxonomy terms and provides accurate assignment counts and logging. [1] [2]
  • Standardized the mapping of media items from VMF API responses for consistent UI rendering.
  • Added a helper for WordPress REST API requests with robust error handling.

Site Connection and Verification

  • Added a site:refresh IPC channel and corresponding UI logic to verify site connectivity and update capabilities, with clear feedback for unreachable sites. [1] [2] [3] [4] [5]

Plugin Activation Workflow

  • Improved plugin activation flow to wait for VMF REST routes, updating credentials only after confirmation and providing user notes if routes are delayed.

User Interface Improvements

  • Enhanced folder assignment preview, added image preview modal, and improved the overall UI for folder suggestion and verification feedback. [1] [2] [3] [4] [5]

Changelog and Versioning

  • Updated CHANGELOG.md and bumped app version to 0.4.0 to reflect all major additions, changes, and fixes. [1] [2]

- Updated CHANGELOG.md to document new features, changes, and fixes for version 0.4.0.
- Updated package.json to reflect the new version number (0.4.0).
- Added a new IPC handler in site.handlers.js for refreshing site credentials and capabilities, improving the user experience when checking site connectivity.
- Enhanced the VMF uncategorized media retrieval logic in vmf.handlers.js to first attempt fetching from the VMF API, with a fallback to WordPress REST API if necessary.
- Introduced a new wpRequest helper function in vmf-client.js for standardized requests to the WordPress REST API, improving error handling and response parsing.
- Updated the getUncategorizedMedia method in wp-client.js to utilize the vmfo_folder filter, enhancing the efficiency of uncategorized media retrieval.
- Modified preload/index.cjs to expose a new refresh method for site verification.
- Enhanced ConnectTab.jsx to include site verification logic when selecting a site, providing immediate feedback to users.
- Updated FoldersTab.jsx to check VMF availability upon tab opening, and added a loading state while checking, improving user feedback during folder analysis.
- Implemented a new handleApplyAllSuggestions function in FoldersTab.jsx to streamline the process of applying folder suggestions, enhancing usability.
- Refactored the media assignment preview in FoldersTab.jsx to display folder paths and thumbnails inline, improving the user interface and experience.
- Added an image preview modal in FoldersTab.jsx for better visualization of suggested media assignments.
- Enhanced MediaTab.jsx to verify site connectivity on tab load, providing immediate feedback if the site is unreachable, improving error handling and user experience.
@soderlind soderlind merged commit 2e9050c into main Jan 28, 2026
3 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