The section nav marks an index but not the pages under it #40

Closed
opened 2026-10-06 11:10:10 +00:00 by grenade · 0 comments
Owner

/quantus/market marks Markets in the section nav, but /quantus/market/near-intents marks nothing.

The nav marks a section when route.index is that section, plus a hand-kept list of exceptions for calls, events and nodes. Every section added after that list was written is missing from it. The same gap exists for:

  • a block's page (/quantus/block/1000), which should mark Blocks
  • an account's page, which should mark Accounts
  • a runtime's page, which should mark Runtimes

Fix: one sectionOf(route) in lib/routes.ts, written over every subject field like isStandings, for the nav to read.

  • Block 0 stays with Genesis only, so two links aren't marked at once.
  • A miner page belongs to no section, because the standings are its index and have their own link.
`/quantus/market` marks **Markets** in the section nav, but `/quantus/market/near-intents` marks nothing. The nav marks a section when `route.index` is that section, plus a hand-kept list of exceptions for calls, events and nodes. Every section added after that list was written is missing from it. The same gap exists for: - a block's page (`/quantus/block/1000`), which should mark Blocks - an account's page, which should mark Accounts - a runtime's page, which should mark Runtimes **Fix:** one `sectionOf(route)` in `lib/routes.ts`, written over every subject field like `isStandings`, for the nav to read. - Block 0 stays with **Genesis** only, so two links aren't marked at once. - A miner page belongs to no section, because the standings are its index and have their own link.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: blackbeard/observer#40