[PR #141] [CLOSED] Client Side Playtime Tracking #158

Closed
opened 2026-02-17 17:12:13 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Drop-OSS/drop-app/pull/141
Author: @AdenMGB
Created: 9/5/2025
Status: Closed

Base: small-featsHead: small-feats


📝 Commits (5)

  • cdb0391 feat(databse): add in playtime tracking and bump db ver
  • c88221d feat(playtime): add in playtime tracking commands and implement into process manager
  • ea3135f feat(library): implement playtime tracking on the frontend
  • 598e1d5 style(playtime): add compact view and tweak style of compact playtime details
  • 46f19d1 fix(playtime): remove WIP date tracking from displaying

📊 Changes

15 files changed (+1004 additions, -9 deletions)

View changed files

📝 main/app.vue (+4 -0)
main/components/PlaytimeDisplay.vue (+53 -0)
main/components/PlaytimeStats.vue (+76 -0)
main/composables/playtime.ts (+193 -0)
📝 main/pages/library/[id]/index.vue (+30 -1)
📝 main/types.ts (+34 -0)
📝 src-tauri/src/database/models.rs (+106 -1)
📝 src-tauri/src/error/process_error.rs (+3 -1)
📝 src-tauri/src/lib.rs (+30 -1)
src-tauri/src/playtime/commands.rs (+95 -0)
src-tauri/src/playtime/events.rs (+81 -0)
src-tauri/src/playtime/manager.rs (+255 -0)
src-tauri/src/playtime/mod.rs (+3 -0)
📝 src-tauri/src/process/commands.rs (+31 -5)
📝 src-tauri/src/process/process_manager.rs (+10 -0)

📄 Description

Warning

First and Last played date are also tracked, but kinda buggy so not displayed in the frontend for now

Tip

This is client side only at the moment although made in mind with server reporting in the future

Playtime under Title & New Playtime status widget added which includes number of sessions

image

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Drop-OSS/drop-app/pull/141 **Author:** [@AdenMGB](https://github.com/AdenMGB) **Created:** 9/5/2025 **Status:** ❌ Closed **Base:** `small-feats` ← **Head:** `small-feats` --- ### 📝 Commits (5) - [`cdb0391`](https://github.com/Drop-OSS/drop-app/commit/cdb0391855f13d7aeb982c32a5c982b58b2624f5) feat(databse): add in playtime tracking and bump db ver - [`c88221d`](https://github.com/Drop-OSS/drop-app/commit/c88221d2b7c7d4bace294b4899211648ab0cb44c) feat(playtime): add in playtime tracking commands and implement into process manager - [`ea3135f`](https://github.com/Drop-OSS/drop-app/commit/ea3135f73862e4a3976f561a5155b08857cd9bd7) feat(library): implement playtime tracking on the frontend - [`598e1d5`](https://github.com/Drop-OSS/drop-app/commit/598e1d5fdc06dbf1828f58100d133ca3cec7ff26) style(playtime): add compact view and tweak style of compact playtime details - [`46f19d1`](https://github.com/Drop-OSS/drop-app/commit/46f19d15b95872d7c1cb36ce700a15ba06d5fafc) fix(playtime): remove WIP date tracking from displaying ### 📊 Changes **15 files changed** (+1004 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `main/app.vue` (+4 -0) ➕ `main/components/PlaytimeDisplay.vue` (+53 -0) ➕ `main/components/PlaytimeStats.vue` (+76 -0) ➕ `main/composables/playtime.ts` (+193 -0) 📝 `main/pages/library/[id]/index.vue` (+30 -1) 📝 `main/types.ts` (+34 -0) 📝 `src-tauri/src/database/models.rs` (+106 -1) 📝 `src-tauri/src/error/process_error.rs` (+3 -1) 📝 `src-tauri/src/lib.rs` (+30 -1) ➕ `src-tauri/src/playtime/commands.rs` (+95 -0) ➕ `src-tauri/src/playtime/events.rs` (+81 -0) ➕ `src-tauri/src/playtime/manager.rs` (+255 -0) ➕ `src-tauri/src/playtime/mod.rs` (+3 -0) 📝 `src-tauri/src/process/commands.rs` (+31 -5) 📝 `src-tauri/src/process/process_manager.rs` (+10 -0) </details> ### 📄 Description > [!WARNING] > First and Last played date are also tracked, but kinda buggy so not displayed in the frontend for now > [!TIP] > This is client side only at the moment although made in mind with server reporting in the future ### Playtime under Title & New Playtime status widget added which includes number of sessions <img width="1920" height="1032" alt="image" src="https://github.com/user-attachments/assets/189a0019-740f-48b7-bd0a-11926b916340" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-17 17:12:13 -05:00
yindo closed this issue 2026-02-17 17:12:13 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Drop-OSS/drop-app#158