Skip to content

feat(pages): add contact link to website footer - #1975

Merged
lizhengfeng101 merged 1 commit into
mainfrom
feat/website-contact-button
Nov 17, 2026
Merged

lizhengfeng101 merged 1 commit into
mainfrom
feat/website-contact-button

Conversation

@lizhengfeng101

Copy link
Copy Markdown
Contributor

Summary

Validation

  • make check
  • make test and make build (project-local temporary directories with a Git discovery ceiling)
  • npm --prefix pages test (65 tests passed)
  • npm --prefix pages run lint (two existing hook-dependency warnings)
  • npm --prefix pages run typecheck
  • npm --prefix pages run build (asset-size warnings)
  • npm --prefix pages run size (97.17 kB compressed, below the 150 kB limit)
  • Production smoke checks for /, /docs/contributing, /docs/quickstart, /features, and /404.html
  • ocr review --audience agent --background "..." (no critical, high, or medium findings; two low-severity style/maintainability suggestions)

AI Assistance

OpenAI Codex (gpt-6-astra) was used to implement the change and run checks. OpenCodeReview (gpt-6-astra) was used for pre-commit review.

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

🔍 OpenCodeReview found 2 issue(s) in this PR.

  • ✅ Successfully posted inline: 2 comment(s)

<div className="footer-actions">
<a
className="footer-action"
href="https://github.com/lizhengfeng101"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maintainability · medium
The GitHub profile URL https://github.com/lizhengfeng101 is hardcoded directly in the component. Per project conventions, business-related hardcoded strings (especially URLs) should be avoided. Consider moving this URL to a configuration constant or an environment variable so it can be updated without modifying component code.

<div className="footer-actions">
<a
className="footer-action"
href="https://github.com/lizhengfeng101"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maintainability · medium
This hardcoded personal GitHub profile URL should be extracted to a constant or configuration value (e.g., a CONTACT_URL constant at the top of the file, or a site config module). While the project repo URL (https://github.com/alibaba/open-code-review) follows a similar inline pattern elsewhere, a personal profile link is more likely to change (e.g., maintainer turnover) and embedding it directly in component JSX makes future updates harder to locate and maintain.

Additionally, consider whether this should link to the project's GitHub Discussions/Issues page instead of a personal profile, which would be more appropriate for an open-source project footer.

@MuoDoo MuoDoo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm

@lizhengfeng101
lizhengfeng101 merged commit ed65815 into main Nov 17, 2026
14 checks passed
@lizhengfeng101
lizhengfeng101 deleted the feat/website-contact-button branch November 17, 2026 11:18
@wu21-web

Copy link
Copy Markdown
Contributor

You'd better link your work email or social media accounts to your Github profile, so consumers know how to reach out to you.

@lizhengfeng101

Copy link
Copy Markdown
Contributor Author

You'd better link your work email or social media accounts to your Github profile, so consumers know how to reach out to you.

Excellent suggestion!

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.

3 participants