Skip to content

Basic Transaction Search and Additional Filters #2

@safi-io

Description

@safi-io

Description

Enhance the current transaction filtering system which only supports credit/debit filtering by adding basic search functionality and a few more filter options.

Current Implementation

The existing transaction view only provides basic type filtering (All, CREDIT, DEBIT) via dropdown and print functionality.

Features to Add

Simple Search Functionality:

  • Add search text field in the filter bar
  • Search across transaction description, counter-party name, and account number
  • Real-time search as user types with instant results

Additional Filter Options:

  • Date filter dropdown with predefined ranges (Today, Last 7 days, Last 30 days, All)
  • Amount filter dropdown with predefined ranges (Under PKR100, PKR100-500, Above PKR500, All)

UI Enhancements:

  • Add search text field with placeholder text "Search transactions..."
  • Add date filter dropdown next to existing type filter
  • Add amount filter dropdown
  • Maintain current table styling and row coloring

Technical Implementation

  • Modify existing filter bar to include new search and filter components
  • Implement real-time search functionality using document listeners
  • Add filtering logic that works across multiple criteria simultaneously
  • Ensure all filters work together (search + type + date + amount)
  • Maintain compatibility with existing print functionality

Files to Modify

  • TransactionData.java - Main UI component for transaction display
  • Add necessary imports for document listeners

Acceptance Criteria

  • Users can search transactions by typing in search field
  • Search works across description, counter-party name, and account number
  • Search updates results in real-time as user types
  • Date filter dropdown works with predefined time ranges
  • Amount filter dropdown works with predefined amount ranges
  • All filters work together and can be combined
  • Table maintains current styling and row coloring
  • Print functionality works with filtered results
  • No performance issues with real-time filtering

Estimated Development Time

Small - 1-2 days

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions