algolia / algolia/instantsearch
Special characters into facet value are converted internally, resulting in failure query
- Dominant language
- TypeScript
- Stars
- 4.1k
- Forks
- 553
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 51
Description
### 🐛 Current behavior
Inside `.queries[0]`: Attribute `shift_schedule:01:00 PM - 01` is not filterable.
I am passing value `01:00 PM - 01:30 AM`
Which is read as `"shift_schedule:01:00 PM - 01"="30 AM"`
### 🔍 Steps to reproduce
Passing these values in to drop down list
### Live reproduction
https://codesandbox.io/s/github/algolia/instantsearch/tree/templates/instantsearch.js
### 💭 Expected behavior
The value should be accepted completely intact
### Package version
"react-instantsearch-dom": "^6.40.2", "react-instantsearch-hooks": "6.43.0", "react-instantsearch-native": "^6.40.2", "expo": "^49.0.7",
### Operating system
macOS 14.1.1
### Browser
_No response_
### Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Contributor guide
Research direction
Start with the linked CodeSandbox reproduction and the react-instantsearch package versions to reproduce how `01:00 PM - 01:30 AM` is passed into the facet query. Trace where the facet value becomes split, then verify that the complete value remains intact and the resulting query is filterable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend, search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100