Skip to content

refactor(blog): 발행 정책과 MDX 토큰 정렬 - #118

Merged
dev-wooyeon merged 5 commits into
mainfrom
codex/publication-policy-detail-tokens
Jul 22, 2026
Merged

refactor(blog): 발행 정책과 MDX 토큰 정렬#118
dev-wooyeon merged 5 commits into
mainfrom
codex/publication-policy-detail-tokens

Conversation

@dev-wooyeon

@dev-wooyeon dev-wooyeon commented Jul 22, 2026

Copy link
Copy Markdown
Owner

변경 사항

  • 블로그 시스템 구축기 제목·검토 메모를 콘텐츠 리뷰 결과로 갱신했습니다.
  • blog/services/policy.ts가 visibility와 공개·featured 자격 helper를 제공합니다.
  • blog/services/policy.json을 앱과 Node 기반 content:audit가 함께 읽는 발행 기준 원본으로 뒀습니다.
  • 글별 featured 선택은 meta.json에 두어 큐레이션 데이터를 중복하지 않았습니다.
  • 글 상세와 MDX 본문을 semantic color·radius token으로 정렬했습니다.

이유

공개 범위 판단은 목록·static params·상세 경로가 공유해야 합니다. 또한 policy와 audit이 임계값을 따로 가지면 release check가 앱 검증과 다른 결과를 낼 수 있으므로, TypeScript runtime loader 없이 공용 JSON 데이터를 사용합니다.

검증

  • npm run test:unit -- blog/services/policy.test.ts tooling/scripts/posts/audit-post-quality.test.ts
  • npm run content:audit
  • npm run verify:docs
  • npm run build

공개 전 콘텐츠 리뷰 결과를 반영해 제목과 검토 메모를 갱신했습니다.
목록, static params, 상세 조회가 하나의 visibility 정책을 공유하도록 모듈을 추출했습니다.

private 기본값과 preview 동작을 검증하고 ADR로 경계를 기록했습니다.
글 상세 헤더와 MDX 본문 표면을 semantic color와 radius token으로 통일했습니다.

토큰 적용을 회귀 테스트로 고정했습니다.
@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
ark Ready Ready Preview, Comment Jul 22, 2026 6:36am

공개 Tech 글의 리뷰 하한과 featured 자격을 policy 모듈의 실행 기준으로 통합했습니다.

글별 큐레이션 데이터는 meta.json에 유지하고 ADR로 경계를 기록했습니다.
@dev-wooyeon dev-wooyeon changed the title refactor(blog): 공개 정책과 MDX 토큰 정렬 refactor(blog): 발행 정책과 MDX 토큰 정렬 Jul 22, 2026
@dev-wooyeon
dev-wooyeon marked this pull request as ready for review July 22, 2026 06:15

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0f3d8063f5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread blog/services/policy.ts Outdated
@@ -0,0 +1,76 @@
import type { FeedData, QualityReview } from '@/blog/model/types';

export const PUBLICATION_POLICY = {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Share publication thresholds with content audit

This introduces PUBLICATION_POLICY as the threshold owner, but tooling/scripts/posts/audit-post-quality.mjs still hard-codes the same public-Tech and featured limits in evaluatePolicy and the summary output (<= 3, >= 4). If either value changes here, npm run content:audit will keep reporting against stale criteria while the new policy tests and guide use the updated ones, so content/release checks can disagree; the audit should reuse the policy helpers or a shared constants module.

Useful? React with 👍 / 👎.

Node 기반 content audit이 앱 정책과 같은 JSON 기준을 사용하도록 변경했습니다.

공개 Tech와 featured 검증·요약의 기준 불일치를 방지했습니다.
@dev-wooyeon
dev-wooyeon merged commit 79056bd into main Jul 22, 2026
5 checks passed
dev-wooyeon added a commit that referenced this pull request Jul 24, 2026
* docs(blog): 블로그 시스템 구축기 제목 검토 반영

공개 전 콘텐츠 리뷰 결과를 반영해 제목과 검토 메모를 갱신했습니다.

* refactor(blog): 공개 정책 경계 분리

목록, static params, 상세 조회가 하나의 visibility 정책을 공유하도록 모듈을 추출했습니다.

private 기본값과 preview 동작을 검증하고 ADR로 경계를 기록했습니다.

* refactor(blog): 상세 MDX 토큰 정렬

글 상세 헤더와 MDX 본문 표면을 semantic color와 radius token으로 통일했습니다.

토큰 적용을 회귀 테스트로 고정했습니다.

* refactor(blog): 발행 정책 중앙화

공개 Tech 글의 리뷰 하한과 featured 자격을 policy 모듈의 실행 기준으로 통합했습니다.

글별 큐레이션 데이터는 meta.json에 유지하고 ADR로 경계를 기록했습니다.

* fix(content): 감사 정책 기준 공유

Node 기반 content audit이 앱 정책과 같은 JSON 기준을 사용하도록 변경했습니다.

공개 Tech와 featured 검증·요약의 기준 불일치를 방지했습니다.
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.

1 participant