Skip to content

search: fix 'awaiting data' fallback + valid featured slugs - #688

Merged
Flotapponnier merged 2 commits into
devfrom
feat/header-search-bar
Jun 24, 2026
Merged

search: fix 'awaiting data' fallback + valid featured slugs#688
Flotapponnier merged 2 commits into
devfrom
feat/header-search-bar

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Summary

Fixes the search dialog landed in PR #687 — some Live leaders cards showed "awaiting data" because their slugs weren't in /api/citable (editorialStatus filter excludes them).

Fixes

  • "awaiting data" → real fallback: skeleton pulse during fetch, "View leaderboard →" or category label after fetch fails. Cards always look complete.
  • Swapped missing featured slugs: `evm-quote-latency` + `solana-tx-landing-latency` aren't in /api/citable. Replaced with `perp-fees` + `bridge-quote-latency` (both verified to return leader data on prod).
  • Trending list rotated to slugs verified against the live API.
  • Category label is now dynamic: pulled from `item.tags[0]` so cards self-label as Trading / RPCs / Bridges / etc. instead of a blanket "Benchmark".

Test plan

  • Open dialog → no "awaiting data" anywhere.
  • Featured cards each show: category badge + title + leader logo+name + p50 value.
  • Throttle network → see skeleton pulse before data arrives.
  • Click a card → recent updates with the right slug.

- Replace 'awaiting data' negative copy with skeleton (during fetch)
  or 'View leaderboard →' / category line (after fetch fails). Cards
  always read as complete.
- Swap evm-quote-latency and solana-tx-landing-latency out of the
  featured list — they're not in /api/citable (editorialStatus filter).
  Replaced with perp-fees + bridge-quote-latency which return leader
  data on prod. Trending list also rotated to slugs verified against
  the live API.
- Category label on each card sources from item.tags[0] (bench
  category) instead of hardcoded 'Benchmark', so the cards self-label
  as Trading / RPCs / Bridges / etc.
User feedback: category strip on /benchmarks was visual noise. Drop
SiteSubNav entirely; nav stays a single row.
@Flotapponnier
Flotapponnier merged commit 23da428 into dev Jun 24, 2026
1 check passed
@Flotapponnier
Flotapponnier deleted the feat/header-search-bar branch July 17, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant