Refactor metadata templates and update page titles/descriptions#3516
Refactor metadata templates and update page titles/descriptions#3516tom2drum wants to merge 8 commits into
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. To trigger a review, include ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
* change default value for NEXT_PUBLIC_OG_ENHANCED_DATA_ENABLED to "true" * add "add-new-page" skill for scaffolding new pages Adds an interactive agent skill that scaffolds a new page (index / detail / general) from per-type templates and wires it into navigation, metadata, server guard, route types, and analytics. Layout-only: data fetching, pagination, filtering, sorting and action bars are left as TODOs and out of scope. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * add tabs support to add-new-page skill Step 0 now decides layout (tabs or not); tabbed pages get a RoutedTabs shell plus one content body per tab, each in its own kebab-case sub-folder (mirroring src/slices/tx/pages/details). Adds PageWithTabs and GeneralInfo templates and the details-tab-comes-first rule. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * [skip ci] tweaks --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Description and Related Issue(s)
Refactors the metadata generation system and updates page-level SEO copy. Page
<h1>titles no longer include the chain name (that context moves to server-rendered meta titles); per-route descriptions are more specific; and the template system is consolidated into a single map with optional enhanced variants.Proposed Changes
title.tsanddescription.tsintotemplates/index.tswith per-routedefaultand optionalenhancedtitle/description templates.compileValueenhancement — Accepts{ default, enhanced? }objects and uses the enhanced template when all its placeholders are populated from API data.%network_name%→%chain_name%,%network_title%→%chain_explorer_title%,%network_gwei%→%gwei_name%,%id_cap%→%id_formatted%./txs,/blocks,/gas-tracker) with route-specific copy.<PageTitle>titles across index pages (transactions, tokens, gas tracker, user ops, etc.); chain context is handled in meta titles.NEXT_PUBLIC_SEO_ENHANCED_DATA_ENABLEDnow only pre-renders meta titles server-side; removed h1 injection behavior from page components. Gas tracker FAQ is always shown.Environment variable changes
NEXT_PUBLIC_OG_ENHANCED_DATA_ENABLED- Changed default value fromfalsetotrueDocumentation-only updates in
docs/ENVS.md(no validator changes):NEXT_PUBLIC_OG_DESCRIPTION— Example placeholder updated from%network_title%to%chain_name%to match the new template parameter naming.NEXT_PUBLIC_SEO_ENHANCED_DATA_ENABLED— Description updated to reflect that the flag only pre-renders page titles server-side (h1 injection removed).Checklist for PR author