Add last opened timestamp display in 3-dots menu for deeplinks#160
Merged
yogeshpaliyal merged 7 commits intomasterfrom Oct 9, 2025
Merged
Add last opened timestamp display in 3-dots menu for deeplinks#160yogeshpaliyal merged 7 commits intomasterfrom
yogeshpaliyal merged 7 commits intomasterfrom
Conversation
Co-authored-by: yogeshpaliyal <9381846+yogeshpaliyal@users.noreply.github.com>
Co-authored-by: yogeshpaliyal <9381846+yogeshpaliyal@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Log full date and time of deeplink launch
Add last opened timestamp display in 3-dots menu for deeplinks
Oct 9, 2025
Owner
|
@copilot |
Co-authored-by: yogeshpaliyal <9381846+yogeshpaliyal@users.noreply.github.com>
Contributor
Author
Done! I've refactored the implementation to use a separate Changes:
Benefits of this approach:
The UI remains unchanged and works seamlessly with the new architecture. |
yogeshpaliyal
approved these changes
Oct 9, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR adds functionality to track and display the full date and time when each deeplink was last opened, addressing the feature request in the related issue.
Changes
Database Schema
DeeprOpenLogtable to maintain a complete history of when each deeplink is opened3.sqm) to ensure backward compatibility for existing installationsDeeprtable remains unchanged, keeping it clean and normalizedUI Enhancement
The 3-dots menu now displays an informational "Last Opened" entry showing when the deeplink was last used:
Before:
After:
The timestamp entry:
formatDateTime()utilityInternationalization
Added translations for "Last Opened: %s" in all 6 supported languages:
Technical Details
Architecture
The implementation uses a separate logging table for better data normalization and future extensibility:
When a deeplink is opened:
incrementOpenedCountupdates the counter in theDeeprtableinsertDeeprOpenLogcreates a new log entry with the current timestampQueries use a subquery to efficiently fetch the most recent open time:
Benefits of Separate Logging Table
Deeprtable clean and focusedUser Experience
This feature complements the existing "Opened: X" counter by providing temporal context:
Together, these provide comprehensive usage tracking for each deeplink, helping users identify frequently used links and when they last accessed them.
Backward Compatibility
Fixes #116
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.