Filter logs by date range, log type, product, staff member, and other criteria.
Filter Panel
The filter panel provides comprehensive filtering options:
- Expandable/Collapsible: Click the filter icon to expand or collapse the filter panel
- Filter Persistence: All filter settings are saved to localStorage and restored on page reload
- Real-time Filtering: Filters apply automatically as you change values
- Reset Capability: Clear all filters to see all logs
Date & Time Filters
Filter logs by specific date and time ranges:
- Start Date: Select the earliest date to include in results (defaults to today's start of day)
- End Date: Select the latest date to include in results (defaults to today's end of day)
- Start Time: Select the earliest time of day (works in conjunction with start date)
- End Time: Select the latest time of day (works in conjunction with end date)
- UTC Handling: All dates and times are handled in UTC timezone for consistency
- Time Pickers: Use the time pickers to filter by specific hours/minutes
- Delete Key: Press Delete key in date/time fields to reset to default values
Log Type Filters
Filter by log type using checkboxes:
- Import: Include logs from CSV imports and inventory additions (checked by default)
- Deduction: Include logs from sales, orders, and inventory deductions (checked by default)
- Adjustment: Include logs from manual quantity adjustments (checked by default)
- Multi-Select: Select multiple log types to see combined results
- Toggle Behavior: Uncheck a type to exclude it from results
Product Filters
Search for specific products in logs:
- Card Name Search: Search by product name (debounced, waits 500ms after typing stops)
- Comment Search: Search within log comments
- Remark Search: Search within log remarks (often contains location/bin information)
- Case Insensitive: All searches are case-insensitive
- Partial Matching: Searches match partial text within fields
Game/Category Filter
Filter logs by game or category:
- Game Selection: Dropdown menu to select a specific game (defaults to Magic The Gathering for performance)
- Category ID Mapping: Each game maps to a category ID for server-side filtering
- Performance Benefit: Filtering by game improves load times by reducing data fetched
- All Games: Optionally view logs across all games (may be slower with large inventories)
Cause Filter
Filter by the cause or reason for the log entry:
- Multi-Select Dropdown: Select multiple causes to filter by
- Available Causes: Import Deduction, Manual Adjustment, Deletion, Undo Deduction, Undo Import, Order Deduction, POS Order, TCGPlayer Order, Import, and more
- Auto-Populated: Causes are automatically extracted from available logs
- Default Selection: All causes are selected by default when filter loads
- Chip Display: Selected causes shown as removable chips
Combining Filters
All filters work together using AND logic:
- AND Logic: Logs must match ALL active filters to appear
- Example: Date range + Log Type + Game = logs matching all three criteria
- Progressive Filtering: Start broad and narrow down with additional filters
- Statistics Update: Summary cards update based on active filters
Filter Persistence
Your filter settings are automatically saved:
- localStorage: All filter values saved to browser localStorage
- Auto-Restore: Filters automatically restored when you return to the page
- Saved State: Includes date ranges, log types, search terms, game selection, causes, and panel expansion state
- Per-Browser: Settings are browser-specific and don't sync across devices
Tip: Use the game filter to significantly improve performance when viewing logs for a specific game. The default "Magic The Gathering" is selected to optimize initial load time.