Skip to content

Commit 503f2c0

Browse files
unhappychoiceclaude
andcommitted
feat(fetcher): add steam_owned_games
The configured Steam user's library ranked by total playtime (sort = "playtime", default) or most-recently launched (sort = "recent"). Complement to steam_recently_played over the all-time window. 11 shapes via the shared games.rs builders. Recent-sort rows label the value column with a relative pill ("today" / "3d ago" / "2w ago", ISO date past 30 days) so list_ranking reads as "when" rather than raw playtime minutes; the bar value stays in minutes so chart_bar heights remain comparable. Catalog: #68 (steam_owned_games). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
1 parent 710fc19 commit 503f2c0

2 files changed

Lines changed: 396 additions & 0 deletions

File tree

‎src/fetcher/steam/mod.rs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
mod client;
1313
mod common;
1414
mod games;
15+
mod owned_games;
1516
mod player_summary;
1617
mod recently_played;
1718

@@ -23,6 +24,7 @@ pub fn fetchers() -> Vec<Arc<dyn Fetcher>> {
2324
vec![
2425
Arc::new(player_summary::SteamPlayerSummary),
2526
Arc::new(recently_played::SteamRecentlyPlayed),
27+
Arc::new(owned_games::SteamOwnedGames),
2628
]
2729
}
2830

@@ -41,5 +43,6 @@ mod tests {
4143
}
4244
assert!(names.contains(&"steam_player_summary".to_string()));
4345
assert!(names.contains(&"steam_recently_played".to_string()));
46+
assert!(names.contains(&"steam_owned_games".to_string()));
4447
}
4548
}

0 commit comments

Comments
 (0)