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:
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
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

## 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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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
What changed
How to test
Manual checks:
Screenshots or recordings
Risks / follow-ups
PR checklist
CONTRIBUTING.md