Compare commits

...

2 Commits

Author SHA1 Message Date
a451726e52 chore:去掉开发中的ignore 2026-01-30 10:58:19 +08:00
9ecb392a41 feat:正式支持图形化映射编辑器,实现半自动化 2026-01-30 10:58:05 +08:00
3 changed files with 1142 additions and 4 deletions

3
.gitignore vendored
View File

@@ -23,6 +23,3 @@ logs/
.vscode/
.cache/
sync_database.sqlite
//暂时忽略
mappingsEditor.js

View File

@@ -257,6 +257,23 @@
(Transitions)</h3>
<div class="bg-yellow-50 border border-yellow-200 rounded p-3 mb-3 text-xs text-yellow-800 hidden"
id="transWarning"></div>
<!-- 手动扫描 Transition -->
<div class="mb-4 p-3 bg-purple-50 border border-purple-200 rounded">
<p class="text-xs text-purple-700 mb-2">输入工单 Key 扫描该工单当前可用的状态流转,扫描结果会追加到下拉菜单中</p>
<div class="flex gap-2">
<input type="text" id="transIssueKey" placeholder="例如: TEST-123"
class="flex-1 border rounded px-3 py-2 text-sm focus:ring-2 focus:ring-purple-500 outline-none uppercase">
<button onclick="scanTransitions()" id="scanTransBtn"
class="bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded text-sm font-medium transition whitespace-nowrap">
扫描流转
</button>
</div>
<div id="transResult" class="mt-2 text-sm"></div>
<div id="transError"
class="hidden mt-2 bg-red-50 text-red-700 p-2 rounded text-xs border border-red-200"></div>
</div>
<div class="grid grid-cols-1 gap-3">
<div class="flex items-center justify-between bg-gray-50 p-3 rounded border">
<span class="font-mono text-sm font-medium text-gray-700">关闭 (Close)</span>

1124
public/mappingsEditor.js Normal file

File diff suppressed because it is too large Load Diff