SHA-4 Growth Loop MVP 集成:合并 codex/growth-loop-mvp 到最新 main (SHA-5) - #43
Draft
WardLu wants to merge 5 commits into
Draft
SHA-4 Growth Loop MVP 集成:合并 codex/growth-loop-mvp 到最新 main (SHA-5)#43WardLu wants to merge 5 commits into
WardLu wants to merge 5 commits into
Conversation
- ci.yml:导出 DB_URL 到 SHADOW_MATE_TEST_DB_URL,支持共享数据库测试 - test-delete-account-guard.mjs:加载 .env.local 以支持本地共享链路测试 - PULL_REQUEST_TEMPLATE / CONTRIBUTING:按改动范围选择测试层级的最小充分约定
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概览
将本地分支
codex/growth-loop-mvp(2 个 commit:aad1ed8+c762626,约 6000 行,基于旧 maindc9794c)集成到最新origin/main(a7bd8ca),并补入共享 Supabase 测试路由约定。本 PR 只做集成与验证,不实现新功能。关联:SHA-4(实施计划父任务)/ SHA-5(本集成任务)。
变更内容
src/learning-*.js状态封装/账本/奖励/兑换/同步/导出、src/app.js与src/cloud.js接入、src/app.css样式、8 个supabase/migrations/数据库提案迁移、5 个 pgTAP 测试、tests/e2e/growth-loop.spec.js与 14 个新单测文件。feat/email-template-design的a8da8d6、028bea7两个基础设施 commit,按任务要求保留共享路由约定):scripts/test-shared-db.mjs、start-shared-supabase.mjs、serve-shared-functions.mjs,package.json的test:db改走共享路由并新增test:fast/test:ui/test:full,CI 增加SHADOW_MATE_TEST_DB_URL导出与分层测试约定文档。.github/workflows/shared-supabase-policy.yml:add/add 冲突,保留 origin/main 版本(允许新增迁移、禁止修改历史,符合本 PR 新增 8 个迁移的需求)。README.md:自动合并,共享路由文档与 origin/main 的 TTS CDN 说明共存。package.json:growth-loop 分支未改脚本,直接采用含共享路由的主线版本。src/piper-tts.js与 TTS 测试:全部保留 origin/main 版本。验证证据
npm run checknpm run test:unitnpm run test:dblearning_rls_test.sql58 项npm run test:functionsnpm run test:e2enpm run verifynpm run release:checkRELEASE_URL,生产 URL 检查按约定跳过未决问题 / 环境阻塞
growth_loop_*schema。8 个新迁移未进入 Shadow Portal 控制面台账,apply-shadow-mate-local-schema.mjs会拒绝未登记源迁移。按 proposal-only 边界本仓库不执行共享库迁移;需控制面登记并生成 SHA-256 校验快照后,test:db共享路由才能覆盖 growth-loop pgTAP。当前以隔离本地实例验证通过(159 项)。test:functions依赖隔离实例:共享 merchant-admin 函数 overlay 清单未包含 shadow-mate 的delete-account,因此该测试在 shadow-mate 自身隔离实例(54311)上验证。E2E_REAL_SUPABASE=1+ 隔离实例运行,避免触碰生产 Supabase。约束遵守
codex/growth-loop-mvp;未引入src/analytics.js(Vercel Custom Events 属另一条工作线)。