Skip to content

feat: improved feeds validation UX #1090

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 18 commits into
base: development
Choose a base branch
from

Conversation

RaduCristianPopescu
Copy link
Contributor

@RaduCristianPopescu RaduCristianPopescu commented Jul 17, 2025

Summary

Redesign the Edit Import Sources Configuration, Feedzy Classic and Loop Block. Now the user only needs 1 button to validate the input.

Will affect visual aspect of the product

YES

Screenshots

EditImport.3.mp4
Recording.mp4

Test instructions

  • Check the video/page.

Check before Pull Request is ready:

Closes https://github.com/Codeinwp/feedzy-rss-feeds-pro/issues/870

@RaduCristianPopescu RaduCristianPopescu self-assigned this Jul 17, 2025
@RaduCristianPopescu RaduCristianPopescu added the pr-checklist-skip Allow this Pull Request to skip checklist. label Jul 17, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request implements improved UX for feed validation by replacing the external validation link with an integrated AJAX-based validation system. Users can now validate RSS feeds directly within the interface and receive immediate feedback about feed status.

Key changes include:

  • Replacement of external W3C validator with internal AJAX validation
  • Real-time validation with visual feedback (success/error/warning states)
  • Automatic separation of valid and invalid URLs after validation

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
includes/views/js/import-metabox-edit.js Complete rewrite of validation logic with async AJAX calls and improved UX
includes/views/import-metabox-edit.php Updated HTML structure to support new validation interface
includes/views/css/import-metabox-edit.css Added styling for validation messages and status indicators
includes/feedzy-rss-feeds.php Registered new AJAX action for feed validation
includes/admin/feedzy-rss-feeds-import.php Added AJAX URL to JavaScript configuration
includes/admin/feedzy-rss-feeds-admin.php Implemented server-side feed validation method
Comments suppressed due to low confidence (2)

includes/admin/feedzy-rss-feeds-admin.php:429

  • Missing return statement: The security check continues execution after wp_send_json_error() instead of returning, which could lead to processing invalid requests.
                </div>

includes/admin/feedzy-rss-feeds-admin.php:515

  • Incorrect string concatenation: The title and sprintf result are concatenated without proper spacing, which will result in malformed messages like 'Feed Title5 items found'.
                    position: relative;

@RaduCristianPopescu RaduCristianPopescu marked this pull request as ready for review July 17, 2025 12:55
@pirate-bot
Copy link
Contributor

pirate-bot commented Jul 17, 2025

Plugin build for 565de17 is ready 🛎️!

Note

You can preview the changes in the Playground

Comment on lines 190 to 231
$message.append('<button type="button" class="button button-primary">✕</button>');
$message.find('button').on('click', function(e) {
e.preventDefault();
$(this).parent().fadeOut(300, () => $(this).remove());
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the same pattern as the $message with $closeButton

@pirate-bot pirate-bot added the pr-checklist-complete The Pull Request checklist is complete. (automatic label) label Jul 17, 2025
@ineagu
Copy link
Contributor

ineagu commented Jul 23, 2025

@Soare-Robert-Daniel this was supposed to work for feedzy loop & feedzy classic block as well and feed groups validate actions.

https://github.com/Codeinwp/feedzy-rss-feeds-pro/issues/873

@Soare-Robert-Daniel
Copy link
Contributor

@Soare-Robert-Daniel this was supposed to work for feedzy loop & feedzy classic block as well and feed groups validate actions.

Those will be addressed in a separate PR. This one adds the initial workflow for individual feeds; it looks okay, so we can proceed with the rest.

@RaduCristianPopescu RaduCristianPopescu force-pushed the fix/feed-validater branch 2 times, most recently from 1e63c91 to 854b7bf Compare August 8, 2025 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-checklist-complete The Pull Request checklist is complete. (automatic label) pr-checklist-skip Allow this Pull Request to skip checklist.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants