Repository navigation
把九页工作台接到现有账本、审批和模拟执行 - #21
Merged
Merged
Conversation
Replace the static prototype navigation with nine Chinese views that read and write the existing analysis, import, approval, and simulation APIs. Price proposals below the 28% margin floor are rejected on the server, and offline evals record computed checks instead of handwritten scores. Co-authored-by: Akaliup <Akaliup@users.noreply.github.com>
Merged
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.
做了什么
九个中文视图接到现有控制面,不再把原型里的虚构金额当成结果:
fetch_metrics补货、预算和调价提案写入现有
analyses/recommendations。margin_ok=false时批准和执行都返回409 margin_redline。所有新动作simulation=true,模拟结果external_calls=0。演示 CSV 是按当前租户生成的可重复导入文件,不覆盖、不删除已有账本。启动
隔离库,不碰已有数据库。未配置模型时走确定性降级,不要把规则结果称作 LLM。
浏览器打开本机
http://127.0.0.1:5180。这是 VM 上的 localhost,不是公网地址,也没有部署。演示身份:分析师
demo-analyst,审批负责人demo-approver。先在「知识与数据」载入演示库存,再生成补货提案。验证
python -m pytest backend/tests -q:368 passed,6 skipped(未设置PROFITOPS_TEST_POSTGRES_URL,PostgreSQL 迁移未跑)npm --prefix frontend test:27 passednpm --prefix frontend run build:通过npx playwright test(frontend):8 passedpython scripts/smoke.py:21 passedpython scripts/mcp_check.py:通过,写工具未暴露限制
经营总览
分店贡献
经营调查
毛利红线
库存建议
profitops-nine-views-demo.mp4
To show artifacts inline, enable in settings.