Skip to content

Favourite activities not maintained after saving in "Good sleep habits" tool #77

@kiwisqr

Description

@kiwisqr

Describe the bug
In the "Good Sleep Habits" tool, users can select a category such as "Relaxing Activities", which displays a list of suggested activities. Users can mark individual activities as favourites by tapping them, and then press Save. However, after returning to the category screen, the previously marked favourites are not retained, they appear unmarked.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Manage' -> 'Tools' -> 'Sleep Instruments' -> 'Good Sleep Habits'
  2. Select a category (e.g., "Relaxing Activities").
  3. Tap on a few activities to mark them as favourites.
  4. Press the Save button.
  5. Exit the category view.
  6. Re-enter the same category.
  7. Observe that the previously marked favourites are no longer selected.

Expected behavior
Marked activities should remain selected after saving and returning to the category.

Screenshots

Screenrecorder-2025-05-05-20-15-07-755.mp4

Smartphone (please complete the following information):
Device: Xiaomi Mi 11 Lite
OS: Android
Version 13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions