Commit Graph

95 Commits (2792a02460d3674c451eb200818471781f8fe08e)

Author SHA1 Message Date
SYED MUSTUFA AHMED NAQVI 2792a02460 Add dedicated self-contained publish helpers
Add backend and client self-contained publish scripts that clean the public output folders and publish Release win-x64 builds with the .NET runtime included for easier deployment.
2026-07-13 14:04:16 +05:00
SYED MUSTUFA AHMED NAQVI 688ef2afd3 Make publish scripts self-contained by default
Update backend and client publish scripts to produce win-x64 self-contained builds unless framework-dependent publishing is explicitly requested. Add runtime selection, clearer publish output, and deployment notes for target machines.
2026-07-13 14:03:12 +05:00
SYED MUSTUFA AHMED NAQVI 95c8ac7f63 Normalize Backend Scan Device Context
Ensures backend scan requests use a resolved Device ID and logs backend startup Device ID details.
2026-06-02 14:35:10 +05:00
SYED MUSTUFA AHMED NAQVI 11ab230d87 Resolve Device ID Automatically
Uses the Windows machine name as the default Device ID, saves it when missing, and logs the resolved value on startup.
2026-06-02 14:33:41 +05:00
SYED MUSTUFA AHMED NAQVI 3e91cfaba8 Redesign Client Settings Into Tabs
Reorganizes the settings screen into General, Mode & Connectivity, and Data Sync tabs while keeping the shared bottom action bar.
2026-06-02 14:32:01 +05:00
SYED MUSTUFA AHMED NAQVI ca7e388989 Move Backend Storage to Interactive User Profile
Resolves backend SQLite/config storage from the logged-on Windows user instead of LOCAL SYSTEM and migrates existing systemprofile backend files when needed.
2026-06-02 14:30:45 +05:00
SYED MUSTUFA AHMED NAQVI c659bbaa86 Log meal schedule loading and add clean helper
Logs meal schedule load failures and adds a build cleanup helper for locked build artifacts.
2026-06-01 15:24:33 +05:00
SYED MUSTUFA AHMED NAQVI 7b2b9b353e Include shared logging sources in projects & Log admin login and scanner outcomes
Links logging/shared sync result files into the client and adds backend logging abstraction dependency.

Adds client-side logs for admin login success/failure and scan processing results.
2026-06-01 15:22:24 +05:00
SYED MUSTUFA AHMED NAQVI e95614f0fb Add client log startup and settings UI acces
Initializes client logging on app startup and adds an Open Logs Folder button to settings.
2026-06-01 15:19:40 +05:00
SYED MUSTUFA AHMED NAQVI 55e75b7347 Log employee and Trace offline sync and navigation events
Adds cache sync start, skip, success, and failure logs for employee RFID and meal/menu refreshes.

Logs full offline cache sync flow and meal schedule screen navigation.
2026-06-01 15:18:01 +05:00
SYED MUSTUFA AHMED NAQVI 3df4bc2672 Return order sync & Update sync contract and client API logging
Changes order sync to return pending, posted, duplicate, failed, and skipped counts.

Updates the sync interface for result reporting and logs client API health, scan, and manual sync calls.
2026-06-01 15:14:26 +05:00
SYED MUSTUFA AHMED NAQVI 1237878db2 Add masked backend API request logging
Logs backend API activity while masking card IDs and connection-style sensitive values.

