Skip to content

fix(goals): persist dismissal of achieved goals - #1065

Merged
nixuuu merged 3 commits into
devfrom
fix/persist-cleared-goal
Nov 21, 2026
Merged

nixuuu merged 3 commits into
devfrom
fix/persist-cleared-goal

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Pressing × on an achieved goal used to hide the row for the current visit only. Returning to the thread brought it back.

Web, desktop, and mobile now save the goal ID in device view preferences. The dismissal survives navigation and a restart on that device. A later goal in the same thread still appears. An achieved goal waits for preferences to load before rendering.

Fixes: #466

Verification

  • Chromium at desktop and phone widths, with light and dark appearance. Dismissed achieved goals stayed hidden on return and after reloading. A new active goal appeared in the same thread after setting it through the local gateway API.
  • Typechecks passed for web, mobile, and domain. Lint and formatting passed for the changed source. The existing goal tests passed, and a local persistence check confirmed that saved dismissals survive loading device preferences.
  • Native mobile applies the same dismissal behavior. The Android device reservation refused access because Canopy could not verify ownership of the emulator runtime. The remaining native check consists of tapping ×, reopening the thread, and restarting the app.
  • Required repository checks are left to CI.

@nixuuu
nixuuu marked this pull request as ready for review November 21, 2026 10:29
@nixuuu
nixuuu enabled auto-merge (squash) November 21, 2026 10:29
@nixuuu
nixuuu merged commit 09d0e41 into dev Nov 21, 2026
16 checks passed
@nixuuu
nixuuu deleted the fix/persist-cleared-goal branch November 21, 2026 10:56
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.

1 participant