Repository navigation
feat(pages): add contact link to website footer - #1975
Conversation
|
🔍 OpenCodeReview found 2 issue(s) in this PR.
|
| <div className="footer-actions"> | ||
| <a | ||
| className="footer-action" | ||
| href="https://github.com/lizhengfeng101" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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.
|
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! |
Summary
Validation
make checkmake testandmake 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 typechecknpm --prefix pages run build(asset-size warnings)npm --prefix pages run size(97.17 kB compressed, below the 150 kB limit)/,/docs/contributing,/docs/quickstart,/features, and/404.htmlocr 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.