Skip to content

Store favourite comments per-activity#457

Draft
Terrance wants to merge 8 commits intoRazeeman:devfrom
Terrance-forks:favourite-activity-comments
Draft

Store favourite comments per-activity#457
Terrance wants to merge 8 commits intoRazeeman:devfrom
Terrance-forks:favourite-activity-comments

Conversation

@Terrance
Copy link

This PR extends favourite comments to be optionally associated with a single activity. The favourites hints combine "global" comments from all activities with "local" ones belonging to the currently-selected activity.

Still to do:

  • UX: Currently tapping the star button adds a local favourite, while long-pressing it creates a global one. The star turns red and the hint appears when either exist, so currently there's no way to tell the two cases apart, nor is it apparent that two modes of favouriting exist. Open to suggestions on how to present this.

  • Tests: Not yet investigated, besides the minimum amount of updates of test utils needed to fix compilation.

Fixes #453.

@Razeeman
Copy link
Owner

Razeeman commented Mar 21, 2026

Hello! Thank you very much for the help.

About the UX. One way that comes to mind is to mirror how tags currently working. So clicking on favourite icon will add favourite comment only for the selected activity. Long clicking on added favourite comment will open an edit screen with ability to select another activity or select no activity which will mean that comment can be used for all activities.

Also it is probably better to allow assigning one fav comment to several activities. To allow this it is possible to add a separate DBO similar to RecordTypeToTagDBO, that will store a relation between activity typeId and fav comment id. Instead of adding only one typeId field to FavouriteCommentDBO.

Future ideas to expand:

  • adding a "show all button" / "assigned to other activities" button to be able to select a comment that is currently assigned to other activity, similar to tags logic.
  • maybe add a screen to settings to view all fav comments similar to "edit categories and tags", to be able to view all added fav comments, edit and remove them.

Hope this makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FR: Store favourite comments per-activity

2 participants