From 02f07665666b5988682b078bbc1f1e1560fcd306 Mon Sep 17 00:00:00 2001 From: Jason Hoku Date: Wed, 4 Nov 2026 00:00:24 -0800 Subject: [PATCH] feat(dashboard): ratings + pairing + scoreboard logic Pure logic (no DOM): axis normalisers, attribution, Bradley-Terry with a ghost prior, pair selection, scoreboard/CSV. node:test coverage. Co-Authored-By: Claude Fable 5.1 --- resources/logic_ratings.js | 538 +++++++++++++++++++++++++++++++++++++ tests/js/ratings.test.js | 272 +++++++++++++++++++ 2 files changed, 810 insertions(+) create mode 100644 resources/logic_ratings.js create mode 100644 tests/js/ratings.test.js diff --git a/resources/logic_ratings.js b/resources/logic_ratings.js new file mode 100644 index 0000000..fd42774 --- /dev/null +++ b/resources/logic_ratings.js @@ -0,0 +1,538 @@ +/** + * PAIRWISE REVIEW - PURE LOGIC (no DOM access) + * Axis normalisation, attribution, Bradley-Terry ratings, pair selection, scoreboard. + * The dashboard inlines every logic_*.js into ONE