浅念
|
5879552ecb
|
docs(plan): p3 flutter app plan (approved; review fixes applied)
Co-Authored-By: Claude Code <noreply@anthropic.com>
|
2026-09-18 23:30:58 +08:00 |
|
浅念
|
79eb975096
|
docs: p2 acceptance record
P2 Task 12: 验收记录(A09/A10/A14/A21 部分/A26/A27 仿真级 + A25 部分
本地直读证据;D07/D11 初值确认——30min 浏览窗口、2s 推送/5min 对账/
60s 回传建议维持待 P5 实测冻结;13 项偏差登记;P4a/P5 移交清单;回归
门实测统计——全仓 448 测试绿)+ 总纲 P2 行进度注记。
Co-Authored-By: Claude Code <noreply@anthropic.com>
|
2026-09-18 20:17:54 +08:00 |
|
浅念
|
3d6e9ce175
|
feat(ov): ov schema, entry skeleton and compose profile
P2 Task 2 ov 数据层:
- compose ov profile:mysql-ov(mysql:8.4,127.0.0.1:3309,库级
utf8mb4_0900_bin)+ redis-ov(6381),cn 侧默认 up 不受影响
(3307/3308 已被其它本机项目占用,端口决策 3309)
- @photo/db-ov:9 表 schema(albums_ov/photos_ov 副本、sync_inbox/
sync_state 同步账本(水位行同表标志位)、like_batches/album_stats/
visit_sessions/visit_requests 互动域、outbox_stat_events 回传队列);
迁移 20260918060102_init_ov 走固化校对手决流程,information_schema
复核全部业务表/列 utf8mb4_0900_bin(_prisma_migrations 同 cn 先例
保持 unicode_ci)
- generator 独立 output(包内 generated/):pnpm 将两包 @prisma/client
提升为同一 store 实例,默认 .prisma/client 输出会被双 schema 互相
覆盖,ov 客户端独立产出经 src/index.ts 转出口
- ov 入口骨架:main-ov.ts(PORT_OV 默认 8081)+ app-ov.module.ts
(仅管线骨架 + /v1/health,feature modules 后续任务装配);logger
装配选项抽取至 shared/logger-options.ts 供 cn/ov 双入口共用(行为
不变,P1 套件守护)
- test/reset-ov.ts:ov 库 truncate-if-exists 隔离工具(无 MinIO 清理)
- 根脚本:db:generate 双库齐跑,新增 db-ov:migrate/db-ov:generate/dev:ov
Co-Authored-By: Claude Code <noreply@anthropic.com>
|
2026-09-18 14:11:41 +08:00 |
|
浅念
|
a4b95abd4c
|
chore(plan): mysql-ov host port 3309 (yunke-mysql occupies 3307; user decision)
Co-Authored-By: Claude Code <noreply@anthropic.com>
|
2026-09-18 13:51:43 +08:00 |
|
浅念
|
24327c5147
|
feat(contracts): p2 realtime, likes, visits and internal sync contracts
Co-Authored-By: Claude Code <noreply@anthropic.com>
|
2026-09-18 13:34:35 +08:00 |
|
浅念
|
06111e1466
|
docs(plan): p2 implementation plan (approved, both review gaps fixed)
Co-Authored-By: Claude Code <noreply@anthropic.com>
|
2026-09-18 13:19:52 +08:00 |
|
浅念
|
b5145d6860
|
docs: p1b acceptance record
- P1b-验收记录.md: A08 (viewer.spec + journey), A12 partial (viewer
i18n switch/fallback + admin template i18n; data-lang is P4b), R09
(assets.e2e + admin upload + viewer render + journey banner), P1a
final-review 4 items registered (47fb81a, absent from P1a record),
9-row deviation table (ports 5175/5176 + cms conflict disclosure,
staff-wide account lookup, art-design-pro v3.0.2 pin + lint ignore,
no thumbnails in AdminPhoto, session-scoped banner preview,
errorCode/pending_upload omissions, useCursorList, esbuild
onlyBuiltDependencies), P2 handover, per-package test stats
- master roadmap: P1 fully complete (P1a + P1b), tag p1; G1 formally
registered as skipped (no OSS credentials provided)
- P1b plan: all task checkboxes marked with completion notes
Co-Authored-By: Claude Code <noreply@anthropic.com>
|
2026-09-18 12:56:59 +08:00 |
|
浅念
|
62382eca3c
|
docs(plan): p1b implementation plan (approved with advisory fixes)
Co-Authored-By: Claude Code <noreply@anthropic.com>
|
2026-09-18 08:05:06 +08:00 |
|
浅念
|
43de31ffda
|
docs: p1a completion markers in plan and master roadmap
Co-Authored-By: Claude Code <noreply@anthropic.com>
|
2026-09-18 00:14:23 +08:00 |
|
浅念
|
8a09001525
|
docs: p1a acceptance record
Co-Authored-By: Claude Code <noreply@anthropic.com>
|
2026-09-18 00:06:44 +08:00 |
|
浅念
|
368b1d5b47
|
feat(api): argon2 password, idempotent admin seed, api-exception infra
Task 12 + Task 7 quality-review carryovers:
Part A - password hashing & controlled initial admin:
- src/auth/password.ts: hashPassword/verifyPassword over @node-rs/argon2
(napi prebuilt, argon2id default); empty plain rejected at the door
- src/scripts/seed-admin.ts: idempotent admin seed (ADMIN_ACCOUNT/
ADMIN_PASSWORD env, walk-up root .env load); existing account -> skip,
never overwrites the password; no audit_logs (system op, no actor)
- pnpm seed script (build + node dist/scripts/seed-admin.js);
.env.example dev defaults admin/admin-secret-change-me
- tests: test/password.spec.ts (5), test/seed.spec.ts real-DB idempotency (4)
Part B - Task 7 carryovers (all 8):
- ApiException(apiCode, message, httpStatus, details?) recognized first by
the filter; unmapped-status rule: >=500 -> INTERNAL_ERROR + generic
message, <500 -> VALIDATION_FAILED keeping original status (warn-logged)
- 5xx/INTERNAL_ERROR responses forced to generic message (leak fix)
- pino redact adds req.headers.cookie / res.headers.set-cookie
- x-request-id echo capped at 128 chars (fresh UUID beyond, no log)
- LOG_LEVEL validated against pino levels at module wiring -> fail fast
- shared/ constants (API_PREFIX), request-with-id, log-level (+spec)
- jest ts-jest reuses tsconfig.json; unit testMatch includes test/*.spec.ts
- build:watch script (no concurrently dep; dev = build:watch + node --watch)
api: 35 unit + 10 e2e tests green; root lint/typecheck/test green.
Co-Authored-By: Claude Code <noreply@anthropic.com>
|
2026-09-17 20:54:30 +08:00 |
|
浅念
|
a99b8f200b
|
feat(api): album domain schema
Co-Authored-By: Claude Code <noreply@anthropic.com>
|
2026-09-17 20:05:09 +08:00 |
|
浅念
|
7d250ec342
|
feat(api): cn-app skeleton, toolchain, env loading convention
Co-Authored-By: Claude Code <noreply@anthropic.com>
|
2026-09-17 19:14:41 +08:00 |
|
浅念
|
f77ab5ae4b
|
feat(contracts): outbox event contract types
Co-Authored-By: Claude Code <noreply@anthropic.com>
|
2026-09-17 18:18:06 +08:00 |
|
浅念
|
f6448bd006
|
fix(contracts): quality review fixes for p1a contracts
- status enum active|archived -> active|offline (align requirement docs)
- UploadSessionState session-state semantics documented (no failed state)
- maxLength: clientTaskId 128 / filename 255 / cursor 512
- PublicPhoto width/height required (layout placeholders)
- reusable Unauthorized/InternalError responses (hybrid with inline op-specific codes)
- PublicAlbum.translations -> translation (single resolved object)
- contentType enum [jpeg/png/heic] (heic provisional pending G2)
- minLength 1 on title/name; publicToken pattern ^[0-9a-z]{20,32}$
- CursorPageMeta hasMore/nextCursor invariant documented
- public locale: silent fallback to defaultLocale (tech doc section 11)
- plan: upload_sessions state comment aligned; P1b adds management photo list + account lookup endpoints
Co-Authored-By: Claude Code <noreply@anthropic.com>
|
2026-09-17 18:06:54 +08:00 |
|
浅念
|
1dae00eaef
|
feat(contracts): p1a endpoint contracts
Co-Authored-By: Claude Code <noreply@anthropic.com>
|
2026-09-17 17:31:11 +08:00 |
|
浅念
|
9dc530feaf
|
docs(plan): record M0 completion (tasks 1-3, port conflict resolution, quay.io deviation)
Co-Authored-By: Claude Code <noreply@anthropic.com>
|
2026-09-17 16:50:43 +08:00 |
|
浅念
|
538fdd46dd
|
chore(infra): cn-side mysql/redis/minio compose
Co-Authored-By: Claude Code <noreply@anthropic.com>
|
2026-09-17 16:46:40 +08:00 |
|
浅念
|
68a7d6a6d4
|
chore: pnpm workspace and turbo pipeline
Co-Authored-By: Claude Code <noreply@anthropic.com>
|
2026-09-17 16:24:12 +08:00 |
|
浅念
|
d973c714f0
|
chore: init repository skeleton
Co-Authored-By: Claude Code <noreply@anthropic.com>
|
2026-09-17 16:13:49 +08:00 |
|