Conversation
There was a problem hiding this comment.
Pull request overview
Updates the project README header to use a centered, “for-the-badge” style badge row and to show compatibility/status information more prominently.
Changes:
- Replaced the existing Markdown badges with an HTML badge block for Filament versions, Packagist version/downloads, and CI workflow statuses.
- Added Filament 3.x/4.x/5.x badges linking to the corresponding Filament documentation pages.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| <img alt="Tests Passing" src="https://img.shields.io/github/actions/workflow/status/webard/filament-translatable/run-tests.yml?style=for-the-badge&logo=github&label=tests"> | ||
| </a> | ||
| <a href="https://github.com/webard/filament-translatable/actions?query=workflow%3Aphpstan+branch%3Av3" class="filament-hidden"> | ||
| <img alt="PHPStan Passing" src="https://img.shields.io/github/actions/workflow/status/webard/filament-translatable/phpstan.yml?style=for-the-badge&logo=github&label=phpstan"> | ||
| </a> | ||
| <a href="https://github.com/webard/filament-translatable/actions?query=workflow%3Arector+branch%3Av3" class="filament-hidden"> | ||
| <img alt="Rector Passing" src="https://img.shields.io/github/actions/workflow/status/webard/filament-translatable/rector.yml?style=for-the-badge&logo=github&label=rector"> |
There was a problem hiding this comment.
The workflow status badge URL does not specify a branch, but the link targets results for branch:v3. As written, the badge will show the status of the repository’s default branch, which can be misleading. Add the branch=v3 parameter to the shields.io URL (or otherwise align badge and link to the same branch).
| <img alt="Tests Passing" src="https://img.shields.io/github/actions/workflow/status/webard/filament-translatable/run-tests.yml?style=for-the-badge&logo=github&label=tests"> | |
| </a> | |
| <a href="https://github.com/webard/filament-translatable/actions?query=workflow%3Aphpstan+branch%3Av3" class="filament-hidden"> | |
| <img alt="PHPStan Passing" src="https://img.shields.io/github/actions/workflow/status/webard/filament-translatable/phpstan.yml?style=for-the-badge&logo=github&label=phpstan"> | |
| </a> | |
| <a href="https://github.com/webard/filament-translatable/actions?query=workflow%3Arector+branch%3Av3" class="filament-hidden"> | |
| <img alt="Rector Passing" src="https://img.shields.io/github/actions/workflow/status/webard/filament-translatable/rector.yml?style=for-the-badge&logo=github&label=rector"> | |
| <img alt="Tests Passing" src="https://img.shields.io/github/actions/workflow/status/webard/filament-translatable/run-tests.yml?style=for-the-badge&logo=github&label=tests&branch=v3"> | |
| </a> | |
| <a href="https://github.com/webard/filament-translatable/actions?query=workflow%3Aphpstan+branch%3Av3" class="filament-hidden"> | |
| <img alt="PHPStan Passing" src="https://img.shields.io/github/actions/workflow/status/webard/filament-translatable/phpstan.yml?style=for-the-badge&logo=github&label=phpstan&branch=v3"> | |
| </a> | |
| <a href="https://github.com/webard/filament-translatable/actions?query=workflow%3Arector+branch%3Av3" class="filament-hidden"> | |
| <img alt="Rector Passing" src="https://img.shields.io/github/actions/workflow/status/webard/filament-translatable/rector.yml?style=for-the-badge&logo=github&label=rector&branch=v3"> |
| <img alt="Tests Passing" src="https://img.shields.io/github/actions/workflow/status/webard/filament-translatable/run-tests.yml?style=for-the-badge&logo=github&label=tests"> | ||
| </a> | ||
| <a href="https://github.com/webard/filament-translatable/actions?query=workflow%3Aphpstan+branch%3Av3" class="filament-hidden"> | ||
| <img alt="PHPStan Passing" src="https://img.shields.io/github/actions/workflow/status/webard/filament-translatable/phpstan.yml?style=for-the-badge&logo=github&label=phpstan"> |
There was a problem hiding this comment.
The PHPStan workflow status badge URL doesn’t include a branch parameter, so it will reflect the default branch even though the anchor links to branch:v3. Update the badge URL to explicitly target the same branch as the link.
| <img alt="PHPStan Passing" src="https://img.shields.io/github/actions/workflow/status/webard/filament-translatable/phpstan.yml?style=for-the-badge&logo=github&label=phpstan"> | |
| <img alt="PHPStan Passing" src="https://img.shields.io/github/actions/workflow/status/webard/filament-translatable/phpstan.yml?branch=v3&style=for-the-badge&logo=github&label=phpstan"> |
| <img alt="PHPStan Passing" src="https://img.shields.io/github/actions/workflow/status/webard/filament-translatable/phpstan.yml?style=for-the-badge&logo=github&label=phpstan"> | ||
| </a> | ||
| <a href="https://github.com/webard/filament-translatable/actions?query=workflow%3Arector+branch%3Av3" class="filament-hidden"> | ||
| <img alt="Rector Passing" src="https://img.shields.io/github/actions/workflow/status/webard/filament-translatable/rector.yml?style=for-the-badge&logo=github&label=rector"> |
There was a problem hiding this comment.
The Rector workflow status badge is missing a branch parameter, which means the badge may not match the branch:v3 results linked in the anchor. Pin the badge to the same branch to avoid showing an incorrect status.
| <img alt="Rector Passing" src="https://img.shields.io/github/actions/workflow/status/webard/filament-translatable/rector.yml?style=for-the-badge&logo=github&label=rector"> | |
| <img alt="Rector Passing" src="https://img.shields.io/github/actions/workflow/status/webard/filament-translatable/rector.yml?style=for-the-badge&logo=github&label=rector&branch=v3"> |
| <p align="center" class="flex items-center justify-center"> | ||
| <a href="https://filamentphp.com/docs/3.x/introduction/overview"> | ||
| <img alt="FILAMENT 3.x" src="https://img.shields.io/badge/FILAMENT-3.x-EBB304?style=for-the-badge"> | ||
| </a> | ||
| <a href="https://filamentphp.com/docs/4.x/introduction/overview"> | ||
| <img alt="FILAMENT 4.x" src="https://img.shields.io/badge/FILAMENT-4.x-EBB304?style=for-the-badge"> | ||
| </a> | ||
| <a href="https://filamentphp.com/docs/5.x/introduction/overview"> | ||
| <img alt="FILAMENT 5.x" src="https://img.shields.io/badge/FILAMENT-5.x-EBB304?style=for-the-badge"> | ||
| </a> | ||
| <a href="https://packagist.org/packages/webard/filament-translatable"> | ||
| <img alt="Packagist" src="https://img.shields.io/packagist/v/webard/filament-translatable.svg?style=for-the-badge&logo=packagist"> | ||
| </a> | ||
| <a href="https://github.com/webard/filament-translatable/actions?query=workflow%3Arun-tests+branch%3Av3" class="filament-hidden"> | ||
| <img alt="Tests Passing" src="https://img.shields.io/github/actions/workflow/status/webard/filament-translatable/run-tests.yml?style=for-the-badge&logo=github&label=tests"> |
There was a problem hiding this comment.
The class attributes here (e.g., flex items-center justify-center, filament-hidden) won’t have any effect in GitHub/Packagist Markdown rendering and may be stripped by sanitizers, making the markup harder to reason about. Consider removing the classes and relying on supported attributes (e.g., align) to keep the README portable.
| <img alt="Rector Passing" src="https://img.shields.io/github/actions/workflow/status/webard/filament-translatable/rector.yml?style=for-the-badge&logo=github&label=rector"> | ||
| </a> | ||
| <a href="https://packagist.org/packages/webard/filament-translatable"> | ||
| <img alt="Downloads" src="https://img.shields.io/packagist/dt/webard/filament-translatable.svg?style=for-the-badge" > |
There was a problem hiding this comment.
There’s an extra space before the closing > on this <img> tag. It’s valid HTML, but trimming it keeps the README markup consistent and avoids unnecessary diffs in the future.
| <img alt="Downloads" src="https://img.shields.io/packagist/dt/webard/filament-translatable.svg?style=for-the-badge" > | |
| <img alt="Downloads" src="https://img.shields.io/packagist/dt/webard/filament-translatable.svg?style=for-the-badge"> |
No description provided.