Batch 2 的实现本体。补的是「内容」不是「语法」:`/news` 与 `/insights` 此前各只有 250 字左右的正文。 ① 两篇公开正文 238/313 字 → 914/758 字,全部从既有真源派生(METHODOLOGY 四阶段 / SERVICES 四组 / PRODUCTS 六款 / commitments.ts 响应承诺), **零新增客户案例、零新增效果数字**。 ② 详情页正文由整块 `whitespace-pre-line` 改为小标题 + 段落 (`parseArticleBlocks`,三条判据:单行 + ≤20 字 + 不以句末标点收尾 —— 误判成标题比漏判更糟)。 ③ 正文末尾新增站内公开入口(`NEWS_RELATED_LINKS`)。此前详情页是死胡同, 只有「返回列表」与「预约咨询」。href 由单测**双向**反查:既命中 PRODUCTS/SERVICES 常量,又要求文件系统里 page.tsx 真实存在。 ④ 阅读时长由正文字数实时算出(450 字/分钟),不手写不落库。 ⑤ `/insights` 卡片显式写出「收录于」哪个原生栏目。 **不新增 `/insights/[slug]`** —— 聚合页只能读、不能拥有别的模型的实体, 复制内容会造成 canonical 冲突。 判别性测试:`news-article.test.ts` 11 例 + `news-detail-content-v3.test.tsx` 4 例 (负对照:关掉解析器 ⇒ 3 条转红)+ e2e UJ-04/UJ-10 三条新断言 (负对照:注回整块渲染后 UJ-04 转红)。
57 lines
1.4 KiB
TypeScript
57 lines
1.4 KiB
TypeScript
export {
|
||
COMPANY_INFO,
|
||
BRAND_NARRATIVE,
|
||
type BrandPillar,
|
||
TRUST_SIGNALS,
|
||
EARLY_ACCESS,
|
||
HERO_EYEBROW,
|
||
canonicalHeroSubheading,
|
||
NAVIGATION_V2,
|
||
MEGA_DROPDOWN_DATA,
|
||
MEGA_KEYS,
|
||
STANDALONE_GROUP_ID,
|
||
type NavigationItemV2,
|
||
type MegaDropdownItem,
|
||
type MegaDropdownData,
|
||
STATS,
|
||
type StatItem,
|
||
SERVICES,
|
||
PRODUCTS,
|
||
type Product,
|
||
NEWS,
|
||
NEWS_RELATED_LINKS,
|
||
type NewsItem,
|
||
type NewsCategory,
|
||
type NewsRelatedLink,
|
||
type TeamMember,
|
||
METHODOLOGY,
|
||
type MethodologyPhase,
|
||
// 补齐四个交叉引用/主题取值函数 —— 原先根桶没有它们,而子桶 constants/index.ts 有。
|
||
// 后果不是报错而是 `undefined`:`import { getHeroTheme } from '@/lib/constants'`
|
||
// 拿到 undefined,调用时才炸,且没有任何静态检查会拦(命名再导出的白名单漏项正是这种)。
|
||
// 由常量桶一致性守卫钉住(src/lib/constants-barrel.test.ts)。
|
||
getHeroTheme,
|
||
getProductCrossRefs,
|
||
getSolutionCrossRefs,
|
||
getServiceCrossRefs,
|
||
type HeroTheme,
|
||
type CrossReference,
|
||
type MegaDropdownGroup,
|
||
SERVICE_COMMITMENTS,
|
||
INQUIRY_RESPONSE_COMMITMENT,
|
||
FIRST_CONVERSATION_DELIVERY,
|
||
FREE_FIRST_CONSULT,
|
||
CTA_COMMITMENT_LINE,
|
||
type Commitment,
|
||
type CommitmentBasis,
|
||
CTA_LABELS,
|
||
canonicalCtaLabel,
|
||
CONSULT_CTA_ALLOWLIST,
|
||
METRIC_BASES,
|
||
METRIC_BASIS_NOTES,
|
||
resolveMetricBasis,
|
||
weakestBasis,
|
||
FORBIDDEN_PROOF_PHRASES,
|
||
type MetricBasis,
|
||
} from './constants/index';
|