Skip to content

Commit 858e157

Browse files
committed
chore(release): v1.0.0
1 parent d9c1913 commit 858e157

6 files changed

Lines changed: 35 additions & 53 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to Dota Keeper will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [0.6.0] - 2026-04-05
8+
## [1.0.0] - 2026-04-07
99

1010
### Added
1111
- **Hero Benchmarks**: Compare your hero stats against bracket averages (Herald through Immortal). Shown on the hero analysis detail page with medal badges, z-scores, percentiles, and color-coded interpretation labels.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dota-keeper",
3-
"version": "0.6.0",
3+
"version": "1.0.0",
44
"description": "",
55
"type": "module",
66
"scripts": {

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dota-keeper"
3-
version = "0.6.0"
3+
version = "1.0.0"
44
description = "A Tauri App"
55
authors = ["Volthawk Software (Pty) Ltd"]
66
license = "Apache-2.0"

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "Dota Keeper",
4-
"version": "0.6.0",
4+
"version": "1.0.0",
55
"identifier": "com.volthawk.dota-keeper",
66
"build": {
77
"beforeDevCommand": "yarn dev",

src/routes/analysis/[heroId]/+page.svelte

Lines changed: 30 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
let turboGameCount = $state(0);
2626
let rankedWarning = $state("");
2727
let turboWarning = $state("");
28-
let minBenchmarkGames = $state(5);
2928
let activeBenchmark = $derived(selectedGameMode === 23 ? turboBenchmark : rankedBenchmark);
3029
let showBracketOverlays = $state(/** @type {Set<string>} */ (new Set()));
3130
@@ -58,10 +57,6 @@
5857
]);
5958
6059
onMount(async () => {
61-
try {
62-
const settings = await invoke("get_settings");
63-
minBenchmarkGames = settings.min_benchmark_games ?? 5;
64-
} catch { /* use default */ }
6560
await loadAnalysis();
6661
await loadBenchmarks();
6762
});
@@ -108,58 +103,45 @@
108103
rankedGameCount = rankedPoints.length;
109104
turboGameCount = turboPoints.length;
110105
111-
const minGames = minBenchmarkGames;
112106
const confidentGames = 30;
113107
114108
// Ranked benchmark
115109
if (rankedGameCount > 0) {
116-
if (rankedGameCount < minGames) {
117-
const need = minGames - rankedGameCount;
118-
rankedWarning = `Need ${need} more ranked game${need === 1 ? '' : 's'} to show rank.`;
119-
} else {
120-
const rankedAvg = rankedPoints.reduce((/** @type {number} */ sum, /** @type {any} */ p) => sum + p.last_hits, 0) / rankedGameCount;
121-
if (rankedGameCount < confidentGames) {
122-
const need = confidentGames - rankedGameCount;
123-
rankedWarning = `Confidence is low. Need ${need} more ranked game${need === 1 ? '' : 's'} for a more confident rank.`;
124-
}
125-
try {
126-
rankedBenchmark = await invoke("get_hero_benchmark", {
127-
heroId,
128-
mode: "ranked",
129-
statName: "last_hits_10min",
130-
userValue: rankedAvg,
131-
userHeroId: heroId,
132-
userGameMode: 22,
133-
});
134-
} catch (e) {
135-
console.warn("Ranked benchmark load failed:", e);
136-
}
110+
const rankedAvg = rankedPoints.reduce((/** @type {number} */ sum, /** @type {any} */ p) => sum + p.last_hits, 0) / rankedGameCount;
111+
if (rankedGameCount < confidentGames) {
112+
rankedWarning = `Based on only ${rankedGameCount} ranked game${rankedGameCount === 1 ? '' : 's'} — rank may be inaccurate.`;
113+
}
114+
try {
115+
rankedBenchmark = await invoke("get_hero_benchmark", {
116+
heroId,
117+
mode: "ranked",
118+
statName: "last_hits_10min",
119+
userValue: rankedAvg,
120+
userHeroId: heroId,
121+
userGameMode: 22,
122+
});
123+
} catch (e) {
124+
console.warn("Ranked benchmark load failed:", e);
137125
}
138126
}
139127
140128
// Turbo benchmark
141129
if (turboGameCount > 0) {
142-
if (turboGameCount < minGames) {
143-
const need = minGames - turboGameCount;
144-
turboWarning = `Need ${need} more turbo game${need === 1 ? '' : 's'} to show rank.`;
145-
} else {
146-
const turboAvg = turboPoints.reduce((/** @type {number} */ sum, /** @type {any} */ p) => sum + p.last_hits, 0) / turboGameCount;
147-
if (turboGameCount < confidentGames) {
148-
const need = confidentGames - turboGameCount;
149-
turboWarning = `Confidence is low. Need ${need} more turbo game${need === 1 ? '' : 's'} for a more confident rank.`;
150-
}
151-
try {
152-
turboBenchmark = await invoke("get_hero_benchmark", {
153-
heroId,
154-
mode: "turbo",
155-
statName: "last_hits_10min",
156-
userValue: turboAvg,
157-
userHeroId: heroId,
158-
userGameMode: 23,
159-
});
160-
} catch (e) {
161-
console.warn("Turbo benchmark load failed:", e);
162-
}
130+
const turboAvg = turboPoints.reduce((/** @type {number} */ sum, /** @type {any} */ p) => sum + p.last_hits, 0) / turboGameCount;
131+
if (turboGameCount < confidentGames) {
132+
turboWarning = `Based on only ${turboGameCount} turbo game${turboGameCount === 1 ? '' : 's'} — rank may be inaccurate.`;
133+
}
134+
try {
135+
turboBenchmark = await invoke("get_hero_benchmark", {
136+
heroId,
137+
mode: "turbo",
138+
statName: "last_hits_10min",
139+
userValue: turboAvg,
140+
userHeroId: heroId,
141+
userGameMode: 23,
142+
});
143+
} catch (e) {
144+
console.warn("Turbo benchmark load failed:", e);
163145
}
164146
}
165147

0 commit comments

Comments
 (0)