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

Merge 21.0 (21.0.0) code freeze into trunk #19472

Merged
merged 16 commits into from
Oct 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def wordpress_ui
end

def wordpress_kit
pod 'WordPressKit', '~> 4.58.1-beta.1'
pod 'WordPressKit', '~> 4.58', '>= 4.58.1'
AliSoftware marked this conversation as resolved.
Show resolved Hide resolved
# pod 'WordPressKit', :git => 'https://github.com/wordpress-mobile/WordPressKit-iOS.git', :tag => ''
# pod 'WordPressKit', :git => 'https://github.com/wordpress-mobile/WordPressKit-iOS.git', :branch => ''
# pod 'WordPressKit', :git => 'https://github.com/wordpress-mobile/WordPressKit-iOS.git', :commit => ''
Expand Down Expand Up @@ -222,7 +222,7 @@ abstract_target 'Apps' do

pod 'Gridicons', '~> 1.1.0'

pod 'WordPressAuthenticator', '~> 3.2', '>= 3.2.2-beta.1'
pod 'WordPressAuthenticator', '~> 3.2', '>= 3.2.2'
# pod 'WordPressAuthenticator', git: 'https://github.com/wordpress-mobile/WordPressAuthenticator-iOS.git', branch: 'fix/prologue-nav-bar'
# pod 'WordPressAuthenticator', :git => 'https://github.com/wordpress-mobile/WordPressAuthenticator-iOS.git', :commit => ''
# 'WordPressAuthenticator', :path => '../WordPressAuthenticator-iOS'
Expand Down
24 changes: 12 additions & 12 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -481,17 +481,17 @@ PODS:
- SDWebImageWebPCoder (0.8.5):
- libwebp (~> 1.0)
- SDWebImage/Core (~> 5.10)
- Sentry (7.27.0):
- Sentry/Core (= 7.27.0)
- Sentry/Core (7.27.0)
- Sentry (7.28.0):
- Sentry/Core (= 7.28.0)
- Sentry/Core (7.28.0)
- Sodium (0.9.1)
- Starscream (3.0.6)
- SVProgressHUD (2.2.5)
- UIDeviceIdentifier (2.1.0)
- WordPress-Aztec-iOS (1.19.8)
- WordPress-Editor-iOS (1.19.8):
- WordPress-Aztec-iOS (= 1.19.8)
- WordPressAuthenticator (3.2.2-beta.1):
- WordPressAuthenticator (3.2.2):
- Alamofire (~> 4.8)
- CocoaLumberjack (~> 3.5)
- GoogleSignIn (~> 6.0.1)
Expand All @@ -501,7 +501,7 @@ PODS:
- WordPressKit (~> 4.18-beta)
- WordPressShared (~> 1.12-beta)
- WordPressUI (~> 1.7-beta)
- WordPressKit (4.58.1-beta.1):
- WordPressKit (4.58.1):
- Alamofire (~> 4.8.0)
- CocoaLumberjack (~> 3.4)
- NSObject-SafeExpectations (= 0.0.4)
Expand Down Expand Up @@ -601,8 +601,8 @@ DEPENDENCIES:
- Starscream (= 3.0.6)
- SVProgressHUD (= 2.2.5)
- WordPress-Editor-iOS (~> 1.19.8)
- WordPressAuthenticator (>= 3.2.2-beta.1, ~> 3.2)
- WordPressKit (~> 4.58.1-beta.1)
- WordPressAuthenticator (>= 3.2.2, ~> 3.2)
- WordPressKit (>= 4.58.1, ~> 4.58)
- WordPressShared (~> 1.18.0)
- WordPressUI (~> 1.12.5)
- WPMediaPicker (~> 1.8.4)
Expand All @@ -613,7 +613,6 @@ DEPENDENCIES:
SPEC REPOS:
https://github.com/wordpress-mobile/cocoapods-specs.git:
- WordPressAuthenticator
- WordPressKit
trunk:
- Alamofire
- AlamofireImage
Expand Down Expand Up @@ -651,6 +650,7 @@ SPEC REPOS:
- UIDeviceIdentifier
- WordPress-Aztec-iOS
- WordPress-Editor-iOS
- WordPressKit
- WordPressShared
- WordPressUI
- WPMediaPicker
Expand Down Expand Up @@ -857,15 +857,15 @@ SPEC CHECKSUMS:
RNTAztecView: 168824a26c9e9b19f6f032a739efab296771b351
SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d
SDWebImageWebPCoder: 908b83b6adda48effe7667cd2b7f78c897e5111d
Sentry: 026b36fdc09531604db9279e55f047fe652e3f4a
Sentry: 2c6053e4cfe6dea6608135dea1928ffbb4ecfba5
Sodium: 23d11554ecd556196d313cf6130d406dfe7ac6da
Starscream: ef3ece99d765eeccb67de105bfa143f929026cf5
SVProgressHUD: 1428aafac632c1f86f62aa4243ec12008d7a51d6
UIDeviceIdentifier: e6a801d25f4f178de5bdf475ffe29050d0148176
WordPress-Aztec-iOS: 7d11d598f14c82c727c08b56bd35fbeb7dafb504
WordPress-Editor-iOS: 9eb9f12f21a5209cb837908d81ffe1e31cb27345
WordPressAuthenticator: eae458ed9d8252ad972f6078e5b04faed0948bf5
WordPressKit: a882aab63b1fb8cc4366c368910ded797a73ae5f
WordPressAuthenticator: 5110c62de1b1b1eb1f2a43fd2599f7f6c7a6659d
WordPressKit: 476ac76ac7ba610a694c55729cc4f0191bb820dc
WordPressShared: e5a479220643f46dc4d7726ef8dd45f18bf0c53b
WordPressUI: c5be816f6c7b3392224ac21de9e521e89fa108ac
WPMediaPicker: 5a74a91e11c1047e942a65de0193f93432fc2c6d
Expand All @@ -880,6 +880,6 @@ SPEC CHECKSUMS:
ZendeskSupportSDK: 3a8e508ab1d9dd22dc038df6c694466414e037ba
ZIPFoundation: ae5b4b813d216d3bf0a148773267fff14bd51d37

