feat: 非精油产品编辑页面适配(ml/g/颗) #34

Merged
hera merged 8 commits from fix/product-unit-edit into main 2026-04-14 19:25:08 +00:00
Owner

Summary

  • 编辑非精油产品时显示数字输入框+单位下拉(ml/g/颗)
  • 精油仍用标准容量下拉(2.5ml/5ml/10ml/15ml/115ml)
  • 标签自动切换"精油名称"/"产品名称"
  • 保存时传unit参数

🤖 Generated with Claude Code

## Summary - 编辑非精油产品时显示数字输入框+单位下拉(ml/g/颗) - 精油仍用标准容量下拉(2.5ml/5ml/10ml/15ml/115ml) - 标签自动切换"精油名称"/"产品名称" - 保存时传unit参数 🤖 Generated with [Claude Code](https://claude.com/claude-code)
hera added 1 commit 2026-04-14 17:12:04 +00:00
feat: 非精油产品编辑页面适配 — 容量输入框+单位下拉(ml/g/颗)
All checks were successful
Test / unit-test (push) Successful in 6s
Test / build-check (push) Successful in 4s
PR Preview / teardown-preview (pull_request) Has been skipped
Test / e2e-test (push) Successful in 2m56s
PR Preview / test (pull_request) Successful in 6s
PR Preview / deploy-preview (pull_request) Successful in 16s
e30891d3d2
- 编辑弹窗根据unit类型显示不同UI:精油用标准容量下拉,其他产品用数字+单位选择
- 标签"精油名称"/"产品名称"自动切换
- 保存时传unit参数

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Owner

🚀 Preview: https://pr-34.oil.oci.euphon.net

DB is a copy of production.

🚀 **Preview**: https://pr-34.oil.oci.euphon.net DB is a copy of production.
hera added 1 commit 2026-04-14 17:21:17 +00:00
fix: 打开新增/编辑配方时重新加载oils,确保新增产品可搜索
All checks were successful
PR Preview / teardown-preview (pull_request) Has been skipped
Test / unit-test (push) Successful in 6s
Test / build-check (push) Successful in 4s
PR Preview / test (pull_request) Successful in 6s
PR Preview / deploy-preview (pull_request) Successful in 17s
Test / e2e-test (push) Successful in 2m58s
c9af05219b
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Owner

🚀 Preview: https://pr-34.oil.oci.euphon.net

DB is a copy of production.

🚀 **Preview**: https://pr-34.oil.oci.euphon.net DB is a copy of production.
hera added 1 commit 2026-04-14 17:42:03 +00:00
test: PR34测试 — 产品编辑表单单位切换逻辑
All checks were successful
PR Preview / teardown-preview (pull_request) Has been skipped
Test / unit-test (push) Successful in 5s
Test / build-check (push) Successful in 4s
PR Preview / test (pull_request) Successful in 5s
PR Preview / deploy-preview (pull_request) Successful in 14s
Test / e2e-test (push) Successful in 2m57s
2330ce1f2c
新增8个测试: 单位判断、表单初始化、保存参数、标签适配

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Owner

🚀 Preview: https://pr-34.oil.oci.euphon.net

DB is a copy of production.

🚀 **Preview**: https://pr-34.oil.oci.euphon.net DB is a copy of production.
hera added 1 commit 2026-04-14 17:47:38 +00:00
fix: 补全剩余硬编码单位 — 配方分享文本和商业核算消耗分析
All checks were successful
PR Preview / teardown-preview (pull_request) Has been skipped
Test / unit-test (push) Successful in 6s
Test / build-check (push) Successful in 4s
PR Preview / test (pull_request) Successful in 5s
PR Preview / deploy-preview (pull_request) Successful in 16s
Test / e2e-test (push) Successful in 2m55s
18a74df083
- RecipeDetailOverlay: 分享文本 ing.drops滴 → unitLabel
- Projects: 消耗分析 每滴→单价, drops滴→unitLabel

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Owner

🚀 Preview: https://pr-34.oil.oci.euphon.net

DB is a copy of production.

🚀 **Preview**: https://pr-34.oil.oci.euphon.net DB is a copy of production.
hera added 1 commit 2026-04-14 18:09:10 +00:00
test: 分享文本和消耗分析动态单位测试
Some checks failed
PR Preview / teardown-preview (pull_request) Has been skipped
Test / unit-test (push) Successful in 6s
Test / build-check (push) Successful in 4s
PR Preview / test (pull_request) Successful in 6s
PR Preview / deploy-preview (pull_request) Successful in 14s
Test / e2e-test (push) Failing after 1m27s
317ea3a2b6
新增2个测试: 分享文本各成分用正确单位、消耗分析用量/容量单位

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Owner

🚀 Preview: https://pr-34.oil.oci.euphon.net

DB is a copy of production.

🚀 **Preview**: https://pr-34.oil.oci.euphon.net DB is a copy of production.
hera added 1 commit 2026-04-14 18:40:20 +00:00
ci: retry e2e tests
Some checks failed
PR Preview / teardown-preview (pull_request) Has been skipped
Test / unit-test (push) Successful in 6s
Test / build-check (push) Successful in 4s
PR Preview / test (pull_request) Successful in 6s
PR Preview / deploy-preview (pull_request) Successful in 9s
Test / e2e-test (push) Failing after 6m55s
f8d368a03a
Author
Owner

🚀 Preview: https://pr-34.oil.oci.euphon.net

DB is a copy of production.

🚀 **Preview**: https://pr-34.oil.oci.euphon.net DB is a copy of production.
hera added 1 commit 2026-04-14 18:54:51 +00:00
fix: price-display不再打开配方详情(html2canvas CI卡死)
Some checks failed
PR Preview / teardown-preview (pull_request) Has been skipped
Test / unit-test (push) Successful in 5s
Test / build-check (push) Successful in 4s
PR Preview / test (pull_request) Successful in 5s
PR Preview / deploy-preview (pull_request) Successful in 14s
Test / e2e-test (push) Failing after 6m53s
7fbf5586b5
改为验证卡片价格格式,配方详情价格已由recipe-detail覆盖。

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Owner

🚀 Preview: https://pr-34.oil.oci.euphon.net

DB is a copy of production.

🚀 **Preview**: https://pr-34.oil.oci.euphon.net DB is a copy of production.
hera added 1 commit 2026-04-14 19:12:29 +00:00
fix: demo-walkthrough移到Batch2(10个spec),Batch3减到15个
All checks were successful
PR Preview / test (pull_request) Has been skipped
PR Preview / teardown-preview (pull_request) Successful in 15s
PR Preview / deploy-preview (pull_request) Has been skipped
Deploy Production / test (push) Successful in 13s
Deploy Production / deploy (push) Successful in 7s
Test / unit-test (push) Successful in 7s
Test / build-check (push) Successful in 4s
Test / e2e-test (push) Successful in 2m59s
cca7dd4471
Batch3跑16个spec时内存累积导致最后一个超时。均衡分配。

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Owner

🚀 Preview: https://pr-34.oil.oci.euphon.net

DB is a copy of production.

🚀 **Preview**: https://pr-34.oil.oci.euphon.net DB is a copy of production.
hera merged commit cca7dd4471 into main 2026-04-14 19:25:08 +00:00
Author
Owner

🗑️ Preview torn down.

🗑️ Preview torn down.
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: hera/oil-formula-calculator#34