Skip to content

Recover orphaned PRs #14 + #15 (nav links + leaderboard sitemap)#16

Merged
radinhamidi merged 3 commits intomainfrom
fix/recover-orphaned-prs
Apr 30, 2026
Merged

Recover orphaned PRs #14 + #15 (nav links + leaderboard sitemap)#16
radinhamidi merged 3 commits intomainfrom
fix/recover-orphaned-prs

Conversation

@radinhamidi
Copy link
Copy Markdown
Member

What happened

PRs #14 (`chore/nav-and-sitemap-stacked`) and #15 (`chore/leaderboard-sitemap`) were stacked on each other and on PR #13 (`chore/copy-polish`). When #13 merged into main, GitHub didn't auto-retarget the stacked PRs — it merged each into its now-deleted base branch instead. They show "MERGED" in GitHub's UI but none of their commits reached main, so:

  • Leaderboard isn't in the marketing nav.
  • Marketing nav still says `Dashboard ↗` instead of `Dashboard` with linkout icon.
  • `leaderboard.querygym.com` has no sitemap or robots.txt.

This is the same merge-into-base bug that hit PR #12 earlier in the rollout. Lesson learned: stop stacking PRs in this repo. From here on, every PR bases off main.

Recovery

This PR cherry-picks the two orphaned commits onto a fresh branch off main:

Verified locally

  • `pnpm -F @qg/site build` → marketing nav reads `Install / Methods / Reproducibility / Cite / Docs↗ / Leaderboard↗ / Dashboard↗`. Leaderboard is before Dashboard (per user request). Both with linkout icons, both opening in the current tab.
  • `pnpm -F @qg/leaderboard build` → 37 pages + `sitemap-index.xml` + `sitemap-0.xml` + `robots.txt` all in `dist/`.
  • Header component supports separate `external` (icon) and `newTab` (target) props; default behavior is current-tab.

After merge

  1. CF Pages auto-redeploys both projects.
  2. Verify on the live sites: `https://querygym.com\` has Leaderboard + Dashboard in the nav; `https://leaderboard.querygym.com/sitemap-index.xml\` resolves.
  3. Submit `https://leaderboard.querygym.com/sitemap-index.xml\` to Google Search Console.

🤖 Generated with Claude Code

radinhamidi and others added 3 commits April 29, 2026 23:02
Three pieces of user-requested polish:

1. Marketing nav: add Leaderboard alongside Dashboard, both with the
   linkout arrow icon and opening in the current tab. Drop the
   trailing "↗" from the old "Dashboard ↗" label since the icon now
   conveys it.

2. Leaderboard nav: keep the Toolkit link (re-added earlier), with
   the same linkout icon, current-tab.

3. Header component: add a `newTab` prop separate from `external`.
   `external` controls icon rendering only; `newTab` controls
   target/rel. Default behavior is current-tab — let users
   middle-click / cmd-click for a new tab when they want one.

Also propagate same-tab to EcosystemMap cards (they were forcing
_blank for any http link).

Sitemap visibility: `sitemap-index.xml` is one level above the URLs
(it just points at sitemap-0.xml — standard Sitemaps protocol). When
visited directly it looks empty. Updated <link rel="sitemap"> to
point at /sitemap-0.xml so anything inspecting the page lands on the
populated file. robots.txt now lists both URLs (crawlers handle
either form).

Stacked on chore/copy-polish (PR #13). Once that merges, this PR's
diff narrows to just these files.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Mirror what querygym.com already has:
- @astrojs/sitemap integration. Home priority 1.0, per-dataset/method/
  model index pages 0.5, run-detail pages 0.3 monthly (they're mostly
  internal-link targets so search engines should focus on the index
  pages).
- robots.txt with the standard "Allow all + sitemap pointer" shape.
- <link rel="sitemap"> in the layout for browser discoverability.

Generates 37 URLs (1 home + 32 per-dataset + datasets/methods/models
indexes + about) on the current empty-results state. The shard count
will grow as runs land via submit_run.py.

Stacked on chore/nav-and-sitemap-stacked (PR #14).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
User feedback: Dashboard and Leaderboard links should open in the
current tab, not a new one. The nav links were already clean (PR
#14 work in this stack), but two more stragglers were forcing _blank:

- Footer (Dashboard, GitHub, Docs, Paper) — flat link strip with
  target=_blank on every entry. Removed.
- Leaderboard EmptyState's "How to submit a result →" CTA pointing
  at the contributor guide on RTD. Removed _blank for consistency
  with the rest of the leaderboard's links.

Remaining target=_blank instances (intentionally kept) are on
external research references: arXiv paper links on /methods, /cite,
and /about; GitHub source-file links on /about and /reproducibility;
RTD docs link on /install. These are research-citation conventions
where readers expect parallel-tab reading. Happy to flip globally if
that's the actual preference — just say.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@radinhamidi radinhamidi merged commit 85d8ece into main Apr 30, 2026
3 checks passed
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