Skip to content

feat: add average-time SEO landing pages for IRONMAN and 70.3#251

Merged
rootulp merged 2 commits into
mainfrom
claude/tritimes-adoption-strategy-eski14
Jul 15, 2026
Merged

feat: add average-time SEO landing pages for IRONMAN and 70.3#251
rootulp merged 2 commits into
mainfrom
claude/tritimes-adoption-strategy-eski14

Conversation

@rootulp

@rootulp rootulp commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Summary

P1 of the adoption strategy: two statically-prerendered landing pages targeting evergreen head queries ("average ironman time", "average half ironman time", "average 70.3 time by age group") that nothing else on the web answers with this much data.

  • /stats/average-ironman-time and /stats/average-half-ironman-time — shared AverageTimeArticle server component with:
    • Prose intro with computed medians (12:23:19 full / 5:52:28 for 70.3, from 2.1M finisher results)
    • Percentile table ("what is a good time?"), median swim/bike/run splits, finish-time histogram (reuses RaceHistogram)
    • Median finish by age group × gender (standard brackets + Pro; para-support categories filtered), and by year
    • FAQ section with matching FAQPage JSON-LD
    • Cross-links to the sibling page, /courses, and /races
  • Data pipeline: scripts/build-search-index.js now also emits data/distance-stats.json.gz (2.8 KB, committed like the other index artifacts) from the same single CSV pass — per-distance percentiles, age-group/gender/year medians, and pre-binned histograms clipped to p0.1–p99.9
  • getDistanceStats() in data.ts + DistanceStats types
  • Both pages added to the sitemap (priority 0.7) and linked from /stats
  • Small fix: not-found.tsx title no longer doubles the | TriTimes suffix introduced by the layout title template

Testing

  • npm run test: 157/157 pass; npm run lint: clean
  • npm run build: green — both new pages prerender as fully static (no runtime corpus reads)
  • Verified locally on next start: unique titles/descriptions/canonicals, FAQPage JSON-LD present, sitemap includes both URLs, tables and histogram render with real data
  • Regenerated committed artifacts (athlete-index, course-stats, aggregate-stats) are byte-identical; only distance-stats.json.gz is new

🤖 Generated with Claude Code

https://claude.ai/code/session_01DM6tEZaDCx5PQgaxuV8Fh8


Generated by Claude Code

claude added 2 commits July 15, 2026 21:06
Adds two statically-prerendered landing pages targeting evergreen search
queries ("average ironman time", "average half ironman time"):

- /stats/average-ironman-time and /stats/average-half-ironman-time with
  medians by age group, gender, and year, percentile table, median splits,
  finish-time histogram, and an FAQ section with FAQPage JSON-LD
- Extend scripts/build-search-index.js to emit data/distance-stats.json.gz
  (per-distance aggregates) in the same single CSV pass; committed like the
  other index artifacts
- Add getDistanceStats() to data.ts and DistanceStats types
- Link both pages from /stats and list them in the sitemap

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DM6tEZaDCx5PQgaxuV8Fh8
@vercel

vercel Bot commented Jul 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tritimes Ready Ready Preview, Comment Jul 15, 2026 9:13pm

@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@rootulp, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 34 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: f0d619f1-0cb5-4e81-ac0e-5e1189850df1

📥 Commits

Reviewing files that changed from the base of the PR and between a98516e and 50d0bf2.

⛔ Files ignored due to path filters (1)
  • data/distance-stats.json.gz is excluded by !**/*.gz
📒 Files selected for processing (9)
  • app/src/app/not-found.tsx
  • app/src/app/sitemap.ts
  • app/src/app/stats/average-half-ironman-time/page.tsx
  • app/src/app/stats/average-ironman-time/page.tsx
  • app/src/app/stats/page.tsx
  • app/src/components/AverageTimeArticle.tsx
  • app/src/lib/data.ts
  • app/src/lib/types.ts
  • scripts/build-search-index.js
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/tritimes-adoption-strategy-eski14

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@rootulp
rootulp merged commit aeaac7e into main Jul 15, 2026
7 checks passed
@rootulp
rootulp deleted the claude/tritimes-adoption-strategy-eski14 branch July 15, 2026 21:48
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.

2 participants