When adding batteries with the same brand-type-chemistry combination as an existing group, the quantity is now added to the existing group instead of failing with a duplicate error. Changes: - Update POST /api/batteries to check for existing group and upsert - Add isNew flag to API response for UI feedback - Update AddBatteryModal to show contextual success message - Document upsert behavior in FSD.md and TSD.md 🤖 Generated with [Qoder][https://qoder.com] |
||
|---|---|---|
| .. | ||
| FSD.md | ||
| TSD.md | ||