Skip to content

feat: v2.1.0 - Modern UI, image sources, and unit tests#4

Open
sannysri wants to merge 13 commits into
mainfrom
feature/v2.1.0
Open

feat: v2.1.0 - Modern UI, image sources, and unit tests#4
sannysri wants to merge 13 commits into
mainfrom
feature/v2.1.0

Conversation

@sannysri

Copy link
Copy Markdown
Owner

New Features

  • Image Source options: Media Library / First Image from Content / External URL
  • Tags filter for conditional featured images
  • Post Status filter (publish, draft, pending, etc.)
  • Display Options section with column width settings
  • Bulk processing with progress indicator

Code Quality

  • PHPUnit test suite with Brain Monkey (35 tests passing)
  • Code coverage: 15.47% (161/1041 lines)
  • PHPCS WordPress coding standards compliant
  • PHPStan static analysis configured
  • CI workflow for PHP 7.4-8.3

UI Improvements

  • Compact card-based layout with light purple accent (#9b7bc0)
  • Responsive design with proper overflow handling
  • Enhanced admin settings page

## New Features
- Image Source options: Media Library / First Image from Content / External URL
- Tags filter for conditional featured images
- Post Status filter (publish, draft, pending, etc.)
- Display Options section with column width settings
- Bulk processing with progress indicator

## Code Quality
- PHPUnit test suite with Brain Monkey (35 tests passing)
- Code coverage: 15.47% (161/1041 lines)
- PHPCS WordPress coding standards compliant
- PHPStan static analysis configured
- CI workflow for PHP 7.4-8.3

## UI Improvements
- Compact card-based layout with light purple accent (#9b7bc0)
- Responsive design with proper overflow handling
- Enhanced admin settings page
- ESLint: const instead of var, allow wpafi_vars camelcase
- Stylelint: ignore Select2 class patterns (3rd party)
- PHPStan: level 5, ignore WP type coercion patterns
- PHPCS: 0 errors, 2 warnings (meta_query - required)
- Fix is_post_meeting_criteria return type
- Implement batched bulk processing (50 posts/batch) to handle thousands of posts without timeout
- Add ajax_bulk_count endpoint for accurate progress tracking
- Fix CSS: card borders, help tab spacing, pro teaser alignment
- Add unit tests: VideoThumbnailTest, RuleMatchingTest, SideloadTest
- Update .gitignore to exclude E2E tests and internal docs
- Fix Yoda condition in admin-settings.php line 75
- Move $stateInput assignment after early return in JS
- Update PHP to accept 'ruleIdx' POST key matching JS changes
- Auto-fix array alignment in class-wpafi-pro-registry.php
- Auto-fix equals sign alignment in class-wpafi-admin.php
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