Fix case-insensitive search query on order page #7

Merged
derrick merged 2 commits from fix/dg1-order-search-behavior into master 2026-09-18 05:23:23 +00:00
Owner

Summary

Search on order page was case-sensitive in some matches. This caused uppercase input, such as copied customer details, to miss matching orders.

Ticket / Assignment

  • Ticket: #1
  • Assignment: #1

What changed

  • Normalize both order search query and database column to lowercase for comparing.

How to test

   bun test apps/api/src/orders/order-search-assignment-1.test.ts

Manual checks:

Screenshots or recordings

image.png

Risks / follow-ups

  • Low risk; change is limited to backend order search filtering.
  • Full bun run check, bun run test, and bun run build:web can be run before merge if required.

PR checklist

  • [ x] change is scoped to one ticket or one small reviewable concern
  • [ x] acceptance criteria were checked
  • [ x] code follows CONTRIBUTING.md
  • [ x] no unrelated refactor is mixed in
  • [ x] debug code and temporary logs are removed
  • [x ] relevant automated checks were run locally
  • changed behavior was manually tested when needed
  • [ x] known risks or follow-ups are called out
## Summary Search on order page was case-sensitive in some matches. This caused uppercase input, such as copied customer details, to miss matching orders. ## Ticket / Assignment - Ticket: https://git.letphil.com/derrick/ai-wave-02/issues/1 - Assignment: https://git.letphil.com/derrick/ai-wave-02/issues/1 ## What changed - Normalize both order search query and database column to lowercase for comparing. ## How to test ```bash bun test apps/api/src/orders/order-search-assignment-1.test.ts ``` Manual checks: - Go to http://localhost:5173/orders and try inputting JOHN or jOhN, and any other format or symbols you can think of ## Screenshots or recordings ![image.png](/attachments/67d1a73b-9a16-4219-8a5f-995b5cc4eeb0) ## Risks / follow-ups - Low risk; change is limited to backend order search filtering. - Full bun run check, bun run test, and bun run build:web can be run before merge if required. ## PR checklist - [ x] change is scoped to one ticket or one small reviewable concern - [ x] acceptance criteria were checked - [ x] code follows `CONTRIBUTING.md` - [ x] no unrelated refactor is mixed in - [ x] debug code and temporary logs are removed - [x ] relevant automated checks were run locally - [ ] changed behavior was manually tested when needed - [ x] known risks or follow-ups are called out
derrick added 2 commits 2026-09-17 15:25:29 +00:00
update:apply lowercase to query+column
Runner Test / test (push) Successful in 17s
Runner Test / test (pull_request) Successful in 16s
32931e697f
derrick merged commit 12a262e640 into master 2026-09-18 05:23:23 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: derrick/ai-wave-02#7