Commit Graph

9 Commits

Author SHA1 Message Date
d1bc92f87f package updates 2025-11-05 23:15:44 +03:00
2b0c9e82cd fix: Socket.io real-time güncelleme sistemi tamamen düzeltildi
- Socket.IO client modülü oluşturuldu (socketClient.js)
- SvelteKit API route'larından Socket.IO event gönderimi için client kullanımı
- fuel-slips API'de HTTP fetch yerine Socket.IO client kullanımı
- Server'da API event'larını dinleyip broadcast etme eklendi
- GoodsManagerContent component'inde Socket.IO dinleyicileri düzeltildi
- Dashboard'da Mal Sorumlusu content render düzeltmesi
- İbrahim Kara kullanıcısı ve mal sorumlusu kaydı eklendi
- Login endpoint'inde goods_manager ID mapping düzeltmesi
- fuel-slips/+page.svelte'de eksik fonksiyonlar eklendi
- Kapsamlı debug logları tüm Socket.IO işlemlerine eklendi

Çalışma prensibi:
1. Yakıt fişi oluşturulduğunda -> api-fuel-slip-assigned -> broadcast fuel-slip-assigned
2. Fiş onaylandığında/reddedildiğinde -> api-fuel-slip-updated -> broadcast fuel-slip-updated
3. Tüm değişiklikler anlık olarak ilgili ekranlarda güncelleniyor
2025-11-05 23:13:07 +03:00
2a224f2f02 fix: Admin ekranında birlik ekleme/düzenleme modalları eklendi
- UnitsContent.svelte componentine birlik ekleme modal formu eklendi
- Birlik düzenleme modal formu eklendi
- Modal stilleri ve responsive tasarım desteği eklendi
- Form validasyonları ve işlevselliği tamamen çalışır durumda
2025-11-05 23:12:17 +03:00
1b1e2a6fe0 changes 2025-11-05 21:18:02 +03:00
ca3ee1ceb7 Merge branch 'master' of http://gitea.panda/wisecolt/ytp-glm 2025-11-05 21:16:06 +03:00
6b22dbe73a Fix: Admin SPA Ana Sayfa dönüş problemi çözüldü
- Ana Sayfa butonu çalışmıyordu, sayfa yenileniyordu
- Engelleleyici genel condition kaldırıldı: if (page === '') → goto('/dashboard')
- Admin-specific Ana Sayfa case'i eklendi
- resetAdminStates() fonksiyonu ile tüm state'ler sıfırlanıyor
- Svelte reactivity için tick() eklendi
- Active buton durumları düzgün çalışıyor
- Single Page Application navigation artık sorunsuz

🚀 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 21:15:31 +03:00
879d56c4dd Sidebar update 2025-11-05 19:51:37 +03:00
54779eec79 Veritabanı bağlantı ve favicon hataları düzeltildi
- init-db script'indeki veritabanı bağlantı sıralaması düzeltildi
- SQLite veritabanı dizin oluşturulmadan bağlantı deneniyor hatası giderildi
- Favicon 404 hatası için akaryakıt temasına uygun SVG favicon eklendi
- Database bağlantı başarısız olduğunda daha açıklayıcı hata mesajları

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 17:53:39 +03:00
4205a8d387 Initial commit: Yakıt Takip Modülü - Akaryakıt İstasyonu Yönetim Sistemi
🚀 Features Implemented:
- Full-stack SvelteKit application with Express backend
- Role-based authentication (Admin, Fuel Manager, Goods Manager)
- Real-time notifications with Socket.IO
- SQLite database with auto-initialization in /db directory
- Comprehensive user management and fuel slip tracking
- Responsive design with Turkish language support

🏗️ Architecture:
- Frontend: Svelte + SvelteKit + Vite
- Backend: Node.js + Express + Socket.IO
- Database: SQLite3 with automatic schema creation
- Security: bcrypt password hashing + session management
- Real-time: Socket.IO for instant notifications

📁 Project Structure:
- Organized documentation in /docs directory
- Database files in /db directory with auto-setup
- Clean separation of API routes and UI components
- Comprehensive documentation including processes, architecture, and user guides

📚 Documentation:
- PROJECT_PROCESSES.md: Comprehensive project documentation
- KNOWLEDGE_BASE.md: Quick reference and user guide
- TEST_GUIDE.md: Testing and quality assurance guide
- README_ADMIN_FEATURES.md: Admin functionality guide
- Full API documentation and system architecture

🔒 Security Features:
- Role-based authorization system
- Encrypted password storage with bcrypt
- Session-based authentication
- SQL injection protection with parameterized queries
- CORS configuration and input validation

🎯 Key Features:
- Fuel slip creation and approval workflow
- Real-time notifications between users
- PDF generation for fuel slips
- User and vehicle management
- Comprehensive audit logging

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 08:35:13 +03:00