Commit Graph

4 Commits (e3effcb4164fb9f3d27540aff7186c11ad1ed840)

Author SHA1 Message Date
SYED MUSTUFA AHMED NAQVI 90380bf4fb feat: admin login audit in SQLite; Settings Admin Card ID from DB; Scanner dashboard UI
Backend / data
- Add AdminLoginRecords table (Username, EmployeeId, LoginTimeUtc); record on each admin login
- Add IAdminAuditService (RecordLoginAsync, GetLastLogin); AdminAuditService implementation
- Settings: Admin Card ID always prefilled from last admin login in DB (AdminLoginRecords.EmployeeId), fallback "ADMIN"
- Wire AdminAuditService in App.xaml.cs; inject into AdminLoginViewModel and SettingsViewModel

UI
- Scanner Dashboard: two-panel layout (left: employee card with photo, name, department, employee ID, order; right: order placement + stats)
- Employee section: larger fonts and spacing, circular profile image, sample data and asset (emppic.jpeg)
- Menu bar: Site / Settings / Logout in WrapPanel for responsive layout; consistent button sizing
- Dashboard and card responsive (ScrollViewer, MinWidth 0, card MinWidth 360 / MaxWidth 1150)
- Scanner status: activity-based only (connected when input received; no hardware detection)
2026-02-04 18:18:17 +05:00
SYED MUSTUFA AHMED NAQVI 7bc5ffc77e Scanner dashboard & sync updates
- Add SiteId/DeviceId to scan pipeline (config, SQLite, sync payload, schema upgrade)
- Canteen wording: orders/place order, Today’s Orders, Total Orders (today only), scanner connectivity status
- Menu: site left, Settings/Logout right; fix focus for site input and when closing menu
- Cooldown: prominent on-screen alert to ask customer to rescan after countdown
- Sync: post to production every 15 minutes (was 3 hours)
- UI: remove “Utopia Canteen System” heading, larger logo, single menu row layout
2026-02-03 18:26:39 +05:00
SYED MUSTUFA AHMED NAQVI 972880fad4 Add UI assets and wire them in csproj 2026-02-02 17:03:25 +05:00
SYED MUSTUFA AHMED NAQVI 3f08666c15 feat: scanner+dashboard unified UI with cooldown and local sqlite sync 2026-02-02 16:45:55 +05:00