Skip to content

feat(ads): activate AdSense on suburb detail page - #172

Merged
fatblaine merged 13 commits into
devfrom
feat/adsense
Aug 13, 2026
Merged

fatblaine merged 13 commits into
devfrom
feat/adsense

Conversation

@fatblaine

@fatblaine fatblaine commented Aug 13, 2026 •

Copy link
Copy Markdown
Owner

What

Merges the AdSense integration into dev. The two ad-related changes:

  • feat: add dormant AdSlot component and unfilled-slot CSS — the dormant AdSlot.tsx plus the unfilled-slot collapse CSS.
  • feat(ads): place first adsense unit on suburb detail page — now that the account is approved, wire AdSlot into SuburbDetailPage (slot 8314950736), placed at the end of the card list before the Footer, key={urlSalCode} so it refreshes when navigating between suburbs. Auto ads left off.

The branch also carries the merge/release commits picked up while syncing with main, so merging this brings dev up to the latest release.

Why

The AdSense account is approved ("Getting ready", ads.txt Authorized) and a first Display ad unit was created, so the pre-staged but dormant ad slot can finally go live and start earning impressions.

How to test

  1. cd frontend && npx tsc --noEmit — type-checks clean.
  2. npm run dev, open any suburb detail page and scroll to the bottom: an "Advertisement" slot appears above the Footer. (Locally / pre-serving it may rendee empty slot collapses so there's no deadspace.)
  3. Navigate from one suburb to another and confirm the slot remounts/refreshes (key={urlSalCode}).
  4. Visit with an ad blocker enabled and conno empty gap.

Summary by CodeRabbit

  • New Features

    • Added responsive advertising placement to suburb detail pages.
    • Unfilled ad spaces are automatically hidden to reduce unnecessary blank areas.
  • Documentation

    • Added a changelog covering releases 1.1.0 and 1.2.0, including key features, improvements, fixes, and documentation updates.
  • Release

    • Updated the root package version to 1.2.0.

fatblaine and others added 13 commits August 4, 2026 11:03
chore: enable repo automation (CodeRabbit + release-please)
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…--components--suburblens

chore(main): release suburblens 1.1.0
feat: Add a reusable site footer and mount it across the main pages
feat: AdSense readiness — content hardening, verification & privacy disclosure
Stage the AdSense ad-unit code ahead of approval so placement is a
one-liner once real data-ad-slot IDs exist (adsense-plan §3.5). Not wired
into any page yet.

AdSlot renders one <ins> (client ca-pub-5982385876517812) in a Nocturne
card with an Advertisement label. A pushed ref keeps adsbygoogle.push()
idempotent under StrictMode; callers pass a route-changing key to remount.
index.css collapses unfilled/blocked slots so they leave no gap.
feat + refactor: Promote dev to main: suburb discovery + query/error/a11y cleanup
…--components--suburblens

chore(main): release suburblens 1.2.0
Wire the previously dormant AdSlot into SuburbDetailPage now that the
AdSense account is approved and a real Display ad unit (slot 8314950736)
exists. One non-intrusive slot at the end of the stacked card list,
keyed to urlSalCode so it refreshes when navigating between suburbs.
Auto ads left off.
@fatblaine
fatblaine requested a lite review from Copilot August 13, 2026 07:11
@fatblaine fatblaine self-assigned this Aug 13, 2026
@fatblaine fatblaine added the enhancement New feature or request label Aug 13, 2026

Copilot AI left a comment

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Aug 13, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 55811b11-90d8-47cc-9998-1622750084c3

📥 Commits

Reviewing files that changed from the base of the PR and between 57bef50 and 48e6423.

📒 Files selected for processing (5)
  • .github/.release-please-manifest.json
  • CHANGELOG.md
  • frontend/src/components/AdSlot.tsx
  • frontend/src/index.css
  • frontend/src/pages/SuburbDetailPage.tsx

📝 Walkthrough

Walkthrough

The change adds a responsive AdSense slot to suburb detail pages. It prevents duplicate ad pushes, hides unfilled slots, updates the release version to 1.2.0, and adds changelog entries for releases 1.2.0 and 1.1.0.

Changes

AdSense release

Layer / File(s) Summary
Suburb detail AdSense flow
frontend/src/components/AdSlot.tsx, frontend/src/pages/SuburbDetailPage.tsx, frontend/src/index.css
The suburb detail page renders slot 8314950736. AdSlot queues one responsive AdSense request per mount and hides unfilled slots.
Release version and changelog
.github/.release-please-manifest.json, CHANGELOG.md
The root package version changes to 1.2.0. The changelog records releases 1.2.0 and 1.1.0.

Estimated code review effort: 2 (Simple) | ~10 minutes

Sequence Diagram(s)

sequenceDiagram
  participant SuburbDetailPage
  participant AdSlot
  participant AdSenseQueue
  participant AdSenseLayout
  SuburbDetailPage->>AdSlot: render slot 8314950736
  AdSlot->>AdSenseQueue: push one ad request
  AdSenseQueue->>AdSenseLayout: populate or mark slot unfilled
  AdSenseLayout->>AdSlot: apply ad status
Loading

Possibly related PRs

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/adsense

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

Comment @coderabbitai help to get the list of available commands.

@fatblaine
fatblaine merged commit 4f60a49 into dev Aug 13, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants