From 3fa22a6ba197cf7ef6a28ec52afc29b0ad7f23eb Mon Sep 17 00:00:00 2001 From: Kelly Date: Tue, 9 Dec 2025 07:44:38 -0700 Subject: [PATCH] fix: Add missing type field and pass build args to CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add outOfStockProducts to StateMetrics interface - Add onSpecialProducts to getStateSummary return - Pass APP_GIT_SHA and other build args to docker build 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .woodpecker/.ci.yml | 5 +++++ backend/src/multi-state/state-query-service.ts | 1 + backend/src/multi-state/types.ts | 1 + cannaiq/dist/index.html | 4 ++-- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.woodpecker/.ci.yml b/.woodpecker/.ci.yml index 9820ab81..8df92952 100644 --- a/.woodpecker/.ci.yml +++ b/.woodpecker/.ci.yml @@ -49,6 +49,11 @@ steps: from_secret: registry_password platforms: linux/amd64 provenance: false + build_args: + - APP_BUILD_VERSION=${CI_COMMIT_SHA:0:8} + - APP_GIT_SHA=${CI_COMMIT_SHA} + - APP_BUILD_TIME=${CI_PIPELINE_CREATED} + - CONTAINER_IMAGE_TAG=${CI_COMMIT_SHA:0:8} when: branch: master event: push diff --git a/backend/src/multi-state/state-query-service.ts b/backend/src/multi-state/state-query-service.ts index f59b2524..a48dcf3b 100644 --- a/backend/src/multi-state/state-query-service.ts +++ b/backend/src/multi-state/state-query-service.ts @@ -121,6 +121,7 @@ export class StateQueryService { totalProducts: parseInt(metrics.totalProducts || '0', 10), inStockProducts: parseInt(metrics.inStockProducts || '0', 10), outOfStockProducts: parseInt(metrics.outOfStockProducts || '0', 10), + onSpecialProducts: parseInt(metrics.onSpecialProducts || '0', 10), uniqueBrands: parseInt(metrics.uniqueBrands || '0', 10), uniqueCategories: parseInt(metrics.uniqueCategories || '0', 10), avgPriceRec: metrics.avgPriceRec ? parseFloat(metrics.avgPriceRec) : null, diff --git a/backend/src/multi-state/types.ts b/backend/src/multi-state/types.ts index c47b6004..2baf6973 100644 --- a/backend/src/multi-state/types.ts +++ b/backend/src/multi-state/types.ts @@ -17,6 +17,7 @@ export interface StateMetrics { activeStores: number; totalProducts: number; inStockProducts: number; + outOfStockProducts: number; onSpecialProducts: number; uniqueBrands: number; uniqueCategories: number; diff --git a/cannaiq/dist/index.html b/cannaiq/dist/index.html index b6578530..d4fbb8a4 100644 --- a/cannaiq/dist/index.html +++ b/cannaiq/dist/index.html @@ -7,8 +7,8 @@ CannaIQ - Cannabis Menu Intelligence Platform - - + +