From 8e8d4a477451792a4bb1e046e834f4ac1299ac7e Mon Sep 17 00:00:00 2001 From: CartSnitch Engineer Bot Date: Wed, 1 Apr 2026 19:41:35 +0000 Subject: [PATCH 1/2] fix(api): change purchased_at and expires_at schema types from datetime to date Co-Authored-By: Paperclip --- api/src/cartsnitch_api/schemas.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/cartsnitch_api/schemas.py b/api/src/cartsnitch_api/schemas.py index 6547963..42fc7c6 100644 --- a/api/src/cartsnitch_api/schemas.py +++ b/api/src/cartsnitch_api/schemas.py @@ -1,6 +1,6 @@ """Pydantic v2 request/response schemas for all API endpoints.""" -from datetime import datetime +from datetime import date, datetime from uuid import UUID from pydantic import BaseModel, EmailStr, Field @@ -60,7 +60,7 @@ class PurchaseResponse(BaseModel): id: UUID store_id: UUID store_name: str - purchased_at: datetime + purchased_at: date total: float item_count: int @@ -142,7 +142,7 @@ class CouponResponse(BaseModel): discount_value: float discount_type: str product_id: UUID | None = None - expires_at: datetime | None = None + expires_at: date | None = None # ---------- Shopping ---------- From a60859f22f89b50423b2ae8c69db0de7f7f87589 Mon Sep 17 00:00:00 2001 From: CartSnitch Engineer Bot Date: Wed, 1 Apr 2026 19:49:14 +0000 Subject: [PATCH 2/2] fix(frontend): remove unused React import from Dashboard.tsx Removes the unused `import React from 'react'` line from Dashboard.tsx to resolve TS6133 error in lighthouse CI. No other code in the file references the React namespace. Co-Authored-By: Paperclip --- src/pages/Dashboard.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/Dashboard.tsx b/src/pages/Dashboard.tsx index 9e65c95..c3f428a 100644 --- a/src/pages/Dashboard.tsx +++ b/src/pages/Dashboard.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { Link } from 'react-router-dom' import { authClient } from '../lib/auth-client.ts' import { usePurchases, usePriceAlerts } from '../hooks/useApi.ts'