Skip to content

feat: Add ability for users to subscribe to updates for individual features - #2232

Merged
jcscottiii merged 1 commit into
mainfrom
feature-sub-button
Feb 12, 2026
Merged

feat: Add ability for users to subscribe to updates for individual features#2232
jcscottiii merged 1 commit into
mainfrom
feature-sub-button

Conversation

@neilv-g

@neilv-g neilv-g commented Feb 5, 2026

Copy link
Copy Markdown
Collaborator

When loading a feature detail page, a new 'user_subscription_id' ID field is returned (if the user is logged in) to indicate whether the user is subscribed to updates on the feature (i.e. if they have a entry in SavedSearchSubscriptions for the feature with the features' SystemManagedSavedSearch).

The frontend checks for the presence of this field and shows the button and appropriate text ('Subscribe to updates' vs 'Manage subscription').

Other misc changes:

  • Updated 'make dev_fake_data' flow to populate SystemManagedSavedSearches table
  • Moved and Modified get_user_saved_search.go logic to saved_searches.go to fetch user and system scope searches in one DB call.

@neilv-g
neilv-g requested a review from jcscottiii February 5, 2026 20:48
Comment thread openapi/backend/openapi.yaml Outdated
@neilv-g
neilv-g force-pushed the feature-sub-button branch from 3c1bfcd to 6a3706e Compare February 9, 2026 18:26

@jcscottiii jcscottiii left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nit and you will need to update the screenshots.

You can follow the instructions here.

I do the SKIP_FRESH_ENV method instead of running make playwright-update-snapshots without it. While you have to manually run the commands to set up your environment, you have more control if you need to re-run a test. And you can also configure visual studio code afterwards to regenerate for individual tests if needed too.

Comment thread frontend/src/static/js/components/webstatus-subscribe-button.ts Outdated
@neilv-g
neilv-g force-pushed the feature-sub-button branch 4 times, most recently from f43a27a to 7b17788 Compare February 10, 2026 12:25

@jcscottiii jcscottiii left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM on the frontend. One comment on the spanner code.

Comment thread lib/gcpspanner/get_user_saved_search.go Outdated
Notification subscription status is loaded on button click.

Other misc changes:
- Updated 'make dev_fake_data' flow to populate SystemManagedSavedSearches
  table
- The button would not open a second time on a single page load, so there are
  some changes to fix that in the ts files (i.e. dialog box  would not open if you
  clicked subscribe, closed the dialog box, then tried clicking subscribe again)
@jcscottiii
jcscottiii added this pull request to the merge queue Feb 12, 2026
Merged via the queue into main with commit a25ee46 Feb 12, 2026
8 checks passed
@jcscottiii
jcscottiii deleted the feature-sub-button branch February 12, 2026 00:46
@szy196 szy196 mentioned this pull request Feb 12, 2026
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.

2 participants