From e8123b27dcfb9e915ce3daff7aaaedbeceacbd77 Mon Sep 17 00:00:00 2001 From: clucraft Date: Thu, 22 Jan 2026 07:48:24 -0500 Subject: [PATCH] Add 5 and 10 minute refresh interval options - Add 5, 10, and 15 minute intervals to both ProductForm and ProductDetail - Show warning when 5 minute interval is selected (rate limiting risk) Co-Authored-By: Claude Opus 4.5 --- frontend/src/components/ProductForm.tsx | 7 +++++++ frontend/src/pages/ProductDetail.tsx | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/frontend/src/components/ProductForm.tsx b/frontend/src/components/ProductForm.tsx index 02868f0..7859e0b 100644 --- a/frontend/src/components/ProductForm.tsx +++ b/frontend/src/components/ProductForm.tsx @@ -5,6 +5,8 @@ interface ProductFormProps { } const REFRESH_INTERVALS = [ + { value: 300, label: '5 minutes' }, + { value: 600, label: '10 minutes' }, { value: 900, label: '15 minutes' }, { value: 1800, label: '30 minutes' }, { value: 3600, label: '1 hour' }, @@ -113,6 +115,11 @@ export default function ProductForm({ onSubmit }: ProductFormProps) { ))} + {refreshInterval === 300 && ( + + Warning: Very frequent checks may result in rate limiting + + )}