feat(download): unify ASF download pages - #33
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced 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 |
|
@codecov-ai-reviewer review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
🟡 Changes recommended
The added tests do not verify rendered download content or ensure the new routes return actual pages instead of 404 responses.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
This PR centralizes ASF download metadata and renders consistent bilingual release tables.
Changes:
- Adds structured ASF release data and shared Hugo rendering.
- Replaces duplicated English/Chinese artifact tables.
- Adds accessibility routes, styling, translations, and validation tests.
File summaries
| File | Description |
|---|---|
data/downloads/asf.json |
ASF release and artifact metadata |
layouts/_partials/asf-downloads.html |
Shared download table renderer |
layouts/_shortcodes/asf-downloads.html |
Validated shortcode interface |
content/en/docs/download/download.md |
English page integration |
content/cn/docs/download/download.md |
Chinese page integration |
i18n/en.yaml |
English labels |
i18n/zh-CN.yaml |
Chinese labels |
assets/scss/_styles_project.scss |
Download table styling |
scripts/test_download_data.py |
Data and template validation |
tests/e2e/accessibility.spec.js |
Download route accessibility coverage |
Review details
- Files reviewed: 10/10 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| def test_pages_render_from_data_not_hardcoded_tables(self) -> None: | ||
| for page in PAGES: | ||
| text = page.read_text(encoding="utf-8") | ||
| self.assertIn("{{< asf-downloads latest >}}", text, page) | ||
| self.assertIn("{{< asf-downloads archived >}}", text, page) | ||
| self.assertNotIn("closer.lua", text, page) | ||
| self.assertNotIn(".tar.gz", text, page) | ||
| artifact_links = re.findall( | ||
| r"downloads\.apache\.org/hugegraph/\d", text | ||
| ) | ||
| self.assertEqual(artifact_links, [], page) |
| "/docs/download/download/", | ||
| "/cn/docs/download/download/", |
- keep wide ASF tables inside a focusable scrolling region\n- add arrow and home/end keyboard scrolling\n- preserve mobile overflow and no-horizontal-page-scroll checks
Before → after
Before, English and Chinese download pages duplicated release facts. After, both render from one ASF data source with mirror download, official source artifact, ASC signature and SHA512 links; GitHub-generated source archives are explicitly excluded as ASF releases. Historical release facts remain present.
Integration boundary
oink-918at88f210ed0dbe2452a66f364f0438e4b21058a078.81464b68cd698b90cb2cd51a00c50dfe03b7e52d.Current validation
Build and deploy sitecurrent head run35275466795has prepare, all five builds, aggregate and visual green; Chromium E2E remains in progress.The integrated candidate has also passed the complete five-version production/staging aggregate, 49/49 current Chromium checks, 24 staging surface screenshots, and three independent review/re-review rounds. Those are integration evidence and will be repeated or reconciled after this PR's current CI completes.
The final Apache delivery description will include reviewed EN/CN desktop/mobile light/dark screenshots for version overflow, dynamic sidebar, Community, Download, and real Ask AI staging states. Screenshot evidence is kept separate from product handoff files.