refactor(blog): 발행 정책과 MDX 토큰 정렬 - #118
Conversation
공개 전 콘텐츠 리뷰 결과를 반영해 제목과 검토 메모를 갱신했습니다.
목록, static params, 상세 조회가 하나의 visibility 정책을 공유하도록 모듈을 추출했습니다. private 기본값과 preview 동작을 검증하고 ADR로 경계를 기록했습니다.
글 상세 헤더와 MDX 본문 표면을 semantic color와 radius token으로 통일했습니다. 토큰 적용을 회귀 테스트로 고정했습니다.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
공개 Tech 글의 리뷰 하한과 featured 자격을 policy 모듈의 실행 기준으로 통합했습니다. 글별 큐레이션 데이터는 meta.json에 유지하고 ADR로 경계를 기록했습니다.
There was a problem hiding this comment.
💡 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".
| @@ -0,0 +1,76 @@ | |||
| import type { FeedData, QualityReview } from '@/blog/model/types'; | |||
|
|
|||
| export const PUBLICATION_POLICY = { | |||
There was a problem hiding this comment.
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 검증·요약의 기준 불일치를 방지했습니다.
* 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 검증·요약의 기준 불일치를 방지했습니다.
변경 사항
blog/services/policy.ts가 visibility와 공개·featured 자격 helper를 제공합니다.blog/services/policy.json을 앱과 Node 기반content:audit가 함께 읽는 발행 기준 원본으로 뒀습니다.meta.json에 두어 큐레이션 데이터를 중복하지 않았습니다.이유
공개 범위 판단은 목록·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.tsnpm run content:auditnpm run verify:docsnpm run build