algolia / algolia/instantsearch

create-instantsearch-app doesn't render price filter

Open
#5,847 0 comments 0 reactions 0 assignees View on GitHub
Library: Create InstantSearch App triage
Dominant language
TypeScript
Stars
4.1k
Forks
553
Avg merge
1d 11h
Merged PRs (30d)
51

Description

### 🐛 Current behavior

I noticed adding `price_range` to `--attributes-for-faceting` would not actually render a filter. An example of the data found in `price_range` is 400:500. This is native to how data is structured from Shopify

### 🔍 Steps to reproduce

1. Open terminal
2. Run `create-instantsearch-app`
3. Select a value similar to the one described above for `attributes-for-faceting`
4. Run the app
5. Notice no filter is rendered

### Live reproduction

Not applicable

### 💭 Expected behavior

System should recognize the customer is requesting numeric values to be filtered and display a price filter.

### Package version

Latest React InstantSearch

### Operating system

_No response_

### Browser

_No response_

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Research direction

Start with the create-instantsearch-app command and trace how --attributes-for-faceting values are converted into the generated app's widgets. Reproduce the price_range case using a value such as 400:500, then compare it with an attribute that currently renders a filter. Done means the generated app displays an appropriate price filter for numeric ranges.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.