Automattic / Automattic/jetpack

Subscribe block: handle confirmation for two blocks at the same page

Open
#30,579 0 comments 0 reactions 0 assignees View on GitHub
[Block] Subscribe Enhancement
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

Via p9Jlb4-787-p2

@crisbusquets wrote:

> When subscribing, the behaviour is a bit strange: it shows a success alert, the input and, at the same time, it automatically scrolls to the posts.
>
> ![Image](https://github.com/Automattic/jetpack/assets/87168/9542775b-a1c6-4860-a3e7-d50ed8e46548)
>
> This can create a strange interface if the newsletter doesn’t have many posts yet — in this case, there are two alerts in the same viewport.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the behavior with two Subscribe blocks on the same page, including a newsletter with few posts, and observe the success alerts, input, and automatic scroll. Done means the confirmation experience no longer leaves two alerts in the same viewport; the issue names no files or tests, so the relevant Subscribe block entry point must first be located.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.