The Search That Guesses
The internal library search works for ordinary words, but searching for exact tool names such as “Node.js” returns unrelated titles. Some names containing punctuation do not produce results at all. Users expect the search box to find the text they typed.
The bug report
You get the whole project — a React front end, an Express API, and Mongoose models — opened in a browser editor. Reproduce the symptom by reading the code, change what’s wrong, and run the hidden tests to prove it.
What the fix must prove
- finds ordinary words without case sensitivity
- treats punctuation in search text as literal characters
- excludes archived library entries
- returns a stable default list for an empty query
- rejects overlong search input