PODFILE CHECKSUM: cf16960c63b027f1dd7a6987c9bd742337122e66
PODFILE CHECKSUM: 414e767e2d770a8f141d427b2d743a5bbe610fc1

COCOAPODS: 1.11.2
4 changes: 4 additions & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
21.1
-----


21.0
-----
* [*] Fixed an issue where the cached notifications are retained after logging out of WordPress.com account [#19360]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,38 @@ struct StatsSegmentedControlData {
}

var differenceLabel: String {
let stringFormatValue = differencePercent != 0 ? "%@%@ (%@%%)" : "%@%@"
let stringFormat = NSLocalizedString(stringFormatValue, comment: "Difference label for Insights Overview stat, indicating change from previous period. Ex: +99.9K(5%)")
return String.localizedStringWithFormat(
stringFormat,
difference < 0 ? "" : "+",
difference.abbreviatedString(),
differencePercent.abbreviatedString()
)
// We want to show something like "+10.2K (+5%)" if we have a percentage difference and "1.2K" if we don't.
//
// Negative cases automatically appear with a negative sign "-10.2K (-5%)" by using `abbreviatedString()`.
// `abbreviatedString()` also handles formatting big numbers, i.e. 10,200 will become 10.2K.
let formatter = NumberFormatter()
formatter.locale = .current
let plusSign = difference <= 0 ? "" : "\(formatter.plusSign ?? "")"

if differencePercent != 0 {
let stringFormat = NSLocalizedString(
"insights.visitorsLineChartCell.differenceLabelWithPercentage",
value: "%1$@%2$@ (%3$@%%)",
comment: "Text for the Insights Overview stat difference label. Shows the change from the previous period, including the percentage value. E.g.: +12.3K (5%). %1$@ is the placeholder for the change sign ('-', '+', or none). %2$@ is the placeholder for the change numerical value. %3$@ is the placeholder for the change percentage value, excluding the % sign."
)
return String.localizedStringWithFormat(
stringFormat,
plusSign,
difference.abbreviatedString(),
differencePercent.abbreviatedString()
)
} else {
let stringFormat = NSLocalizedString(
"insights.visitorsLineChartCell.differenceLabelWithoutPercentage",
value: "%1$@%2$@",
comment: "Text for the Insights Overview stat difference label. Shows the change from the previous period. E.g.: +12.3K. %1$@ is the placeholder for the change sign ('-', '+', or none). %2$@ is the placeholder for the change numerical value."
)
return String.localizedStringWithFormat(
stringFormat,
plusSign,
difference.abbreviatedString()
)
}
}

