Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b212804

Browse files
committed
fixes stats
1 parent b5a7a70 commit b212804

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.dex/tasks.jsonl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
{"id":"rirl99kc","parent_id":"nfqaopws","name":"Create playlist management UI","description":"Beads description:\nUI for creating, editing, and deleting playlists. Include drag-and-drop reordering of challenges\n\nMetadata:\nbeads_id: battle_mode-lfg.3\nbeads_status: open\nbeads_type: task\nbeads_priority: 1\nlabels: []\nassignee: null\nnotes: null\ncreated_at: 2025-12-18T10:16:16.906176-07:00\nupdated_at: 2025-12-18T10:16:16.906176-07:00\nclosed_at: None\n\ndependencies:\n- type=parent-child issue_id=battle_mode-lfg.3 depends_on_id=battle_mode-lfg created_at=2025-12-18T10:16:16.906866-07:00 created_by=daemon\n- type=blocks issue_id=battle_mode-lfg.3 depends_on_id=battle_mode-lfg.2 created_at=2025-12-18T10:16:25.248505-07:00 created_by=daemon","priority":1,"completed":false,"result":null,"metadata":null,"created_at":"2026-01-26T19:34:02.939Z","updated_at":"2026-01-26T19:34:02.939Z","started_at":null,"completed_at":null,"blockedBy":["xjtvmqdr"],"blocks":["6t0o8qpd","icqchuz3"],"children":[]}
9595
{"id":"rj6lo3un","parent_id":"nfqaopws","name":"Add playlists table to schema","description":"Beads description:\nCreate playlists table with id, name, description, creator_id, visibility (public/private), created_at\n\nMetadata:\nbeads_id: battle_mode-lfg.1\nbeads_status: closed\nbeads_type: task\nbeads_priority: 1\nlabels: []\nassignee: null\nnotes: null\ncreated_at: 2025-12-18T10:16:14.684067-07:00\nupdated_at: 2025-12-18T17:57:44.132265-07:00\nclosed_at: 2025-12-18T17:57:44.132265-07:00\n\ndependencies:\n- type=parent-child issue_id=battle_mode-lfg.1 depends_on_id=battle_mode-lfg created_at=2025-12-18T10:16:14.685634-07:00 created_by=daemon","priority":1,"completed":true,"result":"Migrated from Beads with closed status preserved. closed_at: 2025-12-18T17:57:44.132265-07:00","metadata":null,"created_at":"2026-01-26T19:33:17.722Z","updated_at":"2026-01-26T19:35:11.638Z","started_at":null,"completed_at":"2026-01-26T19:35:11.638Z","blockedBy":[],"blocks":["xjtvmqdr"],"children":[]}
9696
{"id":"rpdxo60a","parent_id":null,"name":"Find all todos in codebase","description":"Beads description:\n(empty)\n\nMetadata:\nbeads_id: battle_mode-pip\nbeads_status: closed\nbeads_type: task\nbeads_priority: 2\nlabels: []\nassignee: null\nnotes: null\ncreated_at: 2025-12-11T17:06:52.169884-07:00\nupdated_at: 2026-01-05T17:11:24.82189-07:00\nclosed_at: 2026-01-05T17:11:24.82189-07:00\n\ndependencies: []","priority":1,"completed":true,"result":"Migrated from Beads with closed status preserved. closed_at: 2026-01-05T17:11:24.82189-07:00","metadata":null,"created_at":"2026-01-26T19:31:29.864Z","updated_at":"2026-01-26T19:35:53.736Z","started_at":null,"completed_at":"2026-01-26T19:35:53.736Z","blockedBy":[],"blocks":[],"children":[]}
97+
{"id":"rqwuetpr","parent_id":null,"name":"Fix solo target score distribution data source","description":"Follow-up bug: admin Solo Target Stats showed 0 scored for all targets. Investigate and correct data source for scored attempts/distribution so it uses actual solo battle submissions and diff_score values.","priority":1,"completed":true,"result":"Fixed admin solo target stats scoring logic in src/routes/(style)/(menu)/admin/+page.svelte. Root cause: solo hax rows are stored with type='BATTLE', so filtering hax.type==='SOLO' returned zero. Updated scoring dataset to include hax rows by battle_id membership in SOLO battles and numeric diff_score. This restores scored counts and distribution bars where score data exists.","metadata":null,"created_at":"2026-03-16T22:04:44.478Z","updated_at":"2026-03-16T22:06:08.431Z","started_at":"2026-03-16T22:04:51.516Z","completed_at":"2026-03-16T22:06:08.431Z","blockedBy":[],"blocks":[],"children":[]}
9798
{"id":"sbxwsawy","parent_id":null,"name":"Make compatibility banner required/obvious","description":"Update the global unsupported-browser compatibility banner copy and styling to be more prominent. Replace best-effort wording with explicit requirement language: desktop Chrome or Edge is required for battles. Increase visual prominence while keeping it non-blocking.","priority":1,"completed":true,"result":"Updated global compatibility banner copy and styling in src/routes/(style)/+layout.svelte. Message now states desktop Chrome or Edge is required to join battles, with stronger warning tone and higher-contrast visuals (bolder text, stronger border/background/shadow) for better visibility while remaining non-blocking. Kept detection logic unchanged. Verification: pnpm build succeeds; existing unrelated project warnings remain.","metadata":null,"created_at":"2026-03-05T21:25:52.649Z","updated_at":"2026-03-05T21:28:02.934Z","started_at":"2026-03-05T21:26:06.948Z","completed_at":"2026-03-05T21:28:02.934Z","blockedBy":[],"blocks":[],"children":[]}
9899
{"id":"sw6eaxg6","parent_id":"r39li3vb","name":"Add invite-only battles section to dashboard","description":"Beads description:\nDisplay user's invite-only/mystery battles they have access to, with join via invite code option\n\nMetadata:\nbeads_id: battle_mode-7fu.3\nbeads_status: open\nbeads_type: task\nbeads_priority: 2\nlabels: []\nassignee: null\nnotes: null\ncreated_at: 2025-12-18T10:42:04.936155-07:00\nupdated_at: 2025-12-18T10:42:04.936155-07:00\nclosed_at: None\n\ndependencies:\n- type=parent-child issue_id=battle_mode-7fu.3 depends_on_id=battle_mode-7fu created_at=2025-12-18T10:42:04.93663-07:00 created_by=daemon\n- type=blocks issue_id=battle_mode-7fu.3 depends_on_id=battle_mode-7fu.1 created_at=2025-12-18T10:42:12.333517-07:00 created_by=daemon\n- type=blocks issue_id=battle_mode-7fu.3 depends_on_id=battle_mode-hty created_at=2025-12-18T10:42:13.228165-07:00 created_by=daemon","priority":1,"completed":false,"result":null,"metadata":null,"created_at":"2026-01-26T19:33:57.225Z","updated_at":"2026-01-26T19:33:57.225Z","started_at":null,"completed_at":null,"blockedBy":["k3m7suue","9mtg8euq"],"blocks":[],"children":[]}
99100
{"id":"tzxh9g0z","parent_id":null,"name":"Post-battle UI: change interface to see votes with ability to reveal","description":"Beads description:\n(empty)\n\nMetadata:\nbeads_id: battle_mode-6ow\nbeads_status: open\nbeads_type: feature\nbeads_priority: 2\nlabels: []\nassignee: null\nnotes: null\ncreated_at: 2026-01-05T17:10:40.492711-07:00\nupdated_at: 2026-01-05T17:10:40.492711-07:00\nclosed_at: None\n\ndependencies: []","priority":1,"completed":false,"result":null,"metadata":null,"created_at":"2026-01-26T19:30:34.791Z","updated_at":"2026-01-26T19:30:34.791Z","started_at":null,"completed_at":null,"blockedBy":[],"blocks":[],"children":[]}

src/routes/(style)/(menu)/admin/+page.svelte

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,12 @@
2929
const allHax = hax.data ?? [];
3030
3131
const soloBattles = allBattles.filter((battle) => battle.type === 'SOLO');
32+
const soloBattleIds = new Set(soloBattles.map((battle) => battle.id));
3233
const soloHaxWithScore = allHax.filter(
33-
(entry) => entry.type === 'SOLO' && typeof entry.diff_score === 'number'
34+
(entry) =>
35+
typeof entry.diff_score === 'number' &&
36+
!!entry.battle_id &&
37+
soloBattleIds.has(entry.battle_id)
3438
);
3539
3640
const attemptsByTarget: Record<string, number> = {};

0 commit comments

Comments
 (0)