You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: use HHS image for contact page link preview - #112
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.
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.
The contact page now uses the intended Happy Hacking Space flag image and is ready to merge.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Docstring Coverage
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 checks: 4 passed
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title clearly and concisely describes the main change: using the HHS image for the contact page link preview.
Linked Issues check
Issue #109 requires a replacement image for the contact page link preview. pages/contact.js changes the Metaimage prop from the leftover Hack Club cloud image to `https://assets.happyhacking.sp…
Out of Scope Changes check
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 Metaimage 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.
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
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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #109
The contact page passed a leftover Hack Club cloud image to
<Meta>. It now uses the HHS flag (the default in@happyhackingspace/meta0.0.3; the site still pins 0.0.2, which has no default image, so the prop is needed).pages/philosophy.jshas the same leftover image; left for a separate change.Summary by CodeRabbit