Skip to content

Refactor blog tiles update script to enhance library age calculation.#8065

Merged
nurul3101 merged 1 commit into
mainfrom
blog-library-age-updatedat
Jul 13, 2026
Merged

Refactor blog tiles update script to enhance library age calculation.#8065
nurul3101 merged 1 commit into
mainfrom
blog-library-age-updatedat

Conversation

@nurul3101

@nurul3101 nurul3101 commented Jul 13, 2026

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Bug Fixes
    • Improved the Blog SEO & Performance dashboard’s library-age reporting.
    • Library age now reflects the most recent update date when a post has been updated, providing more accurate “younger than 12 months” and “older than 12 months” counts.

@nurul3101 nurul3101 self-assigned this Jul 13, 2026
@vercel

vercel Bot commented Jul 13, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview, Comment Jul 13, 2026 9:59am
docs Ready Ready Preview, Comment Jul 13, 2026 9:59am
eclipse Ready Ready Preview, Comment Jul 13, 2026 9:59am
site Ready Ready Preview, Comment Jul 13, 2026 9:59am

Request Review

@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 5cb53628-fbfa-42ca-a58c-fb92dccefc01

📥 Commits

Reviewing files that changed from the base of the PR and between c1d67b6 and d329239.

📒 Files selected for processing (1)
  • apps/blog/scripts/update-posthog-blog-tiles.mjs

Walkthrough

Changes

Library-age tile update

Layer / File(s) Summary
Per-post age pair query
apps/blog/scripts/update-posthog-blog-tiles.mjs
Tile documentation and HogQL generation now use each post’s publish month and later updatedAt month, when available, to classify library age.
Tile update integration
apps/blog/scripts/update-posthog-blog-tiles.mjs
Dry-run output and the production insight patch now generate the library-age query from per-post age pairs.

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

Possibly related PRs

  • prisma/web#7978: Introduces the related library-age tile query and pair logic.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the main change: refactoring the blog tiles script to improve the library-age calculation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

@argos-ci

argos-ci Bot commented Jul 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected - Jul 13, 2026, 10:07 AM

@nurul3101 nurul3101 merged commit d706f6a into main Jul 13, 2026
18 of 20 checks passed
@nurul3101 nurul3101 deleted the blog-library-age-updatedat branch July 13, 2026 10:05
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.

2 participants