Skip to content
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

Reading Settings: Adding 'Blogs post' setting to the new Reading Settings page #70868

Merged
merged 3 commits into from
Dec 8, 2022

Conversation

mashikag
Copy link
Contributor

@mashikag mashikag commented Dec 7, 2022

Proposed Changes

  • Add Blogs post setting to the new Reading Settings page

Testing Instructions

  • Run local version of calypso
  • Go to http://calypso.localhost:3000/settings/reading/<YOUR-BLOG>
  • Ensure the setting:
    • displays the correct value
    • can be modified and saved
  • Validate that the modified value actually affects how many posts are displayed on a blog posts page
  • Smile

Pre-merge Checklist

  • 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 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-ajp-p2)?

Closes #70410

Screen Shot 2022-12-08 at 15 30 06

@mashikag mashikag self-assigned this Dec 7, 2022
@github-actions
Copy link

github-actions bot commented Dec 7, 2022

@matticbot
Copy link
Contributor

matticbot commented Dec 7, 2022

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

App Entrypoints (~4 bytes added 📈 [gzipped])

name           parsed_size           gzip_size
entry-stepper        +63 B  (+0.0%)       +4 B  (+0.0%)
entry-main           +63 B  (+0.0%)       +3 B  (+0.0%)

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

Sections (~7701 bytes added 📈 [gzipped])

name              parsed_size            gzip_size
settings-reading     +26025 B  (+10.2%)    +7701 B  (+9.2%)

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

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.

Copy link
Contributor

@ivan-ottinger ivan-ottinger left a comment

Choose a reason for hiding this comment

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

I know the PR hasn't been marked for review yet, but since I was looking at it, I thought I could just share a couple things I noticed anyways (even though there's a chance you have been already planning to apply some of them in the future commits). 🙂

@mashikag mashikag force-pushed the add/reading-settings-blogs-post branch from d930fd8 to da2040a Compare December 8, 2022 13:16
@mashikag mashikag force-pushed the add/reading-settings-blogs-post branch from da2040a to d58fba7 Compare December 8, 2022 13:33
@mashikag mashikag requested a review from a team December 8, 2022 14:39
@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 Dec 8, 2022
@mashikag mashikag marked this pull request as ready for review December 8, 2022 14:39
Copy link
Contributor

@ivan-ottinger ivan-ottinger left a comment

Choose a reason for hiding this comment

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

Second review round

Tested with Simple, Atomic and Jetpack-connected sites. The posts_per_page setting loads and saves correctly and the change reflects instantly on the site.

I did not notice any regressions, nor JS/React errors/warnings, neither issues with the code.

Since the feature is still behind the feature flag and hasn't been launched, we don't need to wait for string translations. 👍🏼

@mashikag mashikag merged commit 4a6c691 into trunk Dec 8, 2022
@mashikag mashikag deleted the add/reading-settings-blogs-post branch December 8, 2022 17:30
@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 Dec 8, 2022
@a8ci18n
Copy link

a8ci18n commented Dec 8, 2022

This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/7663442

Thank you @mashikag for including a screenshot in the description! This is really helpful for our translators.

@a8ci18n
Copy link

a8ci18n commented Dec 15, 2022

Translation for this Pull Request has now been finished.

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.

Reading Settings: Add “Blog posts” site setting
5 participants