chore(spec): 归档 blog-5l——三任务收敛(预览一致性/排版提醒/瞬间置顶隐藏)

Spec: 2026-11-05_blog-5l-admin-preview-moments

Co-authored-by: GLM-5.3
This commit is contained in:
wait4xandGLM-5.3 committed 2026-11-05 10:03:34 +08:00
1 parent c5889f960b
commit b99e6e744b
17 files changed
+406 -17

No files matched your search

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
# task_0003 瞬间置顶/隐藏:schema/排序过滤/后台开关/徽标/E2E
set -euo pipefail
cd "$(git rev-parse --show-toplevel)"
export PATH="$HOME/.local/node/bin:$PATH"
grep -q "pinned: z.boolean().optional()" src/content.config.ts
grep -q "hidden" src/components/pages/MomentsPage.astro
grep -q "name: pinned, widget: boolean" public/admin/config.yml
grep -q "name: hidden, widget: boolean" public/admin/config.yml
pnpm astro build >/dev/null 2>&1
grep -q 'class="pin"' dist/moments/index.html
nohup python3 scripts/build-perf/gz-server.py 18925 "$PWD/dist" >/tmp/gz-5l.log 2>&1 &
SRV=$!
sleep 2
trap 'kill $SRV 2>/dev/null || true' EXIT
E2E_BASE=http://127.0.0.1:18925 node tests/e2e.mjs 2>&1 | grep -q "59/59 PASS"
echo "verify_t3 OK"