Skip to content

Commit b3d4dca

Browse files
Bump version to 1.3.0: admin UI polish and CI/CD hardening
- Add settings page header card (version badge, status pill, provider chip, GitHub link) - Rewrite admin CSS to WP-native system fonts; remove Montserrat/Roboto Google Fonts CDN - Source/provider columns in entries list now render colored badge pills - Export CSV moved to WP-native page-title-action area - Detail view source/provider rows render colored badge pills - CI: release workflow verifies plugin version matches git tag before building - CI: release workflow caches Composer deps across PHP matrix jobs - CI: build-zip workflow triggers on push to main in addition to PRs Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ee8b559 commit b3d4dca

9 files changed

Lines changed: 223 additions & 128 deletions

File tree

.github/workflows/build-zip.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Build ZIP
22

33
on:
4+
push:
5+
branches: [main]
46
pull_request:
57
branches: [main]
68

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,25 @@ on:
55
types: [published]
66

77
jobs:
8+
verify:
9+
name: Verify Version
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Check plugin version matches tag
15+
run: |
16+
PLUGIN_VERSION=$(grep -m1 "^ \* Version:" packrelay.php | tr -d ' ' | cut -d: -f2)
17+
TAG_VERSION="${GITHUB_REF_NAME#v}"
18+
if [ "$PLUGIN_VERSION" != "$TAG_VERSION" ]; then
19+
echo "::error::Version mismatch — plugin header: $PLUGIN_VERSION, tag: $TAG_VERSION"
20+
exit 1
21+
fi
22+
echo "Version OK: $PLUGIN_VERSION"
23+
824
test:
925
name: PHP ${{ matrix.php }}
26+
needs: verify
1027
runs-on: ubuntu-latest
1128
strategy:
1229
fail-fast: true
@@ -21,6 +38,13 @@ jobs:
2138
php-version: ${{ matrix.php }}
2239
coverage: none
2340

41+
- name: Cache Composer dependencies
42+
uses: actions/cache@v4
43+
with:
44+
path: vendor
45+
key: composer-${{ matrix.php }}-${{ hashFiles('**/composer.json') }}
46+
restore-keys: composer-${{ matrix.php }}-
47+
2448
- name: Install dependencies
2549
run: composer install --prefer-dist --no-progress
2650

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## [1.3.0] - 2026-06-11
4+
5+
### Added
6+
- Settings page header card: version badge, active/inactive status pill, provider chip, and GitHub link
7+
8+
### Changed
9+
- Admin CSS rewritten to WordPress-native system font stack (removes Montserrat/Roboto Google Fonts CDN)
10+
- Entries list table Source and Provider columns now render colored badge pills
11+
- Entry detail view Source and Provider rows now render colored badge pills
12+
- Export CSV button moved to WordPress-native page title action area (inline with page `<h1>`)
13+
- CI: release workflow verifies plugin version header matches the git tag before running tests
14+
- CI: release workflow now caches Composer dependencies across PHP matrix jobs
15+
- CI: build-zip workflow now also triggers on pushes to `main` (not just pull requests)
16+
317
## [1.1.0] - 2026-03-14
418

519
### Security

admin/settings-page.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,34 @@
99
if ( ! defined( 'ABSPATH' ) ) {
1010
exit;
1111
}
12+
13+
$packrelay_provider_available = PackRelay_Activator::is_provider_available();
14+
$packrelay_provider = PackRelay_Provider_Factory::create();
1215
?>
1316
<div class="wrap packrelay-wrap">
1417
<h1><?php echo esc_html( get_admin_page_title() ); ?></h1>
18+
19+
<div class="packrelay-header">
20+
<div class="packrelay-header-icon">
21+
<span class="dashicons dashicons-rest-api"></span>
22+
</div>
23+
<div class="packrelay-header-info">
24+
<h2><?php esc_html_e( 'PackRelay', 'packrelay' ); ?></h2>
25+
<div class="packrelay-header-meta">
26+
<span class="packrelay-version-badge">v<?php echo esc_html( PACKRELAY_VERSION ); ?></span>
27+
<?php if ( $packrelay_provider_available ) : ?>
28+
<span class="packrelay-status-pill active"><?php esc_html_e( 'Active', 'packrelay' ); ?></span>
29+
<span class="packrelay-provider-badge"><?php echo esc_html( $packrelay_provider->get_label() ); ?></span>
30+
<?php else : ?>
31+
<span class="packrelay-status-pill inactive"><?php esc_html_e( 'Provider Missing', 'packrelay' ); ?></span>
32+
<?php endif; ?>
33+
<a href="https://github.com/mrdemonwolf/packrelay" target="_blank" rel="noopener noreferrer">
34+
<?php esc_html_e( 'View on GitHub', 'packrelay' ); ?> &#8599;
35+
</a>
36+
</div>
37+
</div>
38+
</div>
39+
1540
<form action="options.php" method="post">
1641
<?php
1742
settings_fields( PackRelay_Settings::PAGE_SLUG );

0 commit comments

Comments
 (0)