Skip to content

Conversation

@tGecko
Copy link
Member

@tGecko tGecko commented Feb 16, 2024

Added theming, implemented scrolling through items and deletion of entries in activity tracker.

Selecting Item Deleting item Item deleted
PlayActivity_004 PlayActivity_005 PlayActivity_006
PlayActivity_001 PlayActivity_002 PlayActivity_003

|

Items are deleted by setting the new column roms.deletion_id for the selected item to the highest corresponding play_activity rowid.

Added a tool to restore deleted items to Tweaks

Added a migration script to add the roms.deletion_id column if necessary.
Closes #1326

TODO:

  • update other places to respect the deletion_id column (GameSwitcher.. ?)

Testing:

Test the migration script
Test deleting items
Test restoring deleted items

@tGecko tGecko added the enhancement New or improved feature label Feb 16, 2024
@tGecko tGecko added this to the v4.4 milestone Feb 16, 2024
@tGecko tGecko self-assigned this Feb 16, 2024
@tGecko tGecko changed the title Add functionality to delete entries in Activity Tracker Rewrite Activity Tracker to use themes, add functionality to delete entries Feb 18, 2024
@tGecko tGecko changed the title Rewrite Activity Tracker to use themes, add functionality to delete entries Rewrite Activity Tracker with theme support, add functionality to delete entries Feb 18, 2024
@tGecko tGecko requested a review from Copilot January 17, 2026 13:36
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request rewrites the Activity Tracker UI with comprehensive theme support and adds the ability to delete play activity entries. The implementation introduces a new database column deletion_id to track hidden entries, migration scripts to update existing databases, and a restore tool accessible through the Tweaks menu.

Changes:

  • Complete rewrite of playActivityUI using the theme system and list components for consistent UI
  • Added database support for soft-deletion of play activity entries via deletion_id column
  • Implemented scroll acceleration and entry deletion features with confirmation dialogs
  • Added migration script and restore tool for managing deleted entries

Reviewed changes

Copilot reviewed 16 out of 17 changed files in this pull request and generated 21 comments.

Show a summary per file
File Description
static/build/.tmp_update/script/restore_deleted_play_activity.sh New script to restore all deleted activity tracker entries by resetting deletion_id
static/build/.tmp_update/script/migration/00019_add_hidden_column_play_activity.sh Migration script to add deletion_id column to existing databases
src/tweaks/tools_defs.h Added new tool entry for restore functionality
src/tweaks/tools.h Implemented restore tool function and fixed tool array indices
src/tweaks/menus.h Added menu entry for the restore tool
src/tweaks/icons.h Updated list_free calls to include icon_ptr_keep parameter
src/tweaks/appstate.h Updated list_free calls across menu structures
src/prompt/prompt.c Updated list_free call signature
src/playActivityUI/res/background.png New background image resource (binary file)
src/playActivityUI/playActivityUI.h Removed old header file as part of rewrite
src/playActivityUI/playActivityUI.c Complete rewrite with theme support, list-based UI, deletion feature
src/playActivityUI/Makefile Added required SDL libraries for theme support
src/playActivity/playActivityDB.h Added play_activity_hide function, updated queries to respect deletion_id, improved memory cleanup
src/common/utils/timer.h New debug timing utility for performance measurement
src/common/utils/file.c Fixed memory leak in file_cleanName function
src/common/theme/render/list.h Added PLAYACTIVITY item type rendering with numbering
src/common/components/list.h Added scroll acceleration, updated list_free signature to prevent double-free

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tGecko tGecko force-pushed the feat-activity-tracker-delete-entries branch 2 times, most recently from 32b2b64 to 20ca152 Compare January 17, 2026 17:46
@tGecko tGecko force-pushed the feat-activity-tracker-delete-entries branch from 244b120 to 7afa4a8 Compare January 18, 2026 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New or improved feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Activity tracker : allow to delete an entry

2 participants