Explorar el Código

feat(dev-hub) Search Feeds bug fix

Aditya Arora hace 2 días
padre
commit
2b80b9c35a

+ 2 - 2
apps/developer-hub/src/app/api/search/route.ts

@@ -42,7 +42,7 @@ async function getHermesFeeds(): Promise<AdvancedIndex[]> {
       if (parsed.success) {
         for (const feed of parsed.data) {
           allFeeds.push({
-            title: feed.attributes.symbol,
+            title: `${feed.attributes.symbol} (Core)`,
             description: `Price Feed ID: ${feed.id}`,
             url: `/price-feeds/core/price-feeds/price-feed-ids?search=${feed.attributes.symbol}`,
             id: feed.id,
@@ -79,7 +79,7 @@ async function getLazerFeeds(): Promise<AdvancedIndex[]> {
     }
 
     return parsed.data.map((feed) => ({
-      title: feed.name,
+      title: `${feed.name} (Pro)`,
       description: `${feed.symbol} - ${feed.description} (ID: ${String(feed.pyth_lazer_id)})`,
       url: `/price-feeds/pro/price-feed-ids?search=${feed.symbol}`,
       id: `lazer-${String(feed.pyth_lazer_id)}`,

+ 1 - 1
apps/developer-hub/src/components/PriceFeedIdsProTable/index.tsx

@@ -62,7 +62,7 @@ export const PriceFeedIdsProTable = () => {
         return items;
       }
       return matchSorter(items, searchString, {
-        keys: ["pyth_lazer_id"],
+        keys: ["pyth_lazer_id", "symbol", "name", "description"],
       });
     },
     {