[PR #143] [CLOSED] Client Side Playtime Tracking #164

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

📋 Pull Request Information

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

Base: developHead: small-feats


📝 Commits (10+)

  • 105b3e9 feat(databse): add in playtime tracking and bump db ver
  • e798d25 feat(playtime): add in playtime tracking commands and implement into process manager
  • 262c850 feat(library): implement playtime tracking on the frontend
  • 6d2b8c8 style(playtime): add compact view and tweak style of compact playtime details
  • 40a490f fix(playtime): remove WIP date tracking from displaying
  • 780508b chore: fix error caused by git tomfoolery
  • 808cc46 feat(playtime): fix date serialisation and re implement into frontend
  • 088bba5 feat(playtime): automatically show new data once game is closed
  • cbdd2a5 feat(queue): give the validating stage a green colour
  • ed19a88 feat(queue): seperating history speed type by colour

📊 Changes

18 files changed (+1163 additions, -20 deletions)

View changed files

📝 main/app.vue (+4 -0)
📝 main/components/HeaderQueueWidget.vue (+4 -1)
main/components/PlaytimeDisplay.vue (+53 -0)
main/components/PlaytimeStats.vue (+163 -0)
📝 main/composables/downloads.ts (+6 -1)
main/composables/playtime.ts (+199 -0)
📝 main/pages/library/[id]/index.vue (+34 -1)
📝 main/pages/queue.vue (+27 -8)
📝 main/types.ts (+34 -0)
📝 src-tauri/src/database/models.rs (+107 -2)
📝 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 (+279 -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/143 **Author:** [@AdenMGB](https://github.com/AdenMGB) **Created:** 9/7/2025 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `small-feats` --- ### 📝 Commits (10+) - [`105b3e9`](https://github.com/Drop-OSS/drop-app/commit/105b3e9bc4a8b46914d4e00171c8b4ba30f5aa48) feat(databse): add in playtime tracking and bump db ver - [`e798d25`](https://github.com/Drop-OSS/drop-app/commit/e798d258dcf518d38a2cb36ba51a16a7622e7065) feat(playtime): add in playtime tracking commands and implement into process manager - [`262c850`](https://github.com/Drop-OSS/drop-app/commit/262c8505b7b68fc94bf11bc8b26e1194bb973cdc) feat(library): implement playtime tracking on the frontend - [`6d2b8c8`](https://github.com/Drop-OSS/drop-app/commit/6d2b8c88e84292e9b2a7875f18b6e634ee6b8abf) style(playtime): add compact view and tweak style of compact playtime details - [`40a490f`](https://github.com/Drop-OSS/drop-app/commit/40a490fda45985cf0c8fa39b85e36a2b3c56cfcd) fix(playtime): remove WIP date tracking from displaying - [`780508b`](https://github.com/Drop-OSS/drop-app/commit/780508b79ee13ca536731f719c189667811f27dd) chore: fix error caused by git tomfoolery - [`808cc46`](https://github.com/Drop-OSS/drop-app/commit/808cc460505946b47d6db950fbc4880717d77b70) feat(playtime): fix date serialisation and re implement into frontend - [`088bba5`](https://github.com/Drop-OSS/drop-app/commit/088bba5bd05a0706de568be49db1145a990f25be) feat(playtime): automatically show new data once game is closed - [`cbdd2a5`](https://github.com/Drop-OSS/drop-app/commit/cbdd2a5627636a4f61995ccf270744f530cb9b19) feat(queue): give the validating stage a green colour - [`ed19a88`](https://github.com/Drop-OSS/drop-app/commit/ed19a881d0702ed0e7da36d65d0254a5f3414c03) feat(queue): seperating history speed type by colour ### 📊 Changes **18 files changed** (+1163 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `main/app.vue` (+4 -0) 📝 `main/components/HeaderQueueWidget.vue` (+4 -1) ➕ `main/components/PlaytimeDisplay.vue` (+53 -0) ➕ `main/components/PlaytimeStats.vue` (+163 -0) 📝 `main/composables/downloads.ts` (+6 -1) ➕ `main/composables/playtime.ts` (+199 -0) 📝 `main/pages/library/[id]/index.vue` (+34 -1) 📝 `main/pages/queue.vue` (+27 -8) 📝 `main/types.ts` (+34 -0) 📝 `src-tauri/src/database/models.rs` (+107 -2) 📝 `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` (+279 -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:14 -05:00
yindo closed this issue 2026-02-17 17:12:14 -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#164