Remove refresh icon and fix Safari/WebKit runtime errors

- Removed manual refresh button from frontend (kept auto-refresh functionality)
- Fixed WebKit 'object cannot be found' error by replacing absolute positioning with flexbox
- Added lazy loading to images to prevent preload warnings
- Cleaned up unused imports and variables:
  - Removed unused useRef import
  - Removed unused colors state variable and colorService
  - Removed unused ColorSwatch import from FilamentTableV2
  - Removed unused getModifierIcon function from MaterialBadge
- Updated tests to match current implementation
- Improved layout stability for better cross-browser compatibility
- Removed temporary migration scripts

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
DaX
2025-06-30 22:37:30 +02:00
parent 58b3ff2dec
commit 12e91d4c3e
33 changed files with 1646 additions and 668 deletions

View File

@@ -0,0 +1,43 @@
-- Fix quantity calculations to be the sum of refill + spulna counts
UPDATE filaments
SET kolicina =
COALESCE(
CASE
WHEN refill ~ '^\d+$' THEN CAST(refill AS INTEGER)
ELSE 0
END, 0
) +
COALESCE(
CASE
WHEN spulna ~ '^(\d+)\s*spuln' THEN
CAST(SUBSTRING(spulna FROM '^(\d+)\s*spuln') AS INTEGER)
ELSE 0
END, 0
);
-- Specifically fix refill-only colors to ensure quantity matches refill count
UPDATE filaments
SET kolicina =
CASE
WHEN refill ~ '^\d+$' THEN CAST(refill AS INTEGER)
ELSE 0
END
WHERE boja IN (
'Beige',
'Light Gray',
'Yellow',
'Orange',
'Gold',
'Bright Green',
'Pink',
'Magenta',
'Maroon Red',
'Purple',
'Turquoise',
'Cobalt Blue',
'Brown',
'Bronze',
'Silver',
'Blue Grey',
'Dark Gray'
);