Repository navigation
fix(repo): releases-page fixes for FG-7 (L-07, L-48, L-49, L-50, L-78, L-79, L-80) - #165
Conversation
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]>
|
Warning Review limit reachedNext included review available in 18 minutes. View limit detailsLimit 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. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (6)
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 |
|
Merged with 🤖 Posted autonomously by Claude on behalf of pasta. |
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.
$createdAtfor 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.titletooltip with the full name.Deliberate scope limits (not bugs)
release-omitted.test.tsxenforces D-517: an asset with no recorded SHA-256 must never get a download link, even with a plausiblehttps://URL, because that would be an unauthenticated redirect/phishing vector. That invariant is kept untouched.import-release-fidelity.spec.tsf2,markdown-render.spec.tsmd-4) assert on that exact text at the individual asset-row level.pulls-content.tsx/lib/repo/issues.tsare out of scope for this PR — reserved for a separate change.Test plan
npx tsc --noEmit -p .— cleannpx eslinton all changed files — cleannpx vitest run(full forge-web suite) — 3013 passed, 18 skipped, 0 failednpx 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 testscode-review-validatorandcode-simplifiersubagents; 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 PRimport-release-fidelity.spec.tsandmarkdown-render.spec.tsare devnet-gated Playwright specs, updated here for the new collapse/order behavior but not executed live🤖 Generated with Claude Code