İşlem geçmişi (/islem-gecmisi)

Audit trail of staff actions recorded through the POS. Internal tab id: logs.

Who can open it

Patron only.

Purpose

  • Inspect who did what and when (operation logs)
  • Filter by date range and fetch on demand
  • Correlate issues (wrong payment, voided items, settings changes) during support

Key files

Area Paths
UI src/components/pos/OperationLogsView.tsx, OperationLogsView.row.tsx
Filters DateRangeFilter.tsx
Lib src/lib/operation-logs.ts

Data & APIs

Call Role
GET /api/operation-logs/?… Read filtered log (loaded on submit — not auto-polled)
POST /api/operation-logs/ Written throughout POS when actions are audited

Day bounds for filters follow the app’s GMT+3-oriented reporting helpers.

State

  • Local list + filter form state
  • Explicit fetch (button / submit), unlike live Masalar polling

UX details

  • Date range picker + fetch
  • Row rendering dedicated in *.row.tsx

Development notes

  • New sensitive mutations on Masalar/Settings should post an operation log with a stable action type string
  • Do not turn this view into a 10s poll without pagination — logs grow quickly
  • Keep filter timezone math aligned with src/lib/reporting day bounds