Skip to content

feat: add AI Coding Assistants Policy to footer#8807

Open
MattIPv4 wants to merge 3 commits intomainfrom
MattIPv4/footer-ai-policy
Open

feat: add AI Coding Assistants Policy to footer#8807
MattIPv4 wants to merge 3 commits intomainfrom
MattIPv4/footer-ai-policy

Conversation

@MattIPv4
Copy link
Copy Markdown
Member

@MattIPv4 MattIPv4 commented Apr 7, 2026

Description

Adds the new AI Coding Assistants Policy link to the footer, and also updates the ordering of the links in the footer based on the foundation's recommendation. The security policy is not in the foundation's regular set of links, but I have also updated the ordering of that to match the others, alphabetical. Also, this updates the code of conduct link to use the hostname redirect for consistency, matching the foundation's recommendation.

Also addresses an issue that Copilot spotted -- we include some external links in the sitemap, the ones from the footer, but these were being incorrectly prefixed with https://nodejs.org/en.

Validation

Footer links match https://github.com/openjs-foundation/artwork#copyright-notices-for-project-website-footers

Sitemap contains valid external URLs for the footer links.

Related Issues

cc openjs-foundation/artwork#27

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run pnpm format to ensure the code follows the style guide.
  • I have run pnpm test to check if all tests are passing.
  • I have run pnpm build to check if the website builds without errors.
  • I've covered new added functionality with unit tests if necessary.

Copilot AI review requested due to automatic review settings April 7, 2026 11:22
@MattIPv4 MattIPv4 requested a review from a team as a code owner April 7, 2026 11:22
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 7, 2026

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

Project Deployment Actions Updated (UTC)
nodejs-org Ready Ready Preview Apr 7, 2026 11:33am

Request Review

@cursor
Copy link
Copy Markdown

cursor bot commented Apr 7, 2026

PR Summary

Low Risk
Low risk: primarily updates external/legal link configuration and a small sitemap URL construction fix to correctly handle absolute URLs.

Overview
Adds the OpenJS AI Coding Assistants Policy to footer link configuration and English translations, and reorders the footer legal links (including switching Code of Conduct to the canonical code-of-conduct.openjsf.org URL).

Fixes sitemap.ts URL generation by introducing getFullPath so sitemap entries correctly handle absolute external URLs from EXTERNAL_LINKS_SITEMAP instead of incorrectly prefixing them with the site base path/locale.

Reviewed by Cursor Bugbot for commit 91f3adf. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

👋 Codeowner Review Request

The following codeowners have been identified for the changed files:

Team reviewers: @nodejs/nodejs-website

Please review the changes when you have a chance. Thank you! 🙏

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.20%. Comparing base (3036b2d) to head (91f3adf).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8807      +/-   ##
==========================================
- Coverage   74.23%   74.20%   -0.04%     
==========================================
  Files         105      105              
  Lines        8870     8875       +5     
  Branches      328      329       +1     
==========================================
+ Hits         6585     6586       +1     
- Misses       2283     2287       +4     
  Partials        2        2              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MattIPv4 MattIPv4 force-pushed the MattIPv4/footer-ai-policy branch from 67f945f to 4af1d55 Compare April 7, 2026 11:24
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

📦 Build Size Comparison

Summary

Metric Value
Old Total Size 3.51 MB
New Total Size 3.51 MB
Delta 101.00 B (0.00%)

Changes

➕ Added Assets (2)
Name Size
.next/static/chunks/f5803436cd53595e.js 197.63 KB
.next/static/chunks/e25c5701994ee3e6.js 136.38 KB
➖ Removed Assets (2)
Name Size
.next/static/chunks/43f39236db1faacf.js 197.56 KB
.next/static/chunks/0b71b94e5bc381b8.js 136.35 KB

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the site footer’s legal/policy links to include the OpenJS Foundation “AI Coding Assistants Policy” and align link ordering with the foundation-recommended set.

Changes:

  • Add the “AI Coding Assistants Policy” footer link label and navigation entry.
  • Update footer link ordering and switch the Code of Conduct URL to the OpenJSF hosted domain.
  • Add the AI policy URL to the external-links list used for sitemap generation.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/i18n/src/locales/en.json Adds the English translation string for the new footer link label.
apps/site/next.constants.mjs Adds the AI policy URL to EXTERNAL_LINKS_SITEMAP.
apps/site/next-env.d.ts Updates the Next-generated route types import path.
apps/site/navigation.json Adds/reorders footer links and updates the Code of Conduct URL.
apps/site/components/withLegal.tsx Includes the new translation key in rich-translation link handling.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MattIPv4 MattIPv4 changed the title feat: Add AI Coding Assistants Policy to footer feat: add AI Coding Assistants Policy to footer Apr 7, 2026
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.

5 participants