Advanced Search priority range and date range have no min≤max validation #61

Open
opened 2026-08-31 21:40:12 -04:00 by jared · 0 comments
Owner

Severity: Low

assets/js/advanced-search.js (~lines 90-99 date range, ~lines 108-112 priority range) — a user can set priority_min=5, priority_max=1, or an end-date before a start-date; nothing blocks it client- or server-side in this flow. It's just silently sent as an unsatisfiable range, returning zero results with no explanation to the user.

Fix: Add simple client-side validation (swap or clamp min/max, or disable submit with an inline message) before building the filter query string.

**Severity:** Low `assets/js/advanced-search.js` (~lines 90-99 date range, ~lines 108-112 priority range) — a user can set `priority_min=5, priority_max=1`, or an end-date before a start-date; nothing blocks it client- or server-side in this flow. It's just silently sent as an unsatisfiable range, returning zero results with no explanation to the user. **Fix:** Add simple client-side validation (swap or clamp min/max, or disable submit with an inline message) before building the filter query string.
jared added the priority/lowux labels 2026-09-08 10:15:46 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/tinker_tickets#61