Skip to content

[P0] [doc-drift] FR-3.1.3 filters + FR-3.1.8 pagination — completely missing #391

Closed

Description

@EVWorth

[P0] [doc-drift] FR-3.1.3 per-column filters + FR-3.1.8 pagination — completely missing

Context

DESIGN_REQUIREMENTS FR-3.1.3 requires per-column filter dropdowns (contains/equals/startsWith/endsWith/regex/isNull/isNotNull + numeric range + date range). FR-3.1.8 requires "Configurable page size (25, 50, 100, 500, 1000, All); page navigation controls; current page / total pages indicator".

Problem

Per docs/audits/results.md F4.

Neither is implemented. The user's only escape from a huge result set is settingsStore.querySettings.maxResultRows (default 1000) which silently truncates server-side. A user with SELECT * FROM million_row_table cannot paginate to page 2, cannot filter visible rows, can only re-run with a smaller LIMIT.

Files

  • src/components/grid/ResultsGrid.tsx (no filter input, no page controls)
  • src/stores/resultStore.ts (no pagination state)
  • src-tauri/crates/mas-core/src/query/executor.rs:39-66 (only the rowLimit from settings, no pagination SQL)

Repro (if applicable)

Static analysis only. grep -n "filter" src/components/grid/ResultsGrid.tsx returns no matches.

Expected

  • Pagination controls in footer (Page 1 of N ◀ ▶)
  • Per-column Filter icon in header opens operator dropdown
  • TanStack Table getPaginationRowModel + getFilteredRowModel wired up

Proposed fix

Scope L. Add pageSize / pageIndex state to resultStore; wire pagination through TanStack Table; add per-column filter dropdown with operator select.

Acceptance

A 5000-row result shows "1-100 of 5000" in the footer; clicking page 2 shows rows 101-200; the Filter icon on a column header opens a dropdown with operators; selecting contains:foo reduces visible rows without re-running the query.

Needs human verify

Yes

Labels: audit, area/results, severity/p0, kind/doc-drift

Activity

  1. added
    audit
    severity/p0
    kind/doc-drift
    area/results
    on Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/resultsauditkind/doc-driftseverity/p0

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions