NewTon DC Tournament Manager v5.0.1-beta.4 — March 28, 2026
Download v5.0.1-beta.4NewTon DC Tournament Manager v5.0.1-beta.4 closes the gap between match completion and achievement tracking. Until now, achievements were entered through a separate modal with no connection to the match being completed — they landed on player stats but left no record of which match they belonged to. The undo system had no way to reverse them.
That changes here. The match completion session is now achievement-aware from start to finish: stats are snapshotted when the modal opens, the delta is recorded in the transaction on confirm, and rolled back cleanly on cancel. The undo dialog offers a genuine choice.
When the Confirm Match Winner modal opens, a snapshot of both players' stats is taken. The operator uses the Statistics modal exactly as before — click a player name, enter achievements, close. Nothing about that workflow changes.
When "Confirm Winner" is clicked, the system diffs the current stats against the snapshot and writes the delta to the COMPLETE_MATCH transaction's achievements field. The transaction now knows exactly what was entered during the completion session.
If achievements are entered and the operator cancels — whether by clicking Cancel, pressing ESC, or any other exit path — player stats are restored to their pre-session state. Nothing is committed until "Confirm Winner" is clicked.
Once achievements have been entered and the operator returns to the completion modal, the Cancel button updates to "Cancel & revert achievements" so the consequence is visible before clicking.
As achievements are entered during the session, a summary box appears in the completion modal — between the leg score section and the buttons — showing exactly what has been recorded for each player. The summary updates each time the Statistics modal closes and disappears if all achievements are removed.
The undo dialog now shows recorded achievements when the transaction has them. Two choices are offered:
The unconditional warning about manually entered achievements remains. The transaction only knows what happened inside the completion session. Matches completed before this release have null achievements in their transactions — the undo dialog shows the single-button variant for those.
js/clean-match-progression.js — _completionSnapshot; snapshotPlayerStats(), diffPlayerStats(), restorePlayerStats(), renderCompletionAchievements(); showWinnerConfirmation() snapshots on open, restores on cancel, diffs on confirm; openStatsModalFromConfirmation() updates Cancel label and renders summary; completeMatch() accepts achievements paramjs/bracket-rendering.js — rollbackAchievements(); showUndoConfirmationModal() with onConfirmWithAchievements; handleSurgicalUndo() wired with achievements callbacktournament.html — #completionAchievementsSummary container in winnerConfirmModal; "Undo match + achievements" button in undoConfirmModalcss/styles.css — .completion-achievements-box, .completion-achievements-title, .completion-achievement-rowDocs/UNDO.md — updated to reflect the complete designNo migration required. Fully compatible with all existing tournament data. Matches completed before this release have null in the achievements field — the undo dialog handles this gracefully.
NewTon DC Tournament Manager v5.0.1-beta.4 — Stats Don't Lie.
Download v5.0.1-beta.4For older releases, see the GitHub releases page.