Skip to content

Conversation

@darinlarimore
Copy link
Owner

No description provided.

@darinlarimore darinlarimore requested a review from Copilot December 6, 2025 16:37
Copy link

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 PR adds comprehensive Pest test coverage to the Statamic Image Hotspots addon, along with CI/CD automation and code quality tooling. The tests validate fieldtype configuration, tag functionality, and edge case handling.

Key changes:

  • Adds Pest test suite with unit tests for ImageHotSpots fieldtype and HotSpotImageTag
  • Implements GitHub Actions CI workflow with linting and multi-version PHP testing
  • Adds Laravel Pint for code style enforcement and fixes trailing comma inconsistencies

Reviewed changes

Copilot reviewed 14 out of 16 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/Unit/ImageHotSpotsFieldtypeTest.php Comprehensive unit tests for the ImageHotSpots fieldtype covering configuration, data processing, and augmentation
tests/Unit/HotSpotImageTagTest.php Unit tests for the HotSpotImageTag covering context handling, field data extraction, and edge cases
tests/TestCase.php Base test case class configuring Orchestra Testbench and Statamic environment for tests
tests/Pest.php Pest configuration extending the TestCase class for unit tests
composer.json Adds dev dependencies (Pest, Orchestra Testbench, Pint) and test/lint scripts
phpunit.xml PHPUnit configuration for test execution and coverage
.github/workflows/ci.yml CI workflow automating linting and testing across PHP 8.2, 8.3, and 8.4
src/Fieldtypes/ImageHotSpots.php Fixes trailing comma code style issues
src/ServiceProvider.php Alphabetizes import statements
src/GraphQL/HotspotType.php Standardizes string quotes and alphabetizes imports
src/GraphQL/HotImageType.php Standardizes string quotes and alphabetizes imports
src/Tags/HotSpotImageTag.php Removes empty line
.nvmrc Updates Node version from 16.8.0 to 22
README.md Adds contributor credit for global field reference handling fix

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@darinlarimore darinlarimore merged commit dc11498 into main Dec 6, 2025
4 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.

2 participants