Commit Graph
11 Commits
Author SHA1 Message Date
JianMiauandClaude Fable 5 8cc05183f7 兩區人數落差時改為跨區平衡,並調整結果版面
根本原因:
原本配對邏輯只以人數多的一區為基準,缺額全部補「那個」。例如 A 區 7 人、B 區 5 人時會補 2 個「那個」,但總人數 12 是偶數,其實可以讓 A 區 1 人跨區支援就湊滿 6 隊真人對打。

影響:
- 兩區差距 2 以上時,每輪自動抽「差距÷2」人跨區支援,且每輪輪替不同人,跨區的人平均分攤
- 只有總人數為奇數時才會補 1 個「那個」
- 三輪之間維持無重複搭檔、同輪無人重複上場
- 「推送到 LINE」按鈕移到上方操作列,三組結果改為三欄並排顯示
- 摘要卡改顯示跨區支援與補位人數

修法:
新增 balanceZones / pickCrossMembers 依輪次輪替抽出跨區成員,createRoundTeams 改在每輪平衡後再建立隊伍;移除不再使用的 prepareParticipants 與 .share-row/.share-button 樣式,並同步更新 README 規則說明。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-10 15:22:04 +08:00
JianMiauandClaude Fable 5 4cb150c7fb 統一換行符為 LF
根本原因:
Windows 編輯器存檔時把 src/App.tsx 混入 CRLF,造成 git diff 出現整檔 572/565 行的假差異,難以審閱。

影響:
之後任何人在任何編輯器存檔,都不會再混入 CRLF 汙染 diff。

修法:
新增 .gitattributes 設定 `* text=auto eol=lf`,checkout 與 commit 一律正規化為 LF。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-10 15:20:47 +08:00
JianMiau 78142488f3 Show badge only in local test environment 2026-04-15 16:32:53 +08:00
JianMiau c343dc6f11 Set docker compose default to production mode 2026-04-15 16:28:12 +08:00
JianMiau 39b9ed8c08 Update README for current app workflow 2026-04-15 16:24:19 +08:00
JianMiau 2bed4f6df0 Add LINE push integration and target mode config 2026-04-15 16:22:19 +08:00
JianMiau 1687223631 Fix README path after moving project directory 2026-04-15 16:09:16 +08:00
JianMiau 27196dc2bf Add overwrite confirmation and update README 2026-04-15 10:35:17 +08:00
JianMiau 35eab44a7a Add loading match results by date 2026-04-15 10:11:53 +08:00
JianMiau 6c3ff0e3d1 Add DB upload flow and Docker deployment setup 2026-04-14 23:17:45 +08:00
JianMiau 268e76bf0d Initial React badminton team matching app 2026-04-14 22:35:03 +08:00