9 Commits

Author SHA1 Message Date
DaX
b7f5417e23 Move dashboard to root level route
- Dashboard now accessible at /dashboard instead of /upadaj/dashboard
- Updated all navigation links to use new /dashboard route
- Login page still at /upadaj, redirects to /dashboard on success
- Colors and requests remain under /upadaj prefix
- Updated test files to reference new dashboard path
2025-11-19 19:13:48 +01:00
DaX
990221792a Translate table headers to Serbian (Finish -> Finiš, Spulna -> Špulna, Refill -> Refil) 2025-09-30 14:13:27 +02:00
DaX
12e91d4c3e 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>
2025-06-30 22:37:30 +02:00
DaX
58b3ff2dec Remove otvoreno field references from all test files
- Updated ui-features.test.ts to remove otvoreno field expectations
- Updated api-integration.test.ts to remove otvoreno from test data
- Updated data-consistency.test.ts to remove otvoreno from structure definitions
- Updated filament-crud.test.ts to remove otvoreno from CRUD operations
- Updated quantity calculations to only use refill and vakuum fields

All tests pass after these changes.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-30 20:01:00 +02:00
DaX
06025623ff Update quantity field to show sum of all inventory types
- Remove "količina" from Refill, Vakuum, and Otvoreno labels
- Move Količina field to end of form as "Ukupna količina" (Total quantity)
- Make Količina field read-only and calculate sum of all inventory types
- Update form submission to calculate total quantity automatically
- Update tests to reflect new label changes

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

Co-Authored-By: DaX <noreply@anthropic.com>
2025-06-27 01:42:11 +02:00
DaX
fa59df4c3d Implement quantity-based inventory tracking
- Replace checkboxes with quantity inputs for refill, vakuum, and otvoreno
- Display actual quantities in admin table instead of checkmarks
- Auto-parse existing data formats (e.g., "3 vakuum", "Da") to numbers
- Maintain backwards compatibility with existing data
- Update price auto-fill logic to work with quantity values
- Update tests to reflect new quantity inputs

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

Co-Authored-By: DaX <noreply@anthropic.com>
2025-06-27 01:40:18 +02:00
DaX
e8f9a6c6e3 Remove brand functionality and update Bambu Lab colors
- Remove brand field from entire codebase (frontend, backend, database)
- Update Bambu Lab colors to official list with correct hex values
- Clean up unused code and type definitions
- Add database migration to drop brand column
- Update search and filters to exclude brand references
- Ensure data persistence across all application layers

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

Co-Authored-By: DaX <noreply@anthropic.com>
2025-06-23 22:54:47 +02:00
DaX
808ca077fa Major frontend and admin improvements
Frontend changes:
- Removed brand filter and column from table
- Removed inventory summary grid
- Removed stanje (state) and težina (weight) columns
- Reorganized filters: Material → Finish → Color
- Updated EnhancedFilters component with new filter structure
- Removed legend section for storage conditions

Admin dashboard changes:
- Removed sidebar navigation (Boje option)
- Made dashboard full screen
- Removed brand column from table
- Removed brand field from add/edit form
- Updated all boolean columns to use checkmark/X icons
- Made color tiles 40% bigger
- Added sortable columns functionality
- Auto-fill price: 3499 for refill, 3999 for regular

Other improvements:
- Added BackToTop button component on all pages
- Fixed Next.js dialog backdrop CSS error
- Updated tests to match new UI structure
- Removed obsolete FilamentTable.tsx component
- Ensured proper synchronization between admin and frontend

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-23 22:27:43 +02:00
DaX
62a4891112 Remove decorative icons and update CORS configuration 2025-06-20 13:05:36 +02:00