Configures backend file logging and records startup, timer, cache sync, order sync, and shutdown events.
2026-06-01 15:12:31 +05:00
SYED MUSTUFA AHMED NAQVI 4d8ee06b04 Resolve service logs under interactive user profile
Resolves %LocalAppData% from the logged-on console user and separates client/backend log folders.
2026-06-01 15:09:47 +05:00
SYED MUSTUFA AHMED NAQVI 42cd473e73 Route legacy logging through file logger provider
Connects existing exception logging to the new file logger and adds an ILoggerProvider bridge for Microsoft logging.
2026-06-01 15:08:29 +05:00
SYED MUSTUFA AHMED NAQVI 2ce78b6c65 Add daily file logger target selection
Adds backend/client daily log writing with separate log prefixes and target-aware log directories.
2026-06-01 15:07:19 +05:00
SYED MUSTUFA AHMED NAQVI 3bb82ff968 Add solution, project wiring, deployment docs, and scripts
Adds the multi-project solution structure, updates the main project wiring, and includes publish/install scripts plus deployment documentation for backend and client rollout.
2026-05-25 16:30:50 +05:00
SYED MUSTUFA AHMED NAQVI e3effcb416 Harden sync, cache, dashboard, and schedule flows
Updates cache sync, production order sync, meal schedule view logic, and scanner dashboard behavior to support the new backend/client architecture.
2026-05-25 16:29:42 +05:00
SYED MUSTUFA AHMED NAQVI e85d465bf1 Add standalone scanner client application
Adds a separate WPF scanner client app with its own startup, project file, client settings view model, and client settings UI.
2026-05-25 16:27:19 +05:00
SYED MUSTUFA AHMED NAQVI eff36f0e9f Add backend Windows service project
Adds a Windows worker service host for running the canteen backend independently, including backend configuration and worker startup logic.
2026-05-25 16:25:35 +05:00
SYED MUSTUFA AHMED NAQVI e59a3f8af6 Update settings screen for backend operations
Updates settings to work through the backend API for cache sync, order posting, backend health checks, backend URL display, and server/client mode configuration.
2026-05-25 16:23:45 +05:00
SYED MUSTUFA AHMED NAQVI 659c162c93 Persist admin login defaults consistently
Adds shared admin login post-processing to save the admin employee id and site defaults, and updates login flows to use the helper.
2026-05-25 16:22:35 +05:00
SYED MUSTUFA AHMED NAQVI 8123d67121 Wire WPF app for server and client modes
Updates application startup to compose server-mode backend services or client-mode API services, and adds empty/no-op services for frontend-only client behavior.
2026-05-25 16:21:39 +05:00
SYED MUSTUFA AHMED NAQVI bf1f8accd1 Split server and client configuration handling
Adds client-safe configuration storage, backend base URL support, shared connection string fallback logic, and updated config path handling for separate backend/client deployments.
2026-05-23 12:55:06 +05:00
SYED MUSTUFA AHMED NAQVI 891ddc9175 Add backend API client and remove old client RFID service
Adds a reusable backend API client for scanner and settings operations, replacing the older ClientRfidService with a broader HTTP client abstraction.
2026-05-23 12:51:45 +05:00
SYED MUSTUFA AHMED NAQVI 8bc0e215f7 Add central canteen backend host
Replaces the RFID-only local API host with a broader canteen backend host and adds DTO mapping for scan, stats, cache, sync, employee, and schedule API responses.
2026-05-23 12:50:27 +05:00
SYED MUSTUFA AHMED NAQVI 280811eda4 Add shared canteen API contracts
Adds shared DTOs for backend/client communication, including scan requests, scan responses, health checks, stats, cache status, manual sync responses, employee data, meal schedules, and recent scan records.
2026-05-23 12:48:43 +05:00
SYED MUSTUFA AHMED NAQVI 2abd38cfcc Wire server/client mode and cache sync settings
Adds Server and Client application modes, central server URL settings, and local API listen URL settings.

Wires startup so server mode hosts the RFID API and cache sync timers, while client mode sends scans to the central server. Updates settings UI to save mode and manually sync cache data.
2026-05-21 09:33:17 +05:00
SYED MUSTUFA AHMED NAQVI b2c99017c9 Add central RFID API and client scanner service
Adds a local HTTP API for the central canteen server to accept RFID scans and expose scan dashboard data.

Adds a client RFID service so scanner PCs can forward scans to the central server with device, site, and IP context.
2026-05-21 09:32:33 +05:00
SYED MUSTUFA AHMED NAQVI 37f52bc3c6 Use offline cache for RFID employee, session, and menu lookup
Switches RFID employee lookup, meal session resolution, and menu lookup from live HRMS queries to the local SQLite cache.

Adds cache availability checks and shared site ID normalization for scan validation.
2026-05-21 09:31:10 +05:00
SYED MUSTUFA AHMED NAQVI 1d427b6e18 Add offline HRMS cache schema and sync services
Adds local SQLite cache tables for employee RFID tags, meal schedules, lunch menu weeks, lunch menu items, and menu items.

