Conversation
## 1. Production Hardening - ErrorBoundary Komponente hinzugefügt (verhindert White-Screen bei Render-Fehlern) - Graceful Degradation mit "Erneut versuchen" und "Seite neu laden" ## 2. Performance - useMemo in Dashboard: computeStats, urgentProducts, categoryBreakdown - useMemo in Statistics: expiryDist in Single-Pass statt 5x filter - useMemo in ProductList: filtered-Array wird gecached - usePWAInstall: isIOS() als Module-Konstante statt bei jedem Render ## 3. Security - CSV Export: alle Felder durch escCsv() geschickt (verhindert CSV Injection) - Barcode-Validierung: lookupBarcode() prüft auf gültiges EAN/UPC-Format ## 4. Dead Code entfernt - exportExcelXML() aus db.ts entfernt (nirgends verwendet) - ImageCaptureModal.tsx gelöscht (nicht verwendet lt. CLAUDE.md) - Ergebnis: 1.3 kB weniger CSS ## 5. PWA - Install-Prompt von bottom-4 auf bottom-20 (überlappt nicht mehr mit Navigation) ## 6. Tests - Von 15 auf 37 Tests erweitert - Neue Tests: formatDate, formatDuration, getStatusColor, getStatusBadgeColor - Neue Tests: lookupBarcode Input-Validierung (leer, nicht-numerisch, zu kurz/lang) - Neue Tests: computeStats (Kategorien, Lagerorte, Ablaufstatus, minStock-Edge-Case) - Neue Tests: Boundary-Werte (Tag 0, Tag 7, Tag 59/60) https://claude.ai/code/session_0169CbohMRqddD1LjPg8FmXf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1. Production Hardening
2. Performance
3. Security
4. Dead Code entfernt
5. PWA
6. Tests
https://claude.ai/code/session_0169CbohMRqddD1LjPg8FmXf