var differenceTextColor: UIColor {
Expand Down
19 changes: 12 additions & 7 deletions WordPress/Jetpack/Resources/release_notes.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
You can now cancel a WordPress.com login while you’re already logged in to a self-hosted site—no more getting stuck on the login screen if you change your mind.

The Jetpack app can run weekly roundups in the background while you’re using other apps. Up, up, and away.

On iPad displays, the “Turn on notifications” button no longer sits overtop the instructions for turning on push notifications. The “No result” side menu text now fits on screen, too.

Once upon a time, we fixed an issue where deleting one image in a Story Post draft would prevent the next image in the story from loading. And everyone lived happily ever after.
* [*] Fixed an issue where the cached notifications are retained after logging out of WordPress.com account [#19360]
* [**] Added a share extension. Now users can share content to Jetpack through iOS's share sheet. This was previously only available on the WordPress app. [#19383]
* [*] Update launch screen. [#19341]
* [*] Add ability to set custom app icon for Jetpack app. [#19378]
* [**] Added a "Save as Draft" extension. Now users can save content to Jetpack through iOS's share sheet. This was previously only available on the WordPress app. [#19414]
* [**] Enables Rich Notifications for the Jetpack app. Now we display more details on most of the push notifications. This was previously only available on the WordPress app. [#19415]
* [*] Reader: Comment Details have been redesigned. [#19387]
* [*] [internal] A refactor in weekly roundup notification scheduler. [#19422]
* [*] [internal] A low level database refactor around fetching cards in the Reader tab. [#19427]
* [*] Stories: Fixed an issue where the keyboard would overlap with the publish dialog in landscape. [#19350]
* [*] [internal] A refactor in fetch Reader posts and their comments. [#19458]
* [*] Fixed an issue where the navigation bar becomes invisible when swiping back to Login Prologue screen. [#19461]
47 changes: 25 additions & 22 deletions WordPress/Resources/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@
/* Let's the user know that a third party sharing service was reconnected. The %@ is a placeholder for the service name. */
"%@ was reconnected." = "%@ was reconnected.";

/* Difference label for Insights Overview stat, indicating change from previous period. Ex: +99.9K(5%)
Difference label for Period Overview stat, indicating change from previous period. Ex: +99.9K (5%) */
/* Difference label for Period Overview stat, indicating change from previous period. Ex: +99.9K (5%) */
"%@%@ (%@%%)" = "%1$@%2$@ (%3$@%%)";

/* Accessibility label for a post in the post list. The parameters are the title, and date respectively. For example, \"Let it Go, 1 hour ago.\" */
Expand Down Expand Up @@ -1798,9 +1797,6 @@
/* A label title. */
"Comments per page" = "Comments per page";

/* Insights 'Comments Total' header */
"Comments Total" = "Comments Total";

/* Setting: WordPress.com Community */
"Community" = "Community";

Expand Down Expand Up @@ -3404,9 +3400,6 @@
Label for number of followers. */
"Followers" = "Followers";

/* Insights 'Followers Total' header */
"Followers Total" = "Followers Total";

/* Accessibility label for following buttons.
Title of the Following Reader tab
User is following the blog.
Expand Down Expand Up @@ -3991,6 +3984,12 @@
/* Title displayed on the feature introduction view that announces the updated Stats Insight screen. */
"Insights update" = "Insights update";

/* Text for the Insights Overview stat difference label. Shows the change from the previous period. E.g.: +12.3K. %1$@ is the placeholder for the change sign ('-', '+', or none). %2$@ is the placeholder for the change numerical value. */
"insights.visitorsLineChartCell.differenceLabelWithoutPercentage" = "%1$@%2$@";

/* Text for the Insights Overview stat difference label. Shows the change from the previous period, including the percentage value. E.g.: +12.3K (5%). %1$@ is the placeholder for the change sign ('-', '+', or none). %2$@ is the placeholder for the change numerical value. %3$@ is the placeholder for the change percentage value, excluding the % sign. */
"insights.visitorsLineChartCell.differenceLabelWithPercentage" = "%1$@%2$@ (%3$@%%)";

/* Button label to install a plugin
Confirmation button displayd in alert displayed when user installs their first plugin. */
"Install" = "Install";
Expand Down Expand Up @@ -4172,7 +4171,8 @@
/* Message to show when Publicize connection synchronization failed */
"Jetpack Social connection synchronization failed" = "Jetpack Social connection synchronization failed";

/* Section title for Publicize services in Sharing screen */
/* Insights 'Jetpack Social Connections' header
Section title for Publicize services in Sharing screen */
"Jetpack Social Connections" = "Jetpack Social Connections";

/* Message to show when Publicize service synchronization failed */
Expand Down Expand Up @@ -4217,9 +4217,6 @@
/* Post a photo prompt for the jetpack prologue */
"jetpack.prologue.prompt.postPhoto" = "Post a photo";

/* Read an article prompt for the jetpack prologue */
"jetpack.prologue.prompt.readArticle" = "Read an article";

/* Respond to comments prompt for the jetpack prologue */
"jetpack.prologue.prompt.respondComments" = "Respond to comments";

Expand All @@ -4229,8 +4226,8 @@
/* Search for plugins prompt for the jetpack prologue */
"jetpack.prologue.prompt.searchPlugins" = "Search for plugins";

/* Search for posts or sites prompt for the jetpack prologue */
"jetpack.prologue.prompt.searchPosts" = "Search for posts or sites";
/* Update a plugin prompt for the jetpack prologue */
"jetpack.prologue.prompt.updatePlugin" = "Update a plugin";

/* Watch your stats prompt for the jetpack prologue */
"jetpack.prologue.prompt.watchStats" = "Watch your stats";
Expand Down Expand Up @@ -4397,9 +4394,6 @@
/* VoiceOver accessibility hint, informing the user the button can be used to like a comment */
"Likes the Comment." = "Likes the Comment.";

/* Insights 'Likes Total' header */
"Likes Total" = "Likes Total";

/* Message to show when a request for a WP.com API endpoint is throttled */
"Limit reached. You can try again in 1 minute. Trying again before that will only increase the time you have to wait before the ban is lifted. If you think this is in error, contact support." = "Limit reached. You can try again in 1 minute. Trying again before that will only increase the time you have to wait before the ban is lifted. If you think this is in error, contact support.";

Expand Down Expand Up @@ -4907,6 +4901,7 @@

/* Label for a button that moves a page to the trash folder
Label for a option that moves a post to the trash folder
Title for button on the comment details page that moves the comment to trash when tapped.
Trash option in the trash confirmation alert.
Trash option in the trash page confirmation alert.
Trashes the comment */
Expand Down Expand Up @@ -6175,9 +6170,6 @@
Text for privacy settings: Public */
"Public" = "Public";

/* Insights 'Publicize' header */
"Publicize" = "Publicize";

/* Button shown when the author is asked for publishing confirmation.
Button title. Publishes a post.
Label for the publish (verb) button. Tapping publishes a draft post.
Expand Down Expand Up @@ -7075,6 +7067,9 @@
Verb. Title of a button. Pressing lets the user share a post to others. */
"Share" = "Share";

/* Accessibility label for button to share a comment from a notification */
"Share comment" = "Share comment";

/* Informational text for Collect Information setting */
"Share information with our analytics tool about your use of services while logged in to your WordPress.com account." = "Share information with our analytics tool about your use of services while logged in to your WordPress.com account.";

Expand Down Expand Up @@ -7539,6 +7534,9 @@
/* The status of the post. Should be the same as in core WP. */
"Status" = "Status";

/* Section title for the moderation section of the comment details screen. */
"STATUS" = "STATUS";

/* Title of the first alert preparing users to grant permission for us to send them push notifications. */
"Stay in the loop" = "Stay in the loop";

Expand Down Expand Up @@ -8401,13 +8399,18 @@
/* Label for total followers */
"Total" = "Total";

/* 'This Year' label for total number of comments. */
/* 'This Year' label for total number of comments.
Insights 'Total Comments' header */
"Total Comments" = "Total Comments";

/* Label displaying total number of Email followers. %@ is the total. */
"Total Email Followers: %@" = "Total Email Followers: %@";

/* 'This Year' label for total number of likes. */
/* Insights 'Total Followers' header */
"Total Followers" = "Total Followers";

/* 'This Year' label for total number of likes.
Insights 'Total Likes' header */
"Total Likes" = "Total Likes";

/* 'This Year' label for the total number of posts. */
Expand Down
15 changes: 8 additions & 7 deletions WordPress/Resources/release_notes.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
You can now cancel a WordPress.com login while you’re already logged in to a self-hosted site—no more getting stuck on the login screen if you change your mind.

We also squashed several bugs in this latest update.

- Once upon a time, we fixed an issue where deleting one image in a Story Post draft would prevent the next image in the story from loading. And everyone lived happily ever after.
- On iPad displays, the “Turn on notifications” button no longer sits overtop the instructions for turning on push notifications. The “No result” side menu text now fits on screen, too.
- Content above the Powered by Jetpack banner now stays visible and responsive while you’re scrolling. Up, up, and away.
* [*] Fixed an issue where the cached notifications are retained after logging out of WordPress.com account [#19360]
* [*] Update launch screen. [#19341]
* [*] Reader: Comment Details have been redesigned. [#19387]
* [*] [internal] A refactor in weekly roundup notification scheduler. [#19422]
* [*] [internal] A low level database refactor around fetching cards in the Reader tab. [#19427]
* [*] Stories: Fixed an issue where the keyboard would overlap with the publish dialog in landscape. [#19350]
* [*] [internal] A refactor in fetch Reader posts and their comments. [#19458]
* [*] Fixed an issue where the navigation bar becomes invisible when swiping back to Login Prologue screen. [#19461]
Loading