fix: 拖选文字时弹窗不再误关闭 #27

Open
hera wants to merge 13 commits from fix/next-batch into main
Owner

Summary

  • 所有弹窗背景关闭事件从 @click.self 改为 @mousedown.self
  • 修复从输入框拖选文字到弹窗外时触发误关闭的问题
  • 影响9处弹窗:LoginModal、RecipeDetailOverlay、UserMenu、TagPicker、Projects、BugTracker、OilReference

🤖 Generated with Claude Code

## Summary - 所有弹窗背景关闭事件从 `@click.self` 改为 `@mousedown.self` - 修复从输入框拖选文字到弹窗外时触发误关闭的问题 - 影响9处弹窗:LoginModal、RecipeDetailOverlay、UserMenu、TagPicker、Projects、BugTracker、OilReference 🤖 Generated with [Claude Code](https://claude.com/claude-code)
hera added 2 commits 2026-04-12 09:40:38 +00:00
fix: 拖选文字时弹窗不再误关闭
Some checks failed
Test / unit-test (push) Successful in 5s
Test / e2e-test (push) Has been cancelled
Test / build-check (push) Has been cancelled
c8e1f87391
所有弹窗背景关闭事件从 @click.self 改为 @mousedown.self,
避免从输入框拖选文字到弹窗外时触发关闭。

影响:LoginModal、RecipeDetailOverlay、UserMenu、TagPicker、
Projects、BugTracker、OilReference 共9处。

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
chore: 移除误提交的临时文件,更新 .gitignore
Some checks failed
Test / unit-test (push) Successful in 5s
PR Preview / teardown-preview (pull_request) Has been skipped
Test / build-check (push) Successful in 4s
Test / e2e-test (push) Failing after 3m6s
PR Preview / test (pull_request) Successful in 5s
PR Preview / deploy-preview (pull_request) Successful in 18s
1ade1c0eaa
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Owner

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

DB is a copy of production.

🚀 **Preview**: https://pr-27.oil.oci.euphon.net DB is a copy of production.
hera added 1 commit 2026-04-12 09:50:44 +00:00
feat: 英文名自动Title Case + 自动翻译未翻译配方
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 16s
Test / e2e-test (push) Successful in 48s
1af9e02e92
- 所有 en_name 写入时自动 Title Case(pain relief → Pain Relief)
- 新建/采纳配方到公共库时自动生成英文名
- 启动时自动补全未翻译的配方英文名
- 新增 translate.py 关键词翻译字典(100+ 中医/美容/精油词条)

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

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

DB is a copy of production.

🚀 **Preview**: https://pr-27.oil.oci.euphon.net DB is a copy of production.
hera added 1 commit 2026-04-12 09:52:09 +00:00
fix: 英文配方1滴显示 drop 而非 drops
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 52s
b82ba10ea5
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Owner

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

DB is a copy of production.

🚀 **Preview**: https://pr-27.oil.oci.euphon.net DB is a copy of production.
hera added 1 commit 2026-04-12 09:54:48 +00:00
feat: 删除用户前自动转移个人配方到管理员账号
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 3s
PR Preview / test (pull_request) Successful in 4s
PR Preview / deploy-preview (pull_request) Successful in 11s
Test / e2e-test (push) Successful in 51s
2a1da982d1
配方名后附加用户名(如"头疗(小明)"),审计日志记录转移数量。

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

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

DB is a copy of production.

🚀 **Preview**: https://pr-27.oil.oci.euphon.net DB is a copy of production.
hera added 1 commit 2026-04-12 09:56:35 +00:00
feat: 删除用户转移配方时跳过与公共库/管理员个人库重名的配方
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 10s
Test / e2e-test (push) Has been cancelled
cd08513985
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Owner

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

DB is a copy of production.

🚀 **Preview**: https://pr-27.oil.oci.euphon.net DB is a copy of production.
hera added 1 commit 2026-04-12 09:57:34 +00:00
fix: 删除用户转移配方去重改为按成分内容比较,不只看名字
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 10s
Test / e2e-test (push) Successful in 52s
b3c658b496
相同成分组合(不管名字是否相同)视为重复,不转移。

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

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

DB is a copy of production.

🚀 **Preview**: https://pr-27.oil.oci.euphon.net DB is a copy of production.
hera added 1 commit 2026-04-12 10:12:04 +00:00
fix: 管理配方tab仅对编辑者以上角色可见
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 3s
PR Preview / test (pull_request) Successful in 5s
PR Preview / deploy-preview (pull_request) Successful in 15s
Test / e2e-test (push) Successful in 49s
4d855627e8
未登录用户和viewer不再看到管理配方tab。

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

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

DB is a copy of production.

🚀 **Preview**: https://pr-27.oil.oci.euphon.net DB is a copy of production.
hera added 1 commit 2026-04-12 10:14:07 +00:00
fix: admin贡献数不再包含所有公共配方
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 4s
PR Preview / deploy-preview (pull_request) Successful in 10s
Test / e2e-test (push) Successful in 49s
6752b27f99
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
Owner

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

DB is a copy of production.

🚀 **Preview**: https://pr-27.oil.oci.euphon.net DB is a copy of production.
hera added 2 commits 2026-04-12 10:20:47 +00:00
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
fix: 管理配方tab所有人可见,未登录时显示登录引导
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 22s
Test / e2e-test (push) Successful in 51s
0f7ae6ecc7
撤回之前的editor-only限制,改为tab可见但页面内容需登录。

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

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

DB is a copy of production.

🚀 **Preview**: https://pr-27.oil.oci.euphon.net DB is a copy of production.
hera added 1 commit 2026-04-12 10:26:47 +00:00
test: PR#27新增单元测试和e2e测试
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 3s
PR Preview / test (pull_request) Successful in 5s
PR Preview / deploy-preview (pull_request) Successful in 17s
Test / e2e-test (push) Successful in 53s
6f1b9f3f68
后端: auto_translate/title_case 14个测试
前端: EDITOR_ONLY_TAGS、drop单复数、已下架过滤 11个测试
E2E: en_name title case、删除用户转移配方、管理配方登录引导

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

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

DB is a copy of production.

🚀 **Preview**: https://pr-27.oil.oci.euphon.net DB is a copy of production.
hera added 1 commit 2026-04-12 13:51:38 +00:00
fix: RecipeIn加en_name字段修复共享500错误 + 前端配方名翻译
Some checks are pending
Test / unit-test (push) Waiting to run
Test / e2e-test (push) Blocked by required conditions
Test / build-check (push) Waiting to run
PR Preview / test (pull_request) Waiting to run
PR Preview / deploy-preview (pull_request) Blocked by required conditions
PR Preview / teardown-preview (pull_request) Waiting to run
28ab51c437
- RecipeIn 模型添加 en_name 字段,修复共享配方500错误
- recipeNameEn 使用关键词字典翻译,预览卡片英文名不再显示中文

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Some checks are pending
Test / unit-test (push) Waiting to run
Test / e2e-test (push) Blocked by required conditions
Test / build-check (push) Waiting to run
PR Preview / test (pull_request) Waiting to run
PR Preview / deploy-preview (pull_request) Blocked by required conditions
PR Preview / teardown-preview (pull_request) Waiting to run
Checking for merge conflicts…
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/next-batch:fix/next-batch
git checkout fix/next-batch
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#27