Skip to content

Link follow to notifications in article pages - #15558

Merged
aracho1 merged 17 commits into
mainfrom
link-follow-to-notifications
Jun 16, 2026
Merged

aracho1 merged 17 commits into
mainfrom
link-follow-to-notifications

Conversation

@aracho1

@aracho1 aracho1 commented Mar 19, 2026 •

Copy link
Copy Markdown
Contributor

What does this change?

  • Couple follow and notifications: Following a contributor now automatically enables notifications, and unfollowing disables them.
  • Auto-follow users with existing notifications: On load, if a user has notifications turned on for a contributor but isn't following them, the tag follow is automatically enabled to keep the two states consistent.
  • Replace the notifications button with a text label that shows the current notification state and directs users to Settings to change it.

Why?

We are making a stronger link between follow and notifications, by making users follow something before they can set notifications for the subject.

Screenshots

Not following Notification On Notification Off
after-iOS-not-following after-iOS-following-on after-iOS-following-off
after-android-not-following after-android-following-on after-android-following-off

@github-actions

github-actions Bot commented Mar 19, 2026 •

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Mar 19, 2026 •

Copy link
Copy Markdown

.catch((error) => {
window.guardian.modules.sentry.reportError(
error,
'bridget-getTagClient-auto-follow-error',

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've assumed it's ok to create a new Sentry error type for this but please let me know if I should just use an existing one e.g. `'bridget-getTagClient-isFollowing-error'

Comment thread dotcom-rendering/src/components/FollowWrapper.importable.tsx Outdated
@aracho1 aracho1 added the feature Departmental tracking: work on a new feature label Mar 19, 2026
@aracho1
aracho1 marked this pull request as ready for review March 19, 2026 11:14
@github-actions

Copy link
Copy Markdown

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

@aracho1 aracho1 added the run_chromatic Runs chromatic when label is applied label Mar 20, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Mar 20, 2026

@JamieB-gu JamieB-gu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good, one question.

Comment thread dotcom-rendering/src/components/FollowWrapper.importable.tsx Outdated
@aracho1
aracho1 force-pushed the link-follow-to-notifications branch from a24b341 to fc192bd Compare March 24, 2026 10:39
@aracho1
aracho1 requested a review from JamieB-gu March 24, 2026 10:45
@aracho1
aracho1 force-pushed the link-follow-to-notifications branch 2 times, most recently from 1fe7ac7 to fc192bd Compare March 25, 2026 15:58
@github-actions

Copy link
Copy Markdown

"This PR is stale because it has been open 30 days with no activity. Unless a comment is added or the “stale” label removed, this will be closed in 3 days"

@github-actions github-actions Bot added the Stale label Apr 27, 2026
@github-actions

github-actions Bot commented May 1, 2026

Copy link
Copy Markdown

This PR was closed because it has been stalled for 3 days with no activity.

@github-actions github-actions Bot closed this May 1, 2026
@aracho1 aracho1 reopened this May 29, 2026
@aracho1 aracho1 added run_chromatic Runs chromatic when label is applied and removed Stale labels May 29, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label May 29, 2026
@aracho1 aracho1 added the run_chromatic Runs chromatic when label is applied label May 29, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label May 29, 2026
@JamieB-gu JamieB-gu added the run_chromatic Runs chromatic when label is applied label Jun 10, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Jun 10, 2026
@aracho1
aracho1 merged commit 73dccb4 into main Jun 16, 2026
37 checks passed
@aracho1
aracho1 deleted the link-follow-to-notifications branch June 16, 2026 15:08
@gu-prout

gu-prout Bot commented Jun 16, 2026

Copy link
Copy Markdown

Seen on PROD (merged by @aracho1 10 minutes and 41 seconds ago) Please check your changes!

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

Labels

feature Departmental tracking: work on a new feature Seen-on-PROD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants