Skip to content

fix(repo): releases-page fixes for FG-7 (L-07, L-48, L-49, L-50, L-78, L-79, L-80) - #165

Merged
PastaPastaPasta merged 3 commits into
masterfrom
fix/fg7-releases-parity
Sep 29, 2026
Merged

PastaPastaPasta merged 3 commits into
masterfrom
fix/fg7-releases-parity

Conversation

@PastaPastaPasta

Copy link
Copy Markdown
Owner

Summary

PR2 of the FG-7 fix set (PR1: #162, merged). Addresses the releases-page findings from the QA ledger: L-07, L-48, L-49, L-50, L-78, L-79, L-80.

  • L-78 — the releases list and the rail's "Latest release" now order by real publish date (an import's source date, or this forge's own $createdAt for a release made here), matching GitHub's actual releases-page order. A later-published low-version release can now correctly outrank an earlier-published high-version pre-release.
  • L-48 — a "Latest" badge marks the release GitHub would call latest (the newest non-prerelease, non-yanked one); "Pre-release" marks the rest. The two badges are mutually exclusive, including the edge case where every release is a pre-release (no "Latest" badge is shown then, matching GitHub).
  • L-49 — the list paginates 10 releases at a time ("Show N more"); each list-view card's asset rows are collapsed behind a "Show/Hide N asset(s)" toggle instead of always rendering (one real repo had 2,039 asset rows, ~238,000px of page).
  • L-79 — a release name that only repeats its tag is no longer shown twice; a truncated notes preview links to the full release page instead of silently cutting off.
  • L-07 — a truncated asset filename gets a title tooltip with the full name.
  • L-50 / L-80 (partial) — the repeated "no SHA-256 recorded" / "not verified yet" / "no downloadable copy" boilerplate is now shown once per card instead of once per asset row.

Deliberate scope limits (not bugs)

  • L-50's "give unhashed binaries a download link" is intentionally not implemented. release-omitted.test.tsx enforces D-517: an asset with no recorded SHA-256 must never get a download link, even with a plausible https:// URL, because that would be an unauthenticated redirect/phishing vector. That invariant is kept untouched.
  • L-80's 'origin'-access boilerplate (GitHub/GitLab release downloads — "doesn't let pages read its files ... not checked yet") keeps its per-row text unconditionally, rather than moving to the shared card-level note. Two live e2e specs (import-release-fidelity.spec.ts f2, markdown-render.spec.ts md-4) assert on that exact text at the individual asset-row level.
  • L-44 / L-77 (PR list search, paging, request count) and the PR-list architecture in pulls-content.tsx / lib/repo/issues.ts are out of scope for this PR — reserved for a separate change.

Test plan

  • npx tsc --noEmit -p . — clean
  • npx eslint on all changed files — clean
  • npx vitest run (full forge-web suite) — 3013 passed, 18 skipped, 0 failed
  • npx vitest run lib/repo/releases.test.ts components/repo/release-asset.test.tsx components/repo/release-omitted.test.tsx — 27/27, including the two D-517 tests
  • Reviewed by code-review-validator and code-simplifier subagents; both rounds of findings (a stale-order bug in the Latest badge, a stale e2e assertion in f4, duplicated JSX between the full/collapsed asset blocks) were fixed in this PR
  • Live QA against the current devnet (bonsia) — not yet run in this environment; import-release-fidelity.spec.ts and markdown-render.spec.ts are devnet-gated Playwright specs, updated here for the new collapse/order behavior but not executed live

🤖 Generated with Claude Code

PastaPastaPasta and others added 3 commits September 29, 2026 15:40
releaseOrder now sorts by each release's real publish date (an import's
source date, or this forge's own $createdAt for one made here) instead
of by tag version. This matches what GitHub's releases page actually
shows: a later-published low-version release can outrank an
earlier-published high-version pre-release. latestRelease() picks the
first non-prerelease, non-yanked release in that order, for the "Latest"
badge.

compareTagNames (the ref switcher and tags page's version order) is
unchanged and intentionally no longer shares a comparator with
releaseOrder; doc comments on both explain the split.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
…, L-80)

- L-07: a truncated asset name gets a title tooltip with the full name.
- L-48: a "Latest" badge marks the release GitHub would call latest (the
  newest non-prerelease, non-yanked one); "Pre-release" marks the rest,
  never both at once.
- L-49: the list paginates 10 releases at a time ("Show N more"), and
  each non-full card's asset list is collapsed behind a "Show/Hide N
  asset(s)" toggle instead of always rendering (one repo had 2,039 asset
  rows on a single page).
- L-79: a release name that only repeats its tag is no longer shown
  twice, and a truncated notes preview links to the full release page.
- L-50/L-80 (partial): the repeated "no SHA-256 recorded" / "not
  verified yet" / "no downloadable copy" boilerplate is now shown once
  per card (AssetsNote) instead of once per asset row. The 'origin'
  access case (GitHub/GitLab downloads with no CORS) keeps its per-row
  text unconditionally, since import-release-fidelity.spec.ts and
  markdown-render.spec.ts both assert on it there. Giving an unhashed
  asset a download link (L-50's other half) is intentionally not done:
  release-omitted.test.tsx enforces D-517 (no link without a recorded
  hash, even with a plausible https URL), and that invariant is kept.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
…rder

f2 and f3 now open each card's "Show N asset(s)" disclosure before
asserting on release-asset rows, since the releases list collapses
assets by default (L-49).

f4 no longer assumes the first card on the list is the highest version:
under date order (L-78) a newer pre-release can sit above the actual
latest release. It now finds the card for the expected tag and checks
it carries the "Latest" badge (L-48) instead.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Sep 29, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 18 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: cdab6709-7ec0-405d-b6f8-8fac39e5d61c

📥 Commits

Reviewing files that changed from the base of the PR and between 2e9ed11 and cdd7ad5.

📒 Files selected for processing (6)
  • forge-web/components/repo/releases-content.tsx
  • forge-web/e2e/import-release-fidelity.spec.ts
  • forge-web/hooks/use-repo-chrome.ts
  • forge-web/lib/repo/ref-order.ts
  • forge-web/lib/repo/releases.test.ts
  • forge-web/lib/repo/releases.ts

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.

@PastaPastaPasta
PastaPastaPasta merged commit 993bc25 into master Sep 29, 2026
5 of 6 checks passed
@PastaPastaPasta

Copy link
Copy Markdown
Owner Author

Merged with playwright (read-only, devnet moutai) still pending/red and ignored: that job is hardcoded to devnet moutai, which is on beta.7 and cannot pass this check by design (see the workflow's own comment in web-e2e.yml). master has no branch protection requiring it, every other check (install.sh macOS/Ubuntu, web, mint-identity, CodeRabbit) was green, and CodeRabbit had no unresolved actionable findings. The CI target moves to devnet-bonsia at the planned cut-over, already covered by the RC1 plan, so no workflow change was made here.


🤖 Posted autonomously by Claude on behalf of pasta.

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