Move the per-dragon statistics to Deep Dive
Bond rates for every dragon, the two Greens and the first-sighting table now sit in Deep Dive next to the rare-dragon analysis; The Dragons tab is the register only. The first-sighting table also drops rows whose company was not recorded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UCzTd31GphpMXDhQqWrCMQ
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
790b7e6f5e
commit
754e4f1eb8
@@ -642,7 +642,7 @@
|
||||
};
|
||||
}
|
||||
// first sighting pools
|
||||
const fs = groupBy(runs.filter((r) => r.direction !== "Multiple" && r.direction !== "Unknown"), (r) => r.company + "|" + r.direction);
|
||||
const fs = groupBy(runs.filter((r) => !isMissing(r.direction) && !isMissing(r.company)), (r) => r.company + "|" + r.direction);
|
||||
res.first_sighting = sortedKeys(fs).map((k) => {
|
||||
const g = fs[k], cnt = groupBy(g, "first_sighting");
|
||||
return { key: k, n: g.length, colors: Object.fromEntries(sortedKeys(cnt).map((c) => [c, cnt[c].length])) };
|
||||
|
||||
Reference in New Issue
Block a user