Adds sync services that pull HRMS RFID/menu data into the local cache and track the last cache sync time.
2026-05-21 09:26:43 +05:00
SYED MUSTUFA AHMED NAQVI b3087f08a2 Merge branch 'fixes' of https://git.utopiadeals.com/mustafa.ahmed/Utopia-Canteen-System into fixes 2026-05-13 17:56:13 +05:00
SYED MUSTUFA AHMED NAQVI 33c37d153b uto to local 2026-05-13 17:34:42 +05:00
SYED MUSTUFA AHMED NAQVI 30a81a2a06 Merge branch 'main' into fixes 2026-05-09 09:44:29 +00:00
SYED MUSTUFA AHMED NAQVI 505d11cfdf fix/ replace UTC with localtime for excell sheet 2026-05-09 14:43:12 +05:00
SYED MUSTUFA AHMED NAQVI 3758738210 Merge pull request 'fixes-department added in sheet' (#11) from fixes into main
Reviewed-on: #11
2026-04-24 06:45:24 +00:00
SYED MUSTUFA AHMED NAQVI 9db32c0d20 Merge branch 'fixes' of https://git.utopiadeals.com/mustafa.ahmed/Utopia-Canteen-System into fixes 2026-04-24 11:44:27 +05:00
SYED MUSTUFA AHMED NAQVI ebc64ac17d department added in excell sheet 2026-04-24 11:44:18 +05:00
SYED MUSTUFA AHMED NAQVI 29f0130ca1 Merge pull request 'fixes' (#10) from fixes into main
Reviewed-on: #10
2026-04-23 12:45:35 +00:00
SYED MUSTUFA AHMED NAQVI 213779c695 Merge branch 'main' into fixes 2026-04-23 12:45:22 +00:00
SYED MUSTUFA AHMED NAQVI 2252112e35 Merge branch 'fixes' of https://git.utopiadeals.com/mustafa.ahmed/Utopia-Canteen-System into fixes 2026-04-23 17:44:18 +05:00
SYED MUSTUFA AHMED NAQVI 3b7b4f7b79 adding name and employee id in excell sheet 2026-04-23 17:43:53 +05:00
SYED MUSTUFA AHMED NAQVI bda42b2a84 Merge pull request 'fixes' (#9) from fixes into main
Reviewed-on: #9
2026-04-20 12:10:41 +00:00
SYED MUSTUFA AHMED NAQVI 78feb65d4f Merge branch 'main' into fixes 2026-04-20 12:10:34 +00:00
SYED MUSTUFA AHMED NAQVI 9abc066cad Merge branch 'fixes' of https://git.utopiadeals.com/mustafa.ahmed/Utopia-Canteen-System into fixes 2026-04-20 16:52:48 +05:00
SYED MUSTUFA AHMED NAQVI a22562cb59 Implement session-based duplicate meal guard with optional auto-sync control
Added a configurable SyncServiceEnabled flag in app config and wired startup to run the background sync timer only when enabled. Updated scan processing to enforce production duplicate checks by employee_serial_number + order_date + meal_name + location_site_id, blocking same-session repeat scans with “Meal already taken” while still allowing different meals on the same day. Improved offline/online behavior by saving locally first and attempting immediate sync when production is reachable, and enhanced manual sync to treat production duplicates as success by marking local IsSynced=1 instead of retrying forever.
2026-04-20 16:51:58 +05:00
SYED MUSTUFA AHMED NAQVI fe36ba60e0 Merge pull request 'fixes' (#8) from fixes into main
Reviewed-on: #8
2026-04-09 06:46:29 +00:00
SYED MUSTUFA AHMED NAQVI 974ca733d9 Merge branch 'main' into fixes 2026-04-09 06:45:53 +00:00
SYED MUSTUFA AHMED NAQVI 316f463962 Merge branch 'fixes' of https://git.utopiadeals.com/mustafa.ahmed/Utopia-Canteen-System into fixes 2026-04-09 11:42:54 +05:00
SYED MUSTUFA AHMED NAQVI b1a86196e8 add a fallback flow for the menu items. 2026-04-09 11:42:37 +05:00
SYED MUSTUFA AHMED NAQVI 29bbbe480c Merge pull request 'fixes' (#7) from fixes into main
Reviewed-on: #7
2026-04-08 08:40:08 +00:00