feat(supporters): 승인 UI·입력 반영·워커 — §7-5 ClinicInputsPanel + supporter_builds/inputs 마이그레이션 + apply_inputs, §12-2 상단 고지·개설자 승인·색인 빌드 필터, §7-6 워커 E2E(뷰성형외과 URL → 5편 → 게이트 0오류)
- 게이트: DISCLOSURE_TOP_MISSING, APPROVED_*, UNAPPROVED_IN_INDEXABLE_BUILD, PRESS_VOICE 규칙화, 픽스처 추가 (16/16) - 생성기: --site 옵션, 병원 확인 답변(clinicAnswers) 근거 [A] - default_briefs.mjs 첫 배치 자동 기획, workers/supporters-build/run.mjs - 랜딩: SAMPLE REPORT 라벨 "실제 사례"로 (haewon 지시) - v2 §11-6·§11-7 기록, E2E 리포트 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
64a3bce9a3
commit
7e515b70ae
56 files changed
+2530
-41
No files matched your search
@@ -2,13 +2,13 @@
|
||||
import { getCollection } from 'astro:content';
|
||||
import Base from '../../layouts/Base.astro';
|
||||
import PostCard from '../../components/PostCard.astro';
|
||||
import { authors, personSchema } from '../../lib';
|
||||
import { authors, personSchema, isPublishable } from '../../lib';
|
||||
export async function getStaticPaths() {
|
||||
return Object.keys(authors.supporters).map((id) => ({ params: { id } }));
|
||||
}
|
||||
const { id } = Astro.params;
|
||||
const a = (authors.supporters as Record<string, any>)[id!];
|
||||
const posts = (await getCollection('posts')).filter((p) => p.data.author === id);
|
||||
const posts = (await getCollection('posts')).filter(isPublishable).filter((p) => p.data.author === id);
|
||||
const site = Astro.site!.toString().replace(/\/$/, '');
|
||||
---
|
||||
<Base title={`${a.name} · 작성 글`} description={a.bio} jsonLd={personSchema(id!, site)}>
|
||||
|
||||
@@ -5,8 +5,8 @@ import PostCard from '../components/PostCard.astro';
|
||||
import FactBlock from '../components/FactBlock.astro';
|
||||
import VideoLite from '../components/VideoLite.astro';
|
||||
import Gallery from '../components/Gallery.astro';
|
||||
import { SITE_NAME, fact, site as S, clinicSchema, surface, v, has, PENDING } from '../lib';
|
||||
const posts = (await getCollection('posts')).sort((a, b) => b.data.dateModified.localeCompare(a.data.dateModified));
|
||||
import { SITE_NAME, fact, site as S, clinicSchema, surface, v, has, PENDING, isPublishable } from '../lib';
|
||||
const posts = (await getCollection('posts')).filter(isPublishable).sort((a, b) => b.data.dateModified.localeCompare(a.data.dateModified));
|
||||
const site = Astro.site!.toString().replace(/\/$/, '');
|
||||
const f = fact as Record<string, any>;
|
||||
const clinic = v(f.shortName, '병원');
|
||||
|
||||
@@ -11,10 +11,11 @@ import Sources from '../../components/Sources.astro';
|
||||
import History from '../../components/History.astro';
|
||||
import Disclosure from '../../components/Disclosure.astro';
|
||||
import FactBlock from '../../components/FactBlock.astro';
|
||||
import { CATEGORY_LABELS, SITE_NAME, clinicSchema, personSchema, physicianSchema, physician, supporter, fact, surface } from '../../lib';
|
||||
import DisclosureTop from '../../components/DisclosureTop.astro';
|
||||
import { CATEGORY_LABELS, SITE_NAME, clinicSchema, personSchema, physicianSchema, physician, supporter, fact, surface, isPublishable } from '../../lib';
|
||||
|
||||
export async function getStaticPaths() {
|
||||
const posts = await getCollection('posts');
|
||||
const posts = (await getCollection('posts')).filter(isPublishable);
|
||||
return posts.map((post) => ({ params: { id: post.id }, props: { post } }));
|
||||
}
|
||||
const { post } = Astro.props;
|
||||
@@ -60,10 +61,12 @@ if (d.faq.length) graph.push({ '@type': 'FAQPage', '@id': `${url}#faq`, mainEnti
|
||||
<span>작성 {supporter(d.author).name}</span>
|
||||
{reviewer && <span>{d.reviewStatus === 'reviewed' ? '의학 검토' : '설명'} {reviewer.name} {reviewer.title.split(' · ')[0]}{d.reviewStatus === 'reviewed' && d.reviewedAt ? ` (${d.reviewedAt})` : ''}</span>}
|
||||
{d.reviewStatus !== 'reviewed' && <span>의학 검토 대기</span>}
|
||||
{d.approvedAt && <span>게시 승인 {d.approvedBy ?? ''} ({d.approvedAt})</span>}
|
||||
<span>발행 {d.datePublished}</span>
|
||||
<span>갱신 {d.dateModified}</span>
|
||||
</div>
|
||||
</header>
|
||||
<DisclosureTop />
|
||||
<Summary items={d.summary} />
|
||||
{d.hero && (
|
||||
<figure class="figure">
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
import { getCollection } from 'astro:content';
|
||||
import Base from '../../layouts/Base.astro';
|
||||
import PostCard from '../../components/PostCard.astro';
|
||||
import { CATEGORY_LABELS, SITE_NAME, fact, v } from '../../lib';
|
||||
const posts = (await getCollection('posts')).sort((a, b) => b.data.dateModified.localeCompare(a.data.dateModified));
|
||||
import { CATEGORY_LABELS, SITE_NAME, fact, v, isPublishable } from '../../lib';
|
||||
const posts = (await getCollection('posts')).filter(isPublishable).sort((a, b) => b.data.dateModified.localeCompare(a.data.dateModified));
|
||||
const cats = Object.keys(CATEGORY_LABELS);
|
||||
const site = Astro.site!.toString().replace(/\/$/, '');
|
||||
const ld = { '@type': 'CollectionPage', '@id': `${site}/posts#page`, name: '전체 글', url: `${site}/posts`, inLanguage: 'ko', publisher: { '@type': 'Organization', name: SITE_NAME, url: site }, hasPart: posts.map((p) => ({ '@type': 'Article', headline: p.data.title, url: `${site}/posts/${p.id}`, dateModified: p.data.dateModified })) };
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
import type { APIRoute } from 'astro';
|
||||
import { isPublishable } from '../lib';
|
||||
import { getCollection } from 'astro:content';
|
||||
import authors from '../data/authors.json';
|
||||
export const GET: APIRoute = async ({ site }) => {
|
||||
const base = site!.toString().replace(/\/$/, '');
|
||||
const posts = await getCollection('posts');
|
||||
const posts = (await getCollection('posts')).filter(isPublishable);
|
||||
const today = new Date().toISOString().slice(0, 10);
|
||||
const urls = [
|
||||
{ loc: `${base}/`, lastmod: today },
|
||||
|
||||
Reference in new issue
Block a user