From 925ff1cb27d2273542e0304350407aa770796b09 Mon Sep 17 00:00:00 2001 From: clucraft Date: Fri, 23 Jan 2026 13:31:08 -0500 Subject: [PATCH] v1.0.1: CI optimization, changelog update - CI/CD now only rebuilds images when backend/ or frontend/ changes - Uses dorny/paths-filter to detect which components changed - README, docs, and asset changes no longer trigger builds - Updated CHANGELOG with all recent changes - Bumped version to 1.0.1 Co-Authored-By: Claude Opus 4.5 --- .github/workflows/docker-build.yml | 31 ++++++++++++++++++++++++++++++ CHANGELOG.md | 22 +++++++++++++++++++++ frontend/public/version.json | 2 +- version.json | 2 +- 4 files changed, 55 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 78ca23a..c639d25 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -3,8 +3,15 @@ name: Build and Push Docker Images on: push: branches: [main] + paths: + - 'backend/**' + - 'frontend/**' + - '.github/workflows/docker-build.yml' pull_request: branches: [main] + paths: + - 'backend/**' + - 'frontend/**' workflow_dispatch: env: @@ -13,7 +20,29 @@ env: FRONTEND_IMAGE: ghcr.io/${{ github.repository_owner }}/priceghost-frontend jobs: + # Detect which paths changed + changes: + runs-on: ubuntu-latest + outputs: + backend: ${{ steps.filter.outputs.backend }} + frontend: ${{ steps.filter.outputs.frontend }} + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Check for changes + uses: dorny/paths-filter@v3 + id: filter + with: + filters: | + backend: + - 'backend/**' + frontend: + - 'frontend/**' + build-backend: + needs: changes + if: needs.changes.outputs.backend == 'true' || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest permissions: contents: read @@ -55,6 +84,8 @@ jobs: cache-to: type=gha,mode=max build-frontend: + needs: changes + if: needs.changes.outputs.frontend == 'true' || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest permissions: contents: read diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fdefd0..839a94a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,27 @@ All notable changes to PriceGhost will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.0.1] - 2026-01-23 + +### Added + +- **Puppeteer fallback for JavaScript-rendered prices** - Automatically uses headless browser when no price found in static HTML, fixing extraction for Magento, React, Vue, and other JS-heavy sites +- **Pre-order/coming soon detection** - Products with future release dates, pre-order buttons, or "notify me" messaging are now correctly marked as out of stock +- **AI availability verification** - AI now checks if products are actually purchasable, not just if the price is correct +- **Official PriceGhost branding** - Custom ghost icon in navbar and login page +- **Ghostly text effect** - "Ghost" text in navbar has ethereal fade effect + +### Fixed + +- **Fresh install registration error** - Backend now creates all required database tables on startup, fixing 500 errors on fresh Docker installs without init.sql +- **Stock status for unreleased products** - Products showing "Coming Soon", "Available [future date]", or "Pre-order" are now correctly detected as out of stock + +### Changed + +- **CI/CD optimization** - Docker images only rebuild when relevant code changes (backend/** or frontend/**), not for README or documentation updates + +--- + ## [1.0.0] - 2026-01-23 ### Added @@ -84,4 +105,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | Version | Date | Description | |---------|------|-------------| +| 1.0.1 | 2026-01-23 | Bug fixes, JS-rendered price support, pre-order detection | | 1.0.0 | 2026-01-23 | Initial public release | diff --git a/frontend/public/version.json b/frontend/public/version.json index c70443a..398de8c 100644 --- a/frontend/public/version.json +++ b/frontend/public/version.json @@ -1,4 +1,4 @@ { - "version": "1.0.0", + "version": "1.0.1", "releaseDate": "2026-01-23" } diff --git a/version.json b/version.json index c70443a..398de8c 100644 --- a/version.json +++ b/version.json @@ -1,4 +1,4 @@ { - "version": "1.0.0", + "version": "1.0.1", "releaseDate": "2026-01-23" }