Commit Graph

26 Commits

Author SHA1 Message Date
8781b56b26 update frontend 2025-11-07 23:00:34 +03:00
bb17b1a4cd frontend update 2025-11-07 19:46:44 +03:00
137a9cbf27 frontend update 2025-11-07 19:34:18 +03:00
6a2c07076d Port değişti 2025-11-07 01:48:12 +03:00
dd298df953 .gitignore change 2025-11-07 01:12:56 +03:00
aae63ee4d0 Port numaraları değişti. 2025-11-07 01:08:52 +03:00
673d53f126 fixed 2025-11-07 00:53:00 +03:00
c9abe6cc55 perosnel işlemleri change 2025-11-07 00:25:21 +03:00
8b4472c349 Label change 2025-11-06 23:51:43 +03:00
fac2746902 update collapse menu 2025-11-06 21:49:07 +03:00
0b75345856 fix collapse menu 2025-11-06 21:46:29 +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
bb9031fb31 refactor: Yakıt fişleri SQLite veritabanı bağlantısı kuruldu
- Yakıt fişleri tablosu oluşturuldu (fuel_slips)
- API tamamen SQLite veritabanı ile çalışacak şekilde güncellendi
- Geçici mock data verileri tamamen kaldırıldı
- Veritabanı dosyası temizlendi, proje temiz başlatılacak
- Tüm CRUD operasyonları (CREATE, READ, UPDATE, DELETE) veritabanı ile entegre
- JSON alanlar veritabanında TEXT olarak saklanıyor ve parse ediliyor

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-06 19:57:42 +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
1eb3299ba2 fix: Mal Sorumlusu giriş sorunu çözüldü
- Mal sorumlusu kullanıcılarının giriş yapamama sorunu düzeltildi
- Internal API fetch hatası yerine paylaşılan veri modülü kullanıldı
- src/lib/data/goodsManagers.js merkezi veri yönetim modülü eklendi
- Login API'de server-side HTTP çağrıları direct function calls ile değiştirildi
- Tüm goods-managers API endpoint'leri yeni modülü kullanacak şekilde güncellendi
- Performans artışı ve hata yönetimi iyileştirildi

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-06 19:01:06 +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
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