Skip to content

Reader: Misc changes needed for showing feed preview while adding subscription#101425

Merged
mehmoodak merged 41 commits intotrunkfrom
loop-478/show-feed-preview-before-adding-misc
Mar 28, 2025
Merged

Reader: Misc changes needed for showing feed preview while adding subscription#101425
mehmoodak merged 41 commits intotrunkfrom
loop-478/show-feed-preview-before-adding-misc

Conversation

@mehmoodak
Copy link
Member

@mehmoodak mehmoodak commented Mar 15, 2025

Related to https://github.com/Automattic/loop/issues/478

Note: It will be helpful to review this PR commit by commit. Now there are lot of commits due to trunk merge so kindly review each commit from the description.

Proposed Changes

I've worked on the Feed Preview PR, which had grown too large so taking out independent changes that can be merged separately.

Before After
image image

image

Before After
image image

Why are these changes being made?

To make the Feed Preview PR smaller.

Testing Instructions

  • Go to /reader/subscriptions. verify subscription and unsubscription of site is working fine.
  • Go to /reader/subscriptions. Open "New Subscription" modal. Verify subscription and unsubscription of the site is working fine.
  • Go to /discover/add-new. Verify site can be added successfully.
  • Go to /discover/add-new. Verify feeds can be added successfully.
  • Go to /discover/reddit. Verify reddit feeds can be added successfully.

Pre-merge Checklist

  • Has the general commit checklist been followed? (PCYsg-hS-p2)
  • Have you written new tests for your changes?
  • Have you tested the feature in Simple (P9HQHe-k8-p2), Atomic (P9HQHe-jW-p2), and self-hosted Jetpack sites (PCYsg-g6b-p2)?
  • Have you checked for TypeScript, React or other console errors?
  • Have you used memoizing on expensive computations? More info in Memoizing with create-selector and Using memoizing selectors and Our Approach to Data
  • Have we added the "[Status] String Freeze" label as soon as any new strings were ready for translation (p4TIVU-5Jq-p2)?
    • For UI changes, have we tested the change in various languages (for example, ES, PT, FR, or DE)? The length of text and words vary significantly between languages.
  • For changes affecting Jetpack: Have we added the "[Status] Needs Privacy Updates" label if this pull request changes what data or activity we track or use (p4TIVU-aUh-p2)?

mehmoodak added 30 commits March 7, 2025 20:09
…llow-feed-item-subscribe-button-to-unsusbcribe-as-well
…llow-feed-item-subscribe-button-to-unsusbcribe-as-well
…llow-feed-item-subscribe-button-to-unsusbcribe-as-well
…llow-feed-item-subscribe-button-to-unsusbcribe-as-well
…e-as-well' into loop-478/add-unsubscribe-track-event-on-ReaderFeedItem
@mehmoodak mehmoodak self-assigned this Mar 15, 2025
@github-actions
Copy link

github-actions bot commented Mar 15, 2025

@matticbot
Copy link
Contributor

matticbot commented Mar 15, 2025

Here is how your PR affects size of JS and CSS bundles shipped to the user's browser:

App Entrypoints (~705 bytes removed 📉 [gzipped])

Details
name                 parsed_size           gzip_size
entry-subscriptions      -1706 B  (-0.1%)     -705 B  (-0.1%)

Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used.

Sections (~1181 bytes removed 📉 [gzipped])

Details
name                             parsed_size           gzip_size
themes                               -1756 B  (-0.2%)     -732 B  (-0.2%)
reader                               -1084 B  (-0.0%)     -449 B  (-0.0%)
plugins                               +104 B  (+0.0%)      +66 B  (+0.0%)
jetpack-cloud-plugin-management       +104 B  (+0.0%)      +66 B  (+0.0%)
home                                  +104 B  (+0.0%)      +66 B  (+0.0%)
a8c-for-agencies-plugins              +104 B  (+0.0%)      +66 B  (+0.0%)

Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to.

Async-loaded Components (~288 bytes added 📈 [gzipped])

Details
name                                                 parsed_size           gzip_size
async-load-design-blocks                                  +635 B  (+0.0%)     +301 B  (+0.1%)
async-load-calypso-components-web-preview-component       +635 B  (+0.1%)     +301 B  (+0.2%)
async-load-calypso-reader-discover-discover-stream         -51 B  (-0.4%)      -13 B  (-0.3%)

React components that are loaded lazily, when a certain part of UI is displayed for the first time.

Legend

What is parsed and gzip size?

Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory.
Gzip Size: Compressed size of the JS and CSS files. This much data needs to be downloaded over network.

Generated by performance advisor bot at iscalypsofastyet.com.

@mehmoodak mehmoodak marked this pull request as ready for review March 15, 2025 18:56
@mehmoodak mehmoodak requested a review from a team as a code owner March 15, 2025 18:56
@matticbot matticbot added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Mar 15, 2025
@mehmoodak mehmoodak force-pushed the loop-478/show-feed-preview-before-adding-misc branch from bd77a15 to a85b321 Compare March 16, 2025 07:54
@matticbot
Copy link
Contributor

This PR modifies the release build for the following Calypso Apps:

For info about this notification, see here: PCYsg-OT6-p2

  • notifications
  • wpcom-block-editor

To test WordPress.com changes, run install-plugin.sh $pluginSlug loop-478/show-feed-preview-before-adding-misc on your sandbox.

Base automatically changed from loop-478/add-unsubscribe-track-event-on-ReaderFeedItem to trunk March 21, 2025 00:22
Copy link
Contributor

@DustyReagan DustyReagan left a comment

Choose a reason for hiding this comment

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

Code review:

Functional test:

  • ✅ Go to /reader/subscriptions. verify subscription and unsubscription of site is working fine.
  • ✅ Go to /reader/subscriptions. Open "New Subscription" modal. Verify subscription and unsubscription of the site is working fine.
  • ✅ Go to /discover/add-new. Verify site can be added successfully.
  • ✅ Go to /discover/add-new. Verify feeds can be added successfully.
  • ✅ Go to /discover/reddit. Verify reddit feeds can be added successfully.

I was under the impression from the code review that I should no longer need to add a protocol to add a site? However, it looks like the form field (Firefox & Chrome) prevents that.
Screenshot 2025-03-27 at 5 06 02 PM

@mehmoodak
Copy link
Member Author

Thanks for the review and thoroughly testing it.

I was under the impression from the code review that I should no longer need to add a protocol to add a site? However, it looks like the form field (Firefox & Chrome) prevents that.

This will be fixed in #101426

@mehmoodak mehmoodak merged commit af8a10c into trunk Mar 28, 2025
15 checks passed
@mehmoodak mehmoodak deleted the loop-478/show-feed-preview-before-adding-misc branch March 28, 2025 00:18
@github-actions github-actions bot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Mar 28, 2025
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.

3 participants

Comments