Add multi-feed search functionality to Lazer price feed IDs #900
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds support for searching multiple price feeds simultaneously in the Lazer price feed IDs table. Users can now enter comma or space-separated search terms to find multiple feeds at once.
Example usage:
BTC ETH
- shows feeds matching either BTC or ETHBTC, ETH, SOL
- shows feeds matching any of the three termsType of Change
Areas Affected
/pages/lazer/price-feed-ids.mdx
- Lazer price feed IDs pagecomponents/LazerPriceIdTable.tsx
- Search filtering logicImplementation Details
The search now:
/[,\s]+/
Checklist
pre-commit run --all-files
to check for linting errors (npm run lint passed)Related Issues
Per request in Slack thread: https://dourolabs.slack.com/archives/C06Q9S66BE2/p1760448200091969
Additional Notes
Testing limitation: Local development testing encountered CORS issues with the Lazer API endpoint, preventing full end-to-end verification. The code logic is sound and linting passes, but production testing is recommended.
Search behavior: Uses OR logic - a feed is shown if it matches ANY of the search terms. This seemed like the most intuitive behavior for multi-term search.
Link to Devin run: https://app.devin.ai/sessions/f03f3f87ab7649ca974ea65a2c699336
Contributor Information