447 Commits

Author SHA1 Message Date
Flea Flicker 129f0adc96 fix(ci): add owner and repositories params to GitHub App token for cross-repo infra access
The deploy-dev job fails because actions/create-github-app-token@v1 defaults to
the current repository. Adding owner + repositories scopes the token to include
cartsnitch/infra so the subsequent checkout step succeeds.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-29 19:01:40 +00:00
Barcode Betty 587d444773 fix: align auth client basePath with server config
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-29 18:53:35 +00:00
cartsnitch-engineer[bot] ea789378dd ci: remove trigger-uat job from cartsnitch workflow
Merged by CEO (Coupon Carl) after QA + CTO approval. Removes dead trigger-uat CI job. Part of CAR-115 / CAR-117.
v2026.03.29.2
2026-03-29 12:22:20 +00:00
cartsnitch-ceo[bot] 2f096c985a Merge pull request #50 from cartsnitch/feat/deploy-dev-uat-trigger
feat(ci): add deploy-dev and trigger-uat jobs
v2026.03.29
2026-03-29 03:35:29 +00:00
Stockboy Steve ad218c07ec fix(ci): fix trigger-uat JSON data construction
Use --data-raw with properly formatted multi-line JSON instead of
a single-line escaped -d string. This ensures newlines in the
description are correctly interpreted.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-29 02:52:21 +00:00
Barcode Betty fff9f6f63a feat(ci): add deploy-dev and trigger-uat jobs
Add deploy-dev job to update the dev overlay image tag in cartsnitch/infra
via kustomize after a successful main build. Add trigger-uat job to create
a Paperclip UAT issue assigned to Rollback Rhonda after dev deploy succeeds.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-29 02:31:04 +00:00
cartsnitch-ceo[bot] b0ea4767b6 Add shrinkflation consumer FAQ for April 1 series launch
Merging approved PR #39. All gates passed: QA (Checkout Charlie), UAT (Rollback Rhonda), CTO (Savannah Savings). cc @cpfarhood
v2026.03.28.6
2026-03-28 14:54:32 +00:00
cartsnitch-engineer[bot] c1778074e3 Merge pull request #42 from cartsnitch/content/launch-marketing-pages
Add launch marketing content pages for April 24 beta
v2026.03.28.5
2026-03-28 10:32:15 +00:00
Savannah Savings 5de258220e ci: add auth service Docker build to CI pipeline
The auth Deployment in cartsnitch/infra (PR #83) references
ghcr.io/cartsnitch/auth:latest, but no CI job builds that image.
Add a build-and-push-auth job that builds auth/Dockerfile and pushes
to ghcr.io/cartsnitch/auth with the same CalVer + sha tagging scheme.

Fixes the ImagePullBackOff blocker when FluxCD reconciles the auth
Deployment in cartsnitch-dev.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-28 10:28:17 +00:00
cartsnitch-engineer 003c62da3e Remove unverified 'thousands of products' claim from shrinkflation FAQ
Follows PR #42 precedent: replace unverified quantity claim with factual 'tracked products' language. Requested by CTO on PR #39.
2026-03-28 10:06:13 +00:00
Coupon Carl 57ce4315a1 fix: fail fast if BETTER_AUTH_SECRET is not set
Remove hardcoded fallback secret that allowed sessions to be
signed with a well-known value if the env var was unset.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-28 10:03:39 +00:00
Barcode Betty 7426ff1909 fix: address CEO review feedback on PR #42
- stores.md: replace "secure loyalty program integration" with honest
  description of automated scraper pulling from store loyalty portals
- privacy.md: replace all "loyalty program" / "read-only connection"
  language with accurate description of automated scraper architecture
- how-it-works.md: describe scraper architecture honestly; clarify
  USDA FoodData Central is historical baseline reference only, not
  part of live tracking; remove "(yet)" from receipt statement

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-28 09:26:34 +00:00
Coupon Carl 782448a54a feat: migrate authentication to Better-Auth (Phase 1)
Replace hand-rolled JWT auth with Better-Auth session-based authentication.

- Scaffold auth/ Node.js service with Better-Auth, bcrypt password compat,
  Postgres adapter mapped to existing users table
- Add Alembic migration (002) creating sessions, accounts, verifications
  tables and migrating password hashes to accounts table
- Update FastAPI auth dependency to validate sessions via shared DB
  (supports both cookie and Bearer token)
- Remove registration/login/refresh endpoints from API gateway (now
  handled by Better-Auth service)
- Update frontend to use better-auth/react client with httpOnly cookies
  (no tokens in localStorage or memory)
- Rewrite auth store, Login, Register, Dashboard, Settings, ProtectedRoute
  to use session-based auth
- Update all tests to create sessions directly in DB instead of JWT tokens

Resolves CAR-27
See plan: CAR-26#document-plan

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-28 04:46:10 +00:00
cartsnitch-engineer[bot] b9a66dfc8b fix: remove unverified 'thousands of products' claim from blog post
Removes quantity qualifier per QA review comment on PR #42.
Pre-beta coverage is not yet verified.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-28 03:48:22 +00:00
Barcode Betty 7a1267de79 fix: remove unverified "thousands of products" claim from press-kit.md
Removes quantity qualifier from two instances since pre-beta coverage
is not verified. per QA and CEO review comments on PR #42.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-28 03:40:41 +00:00
cartsnitch-engineer[bot] 4415c56a53 Add CartSnitch vs Flipp SEO comparison article
SEO comparison article targeting CartSnitch vs Flipp queries. Math verified, no fabricated citations, feature statuses accurate. CTO + CEO approved.
v2026.03.28.4
2026-03-28 03:30:26 +00:00
Barcode Betty da8b413f76 Fix content issues flagged by CEO and QA (PR #42 review)
Critical fixes:
- stores.md: Correct supported retailers to Meijer, Kroger, Target.
  Remove Safeway (never scoped). Replace named Coming Soon list with
  generic demand-based evaluation language.
- privacy.md: Replace all OAuth/API claims with accurate language
  describing read-only headless browser access to loyalty portals.
- about.md: Remove "price gouging on our roadmap" claim.
  Clarify USDA FoodData Central is reference data only, not a source
  of price data.
- blog/price-gouging-vs-shrinkflation.md: Remove roadmap claim.
  Remove implication that price gouging detection is coming.
- methodology.md: Fix cereal example math — 16.2% → 16.1%.
  Use raw values per the stated formula. Clarify USDA FoodData
  Central role for package sizing baselines only.
- how-it-works.md: Correct retailers. Remove "(yet)" from receipt
  claim. Clarify USDA FoodData Central is reference data.

Important fixes:
- press-kit.md: Correct supported stores. Remove USDA FoodData Central
  from dollar-cost attribution — reattribute to CartSnitch analysis of
  manufacturer packaging data.
- app-store-listing.md: Remove "thousands of products" claims
  (pre-launch beta, quantity unverified).
- social/launch-day-posts.md: Remove "thousands of products" claim.
  Correct retailer list.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-28 03:28:42 +00:00
cartsnitch-ceo[bot] dd6a683b90 Merge PR #38: Add unit price explainer article
Add unit price explainer article for SEO
v2026.03.28.3
2026-03-28 03:27:45 +00:00
cartsnitch-ceo[bot] cf8e821bdc ci: proper Docker GHA cache + remove Docker Hub login (CAR-272, CAR-273)
ci: proper Docker GHA cache + remove Docker Hub login (CAR-272, CAR-273)
v2026.03.28.2
2026-03-28 03:24:24 +00:00
Chris Farhood c9be9324cf Merge pull request #48 from cartsnitch/feature/repo-consolidation
feat: consolidate api, common, receiptwitness into monorepo
v2026.03.28
2026-03-27 22:54:34 -04:00
Coupon Carl cc0957fc92 docs: update README and CLAUDE.md to reflect monorepo structure
Document the consolidated layout with api/, common/, receiptwitness/
subdirectories alongside the root frontend.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-28 02:25:07 +00:00
Coupon Carl f3a7b33093 Merge commit '342906c9d178923d462a08aec35e486703366eba' as 'receiptwitness' 2026-03-28 02:24:22 +00:00
Coupon Carl 342906c9d1 Squashed 'receiptwitness/' content from commit e8d374a
git-subtree-dir: receiptwitness
git-subtree-split: e8d374a89ed8978f429598e02d31b1c5963efe22
2026-03-28 02:24:22 +00:00
Coupon Carl b736e62d4f Merge commit '4cf6f91e954b770198578bcb8db5d98ac964bfed' as 'common' 2026-03-28 02:24:14 +00:00
Coupon Carl 4cf6f91e95 Squashed 'common/' content from commit 28b2939
git-subtree-dir: common
git-subtree-split: 28b2939037b5932ca5d5a6c734b292c012ac675f
2026-03-28 02:24:14 +00:00
Coupon Carl 27fe957074 feat: merge cartsnitch/api into api/ subdirectory
Consolidate API gateway service into monorepo.
Squashed from https://github.com/cartsnitch/api main (89bacb1).

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-28 02:24:02 +00:00
Deploy Debbie fc99e8a82e ci: replace no-cache with GHA cache + remove Docker Hub login (CAR-272, CAR-273)
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-25 07:14:05 +00:00
cartsnitch-engineer[bot] cb1d926fc4 fix: add no-cache to docker build-push-action to prevent stale nginx config cache (CAR-265)
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-25 06:48:36 +00:00
cartsnitch-ceo[bot] fc689a3f90 Merge pull request #33 from cartsnitch/content/shrinkflation-top-10
Add shrinkflation top-10 ranking article
v2026.03.24.2
2026-03-24 22:05:21 +00:00
Frontend Frankie d2337a7ef7 fix: remove fabricated USDA FoodData Central citation
USDA FoodData Central is a nutrient composition database, not a price
analysis tool. Cannot be cited as a source for household shrinkflation
cost estimates.

Replaced with "CartSnitch analysis of manufacturer packaging data" and
clarified "publicly available manufacturer packaging data" throughout.

Added trailing newline to end of file.

Fixes CTO review feedback on PR #39.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-24 16:22:27 +00:00
Frontend Frankie b7e7960f35 Add launch marketing content pages for April 24 beta
Publishes 9 pre-approved content pages for the CartSnitch beta launch:
- about.md — mission, team, product overview
- methodology.md — how we calculate shrinkflation
- how-it-works.md — product explainer for /how-it-works
- stores.md — supported stores (Kroger, Safeway) + coming soon
- privacy.md — data privacy and what we access/store/never do
- press-kit.md — media kit for journalists and partners
- app-store-listing.md — iOS App Store and Google Play copy
- blog/price-gouging-vs-shrinkflation.md — SEO explainer
- social/launch-day-posts.md — Twitter/X and Reddit launch posts

Closes CAR-234, CAR-235, CAR-236, CAR-237, CAR-238, CAR-239, CAR-240, CAR-242, CAR-243

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-24 16:19:22 +00:00
cartsnitch-ceo[bot] aa4da81b6e Merge pull request #40 from cartsnitch/fix/frontend-dockerfile-user-101
fix: add explicit USER 101 to prod stage Dockerfile
v2026.03.24
2026-03-24 16:12:43 +00:00
Frontend Frankie ce9e71c793 fix: add explicit USER 101 to prod stage Dockerfile
Kubernetes runAsNonRoot validation requires the USER directive to be
explicitly set in the image metadata. nginx-unprivileged runs as UID 101
internally, but without the explicit USER directive Kubernetes cannot
verify this from the image config and fails with CreateContainerConfigError.

Fixes CAR-231.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-22 16:06:00 +00:00
cartsnitch-engineer[bot] e662ff5fab Fix unit price percentage: 16.2% → 16.1% (and trailing '16%' → '16.1%')
(P/15.5) / (P/18) - 1 = 18/15.5 - 1 = 16.1%, not 16.2%. 
Addresses CTO review request on PR #38.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-22 07:57:12 +00:00
cartsnitch-engineer[bot] 656c8d3842 Add shrinkflation consumer FAQ article for April 1 series launch
Resolves CAR-220. Adds anchor FAQ piece for the 5-part shrinkflation series,
targeting keywords: 'what is shrinkflation', 'shrinkflation examples',
'why did my product get smaller', 'is shrinkflation legal'.

- Fixed mixed-language sentence in 'Why Do Brands Use Shrinkflation?' section
- Added proper frontmatter with series metadata (part 0 — anchor/intro)
- Target publish date: 2026-04-01

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-22 07:54:12 +00:00
Frontend Frankie 853d722044 Add unit price explainer article for SEO
Adds top-of-funnel explainer article targeting "what is unit price",
"how to calculate unit price", and "unit price vs shelf price" keywords.
Supports brand authority on price transparency and ties into the
shrinkflation series launching April 2026. Closes CAR-218.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-22 03:51:35 +00:00
cartsnitch-ceo[bot] 61540905dd Merge pull request #37 from cartsnitch/fix/non-root-nginx
fix: run nginx as non-root user to satisfy Kubernetes runAsNonRoot
v2026.03.22.2
2026-03-22 02:33:19 +00:00
cartsnitch-engineer[bot] bea3342042 fix: update nginx listen port to 8080 for non-root operation
Non-root users cannot bind to ports < 1024. Port 8080 is used by
nginxinc/nginx-unprivileged by default.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-22 01:27:31 +00:00
cartsnitch-engineer[bot] 95317884ff fix: use non-root nginx image for Kubernetes runAsNonRoot compatibility
Switch from nginx:stable-alpine to nginxinc/nginx-unprivileged:stable-alpine.
The unprivileged image runs as nginx user (UID 101) on port 8080, satisfying
the runAsNonRoot: true security context in Kubernetes.

Fixes: https://github.com/cartsnitch/infra/issues/65

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-22 01:27:20 +00:00
cartsnitch-ceo[bot] ca0dbd0e63 Merge pull request #35 from cartsnitch/content/shrinkflation-series-social-copy
Add shrinkflation series social copy (Apr 1-11)
v2026.03.22
2026-03-21 23:51:16 +00:00
Frontend Frankie cdcffc8582 Add shrinkflation series social copy for April 1-11
Full Twitter/X and Reddit promotional copy for all 5 shrinkflation
series posts (anchor top-10, dairy, frozen, household, snacks).
Includes 7-tweet thread + Reddit crosspost for Apr 1 anchor, and
single-tweet + thread teaser for Apr 3-11 series posts.

Refs: CAR-202, CAR-170, CAR-199

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-21 19:48:29 +00:00
Frontend Frankie 8cccb8cbf0 Fix shrinkflation top-10 rankings with corrected unit price math
- Reorder rankings: Lay's moves to #1 (28.0%), Yoplait drops to #2 (27.5%),
  Cocoa Puffs rises to #3 (27.0%), Ruffles drops to #4 (23.6%),
  Cheerios rises to #5 (21.5%), Lucky Charms drops to #6 (19.4%),
  Kettle Brand stays #7 (19.2%), SunChips drops to #8 (stays 18.2%),
  Cinnamon Toast Crunch #9 (13.5%), Oikos #10 (12.7%)
- Fix Yoplait unit price delta: $0.044/oz → $0.036/oz
- Bump version to 1.1

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-21 19:45:27 +00:00
cartsnitch-ceo[bot] d201753d83 content: replace unvalidated stats in launch announcement with defensible language (#34)
Replace unvalidated stats with defensible language
v2026.03.21.4
2026-03-21 14:51:00 +00:00
cartsnitch-engineer[bot] 516697b4bd content: update welcome sequence with real blog links and Apr 24 launch date (#32)
Welcome sequence with real blog links and Apr 24 launch date
2026-03-21 14:50:57 +00:00
Frontend Frankie b3aa18d7df content: add shrinkflation top-10 ranking article (2021–2025)
Adds data-driven ranking of grocery products with the highest effective
unit price increases from shrinkflation between 2021 and 2025.

Refs: CAR-170, CAR-114, CAR-131

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-21 12:15:40 +00:00
cartsnitch-engineer[bot] 6e681b9010 content: add pre-launch social content for Mar 25-26
Adds Twitter teaser thread (7 tweets, March 25 8AM ET) and Reddit posts
for r/Frugal and r/personalfinance (March 26) ahead of April 24 beta launch.
Content covers shrinkflation data, price tracking value prop, and beta CTA.

Refs: CAR-158, CAR-114, CAR-131

Co-authored-by: Frontend Frankie <frankie@cartsnitch.com>
Co-authored-by: Paperclip <noreply@paperclip.ing>
v2026.03.21.3
2026-03-21 07:52:52 +00:00
cartsnitch-engineer[bot] 979a671300 content: align shrinkflation series frontmatter and nav links
Update frontmatter and footer navigation for dairy, frozen food,
household essentials, and snacks posts to match the cereal post series
format. Sets consistent series name "The Shrinkflation Files", correct
part numbers (2–5), and properly linked prev/next nav footers.

Refs: CAR-157, CAR-114

Co-authored-by: Frontend Frankie <frankie@cartsnitch.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 07:52:49 +00:00
cartsnitch-ceo[bot] 860dd827d3 content: add founder story blog post
* content: add founder story blog post — Why We Built CartSnitch

Replaces the Phase 1 draft with the final founder story from CMO
content-spec (CAR-134). Personal narrative opening, clearer positioning
against coupon/crowdsourced tools, and beta launch CTA.

Refs: CAR-134, CAR-114

Co-Authored-By: Paperclip <noreply@paperclip.ing>

* content: merge founder story with data stats per Penny's review (v1.1)

Restores BLS/USDA statistics, specific shrinkflation examples, and
privacy footer from the original draft. Keeps the founder pasta story,
three-things framework, and cleaner positioning from the CMO content-spec.
Combined version addresses all points raised in Penny's changes-requested review.

Co-Authored-By: Paperclip <noreply@paperclip.ing>

---------

Co-authored-by: Frontend Frankie <frankie@cartsnitch.com>
Co-authored-by: Paperclip <noreply@paperclip.ing>
v2026.03.21.2
2026-03-21 01:45:36 +00:00
cartsnitch-engineer[bot] 7d2e0ba64e Add shrinkflation series post 1: cereal (#29)
* content: add shrinkflation series post 1 — The Shrinkflation Files: Cereal

Updates cereal blog post with final content-spec v1.0 from CAR-141.
Refined narrative structure: why cereal, unit-price math, CartSnitch
tracking section, five-part series framing.

Part of shrinkflation series (CAR-141, parent CAR-114).

Co-Authored-By: Paperclip <noreply@paperclip.ing>

* content: update cereal shrinkflation post to v1.1 with brand-specific data

Restores brand data table (Cheerios, Frosted Flakes, Lucky Charms, etc. with
exact oz reductions and unit price math), adds three-blind-spots psychology
section, and $80-120/year family impact estimate. Keeps series branding,
CartSnitch product section, and series preview from content-spec draft.

Addresses CEO changes-requested review on PR #29.

Co-Authored-By: Paperclip <noreply@paperclip.ing>

---------

Co-authored-by: Frontend Frankie <frankie@cartsnitch.com>
Co-authored-by: Paperclip <noreply@paperclip.ing>
v2026.03.21
2026-03-21 00:50:42 +00:00
cartsnitch-ceo[bot] 118946898b Merge pull request #27 from cartsnitch/content/launch-calendar
Add beta launch content calendar
v2026.03.20.3
2026-03-20 18:50:52 +00:00