Skip to content

chore/add-queue-filters-to-template#89

Merged
AAdewunmi merged 1 commit intomainfrom
chore/add-queue-filters-to-template
Feb 17, 2026
Merged

chore/add-queue-filters-to-template#89
AAdewunmi merged 1 commit intomainfrom
chore/add-queue-filters-to-template

Conversation

@AAdewunmi
Copy link
Owner

Summary

Adds queue filter controls to the Ops queue template and wires filter-state persistence through the view context.

Changes

  • Updated policylens/apps/ops/templates/ops/queue.html:
    • Added GET-based filter form for:
      • status
      • priority
      • sla
    • Added Apply and Reset actions.
    • Added selected-option persistence using filters.* values.
    • Added improved empty state message when no results match.
    • Rendered queue table rows with rank, claim link, policy, priority, status, SLA badge, and created timestamp.
  • Updated policylens/apps/ops/views.py:
    • Parses query params (status, priority, sla).
    • Passes filters object into template context for UI persistence.
    • Keeps queue ordering via shared build_queue_queryset(...).
    • Assigns one-based queue_rank for display.

Why

  • Enables in-page filtering of the review queue without leaving the Ops UI.
  • Preserves selected filter values after submit, improving operator workflow and reducing repeated input.
  • Aligns UI queue behavior with canonical domain/API queue logic.

Validation

  • Verified template contains all three filter controls and selected-value bindings.
  • Verified queue_view passes filters context required by template persistence.

@AAdewunmi AAdewunmi self-assigned this Feb 17, 2026
@AAdewunmi AAdewunmi added the week-5-ui-filters Add queue filters to template label Feb 17, 2026
@AAdewunmi AAdewunmi linked an issue Feb 17, 2026 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Feb 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@AAdewunmi AAdewunmi merged commit c55ad81 into main Feb 17, 2026
2 checks passed
@AAdewunmi AAdewunmi deleted the chore/add-queue-filters-to-template branch February 17, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

week-5-ui-filters Add queue filters to template

Projects

Development

Successfully merging this pull request may close these issues.

Add queue filters to template

1 participant

Comments