feat: add browsable peptide directory with category filtering, REST API, and extended meta fields (v4.3.0)
Adds [peptide_directory] shortcode with card grid, category taxonomy (8 terms), search, pagination, detail modal, and /v1/compounds REST endpoint. Includes 9 new meta fields (half-life, stability, solubility, etc.), admin data tools for migration/re-enrichment, integration hooks for cross-plugin extensibility, dark mode support, and full uninstall cleanup. Refactors AI generator into PSA_OpenRouter + PSA_KB_Builder classes. Adds PHPUnit tests for PostType and Directory classes. Fixes QA findings: dead JS selector, renderError loading state, numeric meta validation, prepared SQL in uninstall. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
20
.github/workflows/deploy.yml
vendored
20
.github/workflows/deploy.yml
vendored
@@ -244,6 +244,26 @@ jobs:
|
||||
|
||||
echo "✓ Deployment verification successful"
|
||||
|
||||
- name: HTTP health check
|
||||
run: |
|
||||
echo "Verifying site is accessible after deploy..."
|
||||
HTTP_STATUS=$(curl -s -o /dev/null -w "%{http_code}" --max-time 30 "https://peptiderepo.com/")
|
||||
if [ "$HTTP_STATUS" -eq 200 ]; then
|
||||
echo "✓ Site returned HTTP $HTTP_STATUS"
|
||||
else
|
||||
echo "⚠ Site returned HTTP $HTTP_STATUS (expected 200)"
|
||||
echo "The deploy completed but the site may need attention."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Verify REST API endpoint is responding.
|
||||
REST_STATUS=$(curl -s -o /dev/null -w "%{http_code}" --max-time 15 "https://peptiderepo.com/wp-json/peptides/v1/search?q=BPC-157")
|
||||
if [ "$REST_STATUS" -eq 200 ]; then
|
||||
echo "✓ REST API returned HTTP $REST_STATUS"
|
||||
else
|
||||
echo "⚠ REST API returned HTTP $REST_STATUS (expected 200)"
|
||||
fi
|
||||
|
||||
- name: Deploy summary
|
||||
run: |
|
||||
echo "## Deployment Complete" >> $GITHUB_STEP_SUMMARY
|
||||
|
||||
Reference in New Issue
Block a user