Skip to content

feat(launchpad2): sns fav projects services #7137

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

mstrasinskis
Copy link
Contributor

@mstrasinskis mstrasinskis commented Jul 17, 2025

Motivation

In the new Launchpad feature – Favourite Projects – users should be able to mark SNS projects as favourites and filter to display only those using a "favourite projects" toggle. The user's selected projects are stored in the nns-dapp backend canister. To make them accessible at the component level, new services and a store are introduced.

API PR: #6989

Changes

  • Introduced a new snsFavProjectsStore to hold user selection.
  • Added new services:
    • loadSnsFavProjects
    • saveSnsFavProject
    • addSnsFavProject
    • removeSnsFavProject

Tests

  • Added tests for the new store.
  • Added tests for the new services.
  • Verified that favorite projects are loaded only when the feature flag is enabled.

Todos

  • Accessibility (a11y) – any impact?
  • Changelog – is it needed?

@mstrasinskis mstrasinskis marked this pull request as ready for review July 17, 2025 18:18
@mstrasinskis mstrasinskis requested a review from a team as a code owner July 17, 2025 18:18
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