Skip to content

fix: use HHS image for contact page link preview - #112

Open
dogancanbakir wants to merge 1 commit into
mainfrom
fix/109-contact-og-image
Open

dogancanbakir wants to merge 1 commit into
mainfrom
fix/109-contact-og-image

Conversation

@dogancanbakir

@dogancanbakir dogancanbakir commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Fixes #109

The contact page passed a leftover Hack Club cloud image to <Meta>. It now uses the HHS flag (the default in @happyhackingspace/meta 0.0.3; the site still pins 0.0.2, which has no default image, so the prop is needed).

pages/philosophy.js has the same leftover image; left for a separate change.


Summary by CodeRabbit

  • Bug Fixes
    • Updated the Contact page’s social sharing preview to use its standalone flag image. Shared links will now display this image instead of the previous social photo.

@vercel

vercel Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
site Error Error Nov 1, 2026 4:49pm UTC

@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2871d07d-33d2-4dd4-8421-b0d4c9e8278c
Commits

Reviewing files that changed from the base of the PR and between 7ddb0ce and f20ba45.

Files selected for processing: 1
  • pages/contact.js

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The Contact page metadata image URL now points to the Happy Hacking Space standalone flag asset.

Changes

Contact page preview

Layer / File(s) Summary
Update metadata image
pages/contact.js
The Contact page metadata image URL now points to the Happy Hacking Space standalone flag asset.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix · Severity of issue fixed: Low

Merge Risk: Minimal · up to f20ba

The contact page now uses the intended Happy Hacking Space flag image and is ready to merge.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: using the HHS image for the contact page link preview.
Linked Issues check Passed Issue #109 requires a replacement image for the contact page link preview. pages/contact.js changes the Meta image prop from the leftover Hack Club cloud image to `https://assets.happyhacking.sp…
Out of Scope Changes check Passed The reviewed change contains one metadata-image replacement in pages/contact.js. The change is directly related to issue #109. No unrelated change is present. The separate pages/philosophy.js imag…
Full details: Linked Issues check

Explanation

Issue #109 requires a replacement image for the contact page link preview. pages/contact.js changes the Meta image prop from the leftover Hack Club cloud image to https://assets.happyhacking.space/flag-standalone.png. This implements the requested organization-owned image. No additional coding or automated-test requirement is stated in issue #109.

Full details: Out of Scope Changes check

Explanation

The reviewed change contains one metadata-image replacement in pages/contact.js. The change is directly related to issue #109. No unrelated change is present. The separate pages/philosophy.js image remains outside this pull request, as stated in the description.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 1 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

pages/contact.js

Oops! Something went wrong! :(

ESLint: 10.0.1

TypeError [ERR_IMPORT_ATTRIBUTE_MISSING]: Module "file:///.eslintrc.json?mtime=1793551664507" needs an import attribute of "type: json"
at validateAttributes (node:internal/modules/esm/assert:110:15)
at defaultLoadSync (node:internal/modules/esm/load:163:3)
at #loadAndMaybeBlockOnLoaderThread (node:internal/modules/esm/loader:806:12)
at #loadSync (node:internal/modules/esm/loader:838:53)
at ModuleLoader.load (node:internal/modules/esm/loader:787:26)
at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:498:31)
at #getOrCreateModuleJobAfterResolve (node:internal/modules/esm/loader:564:36)
at afterResolve (node:internal/modules/esm/loader:611:52)
at ModuleLoader.getOrCreateModuleJob (node:internal/modules/esm/loader:617:12)
at node:internal/modules/esm/loader:636:32

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.

Share

A rabbit hops by the flag so bright
The preview now shows it just right
One small link has changed its view
A happy hello shines through
I nibble clover, pleased to see
Our flag greet visitors happily

dogancanbakir commented Nov 1, 2026 •

Copy link
Copy Markdown
Member Author

CI note: both red checks are not from this change (one string in pages/contact.js).

  • Lint: fails on main too (next lint rejects the old ESLint options). [WIP] Fix failing GitHub Actions job lint #107 is the open attempt to fix it.
  • Vercel: build: update Browserslist db #111 failed the same way today; main last deployed fine on Oct 17. A local next build dies in getAllOnboardProjects (pages/api/onboard/p/index.js): it calls res.forEach on whatever hackclub/onboard returns, so any non-array GitHub response (404, abuse limit, other error) breaks the build. I could not read the Vercel logs to confirm that is the same cause there. If it is, an Array.isArray(res) guard in a separate PR fixes it.

This branch had an error being deployed

1 failed deployment
Preview — f20ba45b Deployed Nov 1, 2026 by vercel[bot]
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.

İletişim sayfasının link önizleme fotoğrafı yanlış

1 participant