v9.5: 實作標籤完全不重疊算法

- 新增 _calculate_lane_conflicts_v2() 分開返回標籤重疊和線穿框分數
- 修改泳道選擇算法,優先選擇無標籤重疊的泳道
- 兩階段搜尋:優先側別無可用泳道則嘗試另一側
- 增強日誌輸出,顯示標籤範圍和詳細衝突分數

🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
beabigegg
2025-11-06 11:35:29 +08:00
commit 2d37d23bcf
83 changed files with 22971 additions and 0 deletions

3
tests/fixtures/invalid_dates.csv vendored Normal file
View File

@@ -0,0 +1,3 @@
id,title,start,end,group,description,color
evt-001,測試事件,2024-13-01 09:00:00,2024-01-01 17:00:00,Phase 1,無效的月份,#3B82F6
evt-002,測試事件2,2024-01-01 09:00:00,2023-12-31 18:00:00,Phase 1,結束時間早於開始時間,#10B981
1 id title start end group description color
2 evt-001 測試事件 2024-13-01 09:00:00 2024-01-01 17:00:00 Phase 1 無效的月份 #3B82F6
3 evt-002 測試事件2 2024-01-01 09:00:00 2023-12-31 18:00:00 Phase 1 結束時間早於開始時間 #10B981

7
tests/fixtures/sample_events.csv vendored Normal file
View File

@@ -0,0 +1,7 @@
id,title,start,end,group,description,color
evt-001,專案啟動,2024-01-01 09:00:00,2024-01-01 17:00:00,Phase 1,專案正式啟動會議,#3B82F6
evt-002,需求分析,2024-01-02 09:00:00,2024-01-05 18:00:00,Phase 1,收集並分析系統需求,#10B981
evt-003,系統設計,2024-01-08 09:00:00,2024-01-15 18:00:00,Phase 2,完成系統架構設計,#F59E0B
evt-004,開發階段,2024-01-16 09:00:00,2024-02-28 18:00:00,Phase 3,程式碼開發與單元測試,#EF4444
evt-005,整合測試,2024-03-01 09:00:00,2024-03-15 18:00:00,Phase 4,系統整合與測試,#8B5CF6
evt-006,上線部署,2024-03-20 09:00:00,,Phase 5,正式上線,#EC4899
1 id title start end group description color
2 evt-001 專案啟動 2024-01-01 09:00:00 2024-01-01 17:00:00 Phase 1 專案正式啟動會議 #3B82F6
3 evt-002 需求分析 2024-01-02 09:00:00 2024-01-05 18:00:00 Phase 1 收集並分析系統需求 #10B981
4 evt-003 系統設計 2024-01-08 09:00:00 2024-01-15 18:00:00 Phase 2 完成系統架構設計 #F59E0B
5 evt-004 開發階段 2024-01-16 09:00:00 2024-02-28 18:00:00 Phase 3 程式碼開發與單元測試 #EF4444
6 evt-005 整合測試 2024-03-01 09:00:00 2024-03-15 18:00:00 Phase 4 系統整合與測試 #8B5CF6
7 evt-006 上線部署 2024-03-20 09:00:00 Phase 5 正式上線 #EC4899