Commit Graph

10 Commits

Author SHA1 Message Date
c9abe6cc55 perosnel işlemleri change 2025-11-07 00:25:21 +03:00
8b4472c349 Label change 2025-11-06 23:51:43 +03:00
b978902c7f feat: Add Aylık Yakıt Dökümü (Monthly Fuel Report) feature for goods managers
- Add new sidebar menu item "Aylık Yakıt Dökümü" with fa-list-ol icon
- Implement year selection dropdown with current year and 3 previous years
- Create collapsible accordion interface for monthly fuel data
- Display approved fuel slips grouped by month with expandable sections
- Show S.No, Araç Plakası, Tarih, Yakıt Cinsi, Miktar, Teslim Alan, Teslim Eden columns
- Filter data by selected year and goods manager ID
- Sort data chronologically within each month
- Hide future months from display
- Include year summary statistics and empty state handling
- Responsive design matching existing UI patterns
- Turkish month names and localization

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-06 20:26:19 +03:00
2a922c735e fix: Dashboard placeholder verileri kaldırıldı
- samplePendingSlips ve sampleHistorySlips kaldırıldı
- Dashboard'da artık gerçek veriler yoksa boş durum mesajları gösterilir
- Placeholder satırları ve ilgili CSS sınıfları temizlendi
- Kullanıcı arayüzü artık sadece gerçek verileri gösterir

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-06 20:05:12 +03:00
f66bdd3221 refactor: Yakıt fişi verileri temizlendi ve kullanıcı filtrelemesi iyileştirildi
- Geçici yakıt fişi verileri tamamen temizlendi
- Dashboard'da sadece ilgili yakıt sorumlusunun fişleri gösterilir
- Onaylı fiş özetinde kullanıcı filtresi eklendi
- Bekleyen ve onaylanmış/reddedilmiş fişler kullanıcıya özel listeleniyor

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-06 19:52:52 +03:00
b26ab3d72e fix: Dashboard'da sadece onaylı yakıt fişlerini göster
Yakıt özeti hesaplamasında sadece 'approved' durumundaki fişleri dikkate alacak şekilde güncellendi. Bu değişiklik ile bekleyen veya reddedilen fişler toplama dahil edilmiyor.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-05 23:32:05 +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
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
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